diff --git a/VERSION b/VERSION index 2d2b8b22a..89598ce2a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1255 \ No newline at end of file +1.36.1256 \ No newline at end of file diff --git a/ehpc/CMakeLists.txt b/ehpc/CMakeLists.txt index 5e57aedd3..3373003e6 100644 --- a/ehpc/CMakeLists.txt +++ b/ehpc/CMakeLists.txt @@ -21,479 +21,151 @@ 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/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/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/EcdDeleteDesktopsRequest.h - include/alibabacloud/ehpc/model/EcdDeleteDesktopsResult.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/GetGWSConnectTicketRequest.h - include/alibabacloud/ehpc/model/GetGWSConnectTicketResult.h - include/alibabacloud/ehpc/model/GetHealthMonitorLogsRequest.h - include/alibabacloud/ehpc/model/GetHealthMonitorLogsResult.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/GetSchedulerInfoRequest.h - include/alibabacloud/ehpc/model/GetSchedulerInfoResult.h - include/alibabacloud/ehpc/model/GetVisualServiceStatusRequest.h - include/alibabacloud/ehpc/model/GetVisualServiceStatusResult.h - include/alibabacloud/ehpc/model/GetWorkbenchTokenRequest.h - include/alibabacloud/ehpc/model/GetWorkbenchTokenResult.h - include/alibabacloud/ehpc/model/InitializeEHPCRequest.h - include/alibabacloud/ehpc/model/InitializeEHPCResult.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/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/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/ListTasksRequest.h - include/alibabacloud/ehpc/model/ListTasksResult.h include/alibabacloud/ehpc/model/ListUsersRequest.h include/alibabacloud/ehpc/model/ListUsersResult.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/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/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/SetJobUserRequest.h + include/alibabacloud/ehpc/model/SetJobUserResult.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/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/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/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/EcdDeleteDesktopsRequest.cc - src/model/EcdDeleteDesktopsResult.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/GetGWSConnectTicketRequest.cc - src/model/GetGWSConnectTicketResult.cc - src/model/GetHealthMonitorLogsRequest.cc - src/model/GetHealthMonitorLogsResult.cc - src/model/GetHybridClusterConfigRequest.cc - src/model/GetHybridClusterConfigResult.cc - src/model/GetIfEcsTypeSupportHtConfigRequest.cc - src/model/GetIfEcsTypeSupportHtConfigResult.cc - src/model/GetSchedulerInfoRequest.cc - src/model/GetSchedulerInfoResult.cc - src/model/GetVisualServiceStatusRequest.cc - src/model/GetVisualServiceStatusResult.cc - src/model/GetWorkbenchTokenRequest.cc - src/model/GetWorkbenchTokenResult.cc - src/model/InitializeEHPCRequest.cc - src/model/InitializeEHPCResult.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/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/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/ListTasksRequest.cc - src/model/ListTasksResult.cc src/model/ListUsersRequest.cc src/model/ListUsersResult.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/SetGWSClusterPolicyRequest.cc - src/model/SetGWSClusterPolicyResult.cc - src/model/SetGWSInstanceNameRequest.cc - src/model/SetGWSInstanceNameResult.cc - src/model/SetGWSInstanceUserRequest.cc - src/model/SetGWSInstanceUserResult.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/SetJobUserRequest.cc + src/model/SetJobUserResult.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/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 57d22858d..89207294d 100644 --- a/ehpc/include/alibabacloud/ehpc/EHPCClient.h +++ b/ehpc/include/alibabacloud/ehpc/EHPCClient.h @@ -22,240 +22,76 @@ #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/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/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/EcdDeleteDesktopsRequest.h" -#include "model/EcdDeleteDesktopsResult.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/GetGWSConnectTicketRequest.h" -#include "model/GetGWSConnectTicketResult.h" -#include "model/GetHealthMonitorLogsRequest.h" -#include "model/GetHealthMonitorLogsResult.h" -#include "model/GetHybridClusterConfigRequest.h" -#include "model/GetHybridClusterConfigResult.h" -#include "model/GetIfEcsTypeSupportHtConfigRequest.h" -#include "model/GetIfEcsTypeSupportHtConfigResult.h" -#include "model/GetSchedulerInfoRequest.h" -#include "model/GetSchedulerInfoResult.h" -#include "model/GetVisualServiceStatusRequest.h" -#include "model/GetVisualServiceStatusResult.h" -#include "model/GetWorkbenchTokenRequest.h" -#include "model/GetWorkbenchTokenResult.h" -#include "model/InitializeEHPCRequest.h" -#include "model/InitializeEHPCResult.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/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/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/ListTasksRequest.h" -#include "model/ListTasksResult.h" #include "model/ListUsersRequest.h" #include "model/ListUsersResult.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/SetGWSClusterPolicyRequest.h" -#include "model/SetGWSClusterPolicyResult.h" -#include "model/SetGWSInstanceNameRequest.h" -#include "model/SetGWSInstanceNameResult.h" -#include "model/SetGWSInstanceUserRequest.h" -#include "model/SetGWSInstanceUserResult.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/SetJobUserRequest.h" +#include "model/SetJobUserResult.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/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" @@ -267,66 +103,21 @@ 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; @@ -336,153 +127,33 @@ namespace AlibabaCloud 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 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 EcdDeleteDesktopsOutcome; - typedef std::future EcdDeleteDesktopsOutcomeCallable; - typedef std::function&)> EcdDeleteDesktopsAsyncHandler; 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 GetGWSConnectTicketOutcome; - typedef std::future GetGWSConnectTicketOutcomeCallable; - typedef std::function&)> GetGWSConnectTicketAsyncHandler; - typedef Outcome GetHealthMonitorLogsOutcome; - typedef std::future GetHealthMonitorLogsOutcomeCallable; - typedef std::function&)> GetHealthMonitorLogsAsyncHandler; - typedef Outcome GetHybridClusterConfigOutcome; - typedef std::future GetHybridClusterConfigOutcomeCallable; - typedef std::function&)> GetHybridClusterConfigAsyncHandler; - typedef Outcome GetIfEcsTypeSupportHtConfigOutcome; - typedef std::future GetIfEcsTypeSupportHtConfigOutcomeCallable; - typedef std::function&)> GetIfEcsTypeSupportHtConfigAsyncHandler; - typedef Outcome GetSchedulerInfoOutcome; - typedef std::future GetSchedulerInfoOutcomeCallable; - typedef std::function&)> GetSchedulerInfoAsyncHandler; - typedef Outcome GetVisualServiceStatusOutcome; - typedef std::future GetVisualServiceStatusOutcomeCallable; - typedef std::function&)> GetVisualServiceStatusAsyncHandler; - typedef Outcome GetWorkbenchTokenOutcome; - typedef std::future GetWorkbenchTokenOutcomeCallable; - typedef std::function&)> GetWorkbenchTokenAsyncHandler; - typedef Outcome InitializeEHPCOutcome; - typedef std::future InitializeEHPCOutcomeCallable; - typedef std::function&)> InitializeEHPCAsyncHandler; - 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 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; @@ -492,30 +163,18 @@ namespace AlibabaCloud 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 ListTasksOutcome; - typedef std::future ListTasksOutcomeCallable; - typedef std::function&)> ListTasksAsyncHandler; typedef Outcome ListUsersOutcome; typedef std::future ListUsersOutcomeCallable; typedef std::function&)> ListUsersAsyncHandler; @@ -525,99 +184,30 @@ namespace AlibabaCloud 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 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 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 SetJobUserOutcome; + typedef std::future SetJobUserOutcomeCallable; + typedef std::function&)> SetJobUserAsyncHandler; 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 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; @@ -626,66 +216,21 @@ 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; @@ -695,153 +240,33 @@ namespace AlibabaCloud 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; - 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; - EcdDeleteDesktopsOutcome ecdDeleteDesktops(const Model::EcdDeleteDesktopsRequest &request)const; - void ecdDeleteDesktopsAsync(const Model::EcdDeleteDesktopsRequest& request, const EcdDeleteDesktopsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - EcdDeleteDesktopsOutcomeCallable ecdDeleteDesktopsCallable(const Model::EcdDeleteDesktopsRequest& 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; - 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; - GetHealthMonitorLogsOutcome getHealthMonitorLogs(const Model::GetHealthMonitorLogsRequest &request)const; - void getHealthMonitorLogsAsync(const Model::GetHealthMonitorLogsRequest& request, const GetHealthMonitorLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetHealthMonitorLogsOutcomeCallable getHealthMonitorLogsCallable(const Model::GetHealthMonitorLogsRequest& 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; - 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; - 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; - GetWorkbenchTokenOutcome getWorkbenchToken(const Model::GetWorkbenchTokenRequest &request)const; - void getWorkbenchTokenAsync(const Model::GetWorkbenchTokenRequest& request, const GetWorkbenchTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetWorkbenchTokenOutcomeCallable getWorkbenchTokenCallable(const Model::GetWorkbenchTokenRequest& 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; - 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; - 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; @@ -851,30 +276,18 @@ namespace AlibabaCloud 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; - 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; 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; @@ -884,99 +297,30 @@ namespace AlibabaCloud 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; - 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; - 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; + 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; 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; - 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 deleted file mode 100644 index f09977062..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/AddContainerAppRequest.h +++ /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. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_ADDCONTAINERAPPREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_ADDCONTAINERAPPREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_ADDCONTAINERAPPREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/AddContainerAppResult.h b/ehpc/include/alibabacloud/ehpc/model/AddContainerAppResult.h deleted file mode 100644 index 43b95a1d3..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/AddContainerAppResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index aecce7f4b..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/AddExistedNodesRequest.h +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_ADDEXISTEDNODESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_ADDEXISTEDNODESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT AddExistedNodesRequest : public RpcServiceRequest - { - public: - struct Instance - { - std::string id; - }; - - public: - AddExistedNodesRequest(); - ~AddExistedNodesRequest(); - - std::string getImageId()const; - void setImageId(const std::string& imageId); - std::vector getInstance()const; - void setInstance(const std::vector& instance); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - 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 clientToken_; - std::string clusterId_; - std::string jobQueue_; - std::string accessKeyId_; - std::string imageOwnerAlias_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_ADDEXISTEDNODESREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/AddExistedNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/AddExistedNodesResult.h deleted file mode 100644 index 588154eae..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/AddExistedNodesResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index cdc8231a3..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/AddLocalNodesRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_ADDLOCALNODESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_ADDLOCALNODESREQUEST_H_ - -#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); - - private: - std::string clusterId_; - std::string accessKeyId_; - std::string nodes_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_ADDLOCALNODESREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/AddLocalNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/AddLocalNodesResult.h deleted file mode 100644 index b307d845d..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/AddLocalNodesResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 fa59b8a06..f47063902 100644 --- a/ehpc/include/alibabacloud/ehpc/model/AddNodesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/AddNodesRequest.h @@ -1,135 +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_ADDNODESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_ADDNODESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT AddNodesRequest : public RpcServiceRequest - { - - public: - 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); - 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 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_; - 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 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_ADDNODESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_ADDNODESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_ADDNODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT AddNodesRequest : public RpcServiceRequest { +public: + AddNodesRequest(); + ~AddNodesRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + 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); + +private: + std::string imageId_; + int count_; + std::string clusterId_; + std::string computeSpotStrategy_; + std::string accessKeyId_; + std::string imageOwnerAlias_; + std::string computeSpotPriceLimit_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_ADDNODESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/AddNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/AddNodesResult.h index 431c5b9fe..dee5294d9 100644 --- a/ehpc/include/alibabacloud/ehpc/model/AddNodesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/AddNodesResult.h @@ -37,13 +37,11 @@ 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 deleted file mode 100644 index a8c419c05..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/AddQueueRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_ADDQUEUEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_ADDQUEUEREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_ADDQUEUEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/AddQueueResult.h b/ehpc/include/alibabacloud/ehpc/model/AddQueueResult.h deleted file mode 100644 index 412975054..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/AddQueueResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_ADDQUEUERESULT_H_ -#define ALIBABACLOUD_EHPC_MODEL_ADDQUEUERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT AddQueueResult : public ServiceResult - { - public: - - - AddQueueResult(); - explicit AddQueueResult(const std::string &payload); - ~AddQueueResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#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 deleted file mode 100644 index 3825bf62e..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_ADDSECURITYGROUPREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_ADDSECURITYGROUPREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_ADDSECURITYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupResult.h b/ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupResult.h deleted file mode 100644 index 760a4af7e..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 4f80040b0..2aa281b93 100644 --- a/ehpc/include/alibabacloud/ehpc/model/AddUsersRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/AddUsersRequest.h @@ -1,61 +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_ADDUSERSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_ADDUSERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT AddUsersRequest : public RpcServiceRequest - { - public: - struct User - { - std::string password; - std::string name; - std::string group; - }; - - public: - AddUsersRequest(); - ~AddUsersRequest(); - - std::string getClusterId()const; - void setClusterId(const std::string& clusterId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::vector getUser()const; - void setUser(const std::vector& user); - - private: - std::string clusterId_; - std::string accessKeyId_; - std::vector user_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_ADDUSERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_ADDUSERSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_ADDUSERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT AddUsersRequest : public RpcServiceRequest { +public: + struct User { + std::string password; + std::string name; + std::string group; + }; + AddUsersRequest(); + ~AddUsersRequest(); + std::string getClusterId() const; + 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 +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_ADDUSERSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ApplyNodesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ApplyNodesRequest.h deleted file mode 100644 index 667e1b9a2..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ApplyNodesRequest.h +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_APPLYNODESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_APPLYNODESREQUEST_H_ - -#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 InstanceTypeModel - { - float maxPrice; - std::string targetImageId; - std::string instanceType; - }; - - public: - 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 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); - 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 accessKeyId_; - std::string systemDiskType_; - int cores_; - int systemDiskSize_; - std::vector zoneInfos_; - std::string hostNamePrefix_; - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_APPLYNODESREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ApplyNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/ApplyNodesResult.h deleted file mode 100644 index 58015f656..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ApplyNodesResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 88ead2c4d..d5967e5b8 100644 --- a/ehpc/include/alibabacloud/ehpc/model/CreateClusterRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/CreateClusterRequest.h @@ -1,230 +1,141 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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_CREATECLUSTERREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_CREATECLUSTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT CreateClusterRequest : 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; - }; - struct PostInstallScript - { - std::string args; - std::string url; - }; - struct Application - { - std::string tag; - }; - - public: - CreateClusterRequest(); - ~CreateClusterRequest(); - - 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::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::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 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 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; - void setAccountType(const std::string& accountType); - 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 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 getClusterVersion()const; - void setClusterVersion(const std::string& clusterVersion); - bool getIsComputeEss()const; - void setIsComputeEss(bool isComputeEss); - 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 getSchedulerType()const; - void setSchedulerType(const std::string& schedulerType); - std::string getVolumeMountpoint()const; - void setVolumeMountpoint(const std::string& volumeMountpoint); - std::string getEcsOrderLoginInstanceType()const; - void setEcsOrderLoginInstanceType(const std::string& ecsOrderLoginInstanceType); - - private: - 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::string computeSpotPriceLimit_; - int autoRenewPeriod_; - int period_; - std::string remoteDirectory_; - int ecsOrderComputeCount_; - std::string computeSpotStrategy_; - std::vector postInstallScript_; - std::string vSwitchId_; - std::string periodUnit_; - bool computeEnableHt_; - std::string autoRenew_; - std::string name_; - std::string volumeId_; - std::string zoneId_; - std::string sccClusterId_; - std::string imageId_; - std::string systemDiskLevel_; - std::string clientToken_; - std::string ehpcVersion_; - std::string accountType_; - std::string securityGroupId_; - std::string description_; - std::string ecsOrderComputeInstanceType_; - std::string jobQueue_; - std::string accessKeyId_; - std::string volumeType_; - std::string systemDiskType_; - std::string volumeProtocol_; - std::string clientVersion_; - std::string osTag_; - std::string clusterVersion_; - bool isComputeEss_; - std::vector application_; - std::string ecsChargeType_; - std::string inputFileUrl_; - std::string vpcId_; - bool haEnable_; - std::string schedulerType_; - std::string volumeMountpoint_; - std::string ecsOrderLoginInstanceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_CREATECLUSTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_CREATECLUSTERREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_CREATECLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT CreateClusterRequest : public RpcServiceRequest { +public: + 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::string getEcsOrderManagerInstanceType() const; + void setEcsOrderManagerInstanceType(const std::string &ecsOrderManagerInstanceType); + std::string getEhpcVersion() const; + void setEhpcVersion(const std::string &ehpcVersion); + std::string getAccountType() const; + void setAccountType(const std::string &accountType); + std::string getSecurityGroupId() const; + 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 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 getVolumeProtocol() const; + void setVolumeProtocol(const std::string &volumeProtocol); + 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::vector getApplication() const; + void setApplication(const std::vector &application); + std::string getEcsChargeType() const; + void setEcsChargeType(const std::string &ecsChargeType); + 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); + 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::string ecsOrderManagerInstanceType_; + std::string ehpcVersion_; + std::string accountType_; + std::string securityGroupId_; + std::string description_; + std::string keyPairName_; + std::string securityGroupName_; + std::string ecsOrderComputeInstanceType_; + std::string accessKeyId_; + std::string imageOwnerAlias_; + std::string volumeType_; + int ecsOrderManagerCount_; + std::string password_; + int ecsOrderLoginCount_; + std::string computeSpotPriceLimit_; + std::string volumeProtocol_; + std::string osTag_; + std::string remoteDirectory_; + int ecsOrderComputeCount_; + std::string computeSpotStrategy_; + std::string vSwitchId_; + std::vector application_; + std::string ecsChargeType_; + std::string vpcId_; + bool haEnable_; + std::string name_; + std::string schedulerType_; + std::string volumeId_; + std::string volumeMountpoint_; + std::string ecsOrderLoginInstanceType_; + std::string zoneId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_CREATECLUSTERREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/CreateClusterResult.h index c7f460fe5..c2938017b 100644 --- a/ehpc/include/alibabacloud/ehpc/model/CreateClusterResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/CreateClusterResult.h @@ -37,13 +37,11 @@ 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 deleted file mode 100644 index 30ba5b2ea..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_CREATEGWSCLUSTERREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_CREATEGWSCLUSTERREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEGWSCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterResult.h deleted file mode 100644 index e3d439201..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index effd2dab7..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/CreateGWSImageRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_CREATEGWSIMAGEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_CREATEGWSIMAGEREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEGWSIMAGEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateGWSImageResult.h b/ehpc/include/alibabacloud/ehpc/model/CreateGWSImageResult.h deleted file mode 100644 index ce77bb535..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/CreateGWSImageResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index fd7b497da..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceRequest.h +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_CREATEGWSINSTANCEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_CREATEGWSINSTANCEREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEGWSINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceResult.h b/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceResult.h deleted file mode 100644 index 4998e54b1..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index e4b7ee7be..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterRequest.h +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_CREATEHYBRIDCLUSTERREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_CREATEHYBRIDCLUSTERREQUEST_H_ - -#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 accountType; - std::string schedulerType; - }; - struct Application - { - std::string tag; - }; - - public: - CreateHybridClusterRequest(); - ~CreateHybridClusterRequest(); - - 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 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEHYBRIDCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterResult.h deleted file mode 100644 index 56368d814..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 4dedc2fb9..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/CreateJobFileRequest.h +++ /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. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_CREATEJOBFILEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_CREATEJOBFILEREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEJOBFILEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateJobFileResult.h b/ehpc/include/alibabacloud/ehpc/model/CreateJobFileResult.h deleted file mode 100644 index ca31492b4..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/CreateJobFileResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 769f4b9a3..2275acc22 100644 --- a/ehpc/include/alibabacloud/ehpc/model/CreateJobTemplateRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/CreateJobTemplateRequest.h @@ -1,99 +1,75 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_CREATEJOBTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_CREATEJOBTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT CreateJobTemplateRequest : public RpcServiceRequest - { - - public: - CreateJobTemplateRequest(); - ~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 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 getRunasUser()const; - 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); - int getNode()const; - void setNode(int node); - int getTask()const; - void setTask(int task); - 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 packagePath_; - std::string mem_; - std::string stdoutRedirectPath_; - std::string variables_; - std::string runasUser_; - bool reRunable_; - int thread_; - int priority_; - int gpu_; - int node_; - int task_; - std::string name_; - std::string queue_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEJOBTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_CREATEJOBTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_CREATEJOBTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT CreateJobTemplateRequest : public RpcServiceRequest { +public: + CreateJobTemplateRequest(); + ~CreateJobTemplateRequest(); + std::string getStderrRedirectPath() const; + void setStderrRedirectPath(const std::string &stderrRedirectPath); + 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 getPackagePath() const; + void setPackagePath(const std::string &packagePath); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getStdoutRedirectPath() const; + void setStdoutRedirectPath(const std::string &stdoutRedirectPath); + std::string getVariables() const; + void setVariables(const std::string &variables); + std::string getRunasUser() const; + void setRunasUser(const std::string &runasUser); + bool getReRunable() const; + void setReRunable(bool reRunable); + int getPriority() const; + void setPriority(int priority); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string stderrRedirectPath_; + std::string commandLine_; + std::string accessKeyId_; + std::string arrayRequest_; + std::string packagePath_; + std::string regionId_; + std::string stdoutRedirectPath_; + std::string variables_; + std::string runasUser_; + bool reRunable_; + int priority_; + std::string name_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEJOBTEMPLATEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteClusterRequest.h b/ehpc/include/alibabacloud/ehpc/model/DeleteClusterRequest.h index 877ea9b8a..78aba421c 100644 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteClusterRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteClusterRequest.h @@ -1,54 +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_DELETECLUSTERREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DELETECLUSTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT DeleteClusterRequest : public RpcServiceRequest - { - - public: - DeleteClusterRequest(); - ~DeleteClusterRequest(); - - std::string getClusterId()const; - void setClusterId(const std::string& clusterId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getReleaseInstance()const; - void setReleaseInstance(const std::string& releaseInstance); - - private: - std::string clusterId_; - std::string accessKeyId_; - std::string releaseInstance_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DELETECLUSTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DELETECLUSTERREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETECLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DeleteClusterRequest : public RpcServiceRequest { +public: + DeleteClusterRequest(); + ~DeleteClusterRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getReleaseInstance() const; + void setReleaseInstance(const std::string &releaseInstance); + +private: + std::string clusterId_; + std::string accessKeyId_; + std::string releaseInstance_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETECLUSTERREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteClusterResult.h index be7fe8207..70d23101d 100644 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteClusterResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteClusterResult.h @@ -37,12 +37,10 @@ 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 deleted file mode 100644 index 6cd82b442..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteContainerAppsRequest.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_DELETECONTAINERAPPSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DELETECONTAINERAPPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT DeleteContainerAppsRequest : public RpcServiceRequest - { - public: - struct ContainerApp - { - std::string id; - }; - - public: - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DELETECONTAINERAPPSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteContainerAppsResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteContainerAppsResult.h deleted file mode 100644 index 698457c6c..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteContainerAppsResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 61ad7348e..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_DELETEGWSCLUSTERREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DELETEGWSCLUSTERREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEGWSCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterResult.h deleted file mode 100644 index 3b34c2dd6..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 861275475..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_DELETEGWSINSTANCEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DELETEGWSINSTANCEREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEGWSINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceResult.h deleted file mode 100644 index 4e505d7f5..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index a67ac9cd5..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteImageRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_DELETEIMAGEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DELETEIMAGEREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEIMAGEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteImageResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteImageResult.h deleted file mode 100644 index f6fff0d92..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteImageResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 091ecc838..2507d20a6 100644 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteJobTemplatesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteJobTemplatesRequest.h @@ -1,51 +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_DELETEJOBTEMPLATESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DELETEJOBTEMPLATESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT DeleteJobTemplatesRequest : public RpcServiceRequest - { - - public: - DeleteJobTemplatesRequest(); - ~DeleteJobTemplatesRequest(); - - std::string getTemplates()const; - void setTemplates(const std::string& templates); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string templates_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEJOBTEMPLATESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DELETEJOBTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETEJOBTEMPLATESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DeleteJobTemplatesRequest : public RpcServiceRequest { +public: + DeleteJobTemplatesRequest(); + ~DeleteJobTemplatesRequest(); + std::string getTemplates() const; + 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 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEJOBTEMPLATESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteJobsRequest.h b/ehpc/include/alibabacloud/ehpc/model/DeleteJobsRequest.h index f26755ddb..f657d3495 100644 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteJobsRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteJobsRequest.h @@ -1,54 +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_DELETEJOBSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DELETEJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT DeleteJobsRequest : public RpcServiceRequest - { - - public: - DeleteJobsRequest(); - ~DeleteJobsRequest(); - - std::string getJobs()const; - void setJobs(const std::string& jobs); - std::string getClusterId()const; - void setClusterId(const std::string& clusterId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string jobs_; - std::string clusterId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEJOBSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DELETEJOBSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETEJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DeleteJobsRequest : public RpcServiceRequest { +public: + DeleteJobsRequest(); + ~DeleteJobsRequest(); + std::string getJobs() const; + void setJobs(const std::string &jobs); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string jobs_; + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEJOBSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteNodesRequest.h b/ehpc/include/alibabacloud/ehpc/model/DeleteNodesRequest.h index ba30e0f15..a6743edd5 100644 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteNodesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteNodesRequest.h @@ -1,65 +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_DELETENODESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DELETENODESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT DeleteNodesRequest : public RpcServiceRequest - { - public: - struct Instance - { - std::string id; - }; - - public: - DeleteNodesRequest(); - ~DeleteNodesRequest(); - - std::vector getInstance()const; - 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; - void setReleaseInstance(bool releaseInstance); - - private: - std::vector instance_; - std::string clusterId_; - bool sync_; - std::string accessKeyId_; - bool releaseInstance_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DELETENODESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DELETENODESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETENODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DeleteNodesRequest : public RpcServiceRequest { +public: + struct Instance { + std::string id; + }; + DeleteNodesRequest(); + ~DeleteNodesRequest(); + 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); + bool getReleaseInstance() const; + void setReleaseInstance(bool releaseInstance); + +private: + std::vector instance_; + std::string clusterId_; + std::string accessKeyId_; + bool releaseInstance_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETENODESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteNodesResult.h index dfe385c74..ac55d32a1 100644 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteNodesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteNodesResult.h @@ -37,12 +37,10 @@ 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 deleted file mode 100644 index b2b773fd4..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteQueueRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_DELETEQUEUEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DELETEQUEUEREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEQUEUEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteQueueResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteQueueResult.h deleted file mode 100644 index 61dd9f664..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteQueueResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index e7a3da3f0..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_DELETESECURITYGROUPREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DELETESECURITYGROUPREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DELETESECURITYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupResult.h deleted file mode 100644 index dcf257177..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DeleteUsersRequest.h b/ehpc/include/alibabacloud/ehpc/model/DeleteUsersRequest.h index 5b41b30bf..0644605d4 100644 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteUsersRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteUsersRequest.h @@ -1,59 +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_DELETEUSERSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DELETEUSERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT DeleteUsersRequest : public RpcServiceRequest - { - public: - struct User - { - std::string name; - }; - - public: - DeleteUsersRequest(); - ~DeleteUsersRequest(); - - std::string getClusterId()const; - void setClusterId(const std::string& clusterId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::vector getUser()const; - void setUser(const std::vector& user); - - private: - std::string clusterId_; - std::string accessKeyId_; - std::vector user_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEUSERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DELETEUSERSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETEUSERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DeleteUsersRequest : public RpcServiceRequest { +public: + struct User { + std::string name; + }; + DeleteUsersRequest(); + ~DeleteUsersRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::vector getUser() const; + void setUser(const std::vector &user); + +private: + std::string clusterId_; + std::string accessKeyId_; + std::vector user_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEUSERSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeAutoScaleConfigRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeAutoScaleConfigRequest.h deleted file mode 100644 index 51e6ffae4..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeAutoScaleConfigRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEAUTOSCALECONFIGREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEAUTOSCALECONFIGREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEAUTOSCALECONFIGREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeAutoScaleConfigResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeAutoScaleConfigResult.h deleted file mode 100644 index c0918470b..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeAutoScaleConfigResult.h +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 getShrinkIdleTimes()const; - int getMaxNodesInCluster()const; - std::string getClusterType()const; - bool getEnableAutoShrink()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 shrinkIdleTimes_; - int maxNodesInCluster_; - std::string clusterType_; - bool enableAutoShrink_; - 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/DescribeClusterRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeClusterRequest.h index 3afb2ceb0..90b08c7e4 100644 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeClusterRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeClusterRequest.h @@ -1,51 +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_DESCRIBECLUSTERREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DESCRIBECLUSTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT DescribeClusterRequest : public RpcServiceRequest - { - - public: - DescribeClusterRequest(); - ~DescribeClusterRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBECLUSTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBECLUSTERREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBECLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DescribeClusterRequest : public RpcServiceRequest { +public: + DescribeClusterRequest(); + ~DescribeClusterRequest(); + 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_DESCRIBECLUSTERREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeClusterResult.h index 7478f6537..2ff306cb0 100644 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeClusterResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeClusterResult.h @@ -61,42 +61,31 @@ namespace AlibabaCloud std::string tag; std::string name; }; - struct PostInstallScriptInfo - { - std::string args; - std::string url; - }; - std::string volumeProtocol; std::string imageOwnerAlias; + std::string volumeProtocol; std::string description; std::string clientVersion; 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 createTime; std::string securityGroupId; + std::string createTime; std::string vSwitchId; std::string schedulerType; std::string accountType; std::string volumeMountpoint; - std::string baseOsTag; - std::string imageName; - std::string vpcId; EcsInfo ecsInfo; bool haEnable; std::string osTag; - std::string id; - std::string regionId; std::string ecsChargeType; - std::string location; + std::string regionId; + std::string id; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeContainerAppRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeContainerAppRequest.h deleted file mode 100644 index 73fcb7f76..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeContainerAppRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBECONTAINERAPPREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DESCRIBECONTAINERAPPREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBECONTAINERAPPREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeContainerAppResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeContainerAppResult.h deleted file mode 100644 index f030ea969..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeContainerAppResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 repository; - std::string imageTag; - std::string type; - 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/DescribeGWSClusterPolicyRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyRequest.h deleted file mode 100644 index 01243b5e8..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERPOLICYREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERPOLICYREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyResult.h deleted file mode 100644 index 3e40c29fd..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 4f4458a69..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERSREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersResult.h deleted file mode 100644 index fdfab592a..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersResult.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index e0a9a7f83..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSIMAGESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSIMAGESREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSIMAGESREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesResult.h deleted file mode 100644 index 30700b2fb..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesResult.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 name; - std::string imageType; - }; - - - 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 deleted file mode 100644 index 12b3b3c8a..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSINSTANCESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSINSTANCESREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesResult.h deleted file mode 100644 index dd180eeb6..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesResult.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 clusterId; - std::string instanceId; - std::string createTime; - std::string instanceType; - std::string expireTime; - 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 deleted file mode 100644 index 55363a552..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeImageGatewayConfigRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEGATEWAYCONFIGREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEGATEWAYCONFIGREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEGATEWAYCONFIGREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeImageGatewayConfigResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeImageGatewayConfigResult.h deleted file mode 100644 index f2e921045..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeImageGatewayConfigResult.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 0e68f9e4d..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeImagePriceRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEPRICEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEPRICEREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEPRICEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeImagePriceResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeImagePriceResult.h deleted file mode 100644 index 4f4e86a90..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeImagePriceResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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; - float getDiscountPrice()const; - int getAmount()const; - std::string getImageId()const; - float getTradePrice()const; - - protected: - void parse(const std::string &payload); - private: - float originalPrice_; - float discountPrice_; - int amount_; - 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 deleted file mode 100644 index 26b64de99..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeImageRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeImageResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeImageResult.h deleted file mode 100644 index 52f9c01c8..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeImageResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 2933f311f..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeJobRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEJOBREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEJOBREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEJOBREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeJobResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeJobResult.h deleted file mode 100644 index d628577a8..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeJobResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index b77df90a5..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBENFSCLIENTSTATUSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DESCRIBENFSCLIENTSTATUSREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBENFSCLIENTSTATUSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusResult.h deleted file mode 100644 index 961061d0a..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 - { - int exitCode; - std::string output; - 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 deleted file mode 100644 index 5ed8aee71..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribePriceRequest.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEPRICEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEPRICEREQUEST_H_ - -#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; - std::string systemDiskCategory; - std::string internetChargeType; - std::string systemDiskPerformanceLevel; - int systemDiskSize; - int internetMaxBandWidthOut; - std::string instanceType; - std::string networkType; - }; - - public: - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEPRICEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribePriceResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribePriceResult.h deleted file mode 100644 index d50c1d599..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/DescribePriceResult.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/EcdDeleteDesktopsRequest.h b/ehpc/include/alibabacloud/ehpc/model/EcdDeleteDesktopsRequest.h deleted file mode 100644 index d9a11f505..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/EcdDeleteDesktopsRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_ECDDELETEDESKTOPSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_ECDDELETEDESKTOPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT EcdDeleteDesktopsRequest : public RpcServiceRequest - { - - public: - EcdDeleteDesktopsRequest(); - ~EcdDeleteDesktopsRequest(); - - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::vector getDesktopId()const; - void setDesktopId(const std::vector& desktopId); - - private: - std::string accessKeyId_; - std::vector desktopId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_ECDDELETEDESKTOPSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/EcdDeleteDesktopsResult.h b/ehpc/include/alibabacloud/ehpc/model/EcdDeleteDesktopsResult.h deleted file mode 100644 index 3e7a176f1..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/EcdDeleteDesktopsResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_ECDDELETEDESKTOPSRESULT_H_ -#define ALIBABACLOUD_EHPC_MODEL_ECDDELETEDESKTOPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT EcdDeleteDesktopsResult : public ServiceResult - { - public: - - - EcdDeleteDesktopsResult(); - explicit EcdDeleteDesktopsResult(const std::string &payload); - ~EcdDeleteDesktopsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_ECDDELETEDESKTOPSRESULT_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 8b7525a5f..5e53707d7 100644 --- a/ehpc/include/alibabacloud/ehpc/model/EditJobTemplateRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/EditJobTemplateRequest.h @@ -1,102 +1,78 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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_EDITJOBTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_EDITJOBTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT EditJobTemplateRequest : public RpcServiceRequest - { - - public: - EditJobTemplateRequest(); - ~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 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 getRunasUser()const; - 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); - int getNode()const; - void setNode(int node); - int getTask()const; - void setTask(int task); - 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 packagePath_; - std::string mem_; - std::string stdoutRedirectPath_; - std::string variables_; - std::string runasUser_; - bool reRunable_; - int thread_; - std::string templateId_; - int priority_; - int gpu_; - int node_; - int task_; - std::string name_; - std::string queue_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_EDITJOBTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_EDITJOBTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_EDITJOBTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT EditJobTemplateRequest : public RpcServiceRequest { +public: + EditJobTemplateRequest(); + ~EditJobTemplateRequest(); + std::string getStderrRedirectPath() const; + void setStderrRedirectPath(const std::string &stderrRedirectPath); + 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 getPackagePath() const; + void setPackagePath(const std::string &packagePath); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getStdoutRedirectPath() const; + void setStdoutRedirectPath(const std::string &stdoutRedirectPath); + std::string getVariables() const; + void setVariables(const std::string &variables); + std::string getRunasUser() const; + void setRunasUser(const std::string &runasUser); + bool getReRunable() const; + void setReRunable(bool reRunable); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + int getPriority() const; + void setPriority(int priority); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string stderrRedirectPath_; + std::string commandLine_; + std::string accessKeyId_; + std::string arrayRequest_; + std::string packagePath_; + std::string regionId_; + std::string stdoutRedirectPath_; + std::string variables_; + std::string runasUser_; + bool reRunable_; + std::string templateId_; + int priority_; + std::string name_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_EDITJOBTEMPLATEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/GetAccountingReportRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetAccountingReportRequest.h deleted file mode 100644 index 00dded657..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetAccountingReportRequest.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_GETACCOUNTINGREPORTREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_GETACCOUNTINGREPORTREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_GETACCOUNTINGREPORTREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetAccountingReportResult.h b/ehpc/include/alibabacloud/ehpc/model/GetAccountingReportResult.h deleted file mode 100644 index bc6cc1bca..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetAccountingReportResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/GetAutoScaleConfigRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigRequest.h index db747de5e..28a77bb7d 100644 --- a/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigRequest.h @@ -1,51 +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_GETAUTOSCALECONFIGREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_GETAUTOSCALECONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT GetAutoScaleConfigRequest : public RpcServiceRequest - { - - public: - GetAutoScaleConfigRequest(); - ~GetAutoScaleConfigRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_GETAUTOSCALECONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_GETAUTOSCALECONFIGREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETAUTOSCALECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT GetAutoScaleConfigRequest : public RpcServiceRequest { +public: + GetAutoScaleConfigRequest(); + ~GetAutoScaleConfigRequest(); + 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_GETAUTOSCALECONFIGREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h b/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h index 678c086b7..fc564bb98 100644 --- a/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h @@ -32,34 +32,6 @@ namespace AlibabaCloud class ALIBABACLOUD_EHPC_EXPORT GetAutoScaleConfigResult : public ServiceResult { public: - struct QueueInfo - { - struct InstanceTypeInfo - { - std::string zoneId; - std::string vSwitchId; - float spotPriceLimit; - std::string hostNamePrefix; - std::string instanceType; - std::string spotStrategy; - }; - int minNodesInQueue; - std::string hostNameSuffix; - int maxNodesInQueue; - std::string resourceGroupId; - bool enableAutoGrow; - std::string queueImageId; - int systemDiskSize; - std::string systemDiskLevel; - bool enableAutoShrink; - std::string systemDiskCategory; - float spotPriceLimit; - std::string hostNamePrefix; - std::vector instanceTypes; - std::string instanceType; - std::string queueName; - std::string spotStrategy; - }; GetAutoScaleConfigResult(); @@ -68,20 +40,16 @@ namespace AlibabaCloud int getExtraNodesGrowRatio()const; bool getEnableAutoGrow()const; std::string getClusterId()const; - int getShrinkIdleTimes()const; int getMaxNodesInCluster()const; - std::string getClusterType()const; + int getShrinkIdleTimes()const; bool getEnableAutoShrink()const; + std::string getClusterType()const; int getGrowRatio()const; 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); @@ -89,20 +57,16 @@ namespace AlibabaCloud int extraNodesGrowRatio_; bool enableAutoGrow_; std::string clusterId_; - int shrinkIdleTimes_; int maxNodesInCluster_; - std::string clusterType_; + int shrinkIdleTimes_; bool enableAutoShrink_; + std::string clusterType_; int growRatio_; 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 deleted file mode 100644 index 31cf86661..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricLogsRequest.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_GETCLOUDMETRICLOGSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_GETCLOUDMETRICLOGSREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_GETCLOUDMETRICLOGSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricLogsResult.h b/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricLogsResult.h deleted file mode 100644 index 141ce2880..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricLogsResult.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index a2f983887..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricProfilingRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_GETCLOUDMETRICPROFILINGREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_GETCLOUDMETRICPROFILINGREQUEST_H_ - -#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& regionId); - std::string getProfilingId()const; - void setProfilingId(const std::string& profilingId); - - private: - std::string clusterId_; - std::string accessKeyId_; - std::string regionId_; - std::string profilingId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_GETCLOUDMETRICPROFILINGREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricProfilingResult.h b/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricProfilingResult.h deleted file mode 100644 index e7d58c291..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricProfilingResult.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 09c684375..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetClusterVolumesRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_GETCLUSTERVOLUMESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_GETCLUSTERVOLUMESREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_GETCLUSTERVOLUMESREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetClusterVolumesResult.h b/ehpc/include/alibabacloud/ehpc/model/GetClusterVolumesResult.h deleted file mode 100644 index ccdcb571b..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetClusterVolumesResult.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/GetGWSConnectTicketRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketRequest.h deleted file mode 100644 index b95e5cb59..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_GETGWSCONNECTTICKETREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_GETGWSCONNECTTICKETREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_GETGWSCONNECTTICKETREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketResult.h b/ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketResult.h deleted file mode 100644 index f9233f2bc..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/GetHealthMonitorLogsRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetHealthMonitorLogsRequest.h deleted file mode 100644 index 4d2dc2e08..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetHealthMonitorLogsRequest.h +++ /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. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_GETHEALTHMONITORLOGSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_GETHEALTHMONITORLOGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT GetHealthMonitorLogsRequest : public RpcServiceRequest - { - - public: - GetHealthMonitorLogsRequest(); - ~GetHealthMonitorLogsRequest(); - - int getEndTime()const; - void setEndTime(int endTime); - std::string getClusterId()const; - void setClusterId(const std::string& clusterId); - int getStartTime()const; - void setStartTime(int startTime); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - bool getEnableReverse()const; - void setEnableReverse(bool enableReverse); - std::string getFilter()const; - void setFilter(const std::string& filter); - - private: - int endTime_; - std::string clusterId_; - int startTime_; - std::string accessKeyId_; - bool enableReverse_; - std::string filter_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_GETHEALTHMONITORLOGSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetHealthMonitorLogsResult.h b/ehpc/include/alibabacloud/ehpc/model/GetHealthMonitorLogsResult.h deleted file mode 100644 index c408ae505..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetHealthMonitorLogsResult.h +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_GETHEALTHMONITORLOGSRESULT_H_ -#define ALIBABACLOUD_EHPC_MODEL_GETHEALTHMONITORLOGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT GetHealthMonitorLogsResult : public ServiceResult - { - public: - struct Logs - { - struct CheckListItem - { - std::string checkName; - std::string checkSolution; - std::string checkInfo; - std::string checkDescription; - }; - std::string sceneName; - std::string instanceId; - std::vector checkList; - std::string sceneDescription; - std::string itemName; - std::string level; - int time; - std::string itemDescription; - std::string hostName; - std::string healthId; - }; - - - GetHealthMonitorLogsResult(); - explicit GetHealthMonitorLogsResult(const std::string &payload); - ~GetHealthMonitorLogsResult(); - std::vector getLogInfo()const; - - protected: - void parse(const std::string &payload); - private: - std::vector logInfo_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_GETHEALTHMONITORLOGSRESULT_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 deleted file mode 100644 index 8664d85dd..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetHybridClusterConfigRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_GETHYBRIDCLUSTERCONFIGREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_GETHYBRIDCLUSTERCONFIGREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_GETHYBRIDCLUSTERCONFIGREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetHybridClusterConfigResult.h b/ehpc/include/alibabacloud/ehpc/model/GetHybridClusterConfigResult.h deleted file mode 100644 index 612f1acf7..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetHybridClusterConfigResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index edc2441ca..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetIfEcsTypeSupportHtConfigRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_GETIFECSTYPESUPPORTHTCONFIGREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_GETIFECSTYPESUPPORTHTCONFIGREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_GETIFECSTYPESUPPORTHTCONFIGREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetIfEcsTypeSupportHtConfigResult.h b/ehpc/include/alibabacloud/ehpc/model/GetIfEcsTypeSupportHtConfigResult.h deleted file mode 100644 index fdfd3c21f..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetIfEcsTypeSupportHtConfigResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/GetSchedulerInfoRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetSchedulerInfoRequest.h deleted file mode 100644 index d8b060e65..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetSchedulerInfoRequest.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_GETSCHEDULERINFOREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_GETSCHEDULERINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT GetSchedulerInfoRequest : public RpcServiceRequest - { - public: - struct Scheduler - { - std::string schedName; - }; - - public: - 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& regionId); - - private: - std::string clusterId_; - std::string accessKeyId_; - std::vector scheduler_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_GETSCHEDULERINFOREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetSchedulerInfoResult.h b/ehpc/include/alibabacloud/ehpc/model/GetSchedulerInfoResult.h deleted file mode 100644 index c33827e5d..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetSchedulerInfoResult.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/GetVisualServiceStatusRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetVisualServiceStatusRequest.h deleted file mode 100644 index ef34d5369..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetVisualServiceStatusRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_GETVISUALSERVICESTATUSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_GETVISUALSERVICESTATUSREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_GETVISUALSERVICESTATUSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetVisualServiceStatusResult.h b/ehpc/include/alibabacloud/ehpc/model/GetVisualServiceStatusResult.h deleted file mode 100644 index d584362b0..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetVisualServiceStatusResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/GetWorkbenchTokenRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetWorkbenchTokenRequest.h deleted file mode 100644 index fa0cef6fe..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetWorkbenchTokenRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_GETWORKBENCHTOKENREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_GETWORKBENCHTOKENREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT GetWorkbenchTokenRequest : public RpcServiceRequest - { - - public: - GetWorkbenchTokenRequest(); - ~GetWorkbenchTokenRequest(); - - std::string getClusterId()const; - void setClusterId(const std::string& clusterId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserPassword()const; - void setUserPassword(const std::string& userPassword); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPort()const; - void setPort(int port); - std::string getAccountSessionTicket()const; - void setAccountSessionTicket(const std::string& accountSessionTicket); - std::string getAccountUid()const; - void setAccountUid(const std::string& accountUid); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - std::string clusterId_; - std::string accessKeyId_; - std::string userPassword_; - std::string instanceId_; - int port_; - std::string accountSessionTicket_; - std::string accountUid_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_GETWORKBENCHTOKENREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetWorkbenchTokenResult.h b/ehpc/include/alibabacloud/ehpc/model/GetWorkbenchTokenResult.h deleted file mode 100644 index 7aeba21f3..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/GetWorkbenchTokenResult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_GETWORKBENCHTOKENRESULT_H_ -#define ALIBABACLOUD_EHPC_MODEL_GETWORKBENCHTOKENRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT GetWorkbenchTokenResult : public ServiceResult - { - public: - struct Root - { - struct InstanceLoginView - { - std::string baseViewUrl; - std::string fileTreeViewUrl; - std::string defaultViewUrl; - std::string rdpViewUrl; - std::string viewName; - std::string terminalViewUrl; - }; - InstanceLoginView instanceLoginView; - }; - - - GetWorkbenchTokenResult(); - explicit GetWorkbenchTokenResult(const std::string &payload); - ~GetWorkbenchTokenResult(); - Root getRoot()const; - - protected: - void parse(const std::string &payload); - private: - Root root_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_GETWORKBENCHTOKENRESULT_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 deleted file mode 100644 index 470c21222..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/InitializeEHPCRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_INITIALIZEEHPCREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_INITIALIZEEHPCREQUEST_H_ - -#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& regionId); - - private: - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_INITIALIZEEHPCREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/InitializeEHPCResult.h b/ehpc/include/alibabacloud/ehpc/model/InitializeEHPCResult.h deleted file mode 100644 index 36f6528c7..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/InitializeEHPCResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/InstallSoftwareRequest.h b/ehpc/include/alibabacloud/ehpc/model/InstallSoftwareRequest.h deleted file mode 100644 index 696a57fcd..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/InstallSoftwareRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_INSTALLSOFTWAREREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_INSTALLSOFTWAREREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_INSTALLSOFTWAREREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/InstallSoftwareResult.h b/ehpc/include/alibabacloud/ehpc/model/InstallSoftwareResult.h deleted file mode 100644 index f9805c3f6..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/InstallSoftwareResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 6df4c2119..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/InvokeShellCommandRequest.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_INVOKESHELLCOMMANDREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_INVOKESHELLCOMMANDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT InvokeShellCommandRequest : public RpcServiceRequest - { - public: - struct Instance - { - std::string id; - }; - - public: - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_INVOKESHELLCOMMANDREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/InvokeShellCommandResult.h b/ehpc/include/alibabacloud/ehpc/model/InvokeShellCommandResult.h deleted file mode 100644 index e40da9239..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/InvokeShellCommandResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index f8012d866..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_LISTAVAILABLEECSTYPESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTAVAILABLEECSTYPESREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTAVAILABLEECSTYPESREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesResult.h deleted file mode 100644 index d35183b00..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesResult.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 memorySize; - int instancePpsTx; - int cpuCoreCount; - std::string gPUSpec; - 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 deleted file mode 100644 index f8629bef2..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListCloudMetricProfilingsRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCLOUDMETRICPROFILINGSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTCLOUDMETRICPROFILINGSREQUEST_H_ - -#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& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string clusterId_; - int pageNumber_; - std::string accessKeyId_; - std::string regionId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCLOUDMETRICPROFILINGSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListCloudMetricProfilingsResult.h b/ehpc/include/alibabacloud/ehpc/model/ListCloudMetricProfilingsResult.h deleted file mode 100644 index 789d4406e..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListCloudMetricProfilingsResult.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/ListClusterLogsRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListClusterLogsRequest.h index 82b77c2c7..5a6b7d36e 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListClusterLogsRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListClusterLogsRequest.h @@ -1,57 +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_LISTCLUSTERLOGSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERLOGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ListClusterLogsRequest : public RpcServiceRequest - { - - public: - ListClusterLogsRequest(); - ~ListClusterLogsRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERLOGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERLOGSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListClusterLogsRequest : public RpcServiceRequest { +public: + ListClusterLogsRequest(); + ~ListClusterLogsRequest(); + 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_LISTCLUSTERLOGSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListClustersMetaRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListClustersMetaRequest.h deleted file mode 100644 index b74a9e23f..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListClustersMetaRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERSMETAREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERSMETAREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERSMETAREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListClustersMetaResult.h b/ehpc/include/alibabacloud/ehpc/model/ListClustersMetaResult.h deleted file mode 100644 index 298f59970..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListClustersMetaResult.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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; - std::string description; - bool isComputeEss; - std::string vpcId; - std::string deployMode; - std::string osTag; - std::string id; - std::string schedulerType; - std::string clientVersion; - std::string accountType; - std::string name; - 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/ListClustersRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListClustersRequest.h index eec059703..8075aba37 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListClustersRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListClustersRequest.h @@ -1,54 +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_LISTCLUSTERSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ListClustersRequest : public RpcServiceRequest - { - - public: - ListClustersRequest(); - ~ListClustersRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListClustersRequest : public RpcServiceRequest { +public: + ListClustersRequest(); + ~ListClustersRequest(); + 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_LISTCLUSTERSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListClustersResult.h b/ehpc/include/alibabacloud/ehpc/model/ListClustersResult.h index 450bc521a..cd974a7ca 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListClustersResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListClustersResult.h @@ -37,16 +37,12 @@ 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; }; @@ -62,38 +58,25 @@ namespace AlibabaCloud int cpu; int gpu; }; + std::string status; std::string imageOwnerAlias; std::string description; - std::string nodePrefix; - std::string instanceChargeType; - float computeSpotPriceLimit; - std::string nodeSuffix; + std::string zoneId; + std::string createTime; + std::string schedulerType; int count; - std::string clientVersion; + std::string accountType; std::string name; - std::string deployMode; + UsedResources usedResources; + Managers managers; 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 vSwitchId; - std::string createTime; - 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 id; - std::string regionId; - std::string location; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListCommandsRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListCommandsRequest.h deleted file mode 100644 index b7d832c20..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListCommandsRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCOMMANDSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTCOMMANDSREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCOMMANDSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListCommandsResult.h b/ehpc/include/alibabacloud/ehpc/model/ListCommandsResult.h deleted file mode 100644 index 514314ed5..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListCommandsResult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 commandContent; - std::string workingDir; - 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/ListContainerAppsRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListContainerAppsRequest.h deleted file mode 100644 index c989184e0..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListContainerAppsRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCONTAINERAPPSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTCONTAINERAPPSREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCONTAINERAPPSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListContainerAppsResult.h b/ehpc/include/alibabacloud/ehpc/model/ListContainerAppsResult.h deleted file mode 100644 index dc7c87269..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListContainerAppsResult.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 repository; - std::string imageTag; - std::string type; - 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 deleted file mode 100644 index 59e457cf7..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListContainerImagesRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCONTAINERIMAGESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTCONTAINERIMAGESREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCONTAINERIMAGESREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListContainerImagesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListContainerImagesResult.h deleted file mode 100644 index 22801ad4a..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListContainerImagesResult.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index e15ecfc2b..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListCpfsFileSystemsRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCPFSFILESYSTEMSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTCPFSFILESYSTEMSREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCPFSFILESYSTEMSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListCpfsFileSystemsResult.h b/ehpc/include/alibabacloud/ehpc/model/ListCpfsFileSystemsResult.h deleted file mode 100644 index 18dad1334..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListCpfsFileSystemsResult.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 vswId; - std::string vpcId; - 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/ListCurrentClientVersionRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListCurrentClientVersionRequest.h index 75183b0a6..650841ec6 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListCurrentClientVersionRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListCurrentClientVersionRequest.h @@ -1,48 +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_LISTCURRENTCLIENTVERSIONREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTCURRENTCLIENTVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ListCurrentClientVersionRequest : public RpcServiceRequest - { - - public: - ListCurrentClientVersionRequest(); - ~ListCurrentClientVersionRequest(); - - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCURRENTCLIENTVERSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCURRENTCLIENTVERSIONREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTCURRENTCLIENTVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListCurrentClientVersionRequest : public RpcServiceRequest { +public: + ListCurrentClientVersionRequest(); + ~ListCurrentClientVersionRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCURRENTCLIENTVERSIONREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListCustomImagesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListCustomImagesRequest.h index c5935c887..10f301f0f 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListCustomImagesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListCustomImagesRequest.h @@ -1,60 +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_LISTCUSTOMIMAGESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTCUSTOMIMAGESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ListCustomImagesRequest : public RpcServiceRequest - { - - 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 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 baseOsTag_; - std::string instanceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCUSTOMIMAGESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCUSTOMIMAGESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTCUSTOMIMAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListCustomImagesRequest : public RpcServiceRequest { +public: + ListCustomImagesRequest(); + ~ListCustomImagesRequest(); + 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); + +private: + std::string accessKeyId_; + std::string imageOwnerAlias_; + std::string regionId_; + std::string baseOsTag_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCUSTOMIMAGESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListCustomImagesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListCustomImagesResult.h index 3154d972a..3a8f447fc 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListCustomImagesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListCustomImagesResult.h @@ -41,27 +41,11 @@ 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 imageOwnerAlias; - std::string status; - std::string description; - std::string productCode; - std::string skuCode; - std::string pricingCycle; - int size; - BaseOsTag baseOsTag; - std::string uid; std::string imageName; - std::string postInstallScript; - OsTag osTag; + std::string description; std::string imageId; + BaseOsTag baseOsTag; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsRequest.h deleted file mode 100644 index ef105d4f1..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_LISTFILESYSTEMWITHMOUNTTARGETSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTFILESYSTEMWITHMOUNTTARGETSREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTFILESYSTEMWITHMOUNTTARGETSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsResult.h b/ehpc/include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsResult.h deleted file mode 100644 index 6ac85facc..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsResult.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 vswId; - std::string vpcId; - std::string mountTargetDomain; - std::string networkType; - std::string accessGroup; - }; - std::string status; - std::string storageType; - std::string createTime; - int meteredSize; - int bandWidth; - int encryptType; - 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 9c06c668d..d8fccc50d 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListImagesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListImagesRequest.h @@ -1,54 +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_LISTIMAGESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTIMAGESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ListImagesRequest : public RpcServiceRequest - { - - public: - ListImagesRequest(); - ~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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTIMAGESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTIMAGESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTIMAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListImagesRequest : public RpcServiceRequest { +public: + ListImagesRequest(); + ~ListImagesRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTIMAGESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListImagesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListImagesResult.h index bf3873492..e18a72000 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListImagesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListImagesResult.h @@ -38,8 +38,6 @@ 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 deleted file mode 100644 index 1dc5d251a..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListInstalledSoftwareRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_LISTINSTALLEDSOFTWAREREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTINSTALLEDSOFTWAREREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTINSTALLEDSOFTWAREREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListInstalledSoftwareResult.h b/ehpc/include/alibabacloud/ehpc/model/ListInstalledSoftwareResult.h deleted file mode 100644 index 89fd6c9c1..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListInstalledSoftwareResult.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 0f166aaa1..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListInvocationResultsRequest.h +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_LISTINVOCATIONRESULTSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTINVOCATIONRESULTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ListInvocationResultsRequest : public RpcServiceRequest - { - public: - struct Instance - { - std::string id; - }; - - public: - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTINVOCATIONRESULTSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListInvocationResultsResult.h b/ehpc/include/alibabacloud/ehpc/model/ListInvocationResultsResult.h deleted file mode 100644 index b6e47c772..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListInvocationResultsResult.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index baee245c5..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListInvocationStatusRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_LISTINVOCATIONSTATUSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTINVOCATIONSTATUSREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTINVOCATIONSTATUSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListInvocationStatusResult.h b/ehpc/include/alibabacloud/ehpc/model/ListInvocationStatusResult.h deleted file mode 100644 index 83d2ce4c4..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListInvocationStatusResult.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 c161a2deb..24b3fa6da 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListJobTemplatesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListJobTemplatesRequest.h @@ -1,57 +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_LISTJOBTEMPLATESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTJOBTEMPLATESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ListJobTemplatesRequest : public RpcServiceRequest - { - - public: - ListJobTemplatesRequest(); - ~ListJobTemplatesRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getName()const; - void setName(const std::string& name); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string accessKeyId_; - std::string name_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTJOBTEMPLATESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTJOBTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTJOBTEMPLATESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListJobTemplatesRequest : public RpcServiceRequest { +public: + ListJobTemplatesRequest(); + ~ListJobTemplatesRequest(); + 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); + std::string getName() const; + void setName(const std::string &name); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + std::string accessKeyId_; + std::string regionId_; + std::string name_; + int pageSize_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTJOBTEMPLATESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListJobTemplatesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListJobTemplatesResult.h index 0a5ebac06..4fdd3bc47 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListJobTemplatesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListJobTemplatesResult.h @@ -34,24 +34,17 @@ namespace AlibabaCloud public: struct JobTemplates { - int task; - int priority; - std::string stderrRedirectPath; - int node; - std::string clockTime; - std::string runasUser; - int gpu; - std::string name; - int thread; std::string variables; bool reRunable; std::string commandLine; - std::string mem; + int priority; + std::string stderrRedirectPath; std::string stdoutRedirectPath; std::string id; std::string arrayRequest; - std::string queue; + std::string runasUser; std::string packagePath; + std::string name; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListJobsRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListJobsRequest.h index 63f4946d2..dc597e09e 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListJobsRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListJobsRequest.h @@ -1,66 +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_LISTJOBSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ListJobsRequest : public RpcServiceRequest - { - - public: - ListJobsRequest(); - ~ListJobsRequest(); - - std::string getOwner()const; - void setOwner(const std::string& owner); - std::string getClusterId()const; - void setClusterId(const std::string& clusterId); - std::string getRerunable()const; - void setRerunable(const std::string& rerunable); - 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 getState()const; - void setState(const std::string& state); - - private: - std::string owner_; - std::string clusterId_; - std::string rerunable_; - int pageNumber_; - std::string accessKeyId_; - int pageSize_; - std::string state_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTJOBSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTJOBSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListJobsRequest : public RpcServiceRequest { +public: + ListJobsRequest(); + ~ListJobsRequest(); + std::string getOwner() const; + void setOwner(const std::string &owner); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getRerunable() const; + void setRerunable(const std::string &rerunable); + 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 getState() const; + void setState(const std::string &state); + +private: + std::string owner_; + std::string clusterId_; + std::string rerunable_; + int pageNumber_; + std::string accessKeyId_; + int pageSize_; + std::string state_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTJOBSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListJobsResult.h b/ehpc/include/alibabacloud/ehpc/model/ListJobsResult.h index d845a2889..91e3cb86d 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListJobsResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListJobsResult.h @@ -42,8 +42,7 @@ namespace AlibabaCloud std::string comment; std::string owner; std::string _stderr; - std::string priority; - std::string nodeList; + int priority; std::string startTime; std::string lastModifyTime; std::string submitTime; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListNodesByQueueRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListNodesByQueueRequest.h deleted file mode 100644 index 11a2b64e5..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListNodesByQueueRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_LISTNODESBYQUEUEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTNODESBYQUEUEREQUEST_H_ - -#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); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string queueName_; - std::string clusterId_; - int pageNumber_; - std::string accessKeyId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTNODESBYQUEUEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListNodesByQueueResult.h b/ehpc/include/alibabacloud/ehpc/model/ListNodesByQueueResult.h deleted file mode 100644 index 3169ec780..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListNodesByQueueResult.h +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 zoneId; - std::string vSwitchId; - bool expired; - std::string addTime; - UsedResources usedResources; - std::string publicIpAddress; - bool createdByEhpc; - std::string createMode; - std::string vpcId; - std::string version; - TotalResources totalResources; - std::string expiredTime; - std::string imageId; - bool htEnabled; - std::string ipAddress; - std::string id; - std::string regionId; - 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 bc0373814..8419046a4 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListNodesNoPagingRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListNodesNoPagingRequest.h @@ -1,63 +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_LISTNODESNOPAGINGREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTNODESNOPAGINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ListNodesNoPagingRequest : public RpcServiceRequest - { - - public: - ListNodesNoPagingRequest(); - ~ListNodesNoPagingRequest(); - - std::string getRole()const; - void setRole(const std::string& role); - std::string getClusterId()const; - 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; - void setOnlyDetached(bool onlyDetached); - - private: - std::string role_; - std::string clusterId_; - std::string accessKeyId_; - std::string sequence_; - std::string hostName_; - bool onlyDetached_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTNODESNOPAGINGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTNODESNOPAGINGREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTNODESNOPAGINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListNodesNoPagingRequest : public RpcServiceRequest { +public: + ListNodesNoPagingRequest(); + ~ListNodesNoPagingRequest(); + std::string getRole() const; + void setRole(const std::string &role); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getHostName() const; + void setHostName(const std::string &hostName); + bool getOnlyDetached() const; + void setOnlyDetached(bool onlyDetached); + +private: + std::string role_; + std::string clusterId_; + std::string accessKeyId_; + std::string hostName_; + bool onlyDetached_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTNODESNOPAGINGREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListNodesNoPagingResult.h b/ehpc/include/alibabacloud/ehpc/model/ListNodesNoPagingResult.h index 4d88ee293..880283c9d 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListNodesNoPagingResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListNodesNoPagingResult.h @@ -49,19 +49,16 @@ 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; - bool htEnabled; + std::string regionId; std::string id; std::string lockReason; - std::string instanceType; - std::string hostName; std::string spotStrategy; }; @@ -69,11 +66,17 @@ 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 a929d912c..f21af03af 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListNodesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListNodesRequest.h @@ -1,81 +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_LISTNODESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTNODESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ListNodesRequest : public RpcServiceRequest - { - - public: - ListNodesRequest(); - ~ListNodesRequest(); - - std::string getRole()const; - void setRole(const std::string& role); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getHostName()const; - 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_; - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTNODESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTNODESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTNODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListNodesRequest : public RpcServiceRequest { +public: + ListNodesRequest(); + ~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; + void setAccessKeyId(const std::string &accessKeyId); + std::string getHostName() const; + void setHostName(const std::string &hostName); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string role_; + std::string clusterId_; + int pageNumber_; + std::string accessKeyId_; + std::string hostName_; + int pageSize_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTNODESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListNodesResult.h index 201bea607..cd8685f7f 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListNodesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListNodesResult.h @@ -46,31 +46,20 @@ namespace AlibabaCloud int cpu; int gpu; }; + std::string status; std::string imageOwnerAlias; - std::string publicIpAddress; + bool expired; + std::string addTime; + UsedResources usedResources; + std::string role; 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 zoneId; - std::string vSwitchId; - bool expired; - std::vector roles; - std::string addTime; - UsedResources usedResources; - std::string createMode; - std::string vpcId; - std::string ipAddress; - bool htEnabled; - std::string id; std::string regionId; - std::string location; + std::string id; + std::string lockReason; + std::string spotStrategy; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListPreferredEcsTypesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListPreferredEcsTypesRequest.h index 7a8ddcf98..bbdc9c3ab 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListPreferredEcsTypesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListPreferredEcsTypesRequest.h @@ -1,57 +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_LISTPREFERREDECSTYPESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTPREFERREDECSTYPESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ListPreferredEcsTypesRequest : public RpcServiceRequest - { - - public: - ListPreferredEcsTypesRequest(); - ~ListPreferredEcsTypesRequest(); - - 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); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - - private: - std::string accessKeyId_; - std::string spotStrategy_; - std::string zoneId_; - std::string instanceChargeType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTPREFERREDECSTYPESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTPREFERREDECSTYPESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTPREFERREDECSTYPESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListPreferredEcsTypesRequest : public RpcServiceRequest { +public: + ListPreferredEcsTypesRequest(); + ~ListPreferredEcsTypesRequest(); + 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); + +private: + std::string accessKeyId_; + std::string spotStrategy_; + std::string zoneId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTPREFERREDECSTYPESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListPreferredEcsTypesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListPreferredEcsTypesResult.h index 287559b2b..f5dbf87c8 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListPreferredEcsTypesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListPreferredEcsTypesResult.h @@ -40,8 +40,8 @@ namespace AlibabaCloud std::vector login; std::vector manager; }; - std::string seriesId; std::string seriesName; + std::string seriesId; Roles roles; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListQueuesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListQueuesRequest.h deleted file mode 100644 index 31cb797d5..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListQueuesRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_LISTQUEUESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTQUEUESREQUEST_H_ - -#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); - - private: - std::string clusterId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTQUEUESREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListQueuesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListQueuesResult.h deleted file mode 100644 index edebac391..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListQueuesResult.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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; - std::string resourceGroupId; - bool enableAutoGrow; - 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/ListRegionsRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListRegionsRequest.h index 4f7106539..e112cf035 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListRegionsRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListRegionsRequest.h @@ -1,48 +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_LISTREGIONSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTREGIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ListRegionsRequest : public RpcServiceRequest - { - - public: - ListRegionsRequest(); - ~ListRegionsRequest(); - - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTREGIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTREGIONSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListRegionsRequest : public RpcServiceRequest { +public: + ListRegionsRequest(); + ~ListRegionsRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTREGIONSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsRequest.h deleted file mode 100644 index aa84de55f..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_LISTSECURITYGROUPSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTSECURITYGROUPSREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTSECURITYGROUPSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsResult.h b/ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsResult.h deleted file mode 100644 index 629dc01b4..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 05688e989..9b48e7c48 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListSoftwaresRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListSoftwaresRequest.h @@ -1,54 +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_LISTSOFTWARESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTSOFTWARESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTSOFTWARESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTSOFTWARESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTSOFTWARESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListSoftwaresRequest : public RpcServiceRequest { +public: + ListSoftwaresRequest(); + ~ListSoftwaresRequest(); + std::string getEhpcVersion() const; + void setEhpcVersion(const std::string &ehpcVersion); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string ehpcVersion_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTSOFTWARESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListSoftwaresResult.h b/ehpc/include/alibabacloud/ehpc/model/ListSoftwaresResult.h index 5651dbabc..ff6128b71 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListSoftwaresResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListSoftwaresResult.h @@ -45,8 +45,8 @@ namespace AlibabaCloud std::string schedulerVersion; std::string osTag; std::string schedulerType; - std::string accountType; std::string accountVersion; + std::string accountType; std::string ehpcVersion; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListTasksRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListTasksRequest.h deleted file mode 100644 index 8f8a50404..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListTasksRequest.h +++ /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. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_LISTTASKSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTTASKSREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTTASKSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListTasksResult.h b/ehpc/include/alibabacloud/ehpc/model/ListTasksResult.h deleted file mode 100644 index c3c374425..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ListTasksResult.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/ListUsersRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListUsersRequest.h index c7d78aa88..741d4010b 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListUsersRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListUsersRequest.h @@ -1,57 +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_LISTUSERSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTUSERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ListUsersRequest : public RpcServiceRequest - { - - public: - ListUsersRequest(); - ~ListUsersRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTUSERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTUSERSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTUSERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListUsersRequest : public RpcServiceRequest { +public: + ListUsersRequest(); + ~ListUsersRequest(); + 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_LISTUSERSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListVolumesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListVolumesRequest.h index f25150bd0..f7a67d553 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListVolumesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListVolumesRequest.h @@ -1,54 +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_LISTVOLUMESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_LISTVOLUMESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ListVolumesRequest : public RpcServiceRequest - { - - public: - ListVolumesRequest(); - ~ListVolumesRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_LISTVOLUMESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTVOLUMESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTVOLUMESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListVolumesRequest : public RpcServiceRequest { +public: + ListVolumesRequest(); + ~ListVolumesRequest(); + 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_LISTVOLUMESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListVolumesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListVolumesResult.h index 47899c325..e3f2141fd 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListVolumesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListVolumesResult.h @@ -34,24 +34,11 @@ namespace AlibabaCloud public: struct VolumeInfo { - struct VolumeInfo1 - { - std::string volumeProtocol; - std::string role; - 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 01b904e8c..f75733b5d 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ModifyClusterAttributesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ModifyClusterAttributesRequest.h @@ -1,63 +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_MODIFYCLUSTERATTRIBUTESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_MODIFYCLUSTERATTRIBUTESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ModifyClusterAttributesRequest : public RpcServiceRequest - { - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYCLUSTERATTRIBUTESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_MODIFYCLUSTERATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_MODIFYCLUSTERATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ModifyClusterAttributesRequest : public RpcServiceRequest { +public: + ModifyClusterAttributesRequest(); + ~ModifyClusterAttributesRequest(); + 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 getName() const; + void setName(const std::string &name); + +private: + std::string description_; + std::string clusterId_; + std::string accessKeyId_; + std::string name_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYCLUSTERATTRIBUTESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ModifyContainerAppAttributesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ModifyContainerAppAttributesRequest.h deleted file mode 100644 index a063b8f14..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ModifyContainerAppAttributesRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_MODIFYCONTAINERAPPATTRIBUTESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_MODIFYCONTAINERAPPATTRIBUTESREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYCONTAINERAPPATTRIBUTESREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ModifyContainerAppAttributesResult.h b/ehpc/include/alibabacloud/ehpc/model/ModifyContainerAppAttributesResult.h deleted file mode 100644 index 20fd380d7..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ModifyContainerAppAttributesResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index a36d857b2..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ModifyImageGatewayConfigRequest.h +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_MODIFYIMAGEGATEWAYCONFIGREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_MODIFYIMAGEGATEWAYCONFIGREQUEST_H_ - -#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; - }; - - public: - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYIMAGEGATEWAYCONFIGREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ModifyImageGatewayConfigResult.h b/ehpc/include/alibabacloud/ehpc/model/ModifyImageGatewayConfigResult.h deleted file mode 100644 index c007ee319..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ModifyImageGatewayConfigResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/ModifyUserGroupsRequest.h b/ehpc/include/alibabacloud/ehpc/model/ModifyUserGroupsRequest.h index fa6c88cb1..4f7198410 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ModifyUserGroupsRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ModifyUserGroupsRequest.h @@ -1,60 +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. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_MODIFYUSERGROUPSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_MODIFYUSERGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ModifyUserGroupsRequest : public RpcServiceRequest - { - public: - struct User - { - std::string name; - std::string group; - }; - - public: - ModifyUserGroupsRequest(); - ~ModifyUserGroupsRequest(); - - std::string getClusterId()const; - void setClusterId(const std::string& clusterId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::vector getUser()const; - void setUser(const std::vector& user); - - private: - std::string clusterId_; - std::string accessKeyId_; - std::vector user_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYUSERGROUPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_MODIFYUSERGROUPSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_MODIFYUSERGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ModifyUserGroupsRequest : public RpcServiceRequest { +public: + struct User { + std::string name; + std::string group; + }; + ModifyUserGroupsRequest(); + ~ModifyUserGroupsRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::vector getUser() const; + void setUser(const std::vector &user); + +private: + std::string clusterId_; + std::string accessKeyId_; + std::vector user_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYUSERGROUPSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ModifyUserPasswordsRequest.h b/ehpc/include/alibabacloud/ehpc/model/ModifyUserPasswordsRequest.h index 01babc88c..dc01d330a 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ModifyUserPasswordsRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ModifyUserPasswordsRequest.h @@ -1,60 +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. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_MODIFYUSERPASSWORDSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_MODIFYUSERPASSWORDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ModifyUserPasswordsRequest : public RpcServiceRequest - { - public: - struct User - { - std::string password; - std::string name; - }; - - public: - ModifyUserPasswordsRequest(); - ~ModifyUserPasswordsRequest(); - - std::string getClusterId()const; - void setClusterId(const std::string& clusterId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::vector getUser()const; - void setUser(const std::vector& user); - - private: - std::string clusterId_; - std::string accessKeyId_; - std::vector user_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYUSERPASSWORDSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_MODIFYUSERPASSWORDSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_MODIFYUSERPASSWORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ModifyUserPasswordsRequest : public RpcServiceRequest { +public: + struct User { + std::string password; + std::string name; + }; + ModifyUserPasswordsRequest(); + ~ModifyUserPasswordsRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::vector getUser() const; + void setUser(const std::vector &user); + +private: + std::string clusterId_; + std::string accessKeyId_; + std::vector user_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYUSERPASSWORDSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ModifyVisualServicePasswdRequest.h b/ehpc/include/alibabacloud/ehpc/model/ModifyVisualServicePasswdRequest.h deleted file mode 100644 index afdc59098..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ModifyVisualServicePasswdRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_MODIFYVISUALSERVICEPASSWDREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_MODIFYVISUALSERVICEPASSWDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ModifyVisualServicePasswdRequest : public RpcServiceRequest - { - - public: - ModifyVisualServicePasswdRequest(); - ~ModifyVisualServicePasswdRequest(); - - 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 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYVISUALSERVICEPASSWDREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ModifyVisualServicePasswdResult.h b/ehpc/include/alibabacloud/ehpc/model/ModifyVisualServicePasswdResult.h deleted file mode 100644 index 985e10077..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/ModifyVisualServicePasswdResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index f45cffbc6..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/MountNFSRequest.h +++ /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. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_MOUNTNFSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_MOUNTNFSREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_MOUNTNFSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/MountNFSResult.h b/ehpc/include/alibabacloud/ehpc/model/MountNFSResult.h deleted file mode 100644 index d7af49fdc..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/MountNFSResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 13326f959..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/PullImageRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_PULLIMAGEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_PULLIMAGEREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_PULLIMAGEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/PullImageResult.h b/ehpc/include/alibabacloud/ehpc/model/PullImageResult.h deleted file mode 100644 index bec034241..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/PullImageResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 712cfd5d0..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_QUERYSERVICEPACKANDPRICEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_QUERYSERVICEPACKANDPRICEREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_QUERYSERVICEPACKANDPRICEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceResult.h b/ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceResult.h deleted file mode 100644 index 870b22e7d..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceResult.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 06ae9d598..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/RecoverClusterRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_RECOVERCLUSTERREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_RECOVERCLUSTERREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_RECOVERCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/RecoverClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/RecoverClusterResult.h deleted file mode 100644 index 817d7c81e..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/RecoverClusterResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/RerunJobsRequest.h b/ehpc/include/alibabacloud/ehpc/model/RerunJobsRequest.h index fdf9e677f..6701ffd80 100644 --- a/ehpc/include/alibabacloud/ehpc/model/RerunJobsRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/RerunJobsRequest.h @@ -1,54 +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_RERUNJOBSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_RERUNJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT RerunJobsRequest : public RpcServiceRequest - { - - public: - RerunJobsRequest(); - ~RerunJobsRequest(); - - std::string getJobs()const; - void setJobs(const std::string& jobs); - std::string getClusterId()const; - void setClusterId(const std::string& clusterId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string jobs_; - std::string clusterId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_RERUNJOBSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_RERUNJOBSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_RERUNJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT RerunJobsRequest : public RpcServiceRequest { +public: + RerunJobsRequest(); + ~RerunJobsRequest(); + std::string getJobs() const; + void setJobs(const std::string &jobs); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string jobs_; + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_RERUNJOBSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ResetNodesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ResetNodesRequest.h index eaecfc9b9..731493e82 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ResetNodesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ResetNodesRequest.h @@ -1,59 +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_RESETNODESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_RESETNODESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT ResetNodesRequest : public RpcServiceRequest - { - public: - struct Instance - { - std::string id; - }; - - public: - ResetNodesRequest(); - ~ResetNodesRequest(); - - 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::vector instance_; - std::string clusterId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_RESETNODESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_RESETNODESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_RESETNODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ResetNodesRequest : public RpcServiceRequest { +public: + struct Instance { + std::string id; + }; + ResetNodesRequest(); + ~ResetNodesRequest(); + 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::vector instance_; + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_RESETNODESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ResetNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/ResetNodesResult.h index f6b56c03a..e367f8048 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ResetNodesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ResetNodesResult.h @@ -37,12 +37,10 @@ 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 deleted file mode 100644 index a89a63ca8..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/RunCloudMetricProfilingRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_RUNCLOUDMETRICPROFILINGREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_RUNCLOUDMETRICPROFILINGREQUEST_H_ - -#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& regionId); - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_RUNCLOUDMETRICPROFILINGREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/RunCloudMetricProfilingResult.h b/ehpc/include/alibabacloud/ehpc/model/RunCloudMetricProfilingResult.h deleted file mode 100644 index acdadce5c..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/RunCloudMetricProfilingResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 dde08db59..c5cd47d25 100644 --- a/ehpc/include/alibabacloud/ehpc/model/SetAutoScaleConfigRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/SetAutoScaleConfigRequest.h @@ -1,120 +1,75 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_SETAUTOSCALECONFIGREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_SETAUTOSCALECONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT SetAutoScaleConfigRequest : public RpcServiceRequest - { - public: - struct Queues - { - std::string queueName; - std::string systemDiskLevel; - struct InstanceTypes - { - std::string spotStrategy; - std::string vSwitchId; - std::string instanceType; - std::string zoneId; - float spotPriceLimit; - }; - std::vector instanceTypes; - bool enableAutoGrow; - float spotPriceLimit; - std::string hostNameSuffix; - bool enableAutoShrink; - std::string spotStrategy; - int minNodesInQueue; - std::string systemDiskCategory; - int maxNodesInQueue; - int systemDiskSize; - std::string instanceType; - std::string queueImageId; - std::string hostNamePrefix; - }; - - public: - 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; - void setExcludeNodes(const std::string& excludeNodes); - int getExtraNodesGrowRatio()const; - void setExtraNodesGrowRatio(int extraNodesGrowRatio); - int getShrinkIdleTimes()const; - void setShrinkIdleTimes(int shrinkIdleTimes); - int getGrowTimeoutInMinutes()const; - void setGrowTimeoutInMinutes(int growTimeoutInMinutes); - std::string getClusterId()const; - void setClusterId(const std::string& clusterId); - bool getEnableAutoGrow()const; - 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_; - int shrinkIdleTimes_; - int growTimeoutInMinutes_; - std::string clusterId_; - bool enableAutoGrow_; - bool enableAutoShrink_; - std::string spotStrategy_; - int maxNodesInCluster_; - int shrinkIntervalInMinutes_; - std::vector queues_; - int growIntervalInMinutes_; - int growRatio_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_SETAUTOSCALECONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_SETAUTOSCALECONFIGREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_SETAUTOSCALECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT SetAutoScaleConfigRequest : public RpcServiceRequest { +public: + SetAutoScaleConfigRequest(); + ~SetAutoScaleConfigRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getExcludeNodes() const; + void setExcludeNodes(const std::string &excludeNodes); + int getExtraNodesGrowRatio() const; + void setExtraNodesGrowRatio(int extraNodesGrowRatio); + int getShrinkIdleTimes() const; + void setShrinkIdleTimes(int shrinkIdleTimes); + int getGrowTimeoutInMinutes() const; + void setGrowTimeoutInMinutes(int growTimeoutInMinutes); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + bool getEnableAutoGrow() const; + void setEnableAutoGrow(bool enableAutoGrow); + bool getEnableAutoShrink() const; + void setEnableAutoShrink(bool enableAutoShrink); + int getMaxNodesInCluster() const; + void setMaxNodesInCluster(int maxNodesInCluster); + int getShrinkIntervalInMinutes() const; + void setShrinkIntervalInMinutes(int shrinkIntervalInMinutes); + int getGrowIntervalInMinutes() const; + void setGrowIntervalInMinutes(int growIntervalInMinutes); + int getGrowRatio() const; + void setGrowRatio(int growRatio); + +private: + std::string accessKeyId_; + std::string excludeNodes_; + int extraNodesGrowRatio_; + int shrinkIdleTimes_; + int growTimeoutInMinutes_; + std::string clusterId_; + bool enableAutoGrow_; + bool enableAutoShrink_; + int maxNodesInCluster_; + int shrinkIntervalInMinutes_; + int growIntervalInMinutes_; + int growRatio_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_SETAUTOSCALECONFIGREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/SetGWSClusterPolicyRequest.h b/ehpc/include/alibabacloud/ehpc/model/SetGWSClusterPolicyRequest.h deleted file mode 100644 index e5c7a24c3..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/SetGWSClusterPolicyRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_SETGWSCLUSTERPOLICYREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_SETGWSCLUSTERPOLICYREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_SETGWSCLUSTERPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/SetGWSClusterPolicyResult.h b/ehpc/include/alibabacloud/ehpc/model/SetGWSClusterPolicyResult.h deleted file mode 100644 index 40abe83cd..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/SetGWSClusterPolicyResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 30c4cc8eb..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceNameRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCENAMEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCENAMEREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCENAMEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceNameResult.h b/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceNameResult.h deleted file mode 100644 index 7c02100f3..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceNameResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 54d4d4da4..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCEUSERREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCEUSERREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCEUSERREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserResult.h b/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserResult.h deleted file mode 100644 index 1d3d2f7d6..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/SetJobUserRequest.h b/ehpc/include/alibabacloud/ehpc/model/SetJobUserRequest.h new file mode 100644 index 000000000..b9cd2c5be --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SetJobUserRequest.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_SETJOBUSERREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_SETJOBUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT SetJobUserRequest : public RpcServiceRequest { +public: + SetJobUserRequest(); + ~SetJobUserRequest(); + 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 getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string runasUserPassword_; + std::string runasUser_; + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_SETJOBUSERREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/SetQueueResult.h b/ehpc/include/alibabacloud/ehpc/model/SetJobUserResult.h similarity index 73% rename from ehpc/include/alibabacloud/ehpc/model/SetQueueResult.h rename to ehpc/include/alibabacloud/ehpc/model/SetJobUserResult.h index 7043a5ddc..3a0ea4da2 100644 --- a/ehpc/include/alibabacloud/ehpc/model/SetQueueResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/SetJobUserResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_EHPC_MODEL_SETQUEUERESULT_H_ -#define ALIBABACLOUD_EHPC_MODEL_SETQUEUERESULT_H_ +#ifndef ALIBABACLOUD_EHPC_MODEL_SETJOBUSERRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_SETJOBUSERRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_EHPC_EXPORT SetQueueResult : public ServiceResult + class ALIBABACLOUD_EHPC_EXPORT SetJobUserResult : public ServiceResult { public: - SetQueueResult(); - explicit SetQueueResult(const std::string &payload); - ~SetQueueResult(); + SetJobUserResult(); + explicit SetJobUserResult(const std::string &payload); + ~SetJobUserResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_EHPC_MODEL_SETQUEUERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_EHPC_MODEL_SETJOBUSERRESULT_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 deleted file mode 100644 index 71275e10d..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/SetQueueRequest.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_SETQUEUEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_SETQUEUEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT SetQueueRequest : public RpcServiceRequest - { - public: - struct Node - { - std::string name; - }; - - public: - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_SETQUEUEREQUEST_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 deleted file mode 100644 index 007f29c49..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/SetSchedulerInfoRequest.h +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_SETSCHEDULERINFOREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_SETSCHEDULERINFOREQUEST_H_ - -#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; - struct ResourceLimit - { - int nodes; - std::string mem; - int cpus; - std::string user; - std::string queue; - }; - std::vector resourceLimit; - struct AclLimit - { - std::string aclUsers; - std::string queue; - }; - std::vector aclLimit; - int jobHistoryDuration; - }; - - public: - 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& regionId); - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_SETSCHEDULERINFOREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/SetSchedulerInfoResult.h b/ehpc/include/alibabacloud/ehpc/model/SetSchedulerInfoResult.h deleted file mode 100644 index 7db393db6..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/SetSchedulerInfoResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 6e3dfa8c6..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/StartClusterRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_STARTCLUSTERREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_STARTCLUSTERREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_STARTCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StartClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/StartClusterResult.h deleted file mode 100644 index 7a332fe6c..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/StartClusterResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index fd52869e7..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_STARTGWSINSTANCEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_STARTGWSINSTANCEREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_STARTGWSINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceResult.h b/ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceResult.h deleted file mode 100644 index fd3f680cf..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 7b724625c..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/StartNodesRequest.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_STARTNODESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_STARTNODESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT StartNodesRequest : public RpcServiceRequest - { - public: - struct Instance - { - std::string id; - }; - - public: - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_STARTNODESREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StartNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/StartNodesResult.h deleted file mode 100644 index 609da3298..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/StartNodesResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 7702856e8..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/StartVisualServiceRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_STARTVISUALSERVICEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_STARTVISUALSERVICEREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_STARTVISUALSERVICEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StartVisualServiceResult.h b/ehpc/include/alibabacloud/ehpc/model/StartVisualServiceResult.h deleted file mode 100644 index 8d12d67fd..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/StartVisualServiceResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index f69808f13..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/StopClusterRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_STOPCLUSTERREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_STOPCLUSTERREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_STOPCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StopClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/StopClusterResult.h deleted file mode 100644 index a101d0482..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/StopClusterResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index e50db2efc..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_STOPGWSINSTANCEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_STOPGWSINSTANCEREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_STOPGWSINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceResult.h b/ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceResult.h deleted file mode 100644 index e158989c8..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/StopJobsRequest.h b/ehpc/include/alibabacloud/ehpc/model/StopJobsRequest.h index a427e556a..7926a3e56 100644 --- a/ehpc/include/alibabacloud/ehpc/model/StopJobsRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/StopJobsRequest.h @@ -1,54 +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_STOPJOBSREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_STOPJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT StopJobsRequest : public RpcServiceRequest - { - - public: - StopJobsRequest(); - ~StopJobsRequest(); - - std::string getJobs()const; - void setJobs(const std::string& jobs); - std::string getClusterId()const; - void setClusterId(const std::string& clusterId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string jobs_; - std::string clusterId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_STOPJOBSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_STOPJOBSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_STOPJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT StopJobsRequest : public RpcServiceRequest { +public: + StopJobsRequest(); + ~StopJobsRequest(); + std::string getJobs() const; + void setJobs(const std::string &jobs); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string jobs_; + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_STOPJOBSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/StopNodesRequest.h b/ehpc/include/alibabacloud/ehpc/model/StopNodesRequest.h deleted file mode 100644 index e602a6a62..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/StopNodesRequest.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_STOPNODESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_STOPNODESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT StopNodesRequest : public RpcServiceRequest - { - public: - struct Instance - { - std::string id; - }; - - public: - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_STOPNODESREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StopNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/StopNodesResult.h deleted file mode 100644 index c9dd46029..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/StopNodesResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 54d2f2b87..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/StopVisualServiceRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_STOPVISUALSERVICEREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_STOPVISUALSERVICEREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_STOPVISUALSERVICEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StopVisualServiceResult.h b/ehpc/include/alibabacloud/ehpc/model/StopVisualServiceResult.h deleted file mode 100644 index a44cc0da8..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/StopVisualServiceResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 5b8a2279b..3184fda69 100644 --- a/ehpc/include/alibabacloud/ehpc/model/SubmitJobRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/SubmitJobRequest.h @@ -1,117 +1,78 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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_SUBMITJOBREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_SUBMITJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT SubmitJobRequest : public RpcServiceRequest - { - - public: - SubmitJobRequest(); - ~SubmitJobRequest(); - - std::string getStderrRedirectPath()const; - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_SUBMITJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_SUBMITJOBREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_SUBMITJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT SubmitJobRequest : public RpcServiceRequest { +public: + SubmitJobRequest(); + ~SubmitJobRequest(); + std::string getStderrRedirectPath() const; + void setStderrRedirectPath(const std::string &stderrRedirectPath); + std::string getRunasUserPassword() const; + void setRunasUserPassword(const std::string &runasUserPassword); + 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 getPackagePath() const; + void setPackagePath(const std::string &packagePath); + std::string getStdoutRedirectPath() const; + void setStdoutRedirectPath(const std::string &stdoutRedirectPath); + std::string getVariables() const; + void setVariables(const std::string &variables); + 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 getPriority() const; + void setPriority(int priority); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string stderrRedirectPath_; + std::string runasUserPassword_; + std::string commandLine_; + std::string accessKeyId_; + std::string arrayRequest_; + std::string packagePath_; + std::string stdoutRedirectPath_; + std::string variables_; + std::string runasUser_; + std::string clusterId_; + bool reRunable_; + int priority_; + std::string name_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_SUBMITJOBREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/UninstallSoftwareRequest.h b/ehpc/include/alibabacloud/ehpc/model/UninstallSoftwareRequest.h deleted file mode 100644 index 21e7f4e57..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/UninstallSoftwareRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_UNINSTALLSOFTWAREREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_UNINSTALLSOFTWAREREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_UNINSTALLSOFTWAREREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/UninstallSoftwareResult.h b/ehpc/include/alibabacloud/ehpc/model/UninstallSoftwareResult.h deleted file mode 100644 index 0de9d660b..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/UninstallSoftwareResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index b2bfae9c7..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/UpdateClusterVolumesRequest.h +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_UPDATECLUSTERVOLUMESREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_UPDATECLUSTERVOLUMESREQUEST_H_ - -#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; - }; - - public: - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_UPDATECLUSTERVOLUMESREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/UpdateClusterVolumesResult.h b/ehpc/include/alibabacloud/ehpc/model/UpdateClusterVolumesResult.h deleted file mode 100644 index c8fa3c09a..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/UpdateClusterVolumesResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 730a041de..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_EHPC_MODEL_UPDATEQUEUECONFIGREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_UPDATEQUEUECONFIGREQUEST_H_ - -#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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_UPDATEQUEUECONFIGREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigResult.h b/ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigResult.h deleted file mode 100644 index 88cb5ed9e..000000000 --- a/ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/include/alibabacloud/ehpc/model/UpgradeClientRequest.h b/ehpc/include/alibabacloud/ehpc/model/UpgradeClientRequest.h index d01d6c766..cfeb2af2b 100644 --- a/ehpc/include/alibabacloud/ehpc/model/UpgradeClientRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/UpgradeClientRequest.h @@ -1,54 +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_UPGRADECLIENTREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_UPGRADECLIENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace EHPC - { - namespace Model - { - class ALIBABACLOUD_EHPC_EXPORT UpgradeClientRequest : public RpcServiceRequest - { - - public: - UpgradeClientRequest(); - ~UpgradeClientRequest(); - - std::string getClientVersion()const; - void setClientVersion(const std::string& clientVersion); - std::string getClusterId()const; - void setClusterId(const std::string& clusterId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string clientVersion_; - std::string clusterId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_EHPC_MODEL_UPGRADECLIENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_UPGRADECLIENTREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_UPGRADECLIENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT UpgradeClientRequest : public RpcServiceRequest { +public: + UpgradeClientRequest(); + ~UpgradeClientRequest(); + std::string getClientVersion() const; + void setClientVersion(const std::string &clientVersion); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string clientVersion_; + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_UPGRADECLIENTREQUEST_H_ diff --git a/ehpc/src/EHPCClient.cc b/ehpc/src/EHPCClient.cc index 09b2e3622..29b06d20c 100644 --- a/ehpc/src/EHPCClient.cc +++ b/ehpc/src/EHPCClient.cc @@ -51,114 +51,6 @@ 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(); @@ -195,78 +87,6 @@ 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(); @@ -303,42 +123,6 @@ 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(); @@ -375,186 +159,6 @@ 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(); @@ -627,150 +231,6 @@ 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(); @@ -879,78 +339,6 @@ 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(); @@ -987,42 +375,6 @@ 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(); @@ -1059,438 +411,6 @@ 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::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::EcdDeleteDesktopsOutcome EHPCClient::ecdDeleteDesktops(const EcdDeleteDesktopsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return EcdDeleteDesktopsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return EcdDeleteDesktopsOutcome(EcdDeleteDesktopsResult(outcome.result())); - else - return EcdDeleteDesktopsOutcome(outcome.error()); -} - -void EHPCClient::ecdDeleteDesktopsAsync(const EcdDeleteDesktopsRequest& request, const EcdDeleteDesktopsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, ecdDeleteDesktops(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::EcdDeleteDesktopsOutcomeCallable EHPCClient::ecdDeleteDesktopsCallable(const EcdDeleteDesktopsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->ecdDeleteDesktops(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EHPCClient::EditJobTemplateOutcome EHPCClient::editJobTemplate(const EditJobTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1527,42 +447,6 @@ 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(); @@ -1599,546 +483,6 @@ 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::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::GetHealthMonitorLogsOutcome EHPCClient::getHealthMonitorLogs(const GetHealthMonitorLogsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetHealthMonitorLogsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetHealthMonitorLogsOutcome(GetHealthMonitorLogsResult(outcome.result())); - else - return GetHealthMonitorLogsOutcome(outcome.error()); -} - -void EHPCClient::getHealthMonitorLogsAsync(const GetHealthMonitorLogsRequest& request, const GetHealthMonitorLogsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getHealthMonitorLogs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::GetHealthMonitorLogsOutcomeCallable EHPCClient::getHealthMonitorLogsCallable(const GetHealthMonitorLogsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getHealthMonitorLogs(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::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::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::GetWorkbenchTokenOutcome EHPCClient::getWorkbenchToken(const GetWorkbenchTokenRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetWorkbenchTokenOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetWorkbenchTokenOutcome(GetWorkbenchTokenResult(outcome.result())); - else - return GetWorkbenchTokenOutcome(outcome.error()); -} - -void EHPCClient::getWorkbenchTokenAsync(const GetWorkbenchTokenRequest& request, const GetWorkbenchTokenAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getWorkbenchToken(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::GetWorkbenchTokenOutcomeCallable EHPCClient::getWorkbenchTokenCallable(const GetWorkbenchTokenRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getWorkbenchToken(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::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(); @@ -2211,186 +555,6 @@ 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::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(); @@ -2463,42 +627,6 @@ 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(); @@ -2535,114 +663,6 @@ 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(); @@ -2751,42 +771,6 @@ 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(); @@ -2859,42 +843,6 @@ 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(); @@ -2931,42 +879,6 @@ 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(); @@ -3003,42 +915,6 @@ EHPCClient::ListSoftwaresOutcomeCallable EHPCClient::listSoftwaresCallable(const 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::ListUsersOutcome EHPCClient::listUsers(const ListUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3147,78 +1023,6 @@ 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(); @@ -3291,186 +1095,6 @@ 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(); @@ -3543,42 +1167,6 @@ 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(); @@ -3615,396 +1203,36 @@ EHPCClient::SetAutoScaleConfigOutcomeCallable EHPCClient::setAutoScaleConfigCall return task->get_future(); } -EHPCClient::SetGWSClusterPolicyOutcome EHPCClient::setGWSClusterPolicy(const SetGWSClusterPolicyRequest &request) const +EHPCClient::SetJobUserOutcome EHPCClient::setJobUser(const SetJobUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SetGWSClusterPolicyOutcome(endpointOutcome.error()); + return SetJobUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SetGWSClusterPolicyOutcome(SetGWSClusterPolicyResult(outcome.result())); + return SetJobUserOutcome(SetJobUserResult(outcome.result())); else - return SetGWSClusterPolicyOutcome(outcome.error()); + return SetJobUserOutcome(outcome.error()); } -void EHPCClient::setGWSClusterPolicyAsync(const SetGWSClusterPolicyRequest& request, const SetGWSClusterPolicyAsyncHandler& handler, const std::shared_ptr& context) const +void EHPCClient::setJobUserAsync(const SetJobUserRequest& request, const SetJobUserAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, setGWSClusterPolicy(request), context); + handler(this, request, setJobUser(request), context); }; asyncExecute(new Runnable(fn)); } -EHPCClient::SetGWSClusterPolicyOutcomeCallable EHPCClient::setGWSClusterPolicyCallable(const SetGWSClusterPolicyRequest &request) const +EHPCClient::SetJobUserOutcomeCallable EHPCClient::setJobUserCallable(const SetJobUserRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, 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::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); + return this->setJobUser(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4047,78 +1275,6 @@ 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(); @@ -4155,114 +1311,6 @@ EHPCClient::SubmitJobOutcomeCallable EHPCClient::submitJobCallable(const SubmitJ 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 deleted file mode 100644 index 284b45e40..000000000 --- a/ehpc/src/model/AddContainerAppRequest.cc +++ /dev/null @@ -1,95 +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::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("Description", description); -} - -std::string AddContainerAppRequest::getRepository()const -{ - return repository_; -} - -void AddContainerAppRequest::setRepository(const std::string& repository) -{ - repository_ = repository; - setParameter("Repository", repository); -} - -std::string AddContainerAppRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void AddContainerAppRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string AddContainerAppRequest::getContainerType()const -{ - return containerType_; -} - -void AddContainerAppRequest::setContainerType(const std::string& containerType) -{ - containerType_ = containerType; - setParameter("ContainerType", containerType); -} - -std::string AddContainerAppRequest::getName()const -{ - return name_; -} - -void AddContainerAppRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - -std::string AddContainerAppRequest::getImageTag()const -{ - return imageTag_; -} - -void AddContainerAppRequest::setImageTag(const std::string& imageTag) -{ - imageTag_ = imageTag; - setParameter("ImageTag", imageTag); -} - diff --git a/ehpc/src/model/AddContainerAppResult.cc b/ehpc/src/model/AddContainerAppResult.cc deleted file mode 100644 index ef735363b..000000000 --- a/ehpc/src/model/AddContainerAppResult.cc +++ /dev/null @@ -1,52 +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 -#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 deleted file mode 100644 index 4f59e2865..000000000 --- a/ehpc/src/model/AddExistedNodesRequest.cc +++ /dev/null @@ -1,110 +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::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("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 = "Instance." + std::to_string(dep1 + 1); - setParameter(instanceObjStr + ".Id", instanceObj.id); - } -} - -std::string AddExistedNodesRequest::getClientToken()const -{ - return clientToken_; -} - -void AddExistedNodesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); -} - -std::string AddExistedNodesRequest::getClusterId()const -{ - return clusterId_; -} - -void AddExistedNodesRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string AddExistedNodesRequest::getJobQueue()const -{ - return jobQueue_; -} - -void AddExistedNodesRequest::setJobQueue(const std::string& jobQueue) -{ - jobQueue_ = jobQueue; - setParameter("JobQueue", jobQueue); -} - -std::string AddExistedNodesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void AddExistedNodesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string AddExistedNodesRequest::getImageOwnerAlias()const -{ - return imageOwnerAlias_; -} - -void AddExistedNodesRequest::setImageOwnerAlias(const std::string& imageOwnerAlias) -{ - imageOwnerAlias_ = imageOwnerAlias; - setParameter("ImageOwnerAlias", imageOwnerAlias); -} - diff --git a/ehpc/src/model/AddExistedNodesResult.cc b/ehpc/src/model/AddExistedNodesResult.cc deleted file mode 100644 index c35055c48..000000000 --- a/ehpc/src/model/AddExistedNodesResult.cc +++ /dev/null @@ -1,51 +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 -#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 deleted file mode 100644 index af15da5cb..000000000 --- a/ehpc/src/model/AddLocalNodesRequest.cc +++ /dev/null @@ -1,62 +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::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("ClusterId", clusterId); -} - -std::string AddLocalNodesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void AddLocalNodesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string AddLocalNodesRequest::getNodes()const -{ - return nodes_; -} - -void AddLocalNodesRequest::setNodes(const std::string& nodes) -{ - nodes_ = nodes; - setParameter("Nodes", nodes); -} - diff --git a/ehpc/src/model/AddLocalNodesResult.cc b/ehpc/src/model/AddLocalNodesResult.cc deleted file mode 100644 index 1ef94b757..000000000 --- a/ehpc/src/model/AddLocalNodesResult.cc +++ /dev/null @@ -1,52 +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 -#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 52347ac28..ee445cb57 100644 --- a/ehpc/src/model/AddNodesRequest.cc +++ b/ehpc/src/model/AddNodesRequest.cc @@ -1,359 +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::AddNodesRequest; - -AddNodesRequest::AddNodesRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "AddNodes") -{ - setMethod(HttpRequest::Method::Get); -} - -AddNodesRequest::~AddNodesRequest() -{} - -std::string AddNodesRequest::getImageId()const -{ - return imageId_; + */ + +#include + +using AlibabaCloud::EHPC::Model::AddNodesRequest; + +AddNodesRequest::AddNodesRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "AddNodes") { + setMethod(HttpRequest::Method::Get); } -void AddNodesRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +AddNodesRequest::~AddNodesRequest() {} + +std::string AddNodesRequest::getImageId() const { + return imageId_; } -std::string AddNodesRequest::getSystemDiskLevel()const -{ - return systemDiskLevel_; +void AddNodesRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -void AddNodesRequest::setSystemDiskLevel(const std::string& systemDiskLevel) -{ - systemDiskLevel_ = systemDiskLevel; - setParameter("SystemDiskLevel", systemDiskLevel); +int AddNodesRequest::getCount() const { + return count_; } -std::string AddNodesRequest::getClientToken()const -{ - return clientToken_; +void AddNodesRequest::setCount(int count) { + count_ = count; + setParameter(std::string("Count"), std::to_string(count)); } -void AddNodesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AddNodesRequest::getClusterId() const { + return clusterId_; } -bool AddNodesRequest::getAllocatePublicAddress()const -{ - return allocatePublicAddress_; +void AddNodesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void AddNodesRequest::setAllocatePublicAddress(bool allocatePublicAddress) -{ - allocatePublicAddress_ = allocatePublicAddress; - setParameter("AllocatePublicAddress", allocatePublicAddress ? "true" : "false"); +std::string AddNodesRequest::getComputeSpotStrategy() const { + return computeSpotStrategy_; } -int AddNodesRequest::getInternetMaxBandWidthOut()const -{ - return internetMaxBandWidthOut_; +void AddNodesRequest::setComputeSpotStrategy(const std::string &computeSpotStrategy) { + computeSpotStrategy_ = computeSpotStrategy; + setParameter(std::string("ComputeSpotStrategy"), computeSpotStrategy); } -void AddNodesRequest::setInternetMaxBandWidthOut(int internetMaxBandWidthOut) -{ - internetMaxBandWidthOut_ = internetMaxBandWidthOut; - setParameter("InternetMaxBandWidthOut", std::to_string(internetMaxBandWidthOut)); +std::string AddNodesRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AddNodesRequest::getJobQueue()const -{ - return jobQueue_; +void AddNodesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddNodesRequest::setJobQueue(const std::string& jobQueue) -{ - jobQueue_ = jobQueue; - setParameter("JobQueue", jobQueue); +std::string AddNodesRequest::getImageOwnerAlias() const { + return imageOwnerAlias_; } -std::string AddNodesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddNodesRequest::setImageOwnerAlias(const std::string &imageOwnerAlias) { + imageOwnerAlias_ = imageOwnerAlias; + setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias); } -void AddNodesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddNodesRequest::getComputeSpotPriceLimit() const { + return computeSpotPriceLimit_; } -std::string AddNodesRequest::getImageOwnerAlias()const -{ - return imageOwnerAlias_; -} - -void AddNodesRequest::setImageOwnerAlias(const std::string& imageOwnerAlias) -{ - imageOwnerAlias_ = imageOwnerAlias; - setParameter("ImageOwnerAlias", imageOwnerAlias); -} - -std::string AddNodesRequest::getSystemDiskType()const -{ - return systemDiskType_; -} - -void AddNodesRequest::setSystemDiskType(const std::string& systemDiskType) -{ - systemDiskType_ = systemDiskType; - setParameter("SystemDiskType", systemDiskType); -} - -int AddNodesRequest::getMinCount()const -{ - return minCount_; -} - -void AddNodesRequest::setMinCount(int minCount) -{ - minCount_ = minCount; - setParameter("MinCount", std::to_string(minCount)); -} - -int AddNodesRequest::getSystemDiskSize()const -{ - return systemDiskSize_; -} - -void AddNodesRequest::setSystemDiskSize(int systemDiskSize) -{ - systemDiskSize_ = systemDiskSize; - setParameter("SystemDiskSize", std::to_string(systemDiskSize)); -} - -std::string AddNodesRequest::getInstanceType()const -{ - return instanceType_; -} - -void AddNodesRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); -} - -std::string AddNodesRequest::getHostNamePrefix()const -{ - return hostNamePrefix_; -} - -void AddNodesRequest::setHostNamePrefix(const std::string& hostNamePrefix) -{ - hostNamePrefix_ = hostNamePrefix; - setParameter("HostNamePrefix", hostNamePrefix); -} - -std::string AddNodesRequest::getComputeSpotPriceLimit()const -{ - return computeSpotPriceLimit_; -} - -void AddNodesRequest::setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit) -{ - computeSpotPriceLimit_ = computeSpotPriceLimit; - setParameter("ComputeSpotPriceLimit", computeSpotPriceLimit); -} - -int AddNodesRequest::getAutoRenewPeriod()const -{ - return autoRenewPeriod_; -} - -void AddNodesRequest::setAutoRenewPeriod(int autoRenewPeriod) -{ - autoRenewPeriod_ = autoRenewPeriod; - setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod)); -} - -int AddNodesRequest::getPeriod()const -{ - return period_; -} - -void AddNodesRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); -} - -int AddNodesRequest::getCount()const -{ - return count_; -} - -void AddNodesRequest::setCount(int count) -{ - count_ = count; - setParameter("Count", std::to_string(count)); -} - -std::string AddNodesRequest::getClusterId()const -{ - return clusterId_; -} - -void AddNodesRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string AddNodesRequest::getComputeSpotStrategy()const -{ - return computeSpotStrategy_; -} - -void AddNodesRequest::setComputeSpotStrategy(const std::string& computeSpotStrategy) -{ - computeSpotStrategy_ = computeSpotStrategy; - setParameter("ComputeSpotStrategy", computeSpotStrategy); -} - -std::string AddNodesRequest::getHostNameSuffix()const -{ - return hostNameSuffix_; -} - -void AddNodesRequest::setHostNameSuffix(const std::string& hostNameSuffix) -{ - hostNameSuffix_ = hostNameSuffix; - setParameter("HostNameSuffix", hostNameSuffix); -} - -bool AddNodesRequest::getSync()const -{ - return sync_; -} - -void AddNodesRequest::setSync(bool sync) -{ - sync_ = sync; - setParameter("Sync", sync ? "true" : "false"); -} - -std::string AddNodesRequest::getVSwitchId()const -{ - return vSwitchId_; -} - -void AddNodesRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); -} - -std::string AddNodesRequest::getPeriodUnit()const -{ - return periodUnit_; -} - -void AddNodesRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); -} - -bool AddNodesRequest::getComputeEnableHt()const -{ - return computeEnableHt_; -} - -void AddNodesRequest::setComputeEnableHt(bool computeEnableHt) -{ - computeEnableHt_ = computeEnableHt; - setParameter("ComputeEnableHt", computeEnableHt ? "true" : "false"); -} - -std::string AddNodesRequest::getAutoRenew()const -{ - return autoRenew_; -} - -void AddNodesRequest::setAutoRenew(const std::string& autoRenew) -{ - autoRenew_ = autoRenew; - setParameter("AutoRenew", autoRenew); -} - -std::string AddNodesRequest::getEcsChargeType()const -{ - return ecsChargeType_; -} - -void AddNodesRequest::setEcsChargeType(const std::string& ecsChargeType) -{ - ecsChargeType_ = ecsChargeType; - setParameter("EcsChargeType", ecsChargeType); -} - -std::string AddNodesRequest::getInternetChargeType()const -{ - return internetChargeType_; -} - -void AddNodesRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); -} - -std::string AddNodesRequest::getCreateMode()const -{ - return createMode_; -} - -void AddNodesRequest::setCreateMode(const std::string& createMode) -{ - createMode_ = createMode; - setParameter("CreateMode", createMode); -} - -std::string AddNodesRequest::getZoneId()const -{ - return zoneId_; -} - -void AddNodesRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); -} - -int AddNodesRequest::getInternetMaxBandWidthIn()const -{ - return internetMaxBandWidthIn_; -} - -void AddNodesRequest::setInternetMaxBandWidthIn(int internetMaxBandWidthIn) -{ - internetMaxBandWidthIn_ = internetMaxBandWidthIn; - setParameter("InternetMaxBandWidthIn", std::to_string(internetMaxBandWidthIn)); +void AddNodesRequest::setComputeSpotPriceLimit(const std::string &computeSpotPriceLimit) { + computeSpotPriceLimit_ = computeSpotPriceLimit; + setParameter(std::string("ComputeSpotPriceLimit"), computeSpotPriceLimit); } diff --git a/ehpc/src/model/AddNodesResult.cc b/ehpc/src/model/AddNodesResult.cc index 78fe5a538..4be3bfb04 100644 --- a/ehpc/src/model/AddNodesResult.cc +++ b/ehpc/src/model/AddNodesResult.cc @@ -42,16 +42,9 @@ 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 deleted file mode 100644 index b64724b95..000000000 --- a/ehpc/src/model/AddQueueRequest.cc +++ /dev/null @@ -1,62 +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::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("QueueName", queueName); -} - -std::string AddQueueRequest::getClusterId()const -{ - return clusterId_; -} - -void AddQueueRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string AddQueueRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void AddQueueRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/AddQueueResult.cc b/ehpc/src/model/AddQueueResult.cc deleted file mode 100644 index b36822e13..000000000 --- a/ehpc/src/model/AddQueueResult.cc +++ /dev/null @@ -1,44 +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 -#include - -using namespace AlibabaCloud::EHPC; -using namespace AlibabaCloud::EHPC::Model; - -AddQueueResult::AddQueueResult() : - ServiceResult() -{} - -AddQueueResult::AddQueueResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddQueueResult::~AddQueueResult() -{} - -void AddQueueResult::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/AddSecurityGroupRequest.cc b/ehpc/src/model/AddSecurityGroupRequest.cc deleted file mode 100644 index 7ff9437b6..000000000 --- a/ehpc/src/model/AddSecurityGroupRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("ClientToken", clientToken); -} - -std::string AddSecurityGroupRequest::getSecurityGroupId()const -{ - return securityGroupId_; -} - -void AddSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); -} - -std::string AddSecurityGroupRequest::getClusterId()const -{ - return clusterId_; -} - -void AddSecurityGroupRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string AddSecurityGroupRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void AddSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/AddSecurityGroupResult.cc b/ehpc/src/model/AddSecurityGroupResult.cc deleted file mode 100644 index 5a79ad238..000000000 --- a/ehpc/src/model/AddSecurityGroupResult.cc +++ /dev/null @@ -1,44 +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 -#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 ee09f4ec4..962162930 100644 --- a/ehpc/src/model/AddUsersRequest.cc +++ b/ehpc/src/model/AddUsersRequest.cc @@ -1,68 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::EHPC::Model::AddUsersRequest; - -AddUsersRequest::AddUsersRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "AddUsers") -{ - setMethod(HttpRequest::Method::Get); -} - -AddUsersRequest::~AddUsersRequest() -{} - -std::string AddUsersRequest::getClusterId()const -{ - return clusterId_; + */ + +#include + +using AlibabaCloud::EHPC::Model::AddUsersRequest; + +AddUsersRequest::AddUsersRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "AddUsers") { + setMethod(HttpRequest::Method::Get); } -void AddUsersRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +AddUsersRequest::~AddUsersRequest() {} + +std::string AddUsersRequest::getClusterId() const { + return clusterId_; } -std::string AddUsersRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddUsersRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void AddUsersRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddUsersRequest::getAccessKeyId() const { + return accessKeyId_; } -std::vector AddUsersRequest::getUser()const -{ - return user_; +void AddUsersRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddUsersRequest::setUser(const std::vector& user) -{ - user_ = user; - for(int dep1 = 0; dep1!= user.size(); dep1++) { - auto userObj = user.at(dep1); - std::string userObjStr = "User." + std::to_string(dep1 + 1); - setParameter(userObjStr + ".Password", userObj.password); - setParameter(userObjStr + ".Name", userObj.name); - setParameter(userObjStr + ".Group", userObj.group); - } +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_; +} + +void AddUsersRequest::setUser(const std::vector &user) { + user_ = user; + for(int dep1 = 0; dep1 != user.size(); dep1++) { + auto userObj = user.at(dep1); + std::string userObjStr = std::string("User") + "." + std::to_string(dep1 + 1); + setParameter(userObjStr + ".Password", userObj.password); + setParameter(userObjStr + ".Name", userObj.name); + setParameter(userObjStr + ".Group", userObj.group); + } } diff --git a/ehpc/src/model/ApplyNodesRequest.cc b/ehpc/src/model/ApplyNodesRequest.cc deleted file mode 100644 index 8a4b69200..000000000 --- a/ehpc/src/model/ApplyNodesRequest.cc +++ /dev/null @@ -1,326 +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::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("ImageId", imageId); -} - -int ApplyNodesRequest::getMemory()const -{ - return memory_; -} - -void ApplyNodesRequest::setMemory(int memory) -{ - memory_ = memory; - setParameter("Memory", std::to_string(memory)); -} - -std::string ApplyNodesRequest::getSystemDiskLevel()const -{ - return systemDiskLevel_; -} - -void ApplyNodesRequest::setSystemDiskLevel(const std::string& systemDiskLevel) -{ - systemDiskLevel_ = systemDiskLevel; - setParameter("SystemDiskLevel", systemDiskLevel); -} - -bool ApplyNodesRequest::getAllocatePublicAddress()const -{ - return allocatePublicAddress_; -} - -void ApplyNodesRequest::setAllocatePublicAddress(bool allocatePublicAddress) -{ - allocatePublicAddress_ = allocatePublicAddress; - setParameter("AllocatePublicAddress", allocatePublicAddress ? "true" : "false"); -} - -int ApplyNodesRequest::getInternetMaxBandWidthOut()const -{ - return internetMaxBandWidthOut_; -} - -void ApplyNodesRequest::setInternetMaxBandWidthOut(int internetMaxBandWidthOut) -{ - internetMaxBandWidthOut_ = internetMaxBandWidthOut; - setParameter("InternetMaxBandWidthOut", std::to_string(internetMaxBandWidthOut)); -} - -std::string ApplyNodesRequest::getResourceAmountType()const -{ - return resourceAmountType_; -} - -void ApplyNodesRequest::setResourceAmountType(const std::string& resourceAmountType) -{ - resourceAmountType_ = resourceAmountType; - setParameter("ResourceAmountType", resourceAmountType); -} - -bool ApplyNodesRequest::getStrictResourceProvision()const -{ - return strictResourceProvision_; -} - -void ApplyNodesRequest::setStrictResourceProvision(bool strictResourceProvision) -{ - strictResourceProvision_ = strictResourceProvision; - setParameter("StrictResourceProvision", strictResourceProvision ? "true" : "false"); -} - -std::string ApplyNodesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ApplyNodesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ApplyNodesRequest::getSystemDiskType()const -{ - return systemDiskType_; -} - -void ApplyNodesRequest::setSystemDiskType(const std::string& systemDiskType) -{ - systemDiskType_ = systemDiskType; - setParameter("SystemDiskType", systemDiskType); -} - -int ApplyNodesRequest::getCores()const -{ - return cores_; -} - -void ApplyNodesRequest::setCores(int cores) -{ - cores_ = cores; - setParameter("Cores", std::to_string(cores)); -} - -int ApplyNodesRequest::getSystemDiskSize()const -{ - return systemDiskSize_; -} - -void ApplyNodesRequest::setSystemDiskSize(int systemDiskSize) -{ - systemDiskSize_ = systemDiskSize; - setParameter("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 = "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("HostNamePrefix", hostNamePrefix); -} - -float ApplyNodesRequest::getComputeSpotPriceLimit()const -{ - return computeSpotPriceLimit_; -} - -void ApplyNodesRequest::setComputeSpotPriceLimit(float computeSpotPriceLimit) -{ - computeSpotPriceLimit_ = computeSpotPriceLimit; - setParameter("ComputeSpotPriceLimit", std::to_string(computeSpotPriceLimit)); -} - -std::string ApplyNodesRequest::getClusterId()const -{ - return clusterId_; -} - -void ApplyNodesRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string ApplyNodesRequest::getComputeSpotStrategy()const -{ - return computeSpotStrategy_; -} - -void ApplyNodesRequest::setComputeSpotStrategy(const std::string& computeSpotStrategy) -{ - computeSpotStrategy_ = computeSpotStrategy; - setParameter("ComputeSpotStrategy", computeSpotStrategy); -} - -std::string ApplyNodesRequest::getHostNameSuffix()const -{ - return hostNameSuffix_; -} - -void ApplyNodesRequest::setHostNameSuffix(const std::string& hostNameSuffix) -{ - hostNameSuffix_ = hostNameSuffix; - setParameter("HostNameSuffix", hostNameSuffix); -} - -std::string ApplyNodesRequest::getPriorityStrategy()const -{ - return priorityStrategy_; -} - -void ApplyNodesRequest::setPriorityStrategy(const std::string& priorityStrategy) -{ - priorityStrategy_ = priorityStrategy; - setParameter("PriorityStrategy", priorityStrategy); -} - -std::string ApplyNodesRequest::getInstanceFamilyLevel()const -{ - return instanceFamilyLevel_; -} - -void ApplyNodesRequest::setInstanceFamilyLevel(const std::string& instanceFamilyLevel) -{ - instanceFamilyLevel_ = instanceFamilyLevel; - setParameter("InstanceFamilyLevel", instanceFamilyLevel); -} - -int ApplyNodesRequest::getRound()const -{ - return round_; -} - -void ApplyNodesRequest::setRound(int round) -{ - round_ = round; - setParameter("Round", std::to_string(round)); -} - -std::string ApplyNodesRequest::getInternetChargeType()const -{ - return internetChargeType_; -} - -void ApplyNodesRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); -} - -int ApplyNodesRequest::getInterval()const -{ - return interval_; -} - -void ApplyNodesRequest::setInterval(int interval) -{ - interval_ = interval; - setParameter("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 = "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("InternetMaxBandWidthIn", std::to_string(internetMaxBandWidthIn)); -} - -int ApplyNodesRequest::getTargetCapacity()const -{ - return targetCapacity_; -} - -void ApplyNodesRequest::setTargetCapacity(int targetCapacity) -{ - targetCapacity_ = targetCapacity; - setParameter("TargetCapacity", std::to_string(targetCapacity)); -} - -bool ApplyNodesRequest::getStrictSatisfiedTargetCapacity()const -{ - return strictSatisfiedTargetCapacity_; -} - -void ApplyNodesRequest::setStrictSatisfiedTargetCapacity(bool strictSatisfiedTargetCapacity) -{ - strictSatisfiedTargetCapacity_ = strictSatisfiedTargetCapacity; - setParameter("StrictSatisfiedTargetCapacity", strictSatisfiedTargetCapacity ? "true" : "false"); -} - diff --git a/ehpc/src/model/ApplyNodesResult.cc b/ehpc/src/model/ApplyNodesResult.cc deleted file mode 100644 index f40475b13..000000000 --- a/ehpc/src/model/ApplyNodesResult.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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["Detail"].isNull()) - detail_ = value["Detail"].asString(); - if(!value["SatisfiedAmount"].isNull()) - satisfiedAmount_ = std::stoi(value["SatisfiedAmount"].asString()); - if(!value["TaskId"].isNull()) - taskId_ = value["TaskId"].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 61529d6da..d0bb20854 100644 --- a/ehpc/src/model/CreateClusterRequest.cc +++ b/ehpc/src/model/CreateClusterRequest.cc @@ -1,637 +1,328 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreateClusterRequest; - -CreateClusterRequest::CreateClusterRequest() : - 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 = "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 CreateClusterRequest::getEcsOrderManagerInstanceType()const -{ - return ecsOrderManagerInstanceType_; -} - -void CreateClusterRequest::setEcsOrderManagerInstanceType(const std::string& ecsOrderManagerInstanceType) -{ - ecsOrderManagerInstanceType_ = ecsOrderManagerInstanceType; - setParameter("EcsOrderManagerInstanceType", ecsOrderManagerInstanceType); -} - -std::string CreateClusterRequest::getKeyPairName()const -{ - return keyPairName_; -} - -void CreateClusterRequest::setKeyPairName(const std::string& keyPairName) -{ - keyPairName_ = keyPairName; - setParameter("KeyPairName", keyPairName); -} - -std::string CreateClusterRequest::getSecurityGroupName()const -{ - return securityGroupName_; -} - -void CreateClusterRequest::setSecurityGroupName(const std::string& securityGroupName) -{ - securityGroupName_ = securityGroupName; - setParameter("SecurityGroupName", securityGroupName); -} - -std::string CreateClusterRequest::getImageOwnerAlias()const -{ - return imageOwnerAlias_; -} - -void CreateClusterRequest::setImageOwnerAlias(const std::string& imageOwnerAlias) -{ - imageOwnerAlias_ = imageOwnerAlias; - setParameter("ImageOwnerAlias", imageOwnerAlias); -} - -std::string CreateClusterRequest::getDeployMode()const -{ - return deployMode_; -} - -void CreateClusterRequest::setDeployMode(const std::string& deployMode) -{ - deployMode_ = deployMode; - setParameter("DeployMode", deployMode); -} - -int CreateClusterRequest::getEcsOrderManagerCount()const -{ - return ecsOrderManagerCount_; -} - -void CreateClusterRequest::setEcsOrderManagerCount(int ecsOrderManagerCount) -{ - ecsOrderManagerCount_ = ecsOrderManagerCount; - setParameter("EcsOrderManagerCount", std::to_string(ecsOrderManagerCount)); -} - -std::string CreateClusterRequest::getResourceGroupId()const -{ - return resourceGroupId_; -} - -void CreateClusterRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); -} - -std::string CreateClusterRequest::getPassword()const -{ - return password_; -} - -void CreateClusterRequest::setPassword(const std::string& password) -{ - password_ = password; - setParameter("Password", password); -} - -int CreateClusterRequest::getEcsOrderLoginCount()const -{ - return ecsOrderLoginCount_; -} + */ -void CreateClusterRequest::setEcsOrderLoginCount(int ecsOrderLoginCount) -{ - ecsOrderLoginCount_ = ecsOrderLoginCount; - setParameter("EcsOrderLoginCount", std::to_string(ecsOrderLoginCount)); -} - -bool CreateClusterRequest::getWithoutElasticIp()const -{ - return withoutElasticIp_; -} - -void CreateClusterRequest::setWithoutElasticIp(bool withoutElasticIp) -{ - withoutElasticIp_ = withoutElasticIp; - setParameter("WithoutElasticIp", withoutElasticIp ? "true" : "false"); -} +#include -std::string CreateClusterRequest::getRemoteVisEnable()const -{ - return remoteVisEnable_; -} - -void CreateClusterRequest::setRemoteVisEnable(const std::string& remoteVisEnable) -{ - remoteVisEnable_ = remoteVisEnable; - setParameter("RemoteVisEnable", remoteVisEnable); -} - -int CreateClusterRequest::getSystemDiskSize()const -{ - return systemDiskSize_; -} +using AlibabaCloud::EHPC::Model::CreateClusterRequest; -void CreateClusterRequest::setSystemDiskSize(int systemDiskSize) -{ - systemDiskSize_ = systemDiskSize; - setParameter("SystemDiskSize", std::to_string(systemDiskSize)); +CreateClusterRequest::CreateClusterRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "CreateCluster") { + setMethod(HttpRequest::Method::Get); } -std::string CreateClusterRequest::getComputeSpotPriceLimit()const -{ - return computeSpotPriceLimit_; -} - -void CreateClusterRequest::setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit) -{ - computeSpotPriceLimit_ = computeSpotPriceLimit; - setParameter("ComputeSpotPriceLimit", computeSpotPriceLimit); -} - -int CreateClusterRequest::getAutoRenewPeriod()const -{ - return autoRenewPeriod_; -} - -void CreateClusterRequest::setAutoRenewPeriod(int autoRenewPeriod) -{ - autoRenewPeriod_ = autoRenewPeriod; - setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod)); -} - -int CreateClusterRequest::getPeriod()const -{ - return period_; -} - -void CreateClusterRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); -} - -std::string CreateClusterRequest::getRemoteDirectory()const -{ - return remoteDirectory_; -} - -void CreateClusterRequest::setRemoteDirectory(const std::string& remoteDirectory) -{ - remoteDirectory_ = remoteDirectory; - setParameter("RemoteDirectory", remoteDirectory); -} - -int CreateClusterRequest::getEcsOrderComputeCount()const -{ - return ecsOrderComputeCount_; -} - -void CreateClusterRequest::setEcsOrderComputeCount(int ecsOrderComputeCount) -{ - ecsOrderComputeCount_ = ecsOrderComputeCount; - setParameter("EcsOrderComputeCount", std::to_string(ecsOrderComputeCount)); -} - -std::string CreateClusterRequest::getComputeSpotStrategy()const -{ - return computeSpotStrategy_; -} - -void CreateClusterRequest::setComputeSpotStrategy(const std::string& computeSpotStrategy) -{ - computeSpotStrategy_ = computeSpotStrategy; - setParameter("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 = "PostInstallScript." + std::to_string(dep1 + 1); - setParameter(postInstallScriptObjStr + ".Args", postInstallScriptObj.args); - setParameter(postInstallScriptObjStr + ".Url", postInstallScriptObj.url); - } -} +CreateClusterRequest::~CreateClusterRequest() {} -std::string CreateClusterRequest::getVSwitchId()const -{ - return vSwitchId_; +std::string CreateClusterRequest::getSccClusterId() const { + return sccClusterId_; } -void CreateClusterRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +void CreateClusterRequest::setSccClusterId(const std::string &sccClusterId) { + sccClusterId_ = sccClusterId; + setParameter(std::string("SccClusterId"), sccClusterId); } -std::string CreateClusterRequest::getPeriodUnit()const -{ - return periodUnit_; +std::string CreateClusterRequest::getImageId() const { + return imageId_; } -void CreateClusterRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +void CreateClusterRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -bool CreateClusterRequest::getComputeEnableHt()const -{ - return computeEnableHt_; +std::string CreateClusterRequest::getEcsOrderManagerInstanceType() const { + return ecsOrderManagerInstanceType_; } -void CreateClusterRequest::setComputeEnableHt(bool computeEnableHt) -{ - computeEnableHt_ = computeEnableHt; - setParameter("ComputeEnableHt", computeEnableHt ? "true" : "false"); +void CreateClusterRequest::setEcsOrderManagerInstanceType(const std::string &ecsOrderManagerInstanceType) { + ecsOrderManagerInstanceType_ = ecsOrderManagerInstanceType; + setParameter(std::string("EcsOrder.Manager.InstanceType"), ecsOrderManagerInstanceType); } -std::string CreateClusterRequest::getAutoRenew()const -{ - return autoRenew_; +std::string CreateClusterRequest::getEhpcVersion() const { + return ehpcVersion_; } -void CreateClusterRequest::setAutoRenew(const std::string& autoRenew) -{ - autoRenew_ = autoRenew; - setParameter("AutoRenew", autoRenew); +void CreateClusterRequest::setEhpcVersion(const std::string &ehpcVersion) { + ehpcVersion_ = ehpcVersion; + setParameter(std::string("EhpcVersion"), ehpcVersion); } -std::string CreateClusterRequest::getName()const -{ - return name_; +std::string CreateClusterRequest::getAccountType() const { + return accountType_; } -void CreateClusterRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +void CreateClusterRequest::setAccountType(const std::string &accountType) { + accountType_ = accountType; + setParameter(std::string("AccountType"), accountType); } -std::string CreateClusterRequest::getVolumeId()const -{ - return volumeId_; +std::string CreateClusterRequest::getSecurityGroupId() const { + return securityGroupId_; } -void CreateClusterRequest::setVolumeId(const std::string& volumeId) -{ - volumeId_ = volumeId; - setParameter("VolumeId", volumeId); +void CreateClusterRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -std::string CreateClusterRequest::getZoneId()const -{ - return zoneId_; +std::string CreateClusterRequest::getDescription() const { + return description_; } -void CreateClusterRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +void CreateClusterRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -std::string CreateClusterRequest::getSccClusterId()const -{ - return sccClusterId_; +std::string CreateClusterRequest::getKeyPairName() const { + return keyPairName_; } -void CreateClusterRequest::setSccClusterId(const std::string& sccClusterId) -{ - sccClusterId_ = sccClusterId; - setParameter("SccClusterId", sccClusterId); +void CreateClusterRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); } -std::string CreateClusterRequest::getImageId()const -{ - return imageId_; +std::string CreateClusterRequest::getSecurityGroupName() const { + return securityGroupName_; } -void CreateClusterRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +void CreateClusterRequest::setSecurityGroupName(const std::string &securityGroupName) { + securityGroupName_ = securityGroupName; + setParameter(std::string("SecurityGroupName"), securityGroupName); } -std::string CreateClusterRequest::getSystemDiskLevel()const -{ - return systemDiskLevel_; +std::string CreateClusterRequest::getEcsOrderComputeInstanceType() const { + return ecsOrderComputeInstanceType_; } -void CreateClusterRequest::setSystemDiskLevel(const std::string& systemDiskLevel) -{ - systemDiskLevel_ = systemDiskLevel; - setParameter("SystemDiskLevel", systemDiskLevel); +void CreateClusterRequest::setEcsOrderComputeInstanceType(const std::string &ecsOrderComputeInstanceType) { + ecsOrderComputeInstanceType_ = ecsOrderComputeInstanceType; + setParameter(std::string("EcsOrder.Compute.InstanceType"), ecsOrderComputeInstanceType); } -std::string CreateClusterRequest::getClientToken()const -{ - return clientToken_; +std::string CreateClusterRequest::getAccessKeyId() const { + return accessKeyId_; } -void CreateClusterRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +void CreateClusterRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -std::string CreateClusterRequest::getEhpcVersion()const -{ - return ehpcVersion_; +std::string CreateClusterRequest::getImageOwnerAlias() const { + return imageOwnerAlias_; } -void CreateClusterRequest::setEhpcVersion(const std::string& ehpcVersion) -{ - ehpcVersion_ = ehpcVersion; - setParameter("EhpcVersion", ehpcVersion); +void CreateClusterRequest::setImageOwnerAlias(const std::string &imageOwnerAlias) { + imageOwnerAlias_ = imageOwnerAlias; + setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias); } -std::string CreateClusterRequest::getAccountType()const -{ - return accountType_; +std::string CreateClusterRequest::getVolumeType() const { + return volumeType_; } -void CreateClusterRequest::setAccountType(const std::string& accountType) -{ - accountType_ = accountType; - setParameter("AccountType", accountType); +void CreateClusterRequest::setVolumeType(const std::string &volumeType) { + volumeType_ = volumeType; + setParameter(std::string("VolumeType"), volumeType); } -std::string CreateClusterRequest::getSecurityGroupId()const -{ - return securityGroupId_; +int CreateClusterRequest::getEcsOrderManagerCount() const { + return ecsOrderManagerCount_; } -void CreateClusterRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +void CreateClusterRequest::setEcsOrderManagerCount(int ecsOrderManagerCount) { + ecsOrderManagerCount_ = ecsOrderManagerCount; + setParameter(std::string("EcsOrder.Manager.Count"), std::to_string(ecsOrderManagerCount)); } -std::string CreateClusterRequest::getDescription()const -{ - return description_; +std::string CreateClusterRequest::getPassword() const { + return password_; } -void CreateClusterRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +void CreateClusterRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); } -std::string CreateClusterRequest::getEcsOrderComputeInstanceType()const -{ - return ecsOrderComputeInstanceType_; +int CreateClusterRequest::getEcsOrderLoginCount() const { + return ecsOrderLoginCount_; } -void CreateClusterRequest::setEcsOrderComputeInstanceType(const std::string& ecsOrderComputeInstanceType) -{ - ecsOrderComputeInstanceType_ = ecsOrderComputeInstanceType; - setParameter("EcsOrderComputeInstanceType", ecsOrderComputeInstanceType); +void CreateClusterRequest::setEcsOrderLoginCount(int ecsOrderLoginCount) { + ecsOrderLoginCount_ = ecsOrderLoginCount; + setParameter(std::string("EcsOrder.Login.Count"), std::to_string(ecsOrderLoginCount)); } -std::string CreateClusterRequest::getJobQueue()const -{ - return jobQueue_; +std::string CreateClusterRequest::getComputeSpotPriceLimit() const { + return computeSpotPriceLimit_; } -void CreateClusterRequest::setJobQueue(const std::string& jobQueue) -{ - jobQueue_ = jobQueue; - setParameter("JobQueue", jobQueue); +void CreateClusterRequest::setComputeSpotPriceLimit(const std::string &computeSpotPriceLimit) { + computeSpotPriceLimit_ = computeSpotPriceLimit; + setParameter(std::string("ComputeSpotPriceLimit"), computeSpotPriceLimit); } -std::string CreateClusterRequest::getAccessKeyId()const -{ - return accessKeyId_; +std::string CreateClusterRequest::getVolumeProtocol() const { + return volumeProtocol_; } -void CreateClusterRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +void CreateClusterRequest::setVolumeProtocol(const std::string &volumeProtocol) { + volumeProtocol_ = volumeProtocol; + setParameter(std::string("VolumeProtocol"), volumeProtocol); } -std::string CreateClusterRequest::getVolumeType()const -{ - return volumeType_; +std::string CreateClusterRequest::getOsTag() const { + return osTag_; } -void CreateClusterRequest::setVolumeType(const std::string& volumeType) -{ - volumeType_ = volumeType; - setParameter("VolumeType", volumeType); +void CreateClusterRequest::setOsTag(const std::string &osTag) { + osTag_ = osTag; + setParameter(std::string("OsTag"), osTag); } -std::string CreateClusterRequest::getSystemDiskType()const -{ - return systemDiskType_; +std::string CreateClusterRequest::getRemoteDirectory() const { + return remoteDirectory_; } -void CreateClusterRequest::setSystemDiskType(const std::string& systemDiskType) -{ - systemDiskType_ = systemDiskType; - setParameter("SystemDiskType", systemDiskType); +void CreateClusterRequest::setRemoteDirectory(const std::string &remoteDirectory) { + remoteDirectory_ = remoteDirectory; + setParameter(std::string("RemoteDirectory"), remoteDirectory); } -std::string CreateClusterRequest::getVolumeProtocol()const -{ - return volumeProtocol_; +int CreateClusterRequest::getEcsOrderComputeCount() const { + return ecsOrderComputeCount_; } -void CreateClusterRequest::setVolumeProtocol(const std::string& volumeProtocol) -{ - volumeProtocol_ = volumeProtocol; - setParameter("VolumeProtocol", volumeProtocol); +void CreateClusterRequest::setEcsOrderComputeCount(int ecsOrderComputeCount) { + ecsOrderComputeCount_ = ecsOrderComputeCount; + setParameter(std::string("EcsOrder.Compute.Count"), std::to_string(ecsOrderComputeCount)); } -std::string CreateClusterRequest::getClientVersion()const -{ - return clientVersion_; +std::string CreateClusterRequest::getComputeSpotStrategy() const { + return computeSpotStrategy_; } -void CreateClusterRequest::setClientVersion(const std::string& clientVersion) -{ - clientVersion_ = clientVersion; - setParameter("ClientVersion", clientVersion); +void CreateClusterRequest::setComputeSpotStrategy(const std::string &computeSpotStrategy) { + computeSpotStrategy_ = computeSpotStrategy; + setParameter(std::string("ComputeSpotStrategy"), computeSpotStrategy); } -std::string CreateClusterRequest::getOsTag()const -{ - return osTag_; +std::string CreateClusterRequest::getVSwitchId() const { + return vSwitchId_; } -void CreateClusterRequest::setOsTag(const std::string& osTag) -{ - osTag_ = osTag; - setParameter("OsTag", osTag); +void CreateClusterRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } -std::string CreateClusterRequest::getClusterVersion()const -{ - return clusterVersion_; +std::vector CreateClusterRequest::getApplication() const { + return application_; } -void CreateClusterRequest::setClusterVersion(const std::string& clusterVersion) -{ - clusterVersion_ = clusterVersion; - setParameter("ClusterVersion", clusterVersion); +void CreateClusterRequest::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); + } } -bool CreateClusterRequest::getIsComputeEss()const -{ - return isComputeEss_; +std::string CreateClusterRequest::getEcsChargeType() const { + return ecsChargeType_; } -void CreateClusterRequest::setIsComputeEss(bool isComputeEss) -{ - isComputeEss_ = isComputeEss; - setParameter("IsComputeEss", isComputeEss ? "true" : "false"); +void CreateClusterRequest::setEcsChargeType(const std::string &ecsChargeType) { + ecsChargeType_ = ecsChargeType; + setParameter(std::string("EcsChargeType"), ecsChargeType); } -std::vector CreateClusterRequest::getApplication()const -{ - return application_; +std::string CreateClusterRequest::getVpcId() const { + return vpcId_; } -void CreateClusterRequest::setApplication(const std::vector& application) -{ - application_ = application; - for(int dep1 = 0; dep1!= application.size(); dep1++) { - auto applicationObj = application.at(dep1); - std::string applicationObjStr = "Application." + std::to_string(dep1 + 1); - setParameter(applicationObjStr + ".Tag", applicationObj.tag); - } +void CreateClusterRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -std::string CreateClusterRequest::getEcsChargeType()const -{ - return ecsChargeType_; +bool CreateClusterRequest::getHaEnable() const { + return haEnable_; } -void CreateClusterRequest::setEcsChargeType(const std::string& ecsChargeType) -{ - ecsChargeType_ = ecsChargeType; - setParameter("EcsChargeType", ecsChargeType); +void CreateClusterRequest::setHaEnable(bool haEnable) { + haEnable_ = haEnable; + setParameter(std::string("HaEnable"), haEnable ? "true" : "false"); } -std::string CreateClusterRequest::getInputFileUrl()const -{ - return inputFileUrl_; +std::string CreateClusterRequest::getName() const { + return name_; } -void CreateClusterRequest::setInputFileUrl(const std::string& inputFileUrl) -{ - inputFileUrl_ = inputFileUrl; - setParameter("InputFileUrl", inputFileUrl); +void CreateClusterRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -std::string CreateClusterRequest::getVpcId()const -{ - return vpcId_; +std::string CreateClusterRequest::getSchedulerType() const { + return schedulerType_; } -void CreateClusterRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +void CreateClusterRequest::setSchedulerType(const std::string &schedulerType) { + schedulerType_ = schedulerType; + setParameter(std::string("SchedulerType"), schedulerType); } -bool CreateClusterRequest::getHaEnable()const -{ - return haEnable_; +std::string CreateClusterRequest::getVolumeId() const { + return volumeId_; } -void CreateClusterRequest::setHaEnable(bool haEnable) -{ - haEnable_ = haEnable; - setParameter("HaEnable", haEnable ? "true" : "false"); +void CreateClusterRequest::setVolumeId(const std::string &volumeId) { + volumeId_ = volumeId; + setParameter(std::string("VolumeId"), volumeId); } -std::string CreateClusterRequest::getSchedulerType()const -{ - return schedulerType_; +std::string CreateClusterRequest::getVolumeMountpoint() const { + return volumeMountpoint_; } -void CreateClusterRequest::setSchedulerType(const std::string& schedulerType) -{ - schedulerType_ = schedulerType; - setParameter("SchedulerType", schedulerType); +void CreateClusterRequest::setVolumeMountpoint(const std::string &volumeMountpoint) { + volumeMountpoint_ = volumeMountpoint; + setParameter(std::string("VolumeMountpoint"), volumeMountpoint); } -std::string CreateClusterRequest::getVolumeMountpoint()const -{ - return volumeMountpoint_; +std::string CreateClusterRequest::getEcsOrderLoginInstanceType() const { + return ecsOrderLoginInstanceType_; } -void CreateClusterRequest::setVolumeMountpoint(const std::string& volumeMountpoint) -{ - volumeMountpoint_ = volumeMountpoint; - setParameter("VolumeMountpoint", volumeMountpoint); +void CreateClusterRequest::setEcsOrderLoginInstanceType(const std::string &ecsOrderLoginInstanceType) { + ecsOrderLoginInstanceType_ = ecsOrderLoginInstanceType; + setParameter(std::string("EcsOrder.Login.InstanceType"), ecsOrderLoginInstanceType); } -std::string CreateClusterRequest::getEcsOrderLoginInstanceType()const -{ - return ecsOrderLoginInstanceType_; +std::string CreateClusterRequest::getZoneId() const { + return zoneId_; } -void CreateClusterRequest::setEcsOrderLoginInstanceType(const std::string& ecsOrderLoginInstanceType) -{ - ecsOrderLoginInstanceType_ = ecsOrderLoginInstanceType; - setParameter("EcsOrderLoginInstanceType", ecsOrderLoginInstanceType); +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 60a72c51b..6904c2dde 100644 --- a/ehpc/src/model/CreateClusterResult.cc +++ b/ehpc/src/model/CreateClusterResult.cc @@ -41,16 +41,9 @@ void CreateClusterResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["ClusterId"].isNull()) clusterId_ = value["ClusterId"].asString(); - if(!value["TaskId"].isNull()) - taskId_ = value["TaskId"].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 deleted file mode 100644 index 547de9d4c..000000000 --- a/ehpc/src/model/CreateGWSClusterRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("AccessKeyId", accessKeyId); -} - -std::string CreateGWSClusterRequest::getClusterType()const -{ - return clusterType_; -} - -void CreateGWSClusterRequest::setClusterType(const std::string& clusterType) -{ - clusterType_ = clusterType; - setParameter("ClusterType", clusterType); -} - -std::string CreateGWSClusterRequest::getVSwitchId()const -{ - return vSwitchId_; -} - -void CreateGWSClusterRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); -} - -std::string CreateGWSClusterRequest::getVpcId()const -{ - return vpcId_; -} - -void CreateGWSClusterRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); -} - -std::string CreateGWSClusterRequest::getName()const -{ - return name_; -} - -void CreateGWSClusterRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - diff --git a/ehpc/src/model/CreateGWSClusterResult.cc b/ehpc/src/model/CreateGWSClusterResult.cc deleted file mode 100644 index 747502174..000000000 --- a/ehpc/src/model/CreateGWSClusterResult.cc +++ /dev/null @@ -1,51 +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 -#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 deleted file mode 100644 index ea54a9c70..000000000 --- a/ehpc/src/model/CreateGWSImageRequest.cc +++ /dev/null @@ -1,62 +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::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("AccessKeyId", accessKeyId); -} - -std::string CreateGWSImageRequest::getInstanceId()const -{ - return instanceId_; -} - -void CreateGWSImageRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string CreateGWSImageRequest::getName()const -{ - return name_; -} - -void CreateGWSImageRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - diff --git a/ehpc/src/model/CreateGWSImageResult.cc b/ehpc/src/model/CreateGWSImageResult.cc deleted file mode 100644 index 465dfb167..000000000 --- a/ehpc/src/model/CreateGWSImageResult.cc +++ /dev/null @@ -1,51 +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 -#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 deleted file mode 100644 index 2c1bc4d10..000000000 --- a/ehpc/src/model/CreateGWSInstanceRequest.cc +++ /dev/null @@ -1,227 +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::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("ImageId", imageId); -} - -bool CreateGWSInstanceRequest::getAllocatePublicAddress()const -{ - return allocatePublicAddress_; -} - -void CreateGWSInstanceRequest::setAllocatePublicAddress(bool allocatePublicAddress) -{ - allocatePublicAddress_ = allocatePublicAddress; - setParameter("AllocatePublicAddress", allocatePublicAddress ? "true" : "false"); -} - -std::string CreateGWSInstanceRequest::getAppList()const -{ - return appList_; -} - -void CreateGWSInstanceRequest::setAppList(const std::string& appList) -{ - appList_ = appList; - setParameter("AppList", appList); -} - -int CreateGWSInstanceRequest::getInternetMaxBandwidthOut()const -{ - return internetMaxBandwidthOut_; -} - -void CreateGWSInstanceRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) -{ - internetMaxBandwidthOut_ = internetMaxBandwidthOut; - setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut)); -} - -std::string CreateGWSInstanceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CreateGWSInstanceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string CreateGWSInstanceRequest::getSystemDiskCategory()const -{ - return systemDiskCategory_; -} - -void CreateGWSInstanceRequest::setSystemDiskCategory(const std::string& systemDiskCategory) -{ - systemDiskCategory_ = systemDiskCategory; - setParameter("SystemDiskCategory", systemDiskCategory); -} - -int CreateGWSInstanceRequest::getSystemDiskSize()const -{ - return systemDiskSize_; -} - -void CreateGWSInstanceRequest::setSystemDiskSize(int systemDiskSize) -{ - systemDiskSize_ = systemDiskSize; - setParameter("SystemDiskSize", std::to_string(systemDiskSize)); -} - -std::string CreateGWSInstanceRequest::getInstanceType()const -{ - return instanceType_; -} - -void CreateGWSInstanceRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); -} - -std::string CreateGWSInstanceRequest::getInstanceChargeType()const -{ - return instanceChargeType_; -} - -void CreateGWSInstanceRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); -} - -std::string CreateGWSInstanceRequest::getPeriod()const -{ - return period_; -} - -void CreateGWSInstanceRequest::setPeriod(const std::string& period) -{ - period_ = period; - setParameter("Period", period); -} - -std::string CreateGWSInstanceRequest::getClusterId()const -{ - return clusterId_; -} - -void CreateGWSInstanceRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string CreateGWSInstanceRequest::getWorkMode()const -{ - return workMode_; -} - -void CreateGWSInstanceRequest::setWorkMode(const std::string& workMode) -{ - workMode_ = workMode; - setParameter("WorkMode", workMode); -} - -std::string CreateGWSInstanceRequest::getVSwitchId()const -{ - return vSwitchId_; -} - -void CreateGWSInstanceRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); -} - -std::string CreateGWSInstanceRequest::getPeriodUnit()const -{ - return periodUnit_; -} - -void CreateGWSInstanceRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); -} - -bool CreateGWSInstanceRequest::getAutoRenew()const -{ - return autoRenew_; -} - -void CreateGWSInstanceRequest::setAutoRenew(bool autoRenew) -{ - autoRenew_ = autoRenew; - setParameter("AutoRenew", autoRenew ? "true" : "false"); -} - -std::string CreateGWSInstanceRequest::getInternetChargeType()const -{ - return internetChargeType_; -} - -void CreateGWSInstanceRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); -} - -std::string CreateGWSInstanceRequest::getName()const -{ - return name_; -} - -void CreateGWSInstanceRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - -int CreateGWSInstanceRequest::getInternetMaxBandwidthIn()const -{ - return internetMaxBandwidthIn_; -} - -void CreateGWSInstanceRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) -{ - internetMaxBandwidthIn_ = internetMaxBandwidthIn; - setParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn)); -} - diff --git a/ehpc/src/model/CreateGWSInstanceResult.cc b/ehpc/src/model/CreateGWSInstanceResult.cc deleted file mode 100644 index 8b03fd4e7..000000000 --- a/ehpc/src/model/CreateGWSInstanceResult.cc +++ /dev/null @@ -1,51 +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 -#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 deleted file mode 100644 index 4df37c8a8..000000000 --- a/ehpc/src/model/CreateHybridClusterRequest.cc +++ /dev/null @@ -1,453 +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::CreateHybridClusterRequest; - -CreateHybridClusterRequest::CreateHybridClusterRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "CreateHybridCluster") -{ - setMethod(HttpRequest::Method::Get); -} - -CreateHybridClusterRequest::~CreateHybridClusterRequest() -{} - -std::string CreateHybridClusterRequest::getKeyPairName()const -{ - return keyPairName_; -} - -void CreateHybridClusterRequest::setKeyPairName(const std::string& keyPairName) -{ - keyPairName_ = keyPairName; - setParameter("KeyPairName", keyPairName); -} - -bool CreateHybridClusterRequest::getMultiOs()const -{ - return multiOs_; -} - -void CreateHybridClusterRequest::setMultiOs(bool multiOs) -{ - multiOs_ = multiOs; - setParameter("MultiOs", multiOs ? "true" : "false"); -} - -std::string CreateHybridClusterRequest::getSecurityGroupName()const -{ - return securityGroupName_; -} - -void CreateHybridClusterRequest::setSecurityGroupName(const std::string& securityGroupName) -{ - securityGroupName_ = securityGroupName; - setParameter("SecurityGroupName", securityGroupName); -} - -std::string CreateHybridClusterRequest::getOnPremiseVolumeRemotePath()const -{ - return onPremiseVolumeRemotePath_; -} - -void CreateHybridClusterRequest::setOnPremiseVolumeRemotePath(const std::string& onPremiseVolumeRemotePath) -{ - onPremiseVolumeRemotePath_ = onPremiseVolumeRemotePath; - setParameter("OnPremiseVolumeRemotePath", onPremiseVolumeRemotePath); -} - -std::string CreateHybridClusterRequest::getImageOwnerAlias()const -{ - return imageOwnerAlias_; -} - -void CreateHybridClusterRequest::setImageOwnerAlias(const std::string& imageOwnerAlias) -{ - imageOwnerAlias_ = imageOwnerAlias; - setParameter("ImageOwnerAlias", imageOwnerAlias); -} - -std::string CreateHybridClusterRequest::getResourceGroupId()const -{ - return resourceGroupId_; -} - -void CreateHybridClusterRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); -} - -std::string CreateHybridClusterRequest::getPassword()const -{ - return password_; -} - -void CreateHybridClusterRequest::setPassword(const std::string& password) -{ - password_ = password; - setParameter("Password", password); -} - -float CreateHybridClusterRequest::getComputeSpotPriceLimit()const -{ - return computeSpotPriceLimit_; -} - -void CreateHybridClusterRequest::setComputeSpotPriceLimit(float computeSpotPriceLimit) -{ - computeSpotPriceLimit_ = computeSpotPriceLimit; - setParameter("ComputeSpotPriceLimit", std::to_string(computeSpotPriceLimit)); -} - -std::string CreateHybridClusterRequest::getOnPremiseVolumeLocalPath()const -{ - return onPremiseVolumeLocalPath_; -} - -void CreateHybridClusterRequest::setOnPremiseVolumeLocalPath(const std::string& onPremiseVolumeLocalPath) -{ - onPremiseVolumeLocalPath_ = onPremiseVolumeLocalPath; - setParameter("OnPremiseVolumeLocalPath", onPremiseVolumeLocalPath); -} - -std::string CreateHybridClusterRequest::getRemoteDirectory()const -{ - return remoteDirectory_; -} - -void CreateHybridClusterRequest::setRemoteDirectory(const std::string& remoteDirectory) -{ - remoteDirectory_ = remoteDirectory; - setParameter("RemoteDirectory", remoteDirectory); -} - -std::string CreateHybridClusterRequest::getComputeSpotStrategy()const -{ - return computeSpotStrategy_; -} - -void CreateHybridClusterRequest::setComputeSpotStrategy(const std::string& computeSpotStrategy) -{ - computeSpotStrategy_ = computeSpotStrategy; - setParameter("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 = "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("VSwitchId", vSwitchId); -} - -std::string CreateHybridClusterRequest::getDomain()const -{ - return domain_; -} - -void CreateHybridClusterRequest::setDomain(const std::string& domain) -{ - domain_ = domain; - setParameter("Domain", domain); -} - -std::string CreateHybridClusterRequest::getName()const -{ - return name_; -} - -void CreateHybridClusterRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - -std::string CreateHybridClusterRequest::getVolumeId()const -{ - return volumeId_; -} - -void CreateHybridClusterRequest::setVolumeId(const std::string& volumeId) -{ - volumeId_ = volumeId; - setParameter("VolumeId", volumeId); -} - -std::string CreateHybridClusterRequest::getZoneId()const -{ - return zoneId_; -} - -void CreateHybridClusterRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); -} - -std::string CreateHybridClusterRequest::getImageId()const -{ - return imageId_; -} - -void CreateHybridClusterRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); -} - -std::string CreateHybridClusterRequest::getClientToken()const -{ - return clientToken_; -} - -void CreateHybridClusterRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); -} - -std::string CreateHybridClusterRequest::getEhpcVersion()const -{ - return ehpcVersion_; -} - -void CreateHybridClusterRequest::setEhpcVersion(const std::string& ehpcVersion) -{ - ehpcVersion_ = ehpcVersion; - setParameter("EhpcVersion", ehpcVersion); -} - -std::string CreateHybridClusterRequest::getSecurityGroupId()const -{ - return securityGroupId_; -} - -void CreateHybridClusterRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); -} - -std::string CreateHybridClusterRequest::getDescription()const -{ - return description_; -} - -void CreateHybridClusterRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); -} - -std::string CreateHybridClusterRequest::getEcsOrderComputeInstanceType()const -{ - return ecsOrderComputeInstanceType_; -} - -void CreateHybridClusterRequest::setEcsOrderComputeInstanceType(const std::string& ecsOrderComputeInstanceType) -{ - ecsOrderComputeInstanceType_ = ecsOrderComputeInstanceType; - setParameter("EcsOrderComputeInstanceType", ecsOrderComputeInstanceType); -} - -std::string CreateHybridClusterRequest::getJobQueue()const -{ - return jobQueue_; -} - -void CreateHybridClusterRequest::setJobQueue(const std::string& jobQueue) -{ - jobQueue_ = jobQueue; - setParameter("JobQueue", jobQueue); -} - -std::string CreateHybridClusterRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CreateHybridClusterRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string CreateHybridClusterRequest::getVolumeType()const -{ - return volumeType_; -} - -void CreateHybridClusterRequest::setVolumeType(const std::string& volumeType) -{ - volumeType_ = volumeType; - setParameter("VolumeType", volumeType); -} - -std::string CreateHybridClusterRequest::getOnPremiseVolumeMountPoint()const -{ - return onPremiseVolumeMountPoint_; -} - -void CreateHybridClusterRequest::setOnPremiseVolumeMountPoint(const std::string& onPremiseVolumeMountPoint) -{ - onPremiseVolumeMountPoint_ = onPremiseVolumeMountPoint; - setParameter("OnPremiseVolumeMountPoint", onPremiseVolumeMountPoint); -} - -std::string CreateHybridClusterRequest::getOnPremiseVolumeProtocol()const -{ - return onPremiseVolumeProtocol_; -} - -void CreateHybridClusterRequest::setOnPremiseVolumeProtocol(const std::string& onPremiseVolumeProtocol) -{ - onPremiseVolumeProtocol_ = onPremiseVolumeProtocol; - setParameter("OnPremiseVolumeProtocol", onPremiseVolumeProtocol); -} - -std::string CreateHybridClusterRequest::getVolumeProtocol()const -{ - return volumeProtocol_; -} - -void CreateHybridClusterRequest::setVolumeProtocol(const std::string& volumeProtocol) -{ - volumeProtocol_ = volumeProtocol; - setParameter("VolumeProtocol", volumeProtocol); -} - -std::string CreateHybridClusterRequest::getClientVersion()const -{ - return clientVersion_; -} - -void CreateHybridClusterRequest::setClientVersion(const std::string& clientVersion) -{ - clientVersion_ = clientVersion; - setParameter("ClientVersion", clientVersion); -} - -std::string CreateHybridClusterRequest::getOsTag()const -{ - return osTag_; -} - -void CreateHybridClusterRequest::setOsTag(const std::string& osTag) -{ - osTag_ = osTag; - setParameter("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 = "Nodes." + std::to_string(dep1 + 1); - setParameter(nodesObjStr + ".IpAddress", nodesObj.ipAddress); - setParameter(nodesObjStr + ".HostName", nodesObj.hostName); - setParameter(nodesObjStr + ".Role", nodesObj.role); - setParameter(nodesObjStr + ".AccountType", nodesObj.accountType); - setParameter(nodesObjStr + ".SchedulerType", nodesObj.schedulerType); - } -} - -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 = "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("VpcId", vpcId); -} - -std::string CreateHybridClusterRequest::getVolumeMountpoint()const -{ - return volumeMountpoint_; -} - -void CreateHybridClusterRequest::setVolumeMountpoint(const std::string& volumeMountpoint) -{ - volumeMountpoint_ = volumeMountpoint; - setParameter("VolumeMountpoint", volumeMountpoint); -} - -bool CreateHybridClusterRequest::getSchedulerPreInstall()const -{ - return schedulerPreInstall_; -} - -void CreateHybridClusterRequest::setSchedulerPreInstall(bool schedulerPreInstall) -{ - schedulerPreInstall_ = schedulerPreInstall; - setParameter("SchedulerPreInstall", schedulerPreInstall ? "true" : "false"); -} - -std::string CreateHybridClusterRequest::getLocation()const -{ - return location_; -} - -void CreateHybridClusterRequest::setLocation(const std::string& location) -{ - location_ = location; - setParameter("Location", location); -} - diff --git a/ehpc/src/model/CreateHybridClusterResult.cc b/ehpc/src/model/CreateHybridClusterResult.cc deleted file mode 100644 index ed8d88870..000000000 --- a/ehpc/src/model/CreateHybridClusterResult.cc +++ /dev/null @@ -1,58 +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 -#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["ClusterId"].isNull()) - clusterId_ = value["ClusterId"].asString(); - if(!value["TaskId"].isNull()) - taskId_ = value["TaskId"].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 deleted file mode 100644 index 8c308cb3d..000000000 --- a/ehpc/src/model/CreateJobFileRequest.cc +++ /dev/null @@ -1,95 +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::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("TargetFile", targetFile); -} - -std::string CreateJobFileRequest::getRunasUserPassword()const -{ - return runasUserPassword_; -} - -void CreateJobFileRequest::setRunasUserPassword(const std::string& runasUserPassword) -{ - runasUserPassword_ = runasUserPassword; - setParameter("RunasUserPassword", runasUserPassword); -} - -std::string CreateJobFileRequest::getRunasUser()const -{ - return runasUser_; -} - -void CreateJobFileRequest::setRunasUser(const std::string& runasUser) -{ - runasUser_ = runasUser; - setParameter("RunasUser", runasUser); -} - -std::string CreateJobFileRequest::getClusterId()const -{ - return clusterId_; -} - -void CreateJobFileRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string CreateJobFileRequest::getContent()const -{ - return content_; -} - -void CreateJobFileRequest::setContent(const std::string& content) -{ - content_ = content; - setParameter("Content", content); -} - -std::string CreateJobFileRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CreateJobFileRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/CreateJobFileResult.cc b/ehpc/src/model/CreateJobFileResult.cc deleted file mode 100644 index f87395749..000000000 --- a/ehpc/src/model/CreateJobFileResult.cc +++ /dev/null @@ -1,44 +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 -#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 6cd2c2f56..1c02be733 100644 --- a/ehpc/src/model/CreateJobTemplateRequest.cc +++ b/ehpc/src/model/CreateJobTemplateRequest.cc @@ -1,227 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::CreateJobTemplateRequest; - -CreateJobTemplateRequest::CreateJobTemplateRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "CreateJobTemplate") -{ - setMethod(HttpRequest::Method::Get); -} - -CreateJobTemplateRequest::~CreateJobTemplateRequest() -{} - -std::string CreateJobTemplateRequest::getStderrRedirectPath()const -{ - return stderrRedirectPath_; + */ + +#include + +using AlibabaCloud::EHPC::Model::CreateJobTemplateRequest; + +CreateJobTemplateRequest::CreateJobTemplateRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "CreateJobTemplate") { + setMethod(HttpRequest::Method::Get); } -void CreateJobTemplateRequest::setStderrRedirectPath(const std::string& stderrRedirectPath) -{ - stderrRedirectPath_ = stderrRedirectPath; - setParameter("StderrRedirectPath", stderrRedirectPath); +CreateJobTemplateRequest::~CreateJobTemplateRequest() {} + +std::string CreateJobTemplateRequest::getStderrRedirectPath() const { + return stderrRedirectPath_; } -std::string CreateJobTemplateRequest::getClockTime()const -{ - return clockTime_; +void CreateJobTemplateRequest::setStderrRedirectPath(const std::string &stderrRedirectPath) { + stderrRedirectPath_ = stderrRedirectPath; + setParameter(std::string("StderrRedirectPath"), stderrRedirectPath); } -void CreateJobTemplateRequest::setClockTime(const std::string& clockTime) -{ - clockTime_ = clockTime; - setParameter("ClockTime", clockTime); +std::string CreateJobTemplateRequest::getCommandLine() const { + return commandLine_; } -std::string CreateJobTemplateRequest::getCommandLine()const -{ - return commandLine_; +void CreateJobTemplateRequest::setCommandLine(const std::string &commandLine) { + commandLine_ = commandLine; + setParameter(std::string("CommandLine"), commandLine); } -void CreateJobTemplateRequest::setCommandLine(const std::string& commandLine) -{ - commandLine_ = commandLine; - setParameter("CommandLine", commandLine); +std::string CreateJobTemplateRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string CreateJobTemplateRequest::getAccessKeyId()const -{ - return accessKeyId_; +void CreateJobTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void CreateJobTemplateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string CreateJobTemplateRequest::getArrayRequest() const { + return arrayRequest_; } -std::string CreateJobTemplateRequest::getArrayRequest()const -{ - return arrayRequest_; +void CreateJobTemplateRequest::setArrayRequest(const std::string &arrayRequest) { + arrayRequest_ = arrayRequest; + setParameter(std::string("ArrayRequest"), arrayRequest); } -void CreateJobTemplateRequest::setArrayRequest(const std::string& arrayRequest) -{ - arrayRequest_ = arrayRequest; - setParameter("ArrayRequest", arrayRequest); +std::string CreateJobTemplateRequest::getPackagePath() const { + return packagePath_; } -std::string CreateJobTemplateRequest::getPackagePath()const -{ - return packagePath_; +void CreateJobTemplateRequest::setPackagePath(const std::string &packagePath) { + packagePath_ = packagePath; + setParameter(std::string("PackagePath"), packagePath); } -void CreateJobTemplateRequest::setPackagePath(const std::string& packagePath) -{ - packagePath_ = packagePath; - setParameter("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("Mem", mem); +std::string CreateJobTemplateRequest::getStdoutRedirectPath() const { + return stdoutRedirectPath_; } -std::string CreateJobTemplateRequest::getStdoutRedirectPath()const -{ - return stdoutRedirectPath_; +void CreateJobTemplateRequest::setStdoutRedirectPath(const std::string &stdoutRedirectPath) { + stdoutRedirectPath_ = stdoutRedirectPath; + setParameter(std::string("StdoutRedirectPath"), stdoutRedirectPath); } -void CreateJobTemplateRequest::setStdoutRedirectPath(const std::string& stdoutRedirectPath) -{ - stdoutRedirectPath_ = stdoutRedirectPath; - setParameter("StdoutRedirectPath", stdoutRedirectPath); +std::string CreateJobTemplateRequest::getVariables() const { + return variables_; } -std::string CreateJobTemplateRequest::getVariables()const -{ - return variables_; +void CreateJobTemplateRequest::setVariables(const std::string &variables) { + variables_ = variables; + setParameter(std::string("Variables"), variables); } -void CreateJobTemplateRequest::setVariables(const std::string& variables) -{ - variables_ = variables; - setParameter("Variables", variables); +std::string CreateJobTemplateRequest::getRunasUser() const { + return runasUser_; } -std::string CreateJobTemplateRequest::getRunasUser()const -{ - return runasUser_; +void CreateJobTemplateRequest::setRunasUser(const std::string &runasUser) { + runasUser_ = runasUser; + setParameter(std::string("RunasUser"), runasUser); } -void CreateJobTemplateRequest::setRunasUser(const std::string& runasUser) -{ - runasUser_ = runasUser; - setParameter("RunasUser", runasUser); +bool CreateJobTemplateRequest::getReRunable() const { + return reRunable_; } -bool CreateJobTemplateRequest::getReRunable()const -{ - return reRunable_; +void CreateJobTemplateRequest::setReRunable(bool reRunable) { + reRunable_ = reRunable; + setParameter(std::string("ReRunable"), reRunable ? "true" : "false"); } -void CreateJobTemplateRequest::setReRunable(bool reRunable) -{ - reRunable_ = reRunable; - setParameter("ReRunable", reRunable ? "true" : "false"); +int CreateJobTemplateRequest::getPriority() const { + return priority_; } -int CreateJobTemplateRequest::getThread()const -{ - return thread_; +void CreateJobTemplateRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void CreateJobTemplateRequest::setThread(int thread) -{ - thread_ = thread; - setParameter("Thread", std::to_string(thread)); +std::string CreateJobTemplateRequest::getName() const { + return name_; } -int CreateJobTemplateRequest::getPriority()const -{ - return priority_; -} - -void CreateJobTemplateRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); -} - -int CreateJobTemplateRequest::getGpu()const -{ - return gpu_; -} - -void CreateJobTemplateRequest::setGpu(int gpu) -{ - gpu_ = gpu; - setParameter("Gpu", std::to_string(gpu)); -} - -int CreateJobTemplateRequest::getNode()const -{ - return node_; -} - -void CreateJobTemplateRequest::setNode(int node) -{ - node_ = node; - setParameter("Node", std::to_string(node)); -} - -int CreateJobTemplateRequest::getTask()const -{ - return task_; -} - -void CreateJobTemplateRequest::setTask(int task) -{ - task_ = task; - setParameter("Task", std::to_string(task)); -} - -std::string CreateJobTemplateRequest::getName()const -{ - return name_; -} - -void CreateJobTemplateRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - -std::string CreateJobTemplateRequest::getQueue()const -{ - return queue_; -} - -void CreateJobTemplateRequest::setQueue(const std::string& queue) -{ - queue_ = queue; - setParameter("Queue", queue); +void CreateJobTemplateRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ehpc/src/model/DeleteClusterRequest.cc b/ehpc/src/model/DeleteClusterRequest.cc index 979db6a60..dfb9c91f8 100644 --- a/ehpc/src/model/DeleteClusterRequest.cc +++ b/ehpc/src/model/DeleteClusterRequest.cc @@ -1,62 +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::DeleteClusterRequest; - -DeleteClusterRequest::DeleteClusterRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "DeleteCluster") -{ - setMethod(HttpRequest::Method::Get); -} - -DeleteClusterRequest::~DeleteClusterRequest() -{} - -std::string DeleteClusterRequest::getClusterId()const -{ - return clusterId_; + */ + +#include + +using AlibabaCloud::EHPC::Model::DeleteClusterRequest; + +DeleteClusterRequest::DeleteClusterRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "DeleteCluster") { + setMethod(HttpRequest::Method::Get); } -void DeleteClusterRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +DeleteClusterRequest::~DeleteClusterRequest() {} + +std::string DeleteClusterRequest::getClusterId() const { + return clusterId_; } -std::string DeleteClusterRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteClusterRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void DeleteClusterRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteClusterRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DeleteClusterRequest::getReleaseInstance()const -{ - return releaseInstance_; +void DeleteClusterRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeleteClusterRequest::setReleaseInstance(const std::string& releaseInstance) -{ - releaseInstance_ = releaseInstance; - setParameter("ReleaseInstance", releaseInstance); +std::string DeleteClusterRequest::getReleaseInstance() const { + return releaseInstance_; +} + +void DeleteClusterRequest::setReleaseInstance(const std::string &releaseInstance) { + releaseInstance_ = releaseInstance; + setParameter(std::string("ReleaseInstance"), releaseInstance); } diff --git a/ehpc/src/model/DeleteClusterResult.cc b/ehpc/src/model/DeleteClusterResult.cc index 070e89012..cdc44e26c 100644 --- a/ehpc/src/model/DeleteClusterResult.cc +++ b/ehpc/src/model/DeleteClusterResult.cc @@ -39,13 +39,6 @@ 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 deleted file mode 100644 index d05595f17..000000000 --- a/ehpc/src/model/DeleteContainerAppsRequest.cc +++ /dev/null @@ -1,55 +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::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 = "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("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/DeleteContainerAppsResult.cc b/ehpc/src/model/DeleteContainerAppsResult.cc deleted file mode 100644 index a48ff1680..000000000 --- a/ehpc/src/model/DeleteContainerAppsResult.cc +++ /dev/null @@ -1,44 +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 -#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 deleted file mode 100644 index e23d084ee..000000000 --- a/ehpc/src/model/DeleteGWSClusterRequest.cc +++ /dev/null @@ -1,51 +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::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("ClusterId", clusterId); -} - -std::string DeleteGWSClusterRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DeleteGWSClusterRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/DeleteGWSClusterResult.cc b/ehpc/src/model/DeleteGWSClusterResult.cc deleted file mode 100644 index 62aabd493..000000000 --- a/ehpc/src/model/DeleteGWSClusterResult.cc +++ /dev/null @@ -1,44 +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 -#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 deleted file mode 100644 index 1bb4963f2..000000000 --- a/ehpc/src/model/DeleteGWSInstanceRequest.cc +++ /dev/null @@ -1,51 +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::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("AccessKeyId", accessKeyId); -} - -std::string DeleteGWSInstanceRequest::getInstanceId()const -{ - return instanceId_; -} - -void DeleteGWSInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ehpc/src/model/DeleteGWSInstanceResult.cc b/ehpc/src/model/DeleteGWSInstanceResult.cc deleted file mode 100644 index c0de79499..000000000 --- a/ehpc/src/model/DeleteGWSInstanceResult.cc +++ /dev/null @@ -1,44 +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 -#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 deleted file mode 100644 index 6f8a6fca5..000000000 --- a/ehpc/src/model/DeleteImageRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("ClusterId", clusterId); -} - -std::string DeleteImageRequest::getRepository()const -{ - return repository_; -} - -void DeleteImageRequest::setRepository(const std::string& repository) -{ - repository_ = repository; - setParameter("Repository", repository); -} - -std::string DeleteImageRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DeleteImageRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string DeleteImageRequest::getContainerType()const -{ - return containerType_; -} - -void DeleteImageRequest::setContainerType(const std::string& containerType) -{ - containerType_ = containerType; - setParameter("ContainerType", containerType); -} - -std::string DeleteImageRequest::getImageTag()const -{ - return imageTag_; -} - -void DeleteImageRequest::setImageTag(const std::string& imageTag) -{ - imageTag_ = imageTag; - setParameter("ImageTag", imageTag); -} - diff --git a/ehpc/src/model/DeleteImageResult.cc b/ehpc/src/model/DeleteImageResult.cc deleted file mode 100644 index 775e9230b..000000000 --- a/ehpc/src/model/DeleteImageResult.cc +++ /dev/null @@ -1,44 +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 -#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 3e44ac814..fab4e9c25 100644 --- a/ehpc/src/model/DeleteJobTemplatesRequest.cc +++ b/ehpc/src/model/DeleteJobTemplatesRequest.cc @@ -1,51 +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::DeleteJobTemplatesRequest; - -DeleteJobTemplatesRequest::DeleteJobTemplatesRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "DeleteJobTemplates") -{ - setMethod(HttpRequest::Method::Get); -} - -DeleteJobTemplatesRequest::~DeleteJobTemplatesRequest() -{} - -std::string DeleteJobTemplatesRequest::getTemplates()const -{ - return templates_; + */ + +#include + +using AlibabaCloud::EHPC::Model::DeleteJobTemplatesRequest; + +DeleteJobTemplatesRequest::DeleteJobTemplatesRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "DeleteJobTemplates") { + setMethod(HttpRequest::Method::Get); } -void DeleteJobTemplatesRequest::setTemplates(const std::string& templates) -{ - templates_ = templates; - setParameter("Templates", templates); +DeleteJobTemplatesRequest::~DeleteJobTemplatesRequest() {} + +std::string DeleteJobTemplatesRequest::getTemplates() const { + return templates_; } -std::string DeleteJobTemplatesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteJobTemplatesRequest::setTemplates(const std::string &templates) { + templates_ = templates; + setParameter(std::string("Templates"), templates); } -void DeleteJobTemplatesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteJobTemplatesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteJobTemplatesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = 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 15427791b..d8d49f35e 100644 --- a/ehpc/src/model/DeleteJobsRequest.cc +++ b/ehpc/src/model/DeleteJobsRequest.cc @@ -1,62 +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::DeleteJobsRequest; - -DeleteJobsRequest::DeleteJobsRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "DeleteJobs") -{ - setMethod(HttpRequest::Method::Get); -} - -DeleteJobsRequest::~DeleteJobsRequest() -{} - -std::string DeleteJobsRequest::getJobs()const -{ - return jobs_; + */ + +#include + +using AlibabaCloud::EHPC::Model::DeleteJobsRequest; + +DeleteJobsRequest::DeleteJobsRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "DeleteJobs") { + setMethod(HttpRequest::Method::Get); } -void DeleteJobsRequest::setJobs(const std::string& jobs) -{ - jobs_ = jobs; - setParameter("Jobs", jobs); +DeleteJobsRequest::~DeleteJobsRequest() {} + +std::string DeleteJobsRequest::getJobs() const { + return jobs_; } -std::string DeleteJobsRequest::getClusterId()const -{ - return clusterId_; +void DeleteJobsRequest::setJobs(const std::string &jobs) { + jobs_ = jobs; + setParameter(std::string("Jobs"), jobs); } -void DeleteJobsRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +std::string DeleteJobsRequest::getClusterId() const { + return clusterId_; } -std::string DeleteJobsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteJobsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void DeleteJobsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteJobsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteJobsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/ehpc/src/model/DeleteNodesRequest.cc b/ehpc/src/model/DeleteNodesRequest.cc index ccf126af3..7d808379a 100644 --- a/ehpc/src/model/DeleteNodesRequest.cc +++ b/ehpc/src/model/DeleteNodesRequest.cc @@ -1,88 +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::DeleteNodesRequest; - -DeleteNodesRequest::DeleteNodesRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "DeleteNodes") -{ - setMethod(HttpRequest::Method::Get); -} - -DeleteNodesRequest::~DeleteNodesRequest() -{} - -std::vector DeleteNodesRequest::getInstance()const -{ - return instance_; + */ + +#include + +using AlibabaCloud::EHPC::Model::DeleteNodesRequest; + +DeleteNodesRequest::DeleteNodesRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "DeleteNodes") { + setMethod(HttpRequest::Method::Get); } -void DeleteNodesRequest::setInstance(const std::vector& instance) -{ - instance_ = instance; - for(int dep1 = 0; dep1!= instance.size(); dep1++) { - auto instanceObj = instance.at(dep1); - std::string instanceObjStr = "Instance." + std::to_string(dep1 + 1); - setParameter(instanceObjStr + ".Id", instanceObj.id); - } +DeleteNodesRequest::~DeleteNodesRequest() {} + +std::vector DeleteNodesRequest::getInstance() const { + return instance_; } -std::string DeleteNodesRequest::getClusterId()const -{ - return clusterId_; +void DeleteNodesRequest::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); + } } -void DeleteNodesRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +std::string DeleteNodesRequest::getClusterId() const { + return clusterId_; } -bool DeleteNodesRequest::getSync()const -{ - return sync_; +void DeleteNodesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void DeleteNodesRequest::setSync(bool sync) -{ - sync_ = sync; - setParameter("Sync", sync ? "true" : "false"); +std::string DeleteNodesRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DeleteNodesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteNodesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeleteNodesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +bool DeleteNodesRequest::getReleaseInstance() const { + return releaseInstance_; } -bool DeleteNodesRequest::getReleaseInstance()const -{ - return releaseInstance_; -} - -void DeleteNodesRequest::setReleaseInstance(bool releaseInstance) -{ - releaseInstance_ = releaseInstance; - setParameter("ReleaseInstance", releaseInstance ? "true" : "false"); +void DeleteNodesRequest::setReleaseInstance(bool releaseInstance) { + releaseInstance_ = releaseInstance; + setParameter(std::string("ReleaseInstance"), releaseInstance ? "true" : "false"); } diff --git a/ehpc/src/model/DeleteNodesResult.cc b/ehpc/src/model/DeleteNodesResult.cc index c181d33f0..3805c5b9e 100644 --- a/ehpc/src/model/DeleteNodesResult.cc +++ b/ehpc/src/model/DeleteNodesResult.cc @@ -39,13 +39,6 @@ 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 deleted file mode 100644 index 1542f585a..000000000 --- a/ehpc/src/model/DeleteQueueRequest.cc +++ /dev/null @@ -1,62 +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::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("QueueName", queueName); -} - -std::string DeleteQueueRequest::getClusterId()const -{ - return clusterId_; -} - -void DeleteQueueRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string DeleteQueueRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DeleteQueueRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/DeleteQueueResult.cc b/ehpc/src/model/DeleteQueueResult.cc deleted file mode 100644 index 594c4f08c..000000000 --- a/ehpc/src/model/DeleteQueueResult.cc +++ /dev/null @@ -1,44 +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 -#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 deleted file mode 100644 index 86c8b3d0b..000000000 --- a/ehpc/src/model/DeleteSecurityGroupRequest.cc +++ /dev/null @@ -1,62 +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::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("SecurityGroupId", securityGroupId); -} - -std::string DeleteSecurityGroupRequest::getClusterId()const -{ - return clusterId_; -} - -void DeleteSecurityGroupRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string DeleteSecurityGroupRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DeleteSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/DeleteSecurityGroupResult.cc b/ehpc/src/model/DeleteSecurityGroupResult.cc deleted file mode 100644 index 5e9267715..000000000 --- a/ehpc/src/model/DeleteSecurityGroupResult.cc +++ /dev/null @@ -1,44 +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 -#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 2445fa4b0..cfeb440ce 100644 --- a/ehpc/src/model/DeleteUsersRequest.cc +++ b/ehpc/src/model/DeleteUsersRequest.cc @@ -1,66 +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 - -using AlibabaCloud::EHPC::Model::DeleteUsersRequest; - -DeleteUsersRequest::DeleteUsersRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "DeleteUsers") -{ - setMethod(HttpRequest::Method::Get); -} - -DeleteUsersRequest::~DeleteUsersRequest() -{} - -std::string DeleteUsersRequest::getClusterId()const -{ - return clusterId_; + */ + +#include + +using AlibabaCloud::EHPC::Model::DeleteUsersRequest; + +DeleteUsersRequest::DeleteUsersRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "DeleteUsers") { + setMethod(HttpRequest::Method::Get); } -void DeleteUsersRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +DeleteUsersRequest::~DeleteUsersRequest() {} + +std::string DeleteUsersRequest::getClusterId() const { + return clusterId_; } -std::string DeleteUsersRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteUsersRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void DeleteUsersRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteUsersRequest::getAccessKeyId() const { + return accessKeyId_; } -std::vector DeleteUsersRequest::getUser()const -{ - return user_; +void DeleteUsersRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeleteUsersRequest::setUser(const std::vector& user) -{ - user_ = user; - for(int dep1 = 0; dep1!= user.size(); dep1++) { - auto userObj = user.at(dep1); - std::string userObjStr = "User." + std::to_string(dep1 + 1); - setParameter(userObjStr + ".Name", userObj.name); - } +std::vector DeleteUsersRequest::getUser() const { + return user_; +} + +void DeleteUsersRequest::setUser(const std::vector &user) { + user_ = user; + for(int dep1 = 0; dep1 != user.size(); dep1++) { + auto userObj = user.at(dep1); + std::string userObjStr = std::string("User") + "." + std::to_string(dep1 + 1); + setParameter(userObjStr + ".Name", userObj.name); + } } diff --git a/ehpc/src/model/DescribeAutoScaleConfigRequest.cc b/ehpc/src/model/DescribeAutoScaleConfigRequest.cc deleted file mode 100644 index 8739e1475..000000000 --- a/ehpc/src/model/DescribeAutoScaleConfigRequest.cc +++ /dev/null @@ -1,51 +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::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("ClusterId", clusterId); -} - -std::string DescribeAutoScaleConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeAutoScaleConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/DescribeAutoScaleConfigResult.cc b/ehpc/src/model/DescribeAutoScaleConfigResult.cc deleted file mode 100644 index 609ef94c6..000000000 --- a/ehpc/src/model/DescribeAutoScaleConfigResult.cc +++ /dev/null @@ -1,149 +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 -#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["Uid"].isNull()) - uid_ = value["Uid"].asString(); - if(!value["ClusterId"].isNull()) - clusterId_ = value["ClusterId"].asString(); - if(!value["ClusterType"].isNull()) - clusterType_ = value["ClusterType"].asString(); - if(!value["EnableAutoGrow"].isNull()) - enableAutoGrow_ = value["EnableAutoGrow"].asString() == "true"; - if(!value["EnableAutoShrink"].isNull()) - enableAutoShrink_ = value["EnableAutoShrink"].asString() == "true"; - 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["GrowTimeoutInMinutes"].isNull()) - growTimeoutInMinutes_ = std::stoi(value["GrowTimeoutInMinutes"].asString()); - if(!value["ExtraNodesGrowRatio"].isNull()) - extraNodesGrowRatio_ = std::stoi(value["ExtraNodesGrowRatio"].asString()); - if(!value["GrowRatio"].isNull()) - growRatio_ = std::stoi(value["GrowRatio"].asString()); - if(!value["MaxNodesInCluster"].isNull()) - maxNodesInCluster_ = std::stoi(value["MaxNodesInCluster"].asString()); - if(!value["ExcludeNodes"].isNull()) - excludeNodes_ = value["ExcludeNodes"].asString(); - if(!value["SpotStrategy"].isNull()) - spotStrategy_ = value["SpotStrategy"].asString(); - if(!value["SpotPriceLimit"].isNull()) - spotPriceLimit_ = value["SpotPriceLimit"].asString(); - -} - -int DescribeAutoScaleConfigResult::getExtraNodesGrowRatio()const -{ - return extraNodesGrowRatio_; -} - -bool DescribeAutoScaleConfigResult::getEnableAutoGrow()const -{ - return enableAutoGrow_; -} - -std::string DescribeAutoScaleConfigResult::getClusterId()const -{ - return clusterId_; -} - -int DescribeAutoScaleConfigResult::getShrinkIdleTimes()const -{ - return shrinkIdleTimes_; -} - -int DescribeAutoScaleConfigResult::getMaxNodesInCluster()const -{ - return maxNodesInCluster_; -} - -std::string DescribeAutoScaleConfigResult::getClusterType()const -{ - return clusterType_; -} - -bool DescribeAutoScaleConfigResult::getEnableAutoShrink()const -{ - return enableAutoShrink_; -} - -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 fa1c40f93..bfbc81abb 100644 --- a/ehpc/src/model/DescribeClusterRequest.cc +++ b/ehpc/src/model/DescribeClusterRequest.cc @@ -1,51 +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::DescribeClusterRequest; - -DescribeClusterRequest::DescribeClusterRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "DescribeCluster") -{ - setMethod(HttpRequest::Method::Get); -} - -DescribeClusterRequest::~DescribeClusterRequest() -{} - -std::string DescribeClusterRequest::getClusterId()const -{ - return clusterId_; + */ + +#include + +using AlibabaCloud::EHPC::Model::DescribeClusterRequest; + +DescribeClusterRequest::DescribeClusterRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "DescribeCluster") { + setMethod(HttpRequest::Method::Get); } -void DescribeClusterRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +DescribeClusterRequest::~DescribeClusterRequest() {} + +std::string DescribeClusterRequest::getClusterId() const { + return clusterId_; } -std::string DescribeClusterRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeClusterRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void DescribeClusterRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeClusterRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeClusterRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/ehpc/src/model/DescribeClusterResult.cc b/ehpc/src/model/DescribeClusterResult.cc index 8370b44b7..1a60de1fe 100644 --- a/ehpc/src/model/DescribeClusterResult.cc +++ b/ehpc/src/model/DescribeClusterResult.cc @@ -40,62 +40,52 @@ void DescribeClusterResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto clusterInfoNode = value["ClusterInfo"]; - if(!clusterInfoNode["Id"].isNull()) - clusterInfo_.id = clusterInfoNode["Id"].asString(); - if(!clusterInfoNode["RegionId"].isNull()) - clusterInfo_.regionId = clusterInfoNode["RegionId"].asString(); - if(!clusterInfoNode["Name"].isNull()) - clusterInfo_.name = clusterInfoNode["Name"].asString(); - if(!clusterInfoNode["Description"].isNull()) - clusterInfo_.description = clusterInfoNode["Description"].asString(); if(!clusterInfoNode["Status"].isNull()) clusterInfo_.status = clusterInfoNode["Status"].asString(); + if(!clusterInfoNode["SchedulerType"].isNull()) + clusterInfo_.schedulerType = clusterInfoNode["SchedulerType"].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["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["SchedulerType"].isNull()) - clusterInfo_.schedulerType = clusterInfoNode["SchedulerType"].asString(); - if(!clusterInfoNode["CreateTime"].isNull()) - clusterInfo_.createTime = clusterInfoNode["CreateTime"].asString(); - if(!clusterInfoNode["SecurityGroupId"].isNull()) - clusterInfo_.securityGroupId = clusterInfoNode["SecurityGroupId"].asString(); - if(!clusterInfoNode["VpcId"].isNull()) - clusterInfo_.vpcId = clusterInfoNode["VpcId"].asString(); - if(!clusterInfoNode["VSwitchId"].isNull()) - clusterInfo_.vSwitchId = clusterInfoNode["VSwitchId"].asString(); - if(!clusterInfoNode["VolumeType"].isNull()) - clusterInfo_.volumeType = clusterInfoNode["VolumeType"].asString(); - if(!clusterInfoNode["VolumeId"].isNull()) - clusterInfo_.volumeId = clusterInfoNode["VolumeId"].asString(); if(!clusterInfoNode["VolumeProtocol"].isNull()) clusterInfo_.volumeProtocol = clusterInfoNode["VolumeProtocol"].asString(); - if(!clusterInfoNode["VolumeMountpoint"].isNull()) - clusterInfo_.volumeMountpoint = clusterInfoNode["VolumeMountpoint"].asString(); - if(!clusterInfoNode["RemoteDirectory"].isNull()) - clusterInfo_.remoteDirectory = clusterInfoNode["RemoteDirectory"].asString(); - if(!clusterInfoNode["DeployMode"].isNull()) - clusterInfo_.deployMode = clusterInfoNode["DeployMode"].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["EcsChargeType"].isNull()) - clusterInfo_.ecsChargeType = clusterInfoNode["EcsChargeType"].asString(); - if(!clusterInfoNode["KeyPairName"].isNull()) - clusterInfo_.keyPairName = clusterInfoNode["KeyPairName"].asString(); - if(!clusterInfoNode["SccClusterId"].isNull()) - clusterInfo_.sccClusterId = clusterInfoNode["SccClusterId"].asString(); - if(!clusterInfoNode["ClientVersion"].isNull()) - clusterInfo_.clientVersion = clusterInfoNode["ClientVersion"].asString(); - if(!clusterInfoNode["ImageOwnerAlias"].isNull()) - clusterInfo_.imageOwnerAlias = clusterInfoNode["ImageOwnerAlias"].asString(); + if(!clusterInfoNode["Name"].isNull()) + clusterInfo_.name = clusterInfoNode["Name"].asString(); if(!clusterInfoNode["ImageId"].isNull()) clusterInfo_.imageId = clusterInfoNode["ImageId"].asString(); - if(!clusterInfoNode["Location"].isNull()) - clusterInfo_.location = clusterInfoNode["Location"].asString(); - if(!clusterInfoNode["BaseOsTag"].isNull()) - clusterInfo_.baseOsTag = clusterInfoNode["BaseOsTag"].asString(); - if(!clusterInfoNode["ImageName"].isNull()) - clusterInfo_.imageName = clusterInfoNode["ImageName"].asString(); + if(!clusterInfoNode["VolumeType"].isNull()) + clusterInfo_.volumeType = clusterInfoNode["VolumeType"].asString(); + if(!clusterInfoNode["Id"].isNull()) + clusterInfo_.id = clusterInfoNode["Id"].asString(); + if(!clusterInfoNode["ClientVersion"].isNull()) + clusterInfo_.clientVersion = clusterInfoNode["ClientVersion"].asString(); auto allApplicationsNode = clusterInfoNode["Applications"]["ApplicationInfo"]; for (auto clusterInfoNodeApplicationsApplicationInfo : allApplicationsNode) { @@ -108,32 +98,22 @@ 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 ecsInfoNode = clusterInfoNode["EcsInfo"]; auto managerNode = ecsInfoNode["Manager"]; - if(!managerNode["Count"].isNull()) - clusterInfo_.ecsInfo.manager.count = std::stoi(managerNode["Count"].asString()); if(!managerNode["InstanceType"].isNull()) clusterInfo_.ecsInfo.manager.instanceType = managerNode["InstanceType"].asString(); + if(!managerNode["Count"].isNull()) + clusterInfo_.ecsInfo.manager.count = std::stoi(managerNode["Count"].asString()); auto computeNode = ecsInfoNode["Compute"]; - if(!computeNode["Count"].isNull()) - clusterInfo_.ecsInfo.compute.count = std::stoi(computeNode["Count"].asString()); if(!computeNode["InstanceType"].isNull()) clusterInfo_.ecsInfo.compute.instanceType = computeNode["InstanceType"].asString(); + if(!computeNode["Count"].isNull()) + clusterInfo_.ecsInfo.compute.count = std::stoi(computeNode["Count"].asString()); auto loginNode = ecsInfoNode["Login"]; - if(!loginNode["Count"].isNull()) - clusterInfo_.ecsInfo.login.count = std::stoi(loginNode["Count"].asString()); if(!loginNode["InstanceType"].isNull()) clusterInfo_.ecsInfo.login.instanceType = loginNode["InstanceType"].asString(); + if(!loginNode["Count"].isNull()) + clusterInfo_.ecsInfo.login.count = std::stoi(loginNode["Count"].asString()); } diff --git a/ehpc/src/model/DescribeContainerAppRequest.cc b/ehpc/src/model/DescribeContainerAppRequest.cc deleted file mode 100644 index f3ead2994..000000000 --- a/ehpc/src/model/DescribeContainerAppRequest.cc +++ /dev/null @@ -1,51 +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::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("AccessKeyId", accessKeyId); -} - -std::string DescribeContainerAppRequest::getContainerId()const -{ - return containerId_; -} - -void DescribeContainerAppRequest::setContainerId(const std::string& containerId) -{ - containerId_ = containerId; - setParameter("ContainerId", containerId); -} - diff --git a/ehpc/src/model/DescribeContainerAppResult.cc b/ehpc/src/model/DescribeContainerAppResult.cc deleted file mode 100644 index 1b2955f0e..000000000 --- a/ehpc/src/model/DescribeContainerAppResult.cc +++ /dev/null @@ -1,64 +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 -#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["Id"].isNull()) - containerAppInfo_.id = containerAppInfoNode["Id"].asString(); - if(!containerAppInfoNode["Name"].isNull()) - containerAppInfo_.name = containerAppInfoNode["Name"].asString(); - if(!containerAppInfoNode["Description"].isNull()) - containerAppInfo_.description = containerAppInfoNode["Description"].asString(); - if(!containerAppInfoNode["Repository"].isNull()) - containerAppInfo_.repository = containerAppInfoNode["Repository"].asString(); - if(!containerAppInfoNode["ImageTag"].isNull()) - containerAppInfo_.imageTag = containerAppInfoNode["ImageTag"].asString(); - if(!containerAppInfoNode["CreateTime"].isNull()) - containerAppInfo_.createTime = containerAppInfoNode["CreateTime"].asString(); - if(!containerAppInfoNode["Type"].isNull()) - containerAppInfo_.type = containerAppInfoNode["Type"].asString(); - -} - -DescribeContainerAppResult::ContainerAppInfo DescribeContainerAppResult::getContainerAppInfo()const -{ - return containerAppInfo_; -} - diff --git a/ehpc/src/model/DescribeGWSClusterPolicyRequest.cc b/ehpc/src/model/DescribeGWSClusterPolicyRequest.cc deleted file mode 100644 index 2d5d45038..000000000 --- a/ehpc/src/model/DescribeGWSClusterPolicyRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("ClusterId", clusterId); -} - -std::string DescribeGWSClusterPolicyRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeGWSClusterPolicyRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -bool DescribeGWSClusterPolicyRequest::getAsyncMode()const -{ - return asyncMode_; -} - -void DescribeGWSClusterPolicyRequest::setAsyncMode(bool asyncMode) -{ - asyncMode_ = asyncMode; - setParameter("AsyncMode", asyncMode ? "true" : "false"); -} - -std::string DescribeGWSClusterPolicyRequest::getTaskId()const -{ - return taskId_; -} - -void DescribeGWSClusterPolicyRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); -} - diff --git a/ehpc/src/model/DescribeGWSClusterPolicyResult.cc b/ehpc/src/model/DescribeGWSClusterPolicyResult.cc deleted file mode 100644 index 883d25e7b..000000000 --- a/ehpc/src/model/DescribeGWSClusterPolicyResult.cc +++ /dev/null @@ -1,72 +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 -#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["Clipboard"].isNull()) - clipboard_ = value["Clipboard"].asString(); - if(!value["UsbRedirect"].isNull()) - usbRedirect_ = value["UsbRedirect"].asString(); - if(!value["Watermark"].isNull()) - watermark_ = value["Watermark"].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 deleted file mode 100644 index 388a392bb..000000000 --- a/ehpc/src/model/DescribeGWSClustersRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("ClusterId", clusterId); -} - -int DescribeGWSClustersRequest::getPageNumber()const -{ - return pageNumber_; -} - -void DescribeGWSClustersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribeGWSClustersRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeGWSClustersRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -int DescribeGWSClustersRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeGWSClustersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ehpc/src/model/DescribeGWSClustersResult.cc b/ehpc/src/model/DescribeGWSClustersResult.cc deleted file mode 100644 index 8f61ca87f..000000000 --- a/ehpc/src/model/DescribeGWSClustersResult.cc +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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["ClusterId"].isNull()) - clustersObject.clusterId = valueClustersClusterInfo["ClusterId"].asString(); - if(!valueClustersClusterInfo["Status"].isNull()) - clustersObject.status = valueClustersClusterInfo["Status"].asString(); - if(!valueClustersClusterInfo["CreateTime"].isNull()) - clustersObject.createTime = valueClustersClusterInfo["CreateTime"].asString(); - if(!valueClustersClusterInfo["VpcId"].isNull()) - clustersObject.vpcId = valueClustersClusterInfo["VpcId"].asString(); - if(!valueClustersClusterInfo["InstanceCount"].isNull()) - clustersObject.instanceCount = std::stoi(valueClustersClusterInfo["InstanceCount"].asString()); - clusters_.push_back(clustersObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["CallerType"].isNull()) - callerType_ = value["CallerType"].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 deleted file mode 100644 index f3147fffe..000000000 --- a/ehpc/src/model/DescribeGWSImagesRequest.cc +++ /dev/null @@ -1,62 +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::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("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribeGWSImagesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeGWSImagesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -int DescribeGWSImagesRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeGWSImagesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ehpc/src/model/DescribeGWSImagesResult.cc b/ehpc/src/model/DescribeGWSImagesResult.cc deleted file mode 100644 index ed0fd8a3c..000000000 --- a/ehpc/src/model/DescribeGWSImagesResult.cc +++ /dev/null @@ -1,90 +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 -#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["ImageId"].isNull()) - imagesObject.imageId = valueImagesImageInfo["ImageId"].asString(); - if(!valueImagesImageInfo["Status"].isNull()) - imagesObject.status = valueImagesImageInfo["Status"].asString(); - if(!valueImagesImageInfo["CreateTime"].isNull()) - imagesObject.createTime = valueImagesImageInfo["CreateTime"].asString(); - if(!valueImagesImageInfo["Name"].isNull()) - imagesObject.name = valueImagesImageInfo["Name"].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()); - images_.push_back(imagesObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -int 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 deleted file mode 100644 index dc8a42309..000000000 --- a/ehpc/src/model/DescribeGWSInstancesRequest.cc +++ /dev/null @@ -1,106 +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::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("ClusterId", clusterId); -} - -int DescribeGWSInstancesRequest::getPageNumber()const -{ - return pageNumber_; -} - -void DescribeGWSInstancesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribeGWSInstancesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeGWSInstancesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string DescribeGWSInstancesRequest::getInstanceId()const -{ - return instanceId_; -} - -void DescribeGWSInstancesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -int DescribeGWSInstancesRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeGWSInstancesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -long DescribeGWSInstancesRequest::getUserUid()const -{ - return userUid_; -} - -void DescribeGWSInstancesRequest::setUserUid(long userUid) -{ - userUid_ = userUid; - setParameter("UserUid", std::to_string(userUid)); -} - -std::string DescribeGWSInstancesRequest::getUserName()const -{ - return userName_; -} - -void DescribeGWSInstancesRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); -} - diff --git a/ehpc/src/model/DescribeGWSInstancesResult.cc b/ehpc/src/model/DescribeGWSInstancesResult.cc deleted file mode 100644 index 359315503..000000000 --- a/ehpc/src/model/DescribeGWSInstancesResult.cc +++ /dev/null @@ -1,106 +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 -#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["ClusterId"].isNull()) - instancesObject.clusterId = valueInstancesInstanceInfo["ClusterId"].asString(); - if(!valueInstancesInstanceInfo["InstanceId"].isNull()) - instancesObject.instanceId = valueInstancesInstanceInfo["InstanceId"].asString(); - if(!valueInstancesInstanceInfo["InstanceType"].isNull()) - instancesObject.instanceType = valueInstancesInstanceInfo["InstanceType"].asString(); - if(!valueInstancesInstanceInfo["Status"].isNull()) - instancesObject.status = valueInstancesInstanceInfo["Status"].asString(); - if(!valueInstancesInstanceInfo["CreateTime"].isNull()) - instancesObject.createTime = valueInstancesInstanceInfo["CreateTime"].asString(); - if(!valueInstancesInstanceInfo["ExpireTime"].isNull()) - instancesObject.expireTime = valueInstancesInstanceInfo["ExpireTime"].asString(); - if(!valueInstancesInstanceInfo["WorkMode"].isNull()) - instancesObject.workMode = valueInstancesInstanceInfo["WorkMode"].asString(); - if(!valueInstancesInstanceInfo["Name"].isNull()) - instancesObject.name = valueInstancesInstanceInfo["Name"].asString(); - if(!valueInstancesInstanceInfo["UserName"].isNull()) - instancesObject.userName = valueInstancesInstanceInfo["UserName"].asString(); - auto allAppListNode = valueInstancesInstanceInfo["AppList"]["AppInfo"]; - for (auto valueInstancesInstanceInfoAppListAppInfo : allAppListNode) - { - InstanceInfo::AppInfo appListObject; - if(!valueInstancesInstanceInfoAppListAppInfo["AppName"].isNull()) - appListObject.appName = valueInstancesInstanceInfoAppListAppInfo["AppName"].asString(); - if(!valueInstancesInstanceInfoAppListAppInfo["AppPath"].isNull()) - appListObject.appPath = valueInstancesInstanceInfoAppListAppInfo["AppPath"].asString(); - if(!valueInstancesInstanceInfoAppListAppInfo["AppArgs"].isNull()) - appListObject.appArgs = valueInstancesInstanceInfoAppListAppInfo["AppArgs"].asString(); - instancesObject.appList.push_back(appListObject); - } - instances_.push_back(instancesObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -std::vector 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 deleted file mode 100644 index 2b634b788..000000000 --- a/ehpc/src/model/DescribeImageGatewayConfigRequest.cc +++ /dev/null @@ -1,51 +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::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("ClusterId", clusterId); -} - -std::string DescribeImageGatewayConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeImageGatewayConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/DescribeImageGatewayConfigResult.cc b/ehpc/src/model/DescribeImageGatewayConfigResult.cc deleted file mode 100644 index 000b3ac51..000000000 --- a/ehpc/src/model/DescribeImageGatewayConfigResult.cc +++ /dev/null @@ -1,74 +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 -#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["DefaultImageLocation"].isNull()) - imagegw_.defaultImageLocation = imagegwNode["DefaultImageLocation"].asString(); - if(!imagegwNode["PullUpdateTimeout"].isNull()) - imagegw_.pullUpdateTimeout = std::stol(imagegwNode["PullUpdateTimeout"].asString()); - if(!imagegwNode["MongoDBURI"].isNull()) - imagegw_.mongoDBURI = imagegwNode["MongoDBURI"].asString(); - if(!imagegwNode["ImageExpirationTimeout"].isNull()) - imagegw_.imageExpirationTimeout = imagegwNode["ImageExpirationTimeout"].asString(); - if(!imagegwNode["UpdateDateTime"].isNull()) - imagegw_.updateDateTime = imagegwNode["UpdateDateTime"].asString(); - auto allLocationsNode = imagegwNode["Locations"]["LocationInfo"]; - for (auto imagegwNodeLocationsLocationInfo : allLocationsNode) - { - Imagegw::LocationInfo locationInfoObject; - if(!imagegwNodeLocationsLocationInfo["Location"].isNull()) - locationInfoObject.location = imagegwNodeLocationsLocationInfo["Location"].asString(); - if(!imagegwNodeLocationsLocationInfo["RemoteType"].isNull()) - locationInfoObject.remoteType = imagegwNodeLocationsLocationInfo["RemoteType"].asString(); - if(!imagegwNodeLocationsLocationInfo["Authentication"].isNull()) - locationInfoObject.authentication = imagegwNodeLocationsLocationInfo["Authentication"].asString(); - if(!imagegwNodeLocationsLocationInfo["URL"].isNull()) - locationInfoObject.uRL = imagegwNodeLocationsLocationInfo["URL"].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 deleted file mode 100644 index 199d862ee..000000000 --- a/ehpc/src/model/DescribeImagePriceRequest.cc +++ /dev/null @@ -1,106 +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::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("Period", std::to_string(period)); -} - -int DescribeImagePriceRequest::getAmount()const -{ - return amount_; -} - -void DescribeImagePriceRequest::setAmount(int amount) -{ - amount_ = amount; - setParameter("Amount", std::to_string(amount)); -} - -std::string DescribeImagePriceRequest::getImageId()const -{ - return imageId_; -} - -void DescribeImagePriceRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); -} - -std::string DescribeImagePriceRequest::getSkuCode()const -{ - return skuCode_; -} - -void DescribeImagePriceRequest::setSkuCode(const std::string& skuCode) -{ - skuCode_ = skuCode; - setParameter("SkuCode", skuCode); -} - -std::string DescribeImagePriceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeImagePriceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string DescribeImagePriceRequest::getPriceUnit()const -{ - return priceUnit_; -} - -void DescribeImagePriceRequest::setPriceUnit(const std::string& priceUnit) -{ - priceUnit_ = priceUnit; - setParameter("PriceUnit", priceUnit); -} - -std::string DescribeImagePriceRequest::getOrderType()const -{ - return orderType_; -} - -void DescribeImagePriceRequest::setOrderType(const std::string& orderType) -{ - orderType_ = orderType; - setParameter("OrderType", orderType); -} - diff --git a/ehpc/src/model/DescribeImagePriceResult.cc b/ehpc/src/model/DescribeImagePriceResult.cc deleted file mode 100644 index d71382ea7..000000000 --- a/ehpc/src/model/DescribeImagePriceResult.cc +++ /dev/null @@ -1,79 +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 -#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["ImageId"].isNull()) - imageId_ = value["ImageId"].asString(); - if(!value["DiscountPrice"].isNull()) - discountPrice_ = std::stof(value["DiscountPrice"].asString()); - if(!value["OriginalPrice"].isNull()) - originalPrice_ = std::stof(value["OriginalPrice"].asString()); - if(!value["TradePrice"].isNull()) - tradePrice_ = std::stof(value["TradePrice"].asString()); - if(!value["Amount"].isNull()) - amount_ = std::stoi(value["Amount"].asString()); - -} - -float DescribeImagePriceResult::getOriginalPrice()const -{ - return originalPrice_; -} - -float DescribeImagePriceResult::getDiscountPrice()const -{ - return discountPrice_; -} - -int DescribeImagePriceResult::getAmount()const -{ - return amount_; -} - -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 deleted file mode 100644 index e9c1de08d..000000000 --- a/ehpc/src/model/DescribeImageRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("ClusterId", clusterId); -} - -std::string DescribeImageRequest::getRepository()const -{ - return repository_; -} - -void DescribeImageRequest::setRepository(const std::string& repository) -{ - repository_ = repository; - setParameter("Repository", repository); -} - -std::string DescribeImageRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeImageRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string DescribeImageRequest::getContainerType()const -{ - return containerType_; -} - -void DescribeImageRequest::setContainerType(const std::string& containerType) -{ - containerType_ = containerType; - setParameter("ContainerType", containerType); -} - -std::string DescribeImageRequest::getImageTag()const -{ - return imageTag_; -} - -void DescribeImageRequest::setImageTag(const std::string& imageTag) -{ - imageTag_ = imageTag; - setParameter("ImageTag", imageTag); -} - diff --git a/ehpc/src/model/DescribeImageResult.cc b/ehpc/src/model/DescribeImageResult.cc deleted file mode 100644 index 337da5fb2..000000000 --- a/ehpc/src/model/DescribeImageResult.cc +++ /dev/null @@ -1,64 +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 -#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["System"].isNull()) - imageInfo_.system = imageInfoNode["System"].asString(); - if(!imageInfoNode["Type"].isNull()) - imageInfo_.type = imageInfoNode["Type"].asString(); - if(!imageInfoNode["Status"].isNull()) - imageInfo_.status = imageInfoNode["Status"].asString(); - if(!imageInfoNode["ImageId"].isNull()) - imageInfo_.imageId = imageInfoNode["ImageId"].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(); - -} - -DescribeImageResult::ImageInfo DescribeImageResult::getImageInfo()const -{ - return imageInfo_; -} - diff --git a/ehpc/src/model/DescribeJobRequest.cc b/ehpc/src/model/DescribeJobRequest.cc deleted file mode 100644 index 3e5e4f02f..000000000 --- a/ehpc/src/model/DescribeJobRequest.cc +++ /dev/null @@ -1,62 +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::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("ClusterId", clusterId); -} - -std::string DescribeJobRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string DescribeJobRequest::getJobId()const -{ - return jobId_; -} - -void DescribeJobRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); -} - diff --git a/ehpc/src/model/DescribeJobResult.cc b/ehpc/src/model/DescribeJobResult.cc deleted file mode 100644 index 1ec34953e..000000000 --- a/ehpc/src/model/DescribeJobResult.cc +++ /dev/null @@ -1,52 +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 -#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 deleted file mode 100644 index ff545ee8c..000000000 --- a/ehpc/src/model/DescribeNFSClientStatusRequest.cc +++ /dev/null @@ -1,51 +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::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("AccessKeyId", accessKeyId); -} - -std::string DescribeNFSClientStatusRequest::getInstanceId()const -{ - return instanceId_; -} - -void DescribeNFSClientStatusRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ehpc/src/model/DescribeNFSClientStatusResult.cc b/ehpc/src/model/DescribeNFSClientStatusResult.cc deleted file mode 100644 index 3b5ea4542..000000000 --- a/ehpc/src/model/DescribeNFSClientStatusResult.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 -#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["InvokeRecordStatus"].isNull()) - result_.invokeRecordStatus = resultNode["InvokeRecordStatus"].asString(); - if(!resultNode["ExitCode"].isNull()) - result_.exitCode = std::stoi(resultNode["ExitCode"].asString()); - if(!resultNode["Output"].isNull()) - result_.output = resultNode["Output"].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 deleted file mode 100644 index bbd3c1087..000000000 --- a/ehpc/src/model/DescribePriceRequest.cc +++ /dev/null @@ -1,97 +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::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 = "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); - 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("AccessKeyId", accessKeyId); -} - -std::string DescribePriceRequest::getPriceUnit()const -{ - return priceUnit_; -} - -void DescribePriceRequest::setPriceUnit(const std::string& priceUnit) -{ - priceUnit_ = priceUnit; - setParameter("PriceUnit", priceUnit); -} - -std::string DescribePriceRequest::getChargeType()const -{ - return chargeType_; -} - -void DescribePriceRequest::setChargeType(const std::string& chargeType) -{ - chargeType_ = chargeType; - setParameter("ChargeType", chargeType); -} - -std::string DescribePriceRequest::getOrderType()const -{ - return orderType_; -} - -void DescribePriceRequest::setOrderType(const std::string& orderType) -{ - orderType_ = orderType; - setParameter("OrderType", orderType); -} - diff --git a/ehpc/src/model/DescribePriceResult.cc b/ehpc/src/model/DescribePriceResult.cc deleted file mode 100644 index c7f32da97..000000000 --- a/ehpc/src/model/DescribePriceResult.cc +++ /dev/null @@ -1,70 +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 -#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["NodeType"].isNull()) - pricesObject.nodeType = valuePricesPriceInfo["NodeType"].asString(); - if(!valuePricesPriceInfo["OriginalPrice"].isNull()) - pricesObject.originalPrice = std::stof(valuePricesPriceInfo["OriginalPrice"].asString()); - if(!valuePricesPriceInfo["TradePrice"].isNull()) - pricesObject.tradePrice = std::stof(valuePricesPriceInfo["TradePrice"].asString()); - if(!valuePricesPriceInfo["Currency"].isNull()) - pricesObject.currency = valuePricesPriceInfo["Currency"].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/EcdDeleteDesktopsRequest.cc b/ehpc/src/model/EcdDeleteDesktopsRequest.cc deleted file mode 100644 index 54baa126d..000000000 --- a/ehpc/src/model/EcdDeleteDesktopsRequest.cc +++ /dev/null @@ -1,53 +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::EcdDeleteDesktopsRequest; - -EcdDeleteDesktopsRequest::EcdDeleteDesktopsRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "EcdDeleteDesktops") -{ - setMethod(HttpRequest::Method::Get); -} - -EcdDeleteDesktopsRequest::~EcdDeleteDesktopsRequest() -{} - -std::string EcdDeleteDesktopsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void EcdDeleteDesktopsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::vector EcdDeleteDesktopsRequest::getDesktopId()const -{ - return desktopId_; -} - -void EcdDeleteDesktopsRequest::setDesktopId(const std::vector& desktopId) -{ - desktopId_ = desktopId; - for(int dep1 = 0; dep1!= desktopId.size(); dep1++) { - setParameter("DesktopId."+ std::to_string(dep1), desktopId.at(dep1)); - } -} - diff --git a/ehpc/src/model/EcdDeleteDesktopsResult.cc b/ehpc/src/model/EcdDeleteDesktopsResult.cc deleted file mode 100644 index def67ff75..000000000 --- a/ehpc/src/model/EcdDeleteDesktopsResult.cc +++ /dev/null @@ -1,44 +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 -#include - -using namespace AlibabaCloud::EHPC; -using namespace AlibabaCloud::EHPC::Model; - -EcdDeleteDesktopsResult::EcdDeleteDesktopsResult() : - ServiceResult() -{} - -EcdDeleteDesktopsResult::EcdDeleteDesktopsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -EcdDeleteDesktopsResult::~EcdDeleteDesktopsResult() -{} - -void EcdDeleteDesktopsResult::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/EditJobTemplateRequest.cc b/ehpc/src/model/EditJobTemplateRequest.cc index b8b7091e5..bc2594b63 100644 --- a/ehpc/src/model/EditJobTemplateRequest.cc +++ b/ehpc/src/model/EditJobTemplateRequest.cc @@ -1,238 +1,144 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::EditJobTemplateRequest; - -EditJobTemplateRequest::EditJobTemplateRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "EditJobTemplate") -{ - setMethod(HttpRequest::Method::Get); -} - -EditJobTemplateRequest::~EditJobTemplateRequest() -{} - -std::string EditJobTemplateRequest::getStderrRedirectPath()const -{ - return stderrRedirectPath_; + */ + +#include + +using AlibabaCloud::EHPC::Model::EditJobTemplateRequest; + +EditJobTemplateRequest::EditJobTemplateRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "EditJobTemplate") { + setMethod(HttpRequest::Method::Get); } -void EditJobTemplateRequest::setStderrRedirectPath(const std::string& stderrRedirectPath) -{ - stderrRedirectPath_ = stderrRedirectPath; - setParameter("StderrRedirectPath", stderrRedirectPath); +EditJobTemplateRequest::~EditJobTemplateRequest() {} + +std::string EditJobTemplateRequest::getStderrRedirectPath() const { + return stderrRedirectPath_; } -std::string EditJobTemplateRequest::getClockTime()const -{ - return clockTime_; +void EditJobTemplateRequest::setStderrRedirectPath(const std::string &stderrRedirectPath) { + stderrRedirectPath_ = stderrRedirectPath; + setParameter(std::string("StderrRedirectPath"), stderrRedirectPath); } -void EditJobTemplateRequest::setClockTime(const std::string& clockTime) -{ - clockTime_ = clockTime; - setParameter("ClockTime", clockTime); +std::string EditJobTemplateRequest::getCommandLine() const { + return commandLine_; } -std::string EditJobTemplateRequest::getCommandLine()const -{ - return commandLine_; +void EditJobTemplateRequest::setCommandLine(const std::string &commandLine) { + commandLine_ = commandLine; + setParameter(std::string("CommandLine"), commandLine); } -void EditJobTemplateRequest::setCommandLine(const std::string& commandLine) -{ - commandLine_ = commandLine; - setParameter("CommandLine", commandLine); +std::string EditJobTemplateRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string EditJobTemplateRequest::getAccessKeyId()const -{ - return accessKeyId_; +void EditJobTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void EditJobTemplateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string EditJobTemplateRequest::getArrayRequest() const { + return arrayRequest_; } -std::string EditJobTemplateRequest::getArrayRequest()const -{ - return arrayRequest_; +void EditJobTemplateRequest::setArrayRequest(const std::string &arrayRequest) { + arrayRequest_ = arrayRequest; + setParameter(std::string("ArrayRequest"), arrayRequest); } -void EditJobTemplateRequest::setArrayRequest(const std::string& arrayRequest) -{ - arrayRequest_ = arrayRequest; - setParameter("ArrayRequest", arrayRequest); +std::string EditJobTemplateRequest::getPackagePath() const { + return packagePath_; } -std::string EditJobTemplateRequest::getPackagePath()const -{ - return packagePath_; +void EditJobTemplateRequest::setPackagePath(const std::string &packagePath) { + packagePath_ = packagePath; + setParameter(std::string("PackagePath"), packagePath); } -void EditJobTemplateRequest::setPackagePath(const std::string& packagePath) -{ - packagePath_ = packagePath; - setParameter("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("Mem", mem); +std::string EditJobTemplateRequest::getStdoutRedirectPath() const { + return stdoutRedirectPath_; } -std::string EditJobTemplateRequest::getStdoutRedirectPath()const -{ - return stdoutRedirectPath_; +void EditJobTemplateRequest::setStdoutRedirectPath(const std::string &stdoutRedirectPath) { + stdoutRedirectPath_ = stdoutRedirectPath; + setParameter(std::string("StdoutRedirectPath"), stdoutRedirectPath); } -void EditJobTemplateRequest::setStdoutRedirectPath(const std::string& stdoutRedirectPath) -{ - stdoutRedirectPath_ = stdoutRedirectPath; - setParameter("StdoutRedirectPath", stdoutRedirectPath); +std::string EditJobTemplateRequest::getVariables() const { + return variables_; } -std::string EditJobTemplateRequest::getVariables()const -{ - return variables_; +void EditJobTemplateRequest::setVariables(const std::string &variables) { + variables_ = variables; + setParameter(std::string("Variables"), variables); } -void EditJobTemplateRequest::setVariables(const std::string& variables) -{ - variables_ = variables; - setParameter("Variables", variables); +std::string EditJobTemplateRequest::getRunasUser() const { + return runasUser_; } -std::string EditJobTemplateRequest::getRunasUser()const -{ - return runasUser_; +void EditJobTemplateRequest::setRunasUser(const std::string &runasUser) { + runasUser_ = runasUser; + setParameter(std::string("RunasUser"), runasUser); } -void EditJobTemplateRequest::setRunasUser(const std::string& runasUser) -{ - runasUser_ = runasUser; - setParameter("RunasUser", runasUser); +bool EditJobTemplateRequest::getReRunable() const { + return reRunable_; } -bool EditJobTemplateRequest::getReRunable()const -{ - return reRunable_; +void EditJobTemplateRequest::setReRunable(bool reRunable) { + reRunable_ = reRunable; + setParameter(std::string("ReRunable"), reRunable ? "true" : "false"); } -void EditJobTemplateRequest::setReRunable(bool reRunable) -{ - reRunable_ = reRunable; - setParameter("ReRunable", reRunable ? "true" : "false"); +std::string EditJobTemplateRequest::getTemplateId() const { + return templateId_; } -int EditJobTemplateRequest::getThread()const -{ - return thread_; +void EditJobTemplateRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); } -void EditJobTemplateRequest::setThread(int thread) -{ - thread_ = thread; - setParameter("Thread", std::to_string(thread)); +int EditJobTemplateRequest::getPriority() const { + return priority_; } -std::string EditJobTemplateRequest::getTemplateId()const -{ - return templateId_; +void EditJobTemplateRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void EditJobTemplateRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); +std::string EditJobTemplateRequest::getName() const { + return name_; } -int EditJobTemplateRequest::getPriority()const -{ - return priority_; -} - -void EditJobTemplateRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); -} - -int EditJobTemplateRequest::getGpu()const -{ - return gpu_; -} - -void EditJobTemplateRequest::setGpu(int gpu) -{ - gpu_ = gpu; - setParameter("Gpu", std::to_string(gpu)); -} - -int EditJobTemplateRequest::getNode()const -{ - return node_; -} - -void EditJobTemplateRequest::setNode(int node) -{ - node_ = node; - setParameter("Node", std::to_string(node)); -} - -int EditJobTemplateRequest::getTask()const -{ - return task_; -} - -void EditJobTemplateRequest::setTask(int task) -{ - task_ = task; - setParameter("Task", std::to_string(task)); -} - -std::string EditJobTemplateRequest::getName()const -{ - return name_; -} - -void EditJobTemplateRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - -std::string EditJobTemplateRequest::getQueue()const -{ - return queue_; -} - -void EditJobTemplateRequest::setQueue(const std::string& queue) -{ - queue_ = queue; - setParameter("Queue", queue); +void EditJobTemplateRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ehpc/src/model/GetAccountingReportRequest.cc b/ehpc/src/model/GetAccountingReportRequest.cc deleted file mode 100644 index c787d8bd1..000000000 --- a/ehpc/src/model/GetAccountingReportRequest.cc +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -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("ReportType", reportType); -} - -int GetAccountingReportRequest::getEndTime()const -{ - return endTime_; -} - -void GetAccountingReportRequest::setEndTime(int endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); -} - -std::string GetAccountingReportRequest::getFilterValue()const -{ - return filterValue_; -} - -void GetAccountingReportRequest::setFilterValue(const std::string& filterValue) -{ - filterValue_ = filterValue; - setParameter("FilterValue", filterValue); -} - -std::string GetAccountingReportRequest::getDim()const -{ - return dim_; -} - -void GetAccountingReportRequest::setDim(const std::string& dim) -{ - dim_ = dim; - setParameter("Dim", dim); -} - -std::string GetAccountingReportRequest::getClusterId()const -{ - return clusterId_; -} - -void GetAccountingReportRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -int GetAccountingReportRequest::getStartTime()const -{ - return startTime_; -} - -void GetAccountingReportRequest::setStartTime(int startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); -} - -int GetAccountingReportRequest::getPageNumber()const -{ - return pageNumber_; -} - -void GetAccountingReportRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string GetAccountingReportRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetAccountingReportRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string GetAccountingReportRequest::getJobId()const -{ - return jobId_; -} - -void GetAccountingReportRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); -} - -int GetAccountingReportRequest::getPageSize()const -{ - return pageSize_; -} - -void GetAccountingReportRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ehpc/src/model/GetAccountingReportResult.cc b/ehpc/src/model/GetAccountingReportResult.cc deleted file mode 100644 index 4b62dfb18..000000000 --- a/ehpc/src/model/GetAccountingReportResult.cc +++ /dev/null @@ -1,87 +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 -#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["Metrics"].isNull()) - metrics_ = value["Metrics"].asString(); - if(!value["TotalCoreTime"].isNull()) - totalCoreTime_ = std::stoi(value["TotalCoreTime"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].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 3154e169f..b1243b983 100644 --- a/ehpc/src/model/GetAutoScaleConfigRequest.cc +++ b/ehpc/src/model/GetAutoScaleConfigRequest.cc @@ -1,51 +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::GetAutoScaleConfigRequest; - -GetAutoScaleConfigRequest::GetAutoScaleConfigRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "GetAutoScaleConfig") -{ - setMethod(HttpRequest::Method::Get); -} - -GetAutoScaleConfigRequest::~GetAutoScaleConfigRequest() -{} - -std::string GetAutoScaleConfigRequest::getClusterId()const -{ - return clusterId_; + */ + +#include + +using AlibabaCloud::EHPC::Model::GetAutoScaleConfigRequest; + +GetAutoScaleConfigRequest::GetAutoScaleConfigRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "GetAutoScaleConfig") { + setMethod(HttpRequest::Method::Get); } -void GetAutoScaleConfigRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +GetAutoScaleConfigRequest::~GetAutoScaleConfigRequest() {} + +std::string GetAutoScaleConfigRequest::getClusterId() const { + return clusterId_; } -std::string GetAutoScaleConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetAutoScaleConfigRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void GetAutoScaleConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetAutoScaleConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetAutoScaleConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/ehpc/src/model/GetAutoScaleConfigResult.cc b/ehpc/src/model/GetAutoScaleConfigResult.cc index eeb874dcc..547ce6520 100644 --- a/ehpc/src/model/GetAutoScaleConfigResult.cc +++ b/ehpc/src/model/GetAutoScaleConfigResult.cc @@ -39,92 +39,32 @@ 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["QueueName"].isNull()) - queuesObject.queueName = valueQueuesQueueInfo["QueueName"].asString(); - if(!valueQueuesQueueInfo["ResourceGroupId"].isNull()) - queuesObject.resourceGroupId = valueQueuesQueueInfo["ResourceGroupId"].asString(); - if(!valueQueuesQueueInfo["InstanceType"].isNull()) - queuesObject.instanceType = valueQueuesQueueInfo["InstanceType"].asString(); - if(!valueQueuesQueueInfo["SpotStrategy"].isNull()) - queuesObject.spotStrategy = valueQueuesQueueInfo["SpotStrategy"].asString(); - if(!valueQueuesQueueInfo["SpotPriceLimit"].isNull()) - queuesObject.spotPriceLimit = std::stof(valueQueuesQueueInfo["SpotPriceLimit"].asString()); - if(!valueQueuesQueueInfo["EnableAutoGrow"].isNull()) - queuesObject.enableAutoGrow = valueQueuesQueueInfo["EnableAutoGrow"].asString() == "true"; - if(!valueQueuesQueueInfo["EnableAutoShrink"].isNull()) - queuesObject.enableAutoShrink = valueQueuesQueueInfo["EnableAutoShrink"].asString() == "true"; - if(!valueQueuesQueueInfo["MaxNodesInQueue"].isNull()) - queuesObject.maxNodesInQueue = std::stoi(valueQueuesQueueInfo["MaxNodesInQueue"].asString()); - if(!valueQueuesQueueInfo["MinNodesInQueue"].isNull()) - queuesObject.minNodesInQueue = std::stoi(valueQueuesQueueInfo["MinNodesInQueue"].asString()); - if(!valueQueuesQueueInfo["QueueImageId"].isNull()) - queuesObject.queueImageId = valueQueuesQueueInfo["QueueImageId"].asString(); - if(!valueQueuesQueueInfo["HostNamePrefix"].isNull()) - queuesObject.hostNamePrefix = valueQueuesQueueInfo["HostNamePrefix"].asString(); - if(!valueQueuesQueueInfo["HostNameSuffix"].isNull()) - queuesObject.hostNameSuffix = valueQueuesQueueInfo["HostNameSuffix"].asString(); - if(!valueQueuesQueueInfo["SystemDiskSize"].isNull()) - queuesObject.systemDiskSize = std::stoi(valueQueuesQueueInfo["SystemDiskSize"].asString()); - if(!valueQueuesQueueInfo["SystemDiskCategory"].isNull()) - queuesObject.systemDiskCategory = valueQueuesQueueInfo["SystemDiskCategory"].asString(); - if(!valueQueuesQueueInfo["SystemDiskLevel"].isNull()) - queuesObject.systemDiskLevel = valueQueuesQueueInfo["SystemDiskLevel"].asString(); - auto allInstanceTypesNode = valueQueuesQueueInfo["InstanceTypes"]["InstanceTypeInfo"]; - for (auto valueQueuesQueueInfoInstanceTypesInstanceTypeInfo : allInstanceTypesNode) - { - QueueInfo::InstanceTypeInfo instanceTypesObject; - if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["InstanceType"].isNull()) - instanceTypesObject.instanceType = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["InstanceType"].asString(); - if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["SpotStrategy"].isNull()) - instanceTypesObject.spotStrategy = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["SpotStrategy"].asString(); - if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["SpotPriceLimit"].isNull()) - instanceTypesObject.spotPriceLimit = std::stof(valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["SpotPriceLimit"].asString()); - if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["ZoneId"].isNull()) - instanceTypesObject.zoneId = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["ZoneId"].asString(); - if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["VSwitchId"].isNull()) - instanceTypesObject.vSwitchId = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["VSwitchId"].asString(); - if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["HostNamePrefix"].isNull()) - instanceTypesObject.hostNamePrefix = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["HostNamePrefix"].asString(); - queuesObject.instanceTypes.push_back(instanceTypesObject); - } - queues_.push_back(queuesObject); - } - if(!value["Uid"].isNull()) - uid_ = value["Uid"].asString(); - if(!value["ClusterId"].isNull()) - clusterId_ = value["ClusterId"].asString(); + if(!value["MaxNodesInCluster"].isNull()) + maxNodesInCluster_ = std::stoi(value["MaxNodesInCluster"].asString()); + if(!value["GrowTimeoutInMinutes"].isNull()) + growTimeoutInMinutes_ = std::stoi(value["GrowTimeoutInMinutes"].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["EnableAutoShrink"].isNull()) - enableAutoShrink_ = value["EnableAutoShrink"].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["ShrinkIdleTimes"].isNull()) shrinkIdleTimes_ = std::stoi(value["ShrinkIdleTimes"].asString()); - if(!value["GrowTimeoutInMinutes"].isNull()) - growTimeoutInMinutes_ = std::stoi(value["GrowTimeoutInMinutes"].asString()); if(!value["ExtraNodesGrowRatio"].isNull()) extraNodesGrowRatio_ = std::stoi(value["ExtraNodesGrowRatio"].asString()); if(!value["GrowRatio"].isNull()) growRatio_ = std::stoi(value["GrowRatio"].asString()); - if(!value["MaxNodesInCluster"].isNull()) - maxNodesInCluster_ = std::stoi(value["MaxNodesInCluster"].asString()); - if(!value["ExcludeNodes"].isNull()) - excludeNodes_ = value["ExcludeNodes"].asString(); - if(!value["SpotStrategy"].isNull()) - spotStrategy_ = value["SpotStrategy"].asString(); - if(!value["SpotPriceLimit"].isNull()) - spotPriceLimit_ = std::stof(value["SpotPriceLimit"].asString()); - if(!value["ImageId"].isNull()) - imageId_ = value["ImageId"].asString(); + if(!value["Uid"].isNull()) + uid_ = value["Uid"].asString(); + if(!value["ClusterId"].isNull()) + clusterId_ = value["ClusterId"].asString(); } @@ -143,19 +83,14 @@ std::string GetAutoScaleConfigResult::getClusterId()const return clusterId_; } -int GetAutoScaleConfigResult::getShrinkIdleTimes()const -{ - return shrinkIdleTimes_; -} - int GetAutoScaleConfigResult::getMaxNodesInCluster()const { return maxNodesInCluster_; } -std::string GetAutoScaleConfigResult::getClusterType()const +int GetAutoScaleConfigResult::getShrinkIdleTimes()const { - return clusterType_; + return shrinkIdleTimes_; } bool GetAutoScaleConfigResult::getEnableAutoShrink()const @@ -163,6 +98,11 @@ bool GetAutoScaleConfigResult::getEnableAutoShrink()const return enableAutoShrink_; } +std::string GetAutoScaleConfigResult::getClusterType()const +{ + return clusterType_; +} + int GetAutoScaleConfigResult::getGrowRatio()const { return growRatio_; @@ -183,33 +123,13 @@ 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 deleted file mode 100644 index ac682eeda..000000000 --- a/ehpc/src/model/GetCloudMetricLogsRequest.cc +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -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("MetricScope", metricScope); -} - -std::string GetCloudMetricLogsRequest::getClusterId()const -{ - return clusterId_; -} - -void GetCloudMetricLogsRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -int GetCloudMetricLogsRequest::getAggregationInterval()const -{ - return aggregationInterval_; -} - -void GetCloudMetricLogsRequest::setAggregationInterval(int aggregationInterval) -{ - aggregationInterval_ = aggregationInterval; - setParameter("AggregationInterval", std::to_string(aggregationInterval)); -} - -bool GetCloudMetricLogsRequest::getReverse()const -{ - return reverse_; -} - -void GetCloudMetricLogsRequest::setReverse(bool reverse) -{ - reverse_ = reverse; - setParameter("Reverse", reverse ? "true" : "false"); -} - -std::string GetCloudMetricLogsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetCloudMetricLogsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string GetCloudMetricLogsRequest::getAggregationType()const -{ - return aggregationType_; -} - -void GetCloudMetricLogsRequest::setAggregationType(const std::string& aggregationType) -{ - aggregationType_ = aggregationType; - setParameter("AggregationType", aggregationType); -} - -std::string GetCloudMetricLogsRequest::getFilter()const -{ - return filter_; -} - -void GetCloudMetricLogsRequest::setFilter(const std::string& filter) -{ - filter_ = filter; - setParameter("Filter", filter); -} - -std::string GetCloudMetricLogsRequest::getMetricCategories()const -{ - return metricCategories_; -} - -void GetCloudMetricLogsRequest::setMetricCategories(const std::string& metricCategories) -{ - metricCategories_ = metricCategories; - setParameter("MetricCategories", metricCategories); -} - -int GetCloudMetricLogsRequest::getFrom()const -{ - return from_; -} - -void GetCloudMetricLogsRequest::setFrom(int from) -{ - from_ = from; - setParameter("From", std::to_string(from)); -} - -int GetCloudMetricLogsRequest::getTo()const -{ - return to_; -} - -void GetCloudMetricLogsRequest::setTo(int to) -{ - to_ = to; - setParameter("To", std::to_string(to)); -} - diff --git a/ehpc/src/model/GetCloudMetricLogsResult.cc b/ehpc/src/model/GetCloudMetricLogsResult.cc deleted file mode 100644 index 05e16e89f..000000000 --- a/ehpc/src/model/GetCloudMetricLogsResult.cc +++ /dev/null @@ -1,67 +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 -#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["InstanceId"].isNull()) - metricLogsObject.instanceId = valueMetricLogsMetricLog["InstanceId"].asString(); - if(!valueMetricLogsMetricLog["Hostname"].isNull()) - metricLogsObject.hostname = valueMetricLogsMetricLog["Hostname"].asString(); - if(!valueMetricLogsMetricLog["NetworkInterface"].isNull()) - metricLogsObject.networkInterface = valueMetricLogsMetricLog["NetworkInterface"].asString(); - if(!valueMetricLogsMetricLog["DiskDevice"].isNull()) - metricLogsObject.diskDevice = valueMetricLogsMetricLog["DiskDevice"].asString(); - if(!valueMetricLogsMetricLog["MetricData"].isNull()) - metricLogsObject.metricData = valueMetricLogsMetricLog["MetricData"].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 deleted file mode 100644 index 7d43bf162..000000000 --- a/ehpc/src/model/GetCloudMetricProfilingRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("ClusterId", clusterId); -} - -std::string GetCloudMetricProfilingRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetCloudMetricProfilingRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string GetCloudMetricProfilingRequest::getRegionId()const -{ - return regionId_; -} - -void GetCloudMetricProfilingRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string GetCloudMetricProfilingRequest::getProfilingId()const -{ - return profilingId_; -} - -void GetCloudMetricProfilingRequest::setProfilingId(const std::string& profilingId) -{ - profilingId_ = profilingId; - setParameter("ProfilingId", profilingId); -} - diff --git a/ehpc/src/model/GetCloudMetricProfilingResult.cc b/ehpc/src/model/GetCloudMetricProfilingResult.cc deleted file mode 100644 index 7cc4b039a..000000000 --- a/ehpc/src/model/GetCloudMetricProfilingResult.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 -#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["Name"].isNull()) - svgUrlsObject.name = valueSvgUrlsSvgInfo["Name"].asString(); - if(!valueSvgUrlsSvgInfo["Type"].isNull()) - svgUrlsObject.type = valueSvgUrlsSvgInfo["Type"].asString(); - if(!valueSvgUrlsSvgInfo["Url"].isNull()) - svgUrlsObject.url = valueSvgUrlsSvgInfo["Url"].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 deleted file mode 100644 index 764e99d95..000000000 --- a/ehpc/src/model/GetClusterVolumesRequest.cc +++ /dev/null @@ -1,51 +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::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("ClusterId", clusterId); -} - -std::string GetClusterVolumesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetClusterVolumesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/GetClusterVolumesResult.cc b/ehpc/src/model/GetClusterVolumesResult.cc deleted file mode 100644 index 55158271b..000000000 --- a/ehpc/src/model/GetClusterVolumesResult.cc +++ /dev/null @@ -1,88 +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 -#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["VolumeId"].isNull()) - volumesObject.volumeId = valueVolumesVolumeInfo["VolumeId"].asString(); - if(!valueVolumesVolumeInfo["VolumeType"].isNull()) - volumesObject.volumeType = valueVolumesVolumeInfo["VolumeType"].asString(); - if(!valueVolumesVolumeInfo["VolumeProtocol"].isNull()) - volumesObject.volumeProtocol = valueVolumesVolumeInfo["VolumeProtocol"].asString(); - if(!valueVolumesVolumeInfo["VolumeMountpoint"].isNull()) - volumesObject.volumeMountpoint = valueVolumesVolumeInfo["VolumeMountpoint"].asString(); - if(!valueVolumesVolumeInfo["RemoteDirectory"].isNull()) - volumesObject.remoteDirectory = valueVolumesVolumeInfo["RemoteDirectory"].asString(); - if(!valueVolumesVolumeInfo["LocalDirectory"].isNull()) - volumesObject.localDirectory = valueVolumesVolumeInfo["LocalDirectory"].asString(); - if(!valueVolumesVolumeInfo["Location"].isNull()) - volumesObject.location = valueVolumesVolumeInfo["Location"].asString(); - if(!valueVolumesVolumeInfo["JobQueue"].isNull()) - volumesObject.jobQueue = valueVolumesVolumeInfo["JobQueue"].asString(); - if(!valueVolumesVolumeInfo["MustKeep"].isNull()) - volumesObject.mustKeep = valueVolumesVolumeInfo["MustKeep"].asString() == "true"; - 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/GetGWSConnectTicketRequest.cc b/ehpc/src/model/GetGWSConnectTicketRequest.cc deleted file mode 100644 index 91b02687e..000000000 --- a/ehpc/src/model/GetGWSConnectTicketRequest.cc +++ /dev/null @@ -1,62 +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::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("AccessKeyId", accessKeyId); -} - -std::string GetGWSConnectTicketRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetGWSConnectTicketRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string GetGWSConnectTicketRequest::getAppName()const -{ - return appName_; -} - -void GetGWSConnectTicketRequest::setAppName(const std::string& appName) -{ - appName_ = appName; - setParameter("AppName", appName); -} - diff --git a/ehpc/src/model/GetGWSConnectTicketResult.cc b/ehpc/src/model/GetGWSConnectTicketResult.cc deleted file mode 100644 index 3882d4a1c..000000000 --- a/ehpc/src/model/GetGWSConnectTicketResult.cc +++ /dev/null @@ -1,51 +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 -#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/GetHealthMonitorLogsRequest.cc b/ehpc/src/model/GetHealthMonitorLogsRequest.cc deleted file mode 100644 index 433bb109a..000000000 --- a/ehpc/src/model/GetHealthMonitorLogsRequest.cc +++ /dev/null @@ -1,95 +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::GetHealthMonitorLogsRequest; - -GetHealthMonitorLogsRequest::GetHealthMonitorLogsRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "GetHealthMonitorLogs") -{ - setMethod(HttpRequest::Method::Get); -} - -GetHealthMonitorLogsRequest::~GetHealthMonitorLogsRequest() -{} - -int GetHealthMonitorLogsRequest::getEndTime()const -{ - return endTime_; -} - -void GetHealthMonitorLogsRequest::setEndTime(int endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); -} - -std::string GetHealthMonitorLogsRequest::getClusterId()const -{ - return clusterId_; -} - -void GetHealthMonitorLogsRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -int GetHealthMonitorLogsRequest::getStartTime()const -{ - return startTime_; -} - -void GetHealthMonitorLogsRequest::setStartTime(int startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); -} - -std::string GetHealthMonitorLogsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetHealthMonitorLogsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -bool GetHealthMonitorLogsRequest::getEnableReverse()const -{ - return enableReverse_; -} - -void GetHealthMonitorLogsRequest::setEnableReverse(bool enableReverse) -{ - enableReverse_ = enableReverse; - setParameter("EnableReverse", enableReverse ? "true" : "false"); -} - -std::string GetHealthMonitorLogsRequest::getFilter()const -{ - return filter_; -} - -void GetHealthMonitorLogsRequest::setFilter(const std::string& filter) -{ - filter_ = filter; - setParameter("Filter", filter); -} - diff --git a/ehpc/src/model/GetHealthMonitorLogsResult.cc b/ehpc/src/model/GetHealthMonitorLogsResult.cc deleted file mode 100644 index bf4e5ee8a..000000000 --- a/ehpc/src/model/GetHealthMonitorLogsResult.cc +++ /dev/null @@ -1,87 +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 -#include - -using namespace AlibabaCloud::EHPC; -using namespace AlibabaCloud::EHPC::Model; - -GetHealthMonitorLogsResult::GetHealthMonitorLogsResult() : - ServiceResult() -{} - -GetHealthMonitorLogsResult::GetHealthMonitorLogsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetHealthMonitorLogsResult::~GetHealthMonitorLogsResult() -{} - -void GetHealthMonitorLogsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allLogInfoNode = value["LogInfo"]["Logs"]; - for (auto valueLogInfoLogs : allLogInfoNode) - { - Logs logInfoObject; - if(!valueLogInfoLogs["HealthId"].isNull()) - logInfoObject.healthId = valueLogInfoLogs["HealthId"].asString(); - if(!valueLogInfoLogs["HostName"].isNull()) - logInfoObject.hostName = valueLogInfoLogs["HostName"].asString(); - if(!valueLogInfoLogs["InstanceId"].isNull()) - logInfoObject.instanceId = valueLogInfoLogs["InstanceId"].asString(); - if(!valueLogInfoLogs["ItemDescription"].isNull()) - logInfoObject.itemDescription = valueLogInfoLogs["ItemDescription"].asString(); - if(!valueLogInfoLogs["ItemName"].isNull()) - logInfoObject.itemName = valueLogInfoLogs["ItemName"].asString(); - if(!valueLogInfoLogs["Level"].isNull()) - logInfoObject.level = valueLogInfoLogs["Level"].asString(); - if(!valueLogInfoLogs["SceneDescription"].isNull()) - logInfoObject.sceneDescription = valueLogInfoLogs["SceneDescription"].asString(); - if(!valueLogInfoLogs["SceneName"].isNull()) - logInfoObject.sceneName = valueLogInfoLogs["SceneName"].asString(); - if(!valueLogInfoLogs["Time"].isNull()) - logInfoObject.time = std::stoi(valueLogInfoLogs["Time"].asString()); - auto allCheckListNode = valueLogInfoLogs["CheckList"]["CheckListItem"]; - for (auto valueLogInfoLogsCheckListCheckListItem : allCheckListNode) - { - Logs::CheckListItem checkListObject; - if(!valueLogInfoLogsCheckListCheckListItem["CheckDescription"].isNull()) - checkListObject.checkDescription = valueLogInfoLogsCheckListCheckListItem["CheckDescription"].asString(); - if(!valueLogInfoLogsCheckListCheckListItem["CheckInfo"].isNull()) - checkListObject.checkInfo = valueLogInfoLogsCheckListCheckListItem["CheckInfo"].asString(); - if(!valueLogInfoLogsCheckListCheckListItem["CheckName"].isNull()) - checkListObject.checkName = valueLogInfoLogsCheckListCheckListItem["CheckName"].asString(); - if(!valueLogInfoLogsCheckListCheckListItem["CheckSolution"].isNull()) - checkListObject.checkSolution = valueLogInfoLogsCheckListCheckListItem["CheckSolution"].asString(); - logInfoObject.checkList.push_back(checkListObject); - } - logInfo_.push_back(logInfoObject); - } - -} - -std::vector GetHealthMonitorLogsResult::getLogInfo()const -{ - return logInfo_; -} - diff --git a/ehpc/src/model/GetHybridClusterConfigRequest.cc b/ehpc/src/model/GetHybridClusterConfigRequest.cc deleted file mode 100644 index e7e2cb34c..000000000 --- a/ehpc/src/model/GetHybridClusterConfigRequest.cc +++ /dev/null @@ -1,62 +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::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("ClusterId", clusterId); -} - -std::string GetHybridClusterConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetHybridClusterConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string GetHybridClusterConfigRequest::getNode()const -{ - return node_; -} - -void GetHybridClusterConfigRequest::setNode(const std::string& node) -{ - node_ = node; - setParameter("Node", node); -} - diff --git a/ehpc/src/model/GetHybridClusterConfigResult.cc b/ehpc/src/model/GetHybridClusterConfigResult.cc deleted file mode 100644 index aa6a9888c..000000000 --- a/ehpc/src/model/GetHybridClusterConfigResult.cc +++ /dev/null @@ -1,51 +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 -#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 deleted file mode 100644 index f7ccaea01..000000000 --- a/ehpc/src/model/GetIfEcsTypeSupportHtConfigRequest.cc +++ /dev/null @@ -1,51 +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::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("AccessKeyId", accessKeyId); -} - -std::string GetIfEcsTypeSupportHtConfigRequest::getInstanceType()const -{ - return instanceType_; -} - -void GetIfEcsTypeSupportHtConfigRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); -} - diff --git a/ehpc/src/model/GetIfEcsTypeSupportHtConfigResult.cc b/ehpc/src/model/GetIfEcsTypeSupportHtConfigResult.cc deleted file mode 100644 index b8ee3b122..000000000 --- a/ehpc/src/model/GetIfEcsTypeSupportHtConfigResult.cc +++ /dev/null @@ -1,65 +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 -#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["InstanceType"].isNull()) - instanceType_ = value["InstanceType"].asString(); - if(!value["SupportHtConfig"].isNull()) - supportHtConfig_ = value["SupportHtConfig"].asString() == "true"; - if(!value["DefaultHtEnabled"].isNull()) - defaultHtEnabled_ = value["DefaultHtEnabled"].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/GetSchedulerInfoRequest.cc b/ehpc/src/model/GetSchedulerInfoRequest.cc deleted file mode 100644 index b52abbdf5..000000000 --- a/ehpc/src/model/GetSchedulerInfoRequest.cc +++ /dev/null @@ -1,77 +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::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("ClusterId", clusterId); -} - -std::string GetSchedulerInfoRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetSchedulerInfoRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("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 = "Scheduler." + std::to_string(dep1 + 1); - setParameter(schedulerObjStr + ".SchedName", schedulerObj.schedName); - } -} - -std::string GetSchedulerInfoRequest::getRegionId()const -{ - return regionId_; -} - -void GetSchedulerInfoRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - diff --git a/ehpc/src/model/GetSchedulerInfoResult.cc b/ehpc/src/model/GetSchedulerInfoResult.cc deleted file mode 100644 index 0230b2d08..000000000 --- a/ehpc/src/model/GetSchedulerInfoResult.cc +++ /dev/null @@ -1,59 +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 -#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["SchedName"].isNull()) - schedInfoObject.schedName = valueSchedInfoSchedInfoItem["SchedName"].asString(); - if(!valueSchedInfoSchedInfoItem["Configuration"].isNull()) - schedInfoObject.configuration = valueSchedInfoSchedInfoItem["Configuration"].asString(); - schedInfo_.push_back(schedInfoObject); - } - -} - -std::vector GetSchedulerInfoResult::getSchedInfo()const -{ - return schedInfo_; -} - diff --git a/ehpc/src/model/GetVisualServiceStatusRequest.cc b/ehpc/src/model/GetVisualServiceStatusRequest.cc deleted file mode 100644 index 61038bde8..000000000 --- a/ehpc/src/model/GetVisualServiceStatusRequest.cc +++ /dev/null @@ -1,51 +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::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("ClusterId", clusterId); -} - -std::string GetVisualServiceStatusRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetVisualServiceStatusRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/GetVisualServiceStatusResult.cc b/ehpc/src/model/GetVisualServiceStatusResult.cc deleted file mode 100644 index cb891316b..000000000 --- a/ehpc/src/model/GetVisualServiceStatusResult.cc +++ /dev/null @@ -1,51 +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 -#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/GetWorkbenchTokenRequest.cc b/ehpc/src/model/GetWorkbenchTokenRequest.cc deleted file mode 100644 index 34103d09e..000000000 --- a/ehpc/src/model/GetWorkbenchTokenRequest.cc +++ /dev/null @@ -1,117 +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::GetWorkbenchTokenRequest; - -GetWorkbenchTokenRequest::GetWorkbenchTokenRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "GetWorkbenchToken") -{ - setMethod(HttpRequest::Method::Get); -} - -GetWorkbenchTokenRequest::~GetWorkbenchTokenRequest() -{} - -std::string GetWorkbenchTokenRequest::getClusterId()const -{ - return clusterId_; -} - -void GetWorkbenchTokenRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string GetWorkbenchTokenRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetWorkbenchTokenRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string GetWorkbenchTokenRequest::getUserPassword()const -{ - return userPassword_; -} - -void GetWorkbenchTokenRequest::setUserPassword(const std::string& userPassword) -{ - userPassword_ = userPassword; - setParameter("UserPassword", userPassword); -} - -std::string GetWorkbenchTokenRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetWorkbenchTokenRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -int GetWorkbenchTokenRequest::getPort()const -{ - return port_; -} - -void GetWorkbenchTokenRequest::setPort(int port) -{ - port_ = port; - setParameter("Port", std::to_string(port)); -} - -std::string GetWorkbenchTokenRequest::getAccountSessionTicket()const -{ - return accountSessionTicket_; -} - -void GetWorkbenchTokenRequest::setAccountSessionTicket(const std::string& accountSessionTicket) -{ - accountSessionTicket_ = accountSessionTicket; - setParameter("AccountSessionTicket", accountSessionTicket); -} - -std::string GetWorkbenchTokenRequest::getAccountUid()const -{ - return accountUid_; -} - -void GetWorkbenchTokenRequest::setAccountUid(const std::string& accountUid) -{ - accountUid_ = accountUid; - setParameter("AccountUid", accountUid); -} - -std::string GetWorkbenchTokenRequest::getUserName()const -{ - return userName_; -} - -void GetWorkbenchTokenRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); -} - diff --git a/ehpc/src/model/GetWorkbenchTokenResult.cc b/ehpc/src/model/GetWorkbenchTokenResult.cc deleted file mode 100644 index 3c7e16153..000000000 --- a/ehpc/src/model/GetWorkbenchTokenResult.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 -#include - -using namespace AlibabaCloud::EHPC; -using namespace AlibabaCloud::EHPC::Model; - -GetWorkbenchTokenResult::GetWorkbenchTokenResult() : - ServiceResult() -{} - -GetWorkbenchTokenResult::GetWorkbenchTokenResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetWorkbenchTokenResult::~GetWorkbenchTokenResult() -{} - -void GetWorkbenchTokenResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto rootNode = value["root"]; - auto instanceLoginViewNode = rootNode["instanceLoginView"]; - if(!instanceLoginViewNode["viewName"].isNull()) - root_.instanceLoginView.viewName = instanceLoginViewNode["viewName"].asString(); - if(!instanceLoginViewNode["defaultViewUrl"].isNull()) - root_.instanceLoginView.defaultViewUrl = instanceLoginViewNode["defaultViewUrl"].asString(); - if(!instanceLoginViewNode["baseViewUrl"].isNull()) - root_.instanceLoginView.baseViewUrl = instanceLoginViewNode["baseViewUrl"].asString(); - if(!instanceLoginViewNode["terminalViewUrl"].isNull()) - root_.instanceLoginView.terminalViewUrl = instanceLoginViewNode["terminalViewUrl"].asString(); - if(!instanceLoginViewNode["fileTreeViewUrl"].isNull()) - root_.instanceLoginView.fileTreeViewUrl = instanceLoginViewNode["fileTreeViewUrl"].asString(); - if(!instanceLoginViewNode["rdpViewUrl"].isNull()) - root_.instanceLoginView.rdpViewUrl = instanceLoginViewNode["rdpViewUrl"].asString(); - -} - -GetWorkbenchTokenResult::Root GetWorkbenchTokenResult::getRoot()const -{ - return root_; -} - diff --git a/ehpc/src/model/InitializeEHPCRequest.cc b/ehpc/src/model/InitializeEHPCRequest.cc deleted file mode 100644 index d627e27ef..000000000 --- a/ehpc/src/model/InitializeEHPCRequest.cc +++ /dev/null @@ -1,40 +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::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& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - diff --git a/ehpc/src/model/InitializeEHPCResult.cc b/ehpc/src/model/InitializeEHPCResult.cc deleted file mode 100644 index 9ff5a4048..000000000 --- a/ehpc/src/model/InitializeEHPCResult.cc +++ /dev/null @@ -1,44 +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 -#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/InstallSoftwareRequest.cc b/ehpc/src/model/InstallSoftwareRequest.cc deleted file mode 100644 index 5b813b4c1..000000000 --- a/ehpc/src/model/InstallSoftwareRequest.cc +++ /dev/null @@ -1,62 +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::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("ClusterId", clusterId); -} - -std::string InstallSoftwareRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void InstallSoftwareRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string InstallSoftwareRequest::getApplication()const -{ - return application_; -} - -void InstallSoftwareRequest::setApplication(const std::string& application) -{ - application_ = application; - setParameter("Application", application); -} - diff --git a/ehpc/src/model/InstallSoftwareResult.cc b/ehpc/src/model/InstallSoftwareResult.cc deleted file mode 100644 index b8f9baa16..000000000 --- a/ehpc/src/model/InstallSoftwareResult.cc +++ /dev/null @@ -1,44 +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 -#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 deleted file mode 100644 index a6b00074a..000000000 --- a/ehpc/src/model/InvokeShellCommandRequest.cc +++ /dev/null @@ -1,99 +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::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 = "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("WorkingDir", workingDir); -} - -std::string InvokeShellCommandRequest::getClusterId()const -{ - return clusterId_; -} - -void InvokeShellCommandRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string InvokeShellCommandRequest::getCommand()const -{ - return command_; -} - -void InvokeShellCommandRequest::setCommand(const std::string& command) -{ - command_ = command; - setParameter("Command", command); -} - -int InvokeShellCommandRequest::getTimeout()const -{ - return timeout_; -} - -void InvokeShellCommandRequest::setTimeout(int timeout) -{ - timeout_ = timeout; - setParameter("Timeout", std::to_string(timeout)); -} - -std::string InvokeShellCommandRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void InvokeShellCommandRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/InvokeShellCommandResult.cc b/ehpc/src/model/InvokeShellCommandResult.cc deleted file mode 100644 index 296c8b6b0..000000000 --- a/ehpc/src/model/InvokeShellCommandResult.cc +++ /dev/null @@ -1,59 +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 -#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 deleted file mode 100644 index 1363fcb47..000000000 --- a/ehpc/src/model/ListAvailableEcsTypesRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("AccessKeyId", accessKeyId); -} - -std::string ListAvailableEcsTypesRequest::getSpotStrategy()const -{ - return spotStrategy_; -} - -void ListAvailableEcsTypesRequest::setSpotStrategy(const std::string& spotStrategy) -{ - spotStrategy_ = spotStrategy; - setParameter("SpotStrategy", spotStrategy); -} - -std::string ListAvailableEcsTypesRequest::getZoneId()const -{ - return zoneId_; -} - -void ListAvailableEcsTypesRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); -} - -bool ListAvailableEcsTypesRequest::getShowSoldOut()const -{ - return showSoldOut_; -} - -void ListAvailableEcsTypesRequest::setShowSoldOut(bool showSoldOut) -{ - showSoldOut_ = showSoldOut; - setParameter("ShowSoldOut", showSoldOut ? "true" : "false"); -} - -std::string ListAvailableEcsTypesRequest::getInstanceChargeType()const -{ - return instanceChargeType_; -} - -void ListAvailableEcsTypesRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); -} - diff --git a/ehpc/src/model/ListAvailableEcsTypesResult.cc b/ehpc/src/model/ListAvailableEcsTypesResult.cc deleted file mode 100644 index 02fae2d39..000000000 --- a/ehpc/src/model/ListAvailableEcsTypesResult.cc +++ /dev/null @@ -1,97 +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 -#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["InstanceTypeFamilyId"].isNull()) - instanceTypeFamiliesObject.instanceTypeFamilyId = valueInstanceTypeFamiliesInstanceTypeFamilyInfo["InstanceTypeFamilyId"].asString(); - if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfo["Generation"].isNull()) - instanceTypeFamiliesObject.generation = valueInstanceTypeFamiliesInstanceTypeFamilyInfo["Generation"].asString(); - auto allTypesNode = valueInstanceTypeFamiliesInstanceTypeFamilyInfo["Types"]["TypesInfo"]; - for (auto valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo : allTypesNode) - { - InstanceTypeFamilyInfo::TypesInfo typesObject; - if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["CpuCoreCount"].isNull()) - typesObject.cpuCoreCount = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["CpuCoreCount"].asString()); - if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["MemorySize"].isNull()) - typesObject.memorySize = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["MemorySize"].asString()); - if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["GPUAmount"].isNull()) - typesObject.gPUAmount = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["GPUAmount"].asString()); - if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstanceBandwidthRx"].isNull()) - typesObject.instanceBandwidthRx = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstanceBandwidthRx"].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["EniQuantity"].isNull()) - typesObject.eniQuantity = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["EniQuantity"].asString()); - if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstanceBandwidthTx"].isNull()) - typesObject.instanceBandwidthTx = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstanceBandwidthTx"].asString()); - if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstanceTypeId"].isNull()) - typesObject.instanceTypeId = valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstanceTypeId"].asString(); - if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["GPUSpec"].isNull()) - typesObject.gPUSpec = valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["GPUSpec"].asString(); - if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["Status"].isNull()) - typesObject.status = valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["Status"].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 deleted file mode 100644 index 4ac19b31d..000000000 --- a/ehpc/src/model/ListCloudMetricProfilingsRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("ClusterId", clusterId); -} - -int ListCloudMetricProfilingsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListCloudMetricProfilingsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListCloudMetricProfilingsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListCloudMetricProfilingsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListCloudMetricProfilingsRequest::getRegionId()const -{ - return regionId_; -} - -void ListCloudMetricProfilingsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -int ListCloudMetricProfilingsRequest::getPageSize()const -{ - return pageSize_; -} - -void ListCloudMetricProfilingsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ehpc/src/model/ListCloudMetricProfilingsResult.cc b/ehpc/src/model/ListCloudMetricProfilingsResult.cc deleted file mode 100644 index 3de7537ea..000000000 --- a/ehpc/src/model/ListCloudMetricProfilingsResult.cc +++ /dev/null @@ -1,90 +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 -#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["InstanceId"].isNull()) - profilingsObject.instanceId = valueProfilingsProfilingInfo["InstanceId"].asString(); - if(!valueProfilingsProfilingInfo["HostName"].isNull()) - profilingsObject.hostName = valueProfilingsProfilingInfo["HostName"].asString(); - if(!valueProfilingsProfilingInfo["Pid"].isNull()) - profilingsObject.pid = std::stoi(valueProfilingsProfilingInfo["Pid"].asString()); - if(!valueProfilingsProfilingInfo["Duration"].isNull()) - profilingsObject.duration = std::stoi(valueProfilingsProfilingInfo["Duration"].asString()); - if(!valueProfilingsProfilingInfo["Freq"].isNull()) - profilingsObject.freq = std::stoi(valueProfilingsProfilingInfo["Freq"].asString()); - if(!valueProfilingsProfilingInfo["TriggerTime"].isNull()) - profilingsObject.triggerTime = valueProfilingsProfilingInfo["TriggerTime"].asString(); - profilings_.push_back(profilingsObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -int 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 d0db3dafc..a5a52057d 100644 --- a/ehpc/src/model/ListClusterLogsRequest.cc +++ b/ehpc/src/model/ListClusterLogsRequest.cc @@ -1,73 +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::ListClusterLogsRequest; - -ListClusterLogsRequest::ListClusterLogsRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "ListClusterLogs") -{ - setMethod(HttpRequest::Method::Get); -} - -ListClusterLogsRequest::~ListClusterLogsRequest() -{} - -std::string ListClusterLogsRequest::getClusterId()const -{ - return clusterId_; + */ + +#include + +using AlibabaCloud::EHPC::Model::ListClusterLogsRequest; + +ListClusterLogsRequest::ListClusterLogsRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "ListClusterLogs") { + setMethod(HttpRequest::Method::Get); } -void ListClusterLogsRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +ListClusterLogsRequest::~ListClusterLogsRequest() {} + +std::string ListClusterLogsRequest::getClusterId() const { + return clusterId_; } -int ListClusterLogsRequest::getPageNumber()const -{ - return pageNumber_; +void ListClusterLogsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void ListClusterLogsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListClusterLogsRequest::getPageNumber() const { + return pageNumber_; } -std::string ListClusterLogsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListClusterLogsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListClusterLogsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListClusterLogsRequest::getAccessKeyId() const { + return accessKeyId_; } -int ListClusterLogsRequest::getPageSize()const -{ - return pageSize_; +void ListClusterLogsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListClusterLogsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListClusterLogsRequest::getPageSize() const { + return pageSize_; +} + +void ListClusterLogsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/ehpc/src/model/ListClusterLogsResult.cc b/ehpc/src/model/ListClusterLogsResult.cc index cd9f18206..ce2dcaf56 100644 --- a/ehpc/src/model/ListClusterLogsResult.cc +++ b/ehpc/src/model/ListClusterLogsResult.cc @@ -45,20 +45,20 @@ void ListClusterLogsResult::parse(const std::string &payload) LogInfo logsObject; if(!valueLogsLogInfo["Operation"].isNull()) logsObject.operation = valueLogsLogInfo["Operation"].asString(); - if(!valueLogsLogInfo["Level"].isNull()) - logsObject.level = valueLogsLogInfo["Level"].asString(); if(!valueLogsLogInfo["Message"].isNull()) logsObject.message = valueLogsLogInfo["Message"].asString(); if(!valueLogsLogInfo["CreateTime"].isNull()) logsObject.createTime = valueLogsLogInfo["CreateTime"].asString(); + if(!valueLogsLogInfo["Level"].isNull()) + logsObject.level = valueLogsLogInfo["Level"].asString(); logs_.push_back(logsObject); } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); if(!value["ClusterId"].isNull()) clusterId_ = value["ClusterId"].asString(); diff --git a/ehpc/src/model/ListClustersMetaRequest.cc b/ehpc/src/model/ListClustersMetaRequest.cc deleted file mode 100644 index a3bf9990d..000000000 --- a/ehpc/src/model/ListClustersMetaRequest.cc +++ /dev/null @@ -1,62 +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::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("PageNumber", std::to_string(pageNumber)); -} - -std::string ListClustersMetaRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListClustersMetaRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -int ListClustersMetaRequest::getPageSize()const -{ - return pageSize_; -} - -void ListClustersMetaRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ehpc/src/model/ListClustersMetaResult.cc b/ehpc/src/model/ListClustersMetaResult.cc deleted file mode 100644 index bea1968e3..000000000 --- a/ehpc/src/model/ListClustersMetaResult.cc +++ /dev/null @@ -1,100 +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 -#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["Id"].isNull()) - clustersObject.id = valueClustersClusterInfoSimple["Id"].asString(); - if(!valueClustersClusterInfoSimple["Name"].isNull()) - clustersObject.name = valueClustersClusterInfoSimple["Name"].asString(); - if(!valueClustersClusterInfoSimple["Description"].isNull()) - clustersObject.description = valueClustersClusterInfoSimple["Description"].asString(); - if(!valueClustersClusterInfoSimple["Status"].isNull()) - clustersObject.status = valueClustersClusterInfoSimple["Status"].asString(); - if(!valueClustersClusterInfoSimple["Location"].isNull()) - clustersObject.location = valueClustersClusterInfoSimple["Location"].asString(); - if(!valueClustersClusterInfoSimple["OsTag"].isNull()) - clustersObject.osTag = valueClustersClusterInfoSimple["OsTag"].asString(); - if(!valueClustersClusterInfoSimple["ClientVersion"].isNull()) - clustersObject.clientVersion = valueClustersClusterInfoSimple["ClientVersion"].asString(); - if(!valueClustersClusterInfoSimple["AccountType"].isNull()) - clustersObject.accountType = valueClustersClusterInfoSimple["AccountType"].asString(); - if(!valueClustersClusterInfoSimple["SchedulerType"].isNull()) - clustersObject.schedulerType = valueClustersClusterInfoSimple["SchedulerType"].asString(); - if(!valueClustersClusterInfoSimple["VpcId"].isNull()) - clustersObject.vpcId = valueClustersClusterInfoSimple["VpcId"].asString(); - if(!valueClustersClusterInfoSimple["DeployMode"].isNull()) - clustersObject.deployMode = valueClustersClusterInfoSimple["DeployMode"].asString(); - if(!valueClustersClusterInfoSimple["IsComputeEss"].isNull()) - clustersObject.isComputeEss = valueClustersClusterInfoSimple["IsComputeEss"].asString() == "true"; - clusters_.push_back(clustersObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -int 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 5f81b4bf7..78c60b95e 100644 --- a/ehpc/src/model/ListClustersRequest.cc +++ b/ehpc/src/model/ListClustersRequest.cc @@ -1,62 +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::ListClustersRequest; - -ListClustersRequest::ListClustersRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "ListClusters") -{ - setMethod(HttpRequest::Method::Get); -} - -ListClustersRequest::~ListClustersRequest() -{} - -int ListClustersRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::EHPC::Model::ListClustersRequest; + +ListClustersRequest::ListClustersRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "ListClusters") { + setMethod(HttpRequest::Method::Get); } -void ListClustersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListClustersRequest::~ListClustersRequest() {} + +int ListClustersRequest::getPageNumber() const { + return pageNumber_; } -std::string ListClustersRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListClustersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListClustersRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListClustersRequest::getAccessKeyId() const { + return accessKeyId_; } -int ListClustersRequest::getPageSize()const -{ - return pageSize_; +void ListClustersRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListClustersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListClustersRequest::getPageSize() const { + return pageSize_; +} + +void ListClustersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/ehpc/src/model/ListClustersResult.cc b/ehpc/src/model/ListClustersResult.cc index fdc9fb888..4a2078fd3 100644 --- a/ehpc/src/model/ListClustersResult.cc +++ b/ehpc/src/model/ListClustersResult.cc @@ -43,106 +43,72 @@ void ListClustersResult::parse(const std::string &payload) for (auto valueClustersClusterInfoSimple : allClustersNode) { ClusterInfoSimple clustersObject; - if(!valueClustersClusterInfoSimple["Id"].isNull()) - clustersObject.id = valueClustersClusterInfoSimple["Id"].asString(); - if(!valueClustersClusterInfoSimple["RegionId"].isNull()) - clustersObject.regionId = valueClustersClusterInfoSimple["RegionId"].asString(); - if(!valueClustersClusterInfoSimple["ZoneId"].isNull()) - clustersObject.zoneId = valueClustersClusterInfoSimple["ZoneId"].asString(); - if(!valueClustersClusterInfoSimple["VSwitchId"].isNull()) - clustersObject.vSwitchId = valueClustersClusterInfoSimple["VSwitchId"].asString(); - if(!valueClustersClusterInfoSimple["VpcId"].isNull()) - clustersObject.vpcId = valueClustersClusterInfoSimple["VpcId"].asString(); - if(!valueClustersClusterInfoSimple["Name"].isNull()) - clustersObject.name = valueClustersClusterInfoSimple["Name"].asString(); - if(!valueClustersClusterInfoSimple["Description"].isNull()) - clustersObject.description = valueClustersClusterInfoSimple["Description"].asString(); if(!valueClustersClusterInfoSimple["Status"].isNull()) clustersObject.status = valueClustersClusterInfoSimple["Status"].asString(); - if(!valueClustersClusterInfoSimple["OsTag"].isNull()) - clustersObject.osTag = valueClustersClusterInfoSimple["OsTag"].asString(); - if(!valueClustersClusterInfoSimple["AccountType"].isNull()) - clustersObject.accountType = valueClustersClusterInfoSimple["AccountType"].asString(); if(!valueClustersClusterInfoSimple["SchedulerType"].isNull()) clustersObject.schedulerType = valueClustersClusterInfoSimple["SchedulerType"].asString(); - if(!valueClustersClusterInfoSimple["DeployMode"].isNull()) - clustersObject.deployMode = valueClustersClusterInfoSimple["DeployMode"].asString(); - if(!valueClustersClusterInfoSimple["Count"].isNull()) - clustersObject.count = std::stoi(valueClustersClusterInfoSimple["Count"].asString()); - if(!valueClustersClusterInfoSimple["InstanceType"].isNull()) - clustersObject.instanceType = valueClustersClusterInfoSimple["InstanceType"].asString(); - if(!valueClustersClusterInfoSimple["LoginNodes"].isNull()) - clustersObject.loginNodes = valueClustersClusterInfoSimple["LoginNodes"].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["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["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["Name"].isNull()) + clustersObject.name = valueClustersClusterInfoSimple["Name"].asString(); if(!valueClustersClusterInfoSimple["ImageId"].isNull()) clustersObject.imageId = valueClustersClusterInfoSimple["ImageId"].asString(); - if(!valueClustersClusterInfoSimple["Location"].isNull()) - clustersObject.location = valueClustersClusterInfoSimple["Location"].asString(); - if(!valueClustersClusterInfoSimple["EhpcVersion"].isNull()) - clustersObject.ehpcVersion = valueClustersClusterInfoSimple["EhpcVersion"].asString(); - if(!valueClustersClusterInfoSimple["NodePrefix"].isNull()) - clustersObject.nodePrefix = valueClustersClusterInfoSimple["NodePrefix"].asString(); - if(!valueClustersClusterInfoSimple["NodeSuffix"].isNull()) - clustersObject.nodeSuffix = valueClustersClusterInfoSimple["NodeSuffix"].asString(); - if(!valueClustersClusterInfoSimple["BaseOsTag"].isNull()) - clustersObject.baseOsTag = valueClustersClusterInfoSimple["BaseOsTag"].asString(); - if(!valueClustersClusterInfoSimple["InstanceChargeType"].isNull()) - clustersObject.instanceChargeType = valueClustersClusterInfoSimple["InstanceChargeType"].asString(); - if(!valueClustersClusterInfoSimple["ComputeSpotStrategy"].isNull()) - clustersObject.computeSpotStrategy = valueClustersClusterInfoSimple["ComputeSpotStrategy"].asString(); - if(!valueClustersClusterInfoSimple["ComputeSpotPriceLimit"].isNull()) - clustersObject.computeSpotPriceLimit = std::stof(valueClustersClusterInfoSimple["ComputeSpotPriceLimit"].asString()); - if(!valueClustersClusterInfoSimple["ClientVersion"].isNull()) - clustersObject.clientVersion = valueClustersClusterInfoSimple["ClientVersion"].asString(); - if(!valueClustersClusterInfoSimple["IsComputeEss"].isNull()) - clustersObject.isComputeEss = valueClustersClusterInfoSimple["IsComputeEss"].asString() == "true"; + if(!valueClustersClusterInfoSimple["Id"].isNull()) + clustersObject.id = valueClustersClusterInfoSimple["Id"].asString(); auto managersNode = value["Managers"]; + if(!managersNode["ExceptionCount"].isNull()) + clustersObject.managers.exceptionCount = std::stoi(managersNode["ExceptionCount"].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()); - if(!managersNode["OperatingCount"].isNull()) - clustersObject.managers.operatingCount = std::stoi(managersNode["OperatingCount"].asString()); - if(!managersNode["StoppedCount"].isNull()) - clustersObject.managers.stoppedCount = std::stoi(managersNode["StoppedCount"].asString()); - if(!managersNode["ExceptionCount"].isNull()) - clustersObject.managers.exceptionCount = std::stoi(managersNode["ExceptionCount"].asString()); auto computesNode = value["Computes"]; + if(!computesNode["ExceptionCount"].isNull()) + clustersObject.computes.exceptionCount = std::stoi(computesNode["ExceptionCount"].asString()); if(!computesNode["Total"].isNull()) clustersObject.computes.total = std::stoi(computesNode["Total"].asString()); if(!computesNode["NormalCount"].isNull()) clustersObject.computes.normalCount = std::stoi(computesNode["NormalCount"].asString()); - if(!computesNode["OperatingCount"].isNull()) - clustersObject.computes.operatingCount = std::stoi(computesNode["OperatingCount"].asString()); - if(!computesNode["StoppedCount"].isNull()) - clustersObject.computes.stoppedCount = std::stoi(computesNode["StoppedCount"].asString()); - if(!computesNode["ExceptionCount"].isNull()) - clustersObject.computes.exceptionCount = std::stoi(computesNode["ExceptionCount"].asString()); auto totalResourcesNode = value["TotalResources"]; + if(!totalResourcesNode["Gpu"].isNull()) + clustersObject.totalResources.gpu = std::stoi(totalResourcesNode["Gpu"].asString()); if(!totalResourcesNode["Cpu"].isNull()) clustersObject.totalResources.cpu = std::stoi(totalResourcesNode["Cpu"].asString()); if(!totalResourcesNode["Memory"].isNull()) clustersObject.totalResources.memory = std::stoi(totalResourcesNode["Memory"].asString()); - if(!totalResourcesNode["Gpu"].isNull()) - clustersObject.totalResources.gpu = std::stoi(totalResourcesNode["Gpu"].asString()); auto usedResourcesNode = value["UsedResources"]; + if(!usedResourcesNode["Gpu"].isNull()) + clustersObject.usedResources.gpu = std::stoi(usedResourcesNode["Gpu"].asString()); if(!usedResourcesNode["Cpu"].isNull()) clustersObject.usedResources.cpu = std::stoi(usedResourcesNode["Cpu"].asString()); if(!usedResourcesNode["Memory"].isNull()) clustersObject.usedResources.memory = std::stoi(usedResourcesNode["Memory"].asString()); - if(!usedResourcesNode["Gpu"].isNull()) - clustersObject.usedResources.gpu = std::stoi(usedResourcesNode["Gpu"].asString()); clusters_.push_back(clustersObject); } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ehpc/src/model/ListCommandsRequest.cc b/ehpc/src/model/ListCommandsRequest.cc deleted file mode 100644 index d6dabba5f..000000000 --- a/ehpc/src/model/ListCommandsRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("ClusterId", clusterId); -} - -std::string ListCommandsRequest::getCommandId()const -{ - return commandId_; -} - -void ListCommandsRequest::setCommandId(const std::string& commandId) -{ - commandId_ = commandId; - setParameter("CommandId", commandId); -} - -int ListCommandsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListCommandsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListCommandsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListCommandsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -int ListCommandsRequest::getPageSize()const -{ - return pageSize_; -} - -void ListCommandsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ehpc/src/model/ListCommandsResult.cc b/ehpc/src/model/ListCommandsResult.cc deleted file mode 100644 index b8e2daccb..000000000 --- a/ehpc/src/model/ListCommandsResult.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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["CommandId"].isNull()) - commandsObject.commandId = valueCommandsCommand["CommandId"].asString(); - if(!valueCommandsCommand["CommandContent"].isNull()) - commandsObject.commandContent = valueCommandsCommand["CommandContent"].asString(); - if(!valueCommandsCommand["WorkingDir"].isNull()) - commandsObject.workingDir = valueCommandsCommand["WorkingDir"].asString(); - if(!valueCommandsCommand["Timeout"].isNull()) - commandsObject.timeout = valueCommandsCommand["Timeout"].asString(); - commands_.push_back(commandsObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -int 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/ListContainerAppsRequest.cc b/ehpc/src/model/ListContainerAppsRequest.cc deleted file mode 100644 index 1d6f232f7..000000000 --- a/ehpc/src/model/ListContainerAppsRequest.cc +++ /dev/null @@ -1,62 +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::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("PageNumber", std::to_string(pageNumber)); -} - -std::string ListContainerAppsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListContainerAppsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -int ListContainerAppsRequest::getPageSize()const -{ - return pageSize_; -} - -void ListContainerAppsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ehpc/src/model/ListContainerAppsResult.cc b/ehpc/src/model/ListContainerAppsResult.cc deleted file mode 100644 index 09c72d4ae..000000000 --- a/ehpc/src/model/ListContainerAppsResult.cc +++ /dev/null @@ -1,90 +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 -#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["Id"].isNull()) - containerAppsObject.id = valueContainerAppsContainerAppsItem["Id"].asString(); - if(!valueContainerAppsContainerAppsItem["Name"].isNull()) - containerAppsObject.name = valueContainerAppsContainerAppsItem["Name"].asString(); - if(!valueContainerAppsContainerAppsItem["Description"].isNull()) - containerAppsObject.description = valueContainerAppsContainerAppsItem["Description"].asString(); - if(!valueContainerAppsContainerAppsItem["Repository"].isNull()) - containerAppsObject.repository = valueContainerAppsContainerAppsItem["Repository"].asString(); - if(!valueContainerAppsContainerAppsItem["ImageTag"].isNull()) - containerAppsObject.imageTag = valueContainerAppsContainerAppsItem["ImageTag"].asString(); - if(!valueContainerAppsContainerAppsItem["CreateTime"].isNull()) - containerAppsObject.createTime = valueContainerAppsContainerAppsItem["CreateTime"].asString(); - if(!valueContainerAppsContainerAppsItem["Type"].isNull()) - containerAppsObject.type = valueContainerAppsContainerAppsItem["Type"].asString(); - containerApps_.push_back(containerAppsObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -std::vector 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 deleted file mode 100644 index 9a362592e..000000000 --- a/ehpc/src/model/ListContainerImagesRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("ClusterId", clusterId); -} - -int ListContainerImagesRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListContainerImagesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListContainerImagesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListContainerImagesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListContainerImagesRequest::getContainerType()const -{ - return containerType_; -} - -void ListContainerImagesRequest::setContainerType(const std::string& containerType) -{ - containerType_ = containerType; - setParameter("ContainerType", containerType); -} - -int ListContainerImagesRequest::getPageSize()const -{ - return pageSize_; -} - -void ListContainerImagesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ehpc/src/model/ListContainerImagesResult.cc b/ehpc/src/model/ListContainerImagesResult.cc deleted file mode 100644 index 3ea2a32b9..000000000 --- a/ehpc/src/model/ListContainerImagesResult.cc +++ /dev/null @@ -1,97 +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 -#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["System"].isNull()) - imagesObject.system = valueImagesImagesItem["System"].asString(); - if(!valueImagesImagesItem["Type"].isNull()) - imagesObject.type = valueImagesImagesItem["Type"].asString(); - if(!valueImagesImagesItem["Status"].isNull()) - imagesObject.status = valueImagesImagesItem["Status"].asString(); - if(!valueImagesImagesItem["ImageId"].isNull()) - imagesObject.imageId = valueImagesImagesItem["ImageId"].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(); - images_.push_back(imagesObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - 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 deleted file mode 100644 index 68289d8fa..000000000 --- a/ehpc/src/model/ListCpfsFileSystemsRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("PageNumber", std::to_string(pageNumber)); -} - -std::string ListCpfsFileSystemsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListCpfsFileSystemsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -int ListCpfsFileSystemsRequest::getPageSize()const -{ - return pageSize_; -} - -void ListCpfsFileSystemsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string ListCpfsFileSystemsRequest::getFileSystemId()const -{ - return fileSystemId_; -} - -void ListCpfsFileSystemsRequest::setFileSystemId(const std::string& fileSystemId) -{ - fileSystemId_ = fileSystemId; - setParameter("FileSystemId", fileSystemId); -} - diff --git a/ehpc/src/model/ListCpfsFileSystemsResult.cc b/ehpc/src/model/ListCpfsFileSystemsResult.cc deleted file mode 100644 index 24ab3110e..000000000 --- a/ehpc/src/model/ListCpfsFileSystemsResult.cc +++ /dev/null @@ -1,106 +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 -#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["RegionId"].isNull()) - fileSystemListObject.regionId = valueFileSystemListFileSystems["RegionId"].asString(); - if(!valueFileSystemListFileSystems["ZoneId"].isNull()) - fileSystemListObject.zoneId = valueFileSystemListFileSystems["ZoneId"].asString(); - if(!valueFileSystemListFileSystems["FileSystemId"].isNull()) - fileSystemListObject.fileSystemId = valueFileSystemListFileSystems["FileSystemId"].asString(); - if(!valueFileSystemListFileSystems["CreateTime"].isNull()) - fileSystemListObject.createTime = valueFileSystemListFileSystems["CreateTime"].asString(); - if(!valueFileSystemListFileSystems["Destription"].isNull()) - fileSystemListObject.destription = valueFileSystemListFileSystems["Destription"].asString(); - if(!valueFileSystemListFileSystems["ProtocolType"].isNull()) - fileSystemListObject.protocolType = valueFileSystemListFileSystems["ProtocolType"].asString(); - if(!valueFileSystemListFileSystems["Capacity"].isNull()) - fileSystemListObject.capacity = valueFileSystemListFileSystems["Capacity"].asString(); - auto allMountTargetListNode = valueFileSystemListFileSystems["MountTargetList"]["MountTargets"]; - for (auto valueFileSystemListFileSystemsMountTargetListMountTargets : allMountTargetListNode) - { - FileSystems::MountTargets mountTargetListObject; - if(!valueFileSystemListFileSystemsMountTargetListMountTargets["MountTargetDomain"].isNull()) - mountTargetListObject.mountTargetDomain = valueFileSystemListFileSystemsMountTargetListMountTargets["MountTargetDomain"].asString(); - if(!valueFileSystemListFileSystemsMountTargetListMountTargets["Status"].isNull()) - mountTargetListObject.status = valueFileSystemListFileSystemsMountTargetListMountTargets["Status"].asString(); - if(!valueFileSystemListFileSystemsMountTargetListMountTargets["NetworkType"].isNull()) - mountTargetListObject.networkType = valueFileSystemListFileSystemsMountTargetListMountTargets["NetworkType"].asString(); - if(!valueFileSystemListFileSystemsMountTargetListMountTargets["VswId"].isNull()) - mountTargetListObject.vswId = valueFileSystemListFileSystemsMountTargetListMountTargets["VswId"].asString(); - if(!valueFileSystemListFileSystemsMountTargetListMountTargets["VpcId"].isNull()) - mountTargetListObject.vpcId = valueFileSystemListFileSystemsMountTargetListMountTargets["VpcId"].asString(); - fileSystemListObject.mountTargetList.push_back(mountTargetListObject); - } - fileSystemList_.push_back(fileSystemListObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -int 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 c7822567c..e2704cfe8 100644 --- a/ehpc/src/model/ListCurrentClientVersionRequest.cc +++ b/ehpc/src/model/ListCurrentClientVersionRequest.cc @@ -1,40 +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::ListCurrentClientVersionRequest; - -ListCurrentClientVersionRequest::ListCurrentClientVersionRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "ListCurrentClientVersion") -{ - setMethod(HttpRequest::Method::Get); -} - -ListCurrentClientVersionRequest::~ListCurrentClientVersionRequest() -{} - -std::string ListCurrentClientVersionRequest::getAccessKeyId()const -{ - return accessKeyId_; + */ + +#include + +using AlibabaCloud::EHPC::Model::ListCurrentClientVersionRequest; + +ListCurrentClientVersionRequest::ListCurrentClientVersionRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "ListCurrentClientVersion") { + setMethod(HttpRequest::Method::Get); } -void ListCurrentClientVersionRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +ListCurrentClientVersionRequest::~ListCurrentClientVersionRequest() {} + +std::string ListCurrentClientVersionRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListCurrentClientVersionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/ehpc/src/model/ListCustomImagesRequest.cc b/ehpc/src/model/ListCustomImagesRequest.cc index 75dfc3e13..912fa108b 100644 --- a/ehpc/src/model/ListCustomImagesRequest.cc +++ b/ehpc/src/model/ListCustomImagesRequest.cc @@ -1,84 +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::ListCustomImagesRequest; - -ListCustomImagesRequest::ListCustomImagesRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "ListCustomImages") -{ - setMethod(HttpRequest::Method::Get); -} - -ListCustomImagesRequest::~ListCustomImagesRequest() -{} - -std::string ListCustomImagesRequest::getClusterId()const -{ - return clusterId_; + */ + +#include + +using AlibabaCloud::EHPC::Model::ListCustomImagesRequest; + +ListCustomImagesRequest::ListCustomImagesRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "ListCustomImages") { + setMethod(HttpRequest::Method::Get); } -void ListCustomImagesRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +ListCustomImagesRequest::~ListCustomImagesRequest() {} + +std::string ListCustomImagesRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ListCustomImagesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListCustomImagesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListCustomImagesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListCustomImagesRequest::getImageOwnerAlias() const { + return imageOwnerAlias_; } -std::string ListCustomImagesRequest::getImageOwnerAlias()const -{ - return imageOwnerAlias_; +void ListCustomImagesRequest::setImageOwnerAlias(const std::string &imageOwnerAlias) { + imageOwnerAlias_ = imageOwnerAlias; + setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias); } -void ListCustomImagesRequest::setImageOwnerAlias(const std::string& imageOwnerAlias) -{ - imageOwnerAlias_ = imageOwnerAlias; - setParameter("ImageOwnerAlias", imageOwnerAlias); +std::string ListCustomImagesRequest::getRegionId() const { + return regionId_; } -std::string ListCustomImagesRequest::getBaseOsTag()const -{ - return baseOsTag_; +void ListCustomImagesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListCustomImagesRequest::setBaseOsTag(const std::string& baseOsTag) -{ - baseOsTag_ = baseOsTag; - setParameter("BaseOsTag", baseOsTag); +std::string ListCustomImagesRequest::getBaseOsTag() const { + return baseOsTag_; } -std::string ListCustomImagesRequest::getInstanceType()const -{ - return instanceType_; -} - -void ListCustomImagesRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +void ListCustomImagesRequest::setBaseOsTag(const std::string &baseOsTag) { + baseOsTag_ = baseOsTag; + setParameter(std::string("BaseOsTag"), baseOsTag); } diff --git a/ehpc/src/model/ListCustomImagesResult.cc b/ehpc/src/model/ListCustomImagesResult.cc index 994dd9061..5e77f02c4 100644 --- a/ehpc/src/model/ListCustomImagesResult.cc +++ b/ehpc/src/model/ListCustomImagesResult.cc @@ -43,48 +43,23 @@ void ListCustomImagesResult::parse(const std::string &payload) for (auto valueImagesImageInfo : allImagesNode) { ImageInfo imagesObject; - if(!valueImagesImageInfo["Uid"].isNull()) - imagesObject.uid = valueImagesImageInfo["Uid"].asString(); - if(!valueImagesImageInfo["ImageId"].isNull()) - imagesObject.imageId = valueImagesImageInfo["ImageId"].asString(); if(!valueImagesImageInfo["ImageName"].isNull()) imagesObject.imageName = valueImagesImageInfo["ImageName"].asString(); if(!valueImagesImageInfo["ImageOwnerAlias"].isNull()) imagesObject.imageOwnerAlias = valueImagesImageInfo["ImageOwnerAlias"].asString(); if(!valueImagesImageInfo["Description"].isNull()) imagesObject.description = valueImagesImageInfo["Description"].asString(); - if(!valueImagesImageInfo["Status"].isNull()) - imagesObject.status = valueImagesImageInfo["Status"].asString(); - if(!valueImagesImageInfo["ProductCode"].isNull()) - imagesObject.productCode = valueImagesImageInfo["ProductCode"].asString(); - if(!valueImagesImageInfo["SkuCode"].isNull()) - imagesObject.skuCode = valueImagesImageInfo["SkuCode"].asString(); - if(!valueImagesImageInfo["PricingCycle"].isNull()) - imagesObject.pricingCycle = valueImagesImageInfo["PricingCycle"].asString(); - if(!valueImagesImageInfo["PostInstallScript"].isNull()) - imagesObject.postInstallScript = valueImagesImageInfo["PostInstallScript"].asString(); - if(!valueImagesImageInfo["Size"].isNull()) - imagesObject.size = std::stoi(valueImagesImageInfo["Size"].asString()); + if(!valueImagesImageInfo["ImageId"].isNull()) + imagesObject.imageId = valueImagesImageInfo["ImageId"].asString(); auto baseOsTagNode = value["BaseOsTag"]; - if(!baseOsTagNode["OsTag"].isNull()) - imagesObject.baseOsTag.osTag = baseOsTagNode["OsTag"].asString(); 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["OsTag"].isNull()) - imagesObject.osTag.osTag = osTagNode["OsTag"].asString(); - if(!osTagNode["BaseOsTag"].isNull()) - imagesObject.osTag.baseOsTag = osTagNode["BaseOsTag"].asString(); - if(!osTagNode["Platform"].isNull()) - imagesObject.osTag.platform = osTagNode["Platform"].asString(); - if(!osTagNode["Version"].isNull()) - imagesObject.osTag.version = osTagNode["Version"].asString(); - if(!osTagNode["Architecture"].isNull()) - imagesObject.osTag.architecture = osTagNode["Architecture"].asString(); images_.push_back(imagesObject); } diff --git a/ehpc/src/model/ListFileSystemWithMountTargetsRequest.cc b/ehpc/src/model/ListFileSystemWithMountTargetsRequest.cc deleted file mode 100644 index ab0883cd9..000000000 --- a/ehpc/src/model/ListFileSystemWithMountTargetsRequest.cc +++ /dev/null @@ -1,62 +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::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("PageNumber", std::to_string(pageNumber)); -} - -std::string ListFileSystemWithMountTargetsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListFileSystemWithMountTargetsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -int ListFileSystemWithMountTargetsRequest::getPageSize()const -{ - return pageSize_; -} - -void ListFileSystemWithMountTargetsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ehpc/src/model/ListFileSystemWithMountTargetsResult.cc b/ehpc/src/model/ListFileSystemWithMountTargetsResult.cc deleted file mode 100644 index 6f2085675..000000000 --- a/ehpc/src/model/ListFileSystemWithMountTargetsResult.cc +++ /dev/null @@ -1,126 +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 -#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["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["ProtocolType"].isNull()) - fileSystemListObject.protocolType = valueFileSystemListFileSystems["ProtocolType"].asString(); - if(!valueFileSystemListFileSystems["CreateTime"].isNull()) - fileSystemListObject.createTime = valueFileSystemListFileSystems["CreateTime"].asString(); - if(!valueFileSystemListFileSystems["Destription"].isNull()) - fileSystemListObject.destription = valueFileSystemListFileSystems["Destription"].asString(); - if(!valueFileSystemListFileSystems["StorageType"].isNull()) - fileSystemListObject.storageType = valueFileSystemListFileSystems["StorageType"].asString(); - if(!valueFileSystemListFileSystems["MeteredSize"].isNull()) - fileSystemListObject.meteredSize = std::stoi(valueFileSystemListFileSystems["MeteredSize"].asString()); - if(!valueFileSystemListFileSystems["Capacity"].isNull()) - fileSystemListObject.capacity = std::stoi(valueFileSystemListFileSystems["Capacity"].asString()); - if(!valueFileSystemListFileSystems["EncryptType"].isNull()) - fileSystemListObject.encryptType = std::stoi(valueFileSystemListFileSystems["EncryptType"].asString()); - if(!valueFileSystemListFileSystems["BandWidth"].isNull()) - fileSystemListObject.bandWidth = std::stoi(valueFileSystemListFileSystems["BandWidth"].asString()); - if(!valueFileSystemListFileSystems["Status"].isNull()) - fileSystemListObject.status = valueFileSystemListFileSystems["Status"].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["MountTargetDomain"].isNull()) - mountTargetListObject.mountTargetDomain = valueFileSystemListFileSystemsMountTargetListMountTargets["MountTargetDomain"].asString(); - if(!valueFileSystemListFileSystemsMountTargetListMountTargets["Status"].isNull()) - mountTargetListObject.status = valueFileSystemListFileSystemsMountTargetListMountTargets["Status"].asString(); - if(!valueFileSystemListFileSystemsMountTargetListMountTargets["NetworkType"].isNull()) - mountTargetListObject.networkType = valueFileSystemListFileSystemsMountTargetListMountTargets["NetworkType"].asString(); - if(!valueFileSystemListFileSystemsMountTargetListMountTargets["VswId"].isNull()) - mountTargetListObject.vswId = valueFileSystemListFileSystemsMountTargetListMountTargets["VswId"].asString(); - if(!valueFileSystemListFileSystemsMountTargetListMountTargets["VpcId"].isNull()) - mountTargetListObject.vpcId = valueFileSystemListFileSystemsMountTargetListMountTargets["VpcId"].asString(); - if(!valueFileSystemListFileSystemsMountTargetListMountTargets["AccessGroup"].isNull()) - mountTargetListObject.accessGroup = valueFileSystemListFileSystemsMountTargetListMountTargets["AccessGroup"].asString(); - fileSystemListObject.mountTargetList.push_back(mountTargetListObject); - } - fileSystemList_.push_back(fileSystemListObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -int 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 490ad0e80..afe19d9ab 100644 --- a/ehpc/src/model/ListImagesRequest.cc +++ b/ehpc/src/model/ListImagesRequest.cc @@ -1,62 +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::ListImagesRequest; - -ListImagesRequest::ListImagesRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "ListImages") -{ - setMethod(HttpRequest::Method::Get); -} - -ListImagesRequest::~ListImagesRequest() -{} - -std::string ListImagesRequest::getAccessKeyId()const -{ - return accessKeyId_; + */ + +#include + +using AlibabaCloud::EHPC::Model::ListImagesRequest; + +ListImagesRequest::ListImagesRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "ListImages") { + setMethod(HttpRequest::Method::Get); } -void ListImagesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +ListImagesRequest::~ListImagesRequest() {} + +std::string ListImagesRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ListImagesRequest::getBaseOsTag()const -{ - return baseOsTag_; -} - -void ListImagesRequest::setBaseOsTag(const std::string& baseOsTag) -{ - baseOsTag_ = baseOsTag; - setParameter("BaseOsTag", baseOsTag); -} - -std::string ListImagesRequest::getInstanceType()const -{ - return instanceType_; -} - -void ListImagesRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +void ListImagesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/ehpc/src/model/ListImagesResult.cc b/ehpc/src/model/ListImagesResult.cc index 91bdb648e..282fe7a86 100644 --- a/ehpc/src/model/ListImagesResult.cc +++ b/ehpc/src/model/ListImagesResult.cc @@ -43,18 +43,14 @@ void ListImagesResult::parse(const std::string &payload) for (auto valueOsTagsOsInfo : allOsTagsNode) { OsInfo osTagsObject; - if(!valueOsTagsOsInfo["OsTag"].isNull()) - osTagsObject.osTag = valueOsTagsOsInfo["OsTag"].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["Architecture"].isNull()) osTagsObject.architecture = valueOsTagsOsInfo["Architecture"].asString(); - if(!valueOsTagsOsInfo["BaseOsTag"].isNull()) - osTagsObject.baseOsTag = valueOsTagsOsInfo["BaseOsTag"].asString(); - if(!valueOsTagsOsInfo["ImageId"].isNull()) - osTagsObject.imageId = valueOsTagsOsInfo["ImageId"].asString(); osTags_.push_back(osTagsObject); } diff --git a/ehpc/src/model/ListInstalledSoftwareRequest.cc b/ehpc/src/model/ListInstalledSoftwareRequest.cc deleted file mode 100644 index e2956939a..000000000 --- a/ehpc/src/model/ListInstalledSoftwareRequest.cc +++ /dev/null @@ -1,51 +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::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("ClusterId", clusterId); -} - -std::string ListInstalledSoftwareRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListInstalledSoftwareRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/ListInstalledSoftwareResult.cc b/ehpc/src/model/ListInstalledSoftwareResult.cc deleted file mode 100644 index 63571e716..000000000 --- a/ehpc/src/model/ListInstalledSoftwareResult.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 -#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["SoftwareName"].isNull()) - softwareListObject.softwareName = valueSoftwareListSoftwareListItem["SoftwareName"].asString(); - if(!valueSoftwareListSoftwareListItem["SoftwareVersion"].isNull()) - softwareListObject.softwareVersion = valueSoftwareListSoftwareListItem["SoftwareVersion"].asString(); - if(!valueSoftwareListSoftwareListItem["SoftwareStatus"].isNull()) - softwareListObject.softwareStatus = valueSoftwareListSoftwareListItem["SoftwareStatus"].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 deleted file mode 100644 index cdd7bdd33..000000000 --- a/ehpc/src/model/ListInvocationResultsRequest.cc +++ /dev/null @@ -1,110 +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::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 = "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("ClusterId", clusterId); -} - -std::string ListInvocationResultsRequest::getCommandId()const -{ - return commandId_; -} - -void ListInvocationResultsRequest::setCommandId(const std::string& commandId) -{ - commandId_ = commandId; - setParameter("CommandId", commandId); -} - -int ListInvocationResultsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListInvocationResultsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListInvocationResultsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListInvocationResultsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ListInvocationResultsRequest::getInvokeRecordStatus()const -{ - return invokeRecordStatus_; -} - -void ListInvocationResultsRequest::setInvokeRecordStatus(const std::string& invokeRecordStatus) -{ - invokeRecordStatus_ = invokeRecordStatus; - setParameter("InvokeRecordStatus", invokeRecordStatus); -} - -int ListInvocationResultsRequest::getPageSize()const -{ - return pageSize_; -} - -void ListInvocationResultsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ehpc/src/model/ListInvocationResultsResult.cc b/ehpc/src/model/ListInvocationResultsResult.cc deleted file mode 100644 index ad27befa5..000000000 --- a/ehpc/src/model/ListInvocationResultsResult.cc +++ /dev/null @@ -1,90 +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 -#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["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["FinishedTime"].isNull()) - invocationResultsObject.finishedTime = valueInvocationResultsInvocationResult["FinishedTime"].asString(); - if(!valueInvocationResultsInvocationResult["ExitCode"].isNull()) - invocationResultsObject.exitCode = std::stoi(valueInvocationResultsInvocationResult["ExitCode"].asString()); - if(!valueInvocationResultsInvocationResult["Message"].isNull()) - invocationResultsObject.message = valueInvocationResultsInvocationResult["Message"].asString(); - invocationResults_.push_back(invocationResultsObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -std::vector 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 deleted file mode 100644 index 49f638a89..000000000 --- a/ehpc/src/model/ListInvocationStatusRequest.cc +++ /dev/null @@ -1,62 +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::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("ClusterId", clusterId); -} - -std::string ListInvocationStatusRequest::getCommandId()const -{ - return commandId_; -} - -void ListInvocationStatusRequest::setCommandId(const std::string& commandId) -{ - commandId_ = commandId; - setParameter("CommandId", commandId); -} - -std::string ListInvocationStatusRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListInvocationStatusRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/ListInvocationStatusResult.cc b/ehpc/src/model/ListInvocationStatusResult.cc deleted file mode 100644 index 905fc4518..000000000 --- a/ehpc/src/model/ListInvocationStatusResult.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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["InstanceId"].isNull()) - invokeInstancesObject.instanceId = valueInvokeInstancesInvokeInstance["InstanceId"].asString(); - if(!valueInvokeInstancesInvokeInstance["InstanceInvokeStatus"].isNull()) - invokeInstancesObject.instanceInvokeStatus = valueInvokeInstancesInvokeInstance["InstanceInvokeStatus"].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 29ab53543..4849b9370 100644 --- a/ehpc/src/model/ListJobTemplatesRequest.cc +++ b/ehpc/src/model/ListJobTemplatesRequest.cc @@ -1,73 +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::ListJobTemplatesRequest; - -ListJobTemplatesRequest::ListJobTemplatesRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "ListJobTemplates") -{ - setMethod(HttpRequest::Method::Get); -} - -ListJobTemplatesRequest::~ListJobTemplatesRequest() -{} - -int ListJobTemplatesRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::EHPC::Model::ListJobTemplatesRequest; + +ListJobTemplatesRequest::ListJobTemplatesRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "ListJobTemplates") { + setMethod(HttpRequest::Method::Get); } -void ListJobTemplatesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListJobTemplatesRequest::~ListJobTemplatesRequest() {} + +int ListJobTemplatesRequest::getPageNumber() const { + return pageNumber_; } -std::string ListJobTemplatesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListJobTemplatesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListJobTemplatesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListJobTemplatesRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ListJobTemplatesRequest::getName()const -{ - return name_; +void ListJobTemplatesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListJobTemplatesRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ListJobTemplatesRequest::getRegionId() const { + return regionId_; } -int ListJobTemplatesRequest::getPageSize()const -{ - return pageSize_; +void ListJobTemplatesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListJobTemplatesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +std::string ListJobTemplatesRequest::getName() const { + return name_; +} + +void ListJobTemplatesRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +int ListJobTemplatesRequest::getPageSize() const { + return pageSize_; +} + +void ListJobTemplatesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/ehpc/src/model/ListJobTemplatesResult.cc b/ehpc/src/model/ListJobTemplatesResult.cc index 3fc51896f..a96d62c9b 100644 --- a/ehpc/src/model/ListJobTemplatesResult.cc +++ b/ehpc/src/model/ListJobTemplatesResult.cc @@ -43,50 +43,36 @@ void ListJobTemplatesResult::parse(const std::string &payload) for (auto valueTemplatesJobTemplates : allTemplatesNode) { JobTemplates templatesObject; - if(!valueTemplatesJobTemplates["Id"].isNull()) - templatesObject.id = valueTemplatesJobTemplates["Id"].asString(); - if(!valueTemplatesJobTemplates["Name"].isNull()) - templatesObject.name = valueTemplatesJobTemplates["Name"].asString(); - if(!valueTemplatesJobTemplates["CommandLine"].isNull()) - templatesObject.commandLine = valueTemplatesJobTemplates["CommandLine"].asString(); - if(!valueTemplatesJobTemplates["RunasUser"].isNull()) - templatesObject.runasUser = valueTemplatesJobTemplates["RunasUser"].asString(); - if(!valueTemplatesJobTemplates["Priority"].isNull()) - templatesObject.priority = std::stoi(valueTemplatesJobTemplates["Priority"].asString()); - if(!valueTemplatesJobTemplates["PackagePath"].isNull()) - templatesObject.packagePath = valueTemplatesJobTemplates["PackagePath"].asString(); if(!valueTemplatesJobTemplates["StdoutRedirectPath"].isNull()) templatesObject.stdoutRedirectPath = valueTemplatesJobTemplates["StdoutRedirectPath"].asString(); - if(!valueTemplatesJobTemplates["StderrRedirectPath"].isNull()) - templatesObject.stderrRedirectPath = valueTemplatesJobTemplates["StderrRedirectPath"].asString(); - if(!valueTemplatesJobTemplates["ReRunable"].isNull()) - templatesObject.reRunable = valueTemplatesJobTemplates["ReRunable"].asString() == "true"; - if(!valueTemplatesJobTemplates["ArrayRequest"].isNull()) - templatesObject.arrayRequest = valueTemplatesJobTemplates["ArrayRequest"].asString(); if(!valueTemplatesJobTemplates["Variables"].isNull()) templatesObject.variables = valueTemplatesJobTemplates["Variables"].asString(); - if(!valueTemplatesJobTemplates["Queue"].isNull()) - templatesObject.queue = valueTemplatesJobTemplates["Queue"].asString(); - if(!valueTemplatesJobTemplates["ClockTime"].isNull()) - templatesObject.clockTime = valueTemplatesJobTemplates["ClockTime"].asString(); - if(!valueTemplatesJobTemplates["Node"].isNull()) - templatesObject.node = std::stoi(valueTemplatesJobTemplates["Node"].asString()); - if(!valueTemplatesJobTemplates["Task"].isNull()) - templatesObject.task = std::stoi(valueTemplatesJobTemplates["Task"].asString()); - if(!valueTemplatesJobTemplates["Thread"].isNull()) - templatesObject.thread = std::stoi(valueTemplatesJobTemplates["Thread"].asString()); - if(!valueTemplatesJobTemplates["Mem"].isNull()) - templatesObject.mem = valueTemplatesJobTemplates["Mem"].asString(); - if(!valueTemplatesJobTemplates["Gpu"].isNull()) - templatesObject.gpu = std::stoi(valueTemplatesJobTemplates["Gpu"].asString()); + if(!valueTemplatesJobTemplates["CommandLine"].isNull()) + templatesObject.commandLine = valueTemplatesJobTemplates["CommandLine"].asString(); + if(!valueTemplatesJobTemplates["PackagePath"].isNull()) + templatesObject.packagePath = valueTemplatesJobTemplates["PackagePath"].asString(); + if(!valueTemplatesJobTemplates["Priority"].isNull()) + templatesObject.priority = std::stoi(valueTemplatesJobTemplates["Priority"].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(); templates_.push_back(templatesObject); } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ehpc/src/model/ListJobsRequest.cc b/ehpc/src/model/ListJobsRequest.cc index fb29c275d..5b6675659 100644 --- a/ehpc/src/model/ListJobsRequest.cc +++ b/ehpc/src/model/ListJobsRequest.cc @@ -1,106 +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::ListJobsRequest; - -ListJobsRequest::ListJobsRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "ListJobs") -{ - setMethod(HttpRequest::Method::Get); -} - -ListJobsRequest::~ListJobsRequest() -{} - -std::string ListJobsRequest::getOwner()const -{ - return owner_; + */ + +#include + +using AlibabaCloud::EHPC::Model::ListJobsRequest; + +ListJobsRequest::ListJobsRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "ListJobs") { + setMethod(HttpRequest::Method::Get); } -void ListJobsRequest::setOwner(const std::string& owner) -{ - owner_ = owner; - setParameter("Owner", owner); +ListJobsRequest::~ListJobsRequest() {} + +std::string ListJobsRequest::getOwner() const { + return owner_; } -std::string ListJobsRequest::getClusterId()const -{ - return clusterId_; +void ListJobsRequest::setOwner(const std::string &owner) { + owner_ = owner; + setParameter(std::string("Owner"), owner); } -void ListJobsRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +std::string ListJobsRequest::getClusterId() const { + return clusterId_; } -std::string ListJobsRequest::getRerunable()const -{ - return rerunable_; +void ListJobsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void ListJobsRequest::setRerunable(const std::string& rerunable) -{ - rerunable_ = rerunable; - setParameter("Rerunable", rerunable); +std::string ListJobsRequest::getRerunable() const { + return rerunable_; } -int ListJobsRequest::getPageNumber()const -{ - return pageNumber_; +void ListJobsRequest::setRerunable(const std::string &rerunable) { + rerunable_ = rerunable; + setParameter(std::string("Rerunable"), rerunable); } -void ListJobsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListJobsRequest::getPageNumber() const { + return pageNumber_; } -std::string ListJobsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListJobsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListJobsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListJobsRequest::getAccessKeyId() const { + return accessKeyId_; } -int ListJobsRequest::getPageSize()const -{ - return pageSize_; +void ListJobsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListJobsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListJobsRequest::getPageSize() const { + return pageSize_; } -std::string ListJobsRequest::getState()const -{ - return state_; +void ListJobsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListJobsRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string ListJobsRequest::getState() const { + return state_; +} + +void ListJobsRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } diff --git a/ehpc/src/model/ListJobsResult.cc b/ehpc/src/model/ListJobsResult.cc index f532fe09d..4e5591a28 100644 --- a/ehpc/src/model/ListJobsResult.cc +++ b/ehpc/src/model/ListJobsResult.cc @@ -43,34 +43,32 @@ void ListJobsResult::parse(const std::string &payload) for (auto valueJobsJobInfo : allJobsNode) { JobInfo jobsObject; - if(!valueJobsJobInfo["Id"].isNull()) - jobsObject.id = valueJobsJobInfo["Id"].asString(); - if(!valueJobsJobInfo["Name"].isNull()) - jobsObject.name = valueJobsJobInfo["Name"].asString(); if(!valueJobsJobInfo["Owner"].isNull()) jobsObject.owner = valueJobsJobInfo["Owner"].asString(); - if(!valueJobsJobInfo["NodeList"].isNull()) - jobsObject.nodeList = valueJobsJobInfo["NodeList"].asString(); - if(!valueJobsJobInfo["Priority"].isNull()) - jobsObject.priority = valueJobsJobInfo["Priority"].asString(); + if(!valueJobsJobInfo["Comment"].isNull()) + jobsObject.comment = valueJobsJobInfo["Comment"].asString(); if(!valueJobsJobInfo["State"].isNull()) jobsObject.state = valueJobsJobInfo["State"].asString(); - if(!valueJobsJobInfo["SubmitTime"].isNull()) - jobsObject.submitTime = valueJobsJobInfo["SubmitTime"].asString(); + if(!valueJobsJobInfo["Stderr"].isNull()) + jobsObject._stderr = valueJobsJobInfo["Stderr"].asString(); + if(!valueJobsJobInfo["Priority"].isNull()) + jobsObject.priority = std::stoi(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["Stdout"].isNull()) - jobsObject._stdout = valueJobsJobInfo["Stdout"].asString(); - if(!valueJobsJobInfo["Stderr"].isNull()) - jobsObject._stderr = valueJobsJobInfo["Stderr"].asString(); - if(!valueJobsJobInfo["ShellPath"].isNull()) - jobsObject.shellPath = valueJobsJobInfo["ShellPath"].asString(); - if(!valueJobsJobInfo["Comment"].isNull()) - jobsObject.comment = valueJobsJobInfo["Comment"].asString(); - if(!valueJobsJobInfo["ArrayRequest"].isNull()) - jobsObject.arrayRequest = valueJobsJobInfo["ArrayRequest"].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(); auto resourcesNode = value["Resources"]; if(!resourcesNode["Nodes"].isNull()) jobsObject.resources.nodes = std::stoi(resourcesNode["Nodes"].asString()); @@ -78,12 +76,12 @@ void ListJobsResult::parse(const std::string &payload) jobsObject.resources.cores = std::stoi(resourcesNode["Cores"].asString()); jobs_.push_back(jobsObject); } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ehpc/src/model/ListNodesByQueueRequest.cc b/ehpc/src/model/ListNodesByQueueRequest.cc deleted file mode 100644 index cd2c1ed06..000000000 --- a/ehpc/src/model/ListNodesByQueueRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("QueueName", queueName); -} - -std::string ListNodesByQueueRequest::getClusterId()const -{ - return clusterId_; -} - -void ListNodesByQueueRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -int ListNodesByQueueRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListNodesByQueueRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListNodesByQueueRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListNodesByQueueRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -int ListNodesByQueueRequest::getPageSize()const -{ - return pageSize_; -} - -void ListNodesByQueueRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/ehpc/src/model/ListNodesByQueueResult.cc b/ehpc/src/model/ListNodesByQueueResult.cc deleted file mode 100644 index 1029b2253..000000000 --- a/ehpc/src/model/ListNodesByQueueResult.cc +++ /dev/null @@ -1,132 +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 -#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["Id"].isNull()) - nodesObject.id = valueNodesNodeInfo["Id"].asString(); - if(!valueNodesNodeInfo["RegionId"].isNull()) - nodesObject.regionId = valueNodesNodeInfo["RegionId"].asString(); - if(!valueNodesNodeInfo["HostName"].isNull()) - nodesObject.hostName = valueNodesNodeInfo["HostName"].asString(); - if(!valueNodesNodeInfo["Status"].isNull()) - nodesObject.status = valueNodesNodeInfo["Status"].asString(); - if(!valueNodesNodeInfo["Version"].isNull()) - nodesObject.version = valueNodesNodeInfo["Version"].asString(); - if(!valueNodesNodeInfo["CreatedByEhpc"].isNull()) - nodesObject.createdByEhpc = valueNodesNodeInfo["CreatedByEhpc"].asString() == "true"; - if(!valueNodesNodeInfo["AddTime"].isNull()) - nodesObject.addTime = valueNodesNodeInfo["AddTime"].asString(); - if(!valueNodesNodeInfo["Expired"].isNull()) - nodesObject.expired = valueNodesNodeInfo["Expired"].asString() == "true"; - if(!valueNodesNodeInfo["ExpiredTime"].isNull()) - nodesObject.expiredTime = valueNodesNodeInfo["ExpiredTime"].asString(); - if(!valueNodesNodeInfo["SpotStrategy"].isNull()) - nodesObject.spotStrategy = valueNodesNodeInfo["SpotStrategy"].asString(); - if(!valueNodesNodeInfo["LockReason"].isNull()) - nodesObject.lockReason = valueNodesNodeInfo["LockReason"].asString(); - if(!valueNodesNodeInfo["ImageOwnerAlias"].isNull()) - nodesObject.imageOwnerAlias = valueNodesNodeInfo["ImageOwnerAlias"].asString(); - if(!valueNodesNodeInfo["ImageId"].isNull()) - nodesObject.imageId = valueNodesNodeInfo["ImageId"].asString(); - if(!valueNodesNodeInfo["Location"].isNull()) - nodesObject.location = valueNodesNodeInfo["Location"].asString(); - if(!valueNodesNodeInfo["CreateMode"].isNull()) - nodesObject.createMode = valueNodesNodeInfo["CreateMode"].asString(); - if(!valueNodesNodeInfo["VpcId"].isNull()) - nodesObject.vpcId = valueNodesNodeInfo["VpcId"].asString(); - if(!valueNodesNodeInfo["ZoneId"].isNull()) - nodesObject.zoneId = valueNodesNodeInfo["ZoneId"].asString(); - if(!valueNodesNodeInfo["VSwitchId"].isNull()) - nodesObject.vSwitchId = valueNodesNodeInfo["VSwitchId"].asString(); - if(!valueNodesNodeInfo["HtEnabled"].isNull()) - nodesObject.htEnabled = valueNodesNodeInfo["HtEnabled"].asString() == "true"; - if(!valueNodesNodeInfo["IpAddress"].isNull()) - nodesObject.ipAddress = valueNodesNodeInfo["IpAddress"].asString(); - if(!valueNodesNodeInfo["PublicIpAddress"].isNull()) - nodesObject.publicIpAddress = valueNodesNodeInfo["PublicIpAddress"].asString(); - auto totalResourcesNode = value["TotalResources"]; - if(!totalResourcesNode["Cpu"].isNull()) - nodesObject.totalResources.cpu = std::stoi(totalResourcesNode["Cpu"].asString()); - if(!totalResourcesNode["Memory"].isNull()) - nodesObject.totalResources.memory = std::stoi(totalResourcesNode["Memory"].asString()); - if(!totalResourcesNode["Gpu"].isNull()) - nodesObject.totalResources.gpu = std::stoi(totalResourcesNode["Gpu"].asString()); - auto usedResourcesNode = value["UsedResources"]; - if(!usedResourcesNode["Cpu"].isNull()) - nodesObject.usedResources.cpu = std::stoi(usedResourcesNode["Cpu"].asString()); - if(!usedResourcesNode["Memory"].isNull()) - nodesObject.usedResources.memory = std::stoi(usedResourcesNode["Memory"].asString()); - if(!usedResourcesNode["Gpu"].isNull()) - nodesObject.usedResources.gpu = std::stoi(usedResourcesNode["Gpu"].asString()); - nodes_.push_back(nodesObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -int 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 aca2bb8ae..c95481def 100644 --- a/ehpc/src/model/ListNodesNoPagingRequest.cc +++ b/ehpc/src/model/ListNodesNoPagingRequest.cc @@ -1,95 +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::ListNodesNoPagingRequest; - -ListNodesNoPagingRequest::ListNodesNoPagingRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "ListNodesNoPaging") -{ - setMethod(HttpRequest::Method::Get); -} - -ListNodesNoPagingRequest::~ListNodesNoPagingRequest() -{} - -std::string ListNodesNoPagingRequest::getRole()const -{ - return role_; + */ + +#include + +using AlibabaCloud::EHPC::Model::ListNodesNoPagingRequest; + +ListNodesNoPagingRequest::ListNodesNoPagingRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "ListNodesNoPaging") { + setMethod(HttpRequest::Method::Get); } -void ListNodesNoPagingRequest::setRole(const std::string& role) -{ - role_ = role; - setParameter("Role", role); +ListNodesNoPagingRequest::~ListNodesNoPagingRequest() {} + +std::string ListNodesNoPagingRequest::getRole() const { + return role_; } -std::string ListNodesNoPagingRequest::getClusterId()const -{ - return clusterId_; +void ListNodesNoPagingRequest::setRole(const std::string &role) { + role_ = role; + setParameter(std::string("Role"), role); } -void ListNodesNoPagingRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +std::string ListNodesNoPagingRequest::getClusterId() const { + return clusterId_; } -std::string ListNodesNoPagingRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListNodesNoPagingRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void ListNodesNoPagingRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListNodesNoPagingRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ListNodesNoPagingRequest::getSequence()const -{ - return sequence_; +void ListNodesNoPagingRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListNodesNoPagingRequest::setSequence(const std::string& sequence) -{ - sequence_ = sequence; - setParameter("Sequence", sequence); +std::string ListNodesNoPagingRequest::getHostName() const { + return hostName_; } -std::string ListNodesNoPagingRequest::getHostName()const -{ - return hostName_; +void ListNodesNoPagingRequest::setHostName(const std::string &hostName) { + hostName_ = hostName; + setParameter(std::string("HostName"), hostName); } -void ListNodesNoPagingRequest::setHostName(const std::string& hostName) -{ - hostName_ = hostName; - setParameter("HostName", hostName); +bool ListNodesNoPagingRequest::getOnlyDetached() const { + return onlyDetached_; } -bool ListNodesNoPagingRequest::getOnlyDetached()const -{ - return onlyDetached_; -} - -void ListNodesNoPagingRequest::setOnlyDetached(bool onlyDetached) -{ - onlyDetached_ = onlyDetached; - setParameter("OnlyDetached", onlyDetached ? "true" : "false"); +void ListNodesNoPagingRequest::setOnlyDetached(bool onlyDetached) { + onlyDetached_ = onlyDetached; + setParameter(std::string("OnlyDetached"), onlyDetached ? "true" : "false"); } diff --git a/ehpc/src/model/ListNodesNoPagingResult.cc b/ehpc/src/model/ListNodesNoPagingResult.cc index 99339c7f8..7aa64fd05 100644 --- a/ehpc/src/model/ListNodesNoPagingResult.cc +++ b/ehpc/src/model/ListNodesNoPagingResult.cc @@ -43,56 +43,70 @@ void ListNodesNoPagingResult::parse(const std::string &payload) for (auto valueNodesNodeInfo : allNodesNode) { NodeInfo nodesObject; - if(!valueNodesNodeInfo["Id"].isNull()) - nodesObject.id = valueNodesNodeInfo["Id"].asString(); - if(!valueNodesNodeInfo["HostName"].isNull()) - nodesObject.hostName = valueNodesNodeInfo["HostName"].asString(); if(!valueNodesNodeInfo["Status"].isNull()) nodesObject.status = valueNodesNodeInfo["Status"].asString(); - if(!valueNodesNodeInfo["Version"].isNull()) - nodesObject.version = valueNodesNodeInfo["Version"].asString(); - if(!valueNodesNodeInfo["CreatedByEhpc"].isNull()) - nodesObject.createdByEhpc = valueNodesNodeInfo["CreatedByEhpc"].asString() == "true"; - if(!valueNodesNodeInfo["AddTime"].isNull()) - nodesObject.addTime = valueNodesNodeInfo["AddTime"].asString(); if(!valueNodesNodeInfo["Expired"].isNull()) nodesObject.expired = valueNodesNodeInfo["Expired"].asString() == "true"; - if(!valueNodesNodeInfo["ExpiredTime"].isNull()) - nodesObject.expiredTime = valueNodesNodeInfo["ExpiredTime"].asString(); - if(!valueNodesNodeInfo["SpotStrategy"].isNull()) - nodesObject.spotStrategy = valueNodesNodeInfo["SpotStrategy"].asString(); - if(!valueNodesNodeInfo["LockReason"].isNull()) - nodesObject.lockReason = valueNodesNodeInfo["LockReason"].asString(); if(!valueNodesNodeInfo["ImageOwnerAlias"].isNull()) nodesObject.imageOwnerAlias = valueNodesNodeInfo["ImageOwnerAlias"].asString(); + if(!valueNodesNodeInfo["LockReason"].isNull()) + nodesObject.lockReason = valueNodesNodeInfo["LockReason"].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["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()) nodesObject.imageId = valueNodesNodeInfo["ImageId"].asString(); - if(!valueNodesNodeInfo["HtEnabled"].isNull()) - nodesObject.htEnabled = valueNodesNodeInfo["HtEnabled"].asString() == "true"; - if(!valueNodesNodeInfo["InstanceType"].isNull()) - nodesObject.instanceType = valueNodesNodeInfo["InstanceType"].asString(); + if(!valueNodesNodeInfo["Id"].isNull()) + nodesObject.id = valueNodesNodeInfo["Id"].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()); - if(!totalResourcesNode["Gpu"].isNull()) - nodesObject.totalResources.gpu = std::stoi(totalResourcesNode["Gpu"].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()); - if(!usedResourcesNode["Gpu"].isNull()) - nodesObject.usedResources.gpu = std::stoi(usedResourcesNode["Gpu"].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 1a131d46e..3ed735f04 100644 --- a/ehpc/src/model/ListNodesRequest.cc +++ b/ehpc/src/model/ListNodesRequest.cc @@ -1,161 +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::ListNodesRequest; - -ListNodesRequest::ListNodesRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "ListNodes") -{ - setMethod(HttpRequest::Method::Get); -} - -ListNodesRequest::~ListNodesRequest() -{} - -std::string ListNodesRequest::getRole()const -{ - return role_; + */ + +#include + +using AlibabaCloud::EHPC::Model::ListNodesRequest; + +ListNodesRequest::ListNodesRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "ListNodes") { + setMethod(HttpRequest::Method::Get); } -void ListNodesRequest::setRole(const std::string& role) -{ - role_ = role; - setParameter("Role", role); +ListNodesRequest::~ListNodesRequest() {} + +std::string ListNodesRequest::getRole() const { + return role_; } -int ListNodesRequest::getPageNumber()const -{ - return pageNumber_; +void ListNodesRequest::setRole(const std::string &role) { + role_ = role; + setParameter(std::string("Role"), role); } -void ListNodesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +std::string ListNodesRequest::getClusterId() const { + return clusterId_; } -std::string ListNodesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListNodesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void ListNodesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +int ListNodesRequest::getPageNumber() const { + return pageNumber_; } -std::string ListNodesRequest::getHostName()const -{ - return hostName_; +void ListNodesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListNodesRequest::setHostName(const std::string& hostName) -{ - hostName_ = hostName; - setParameter("HostName", hostName); +std::string ListNodesRequest::getAccessKeyId() const { + return accessKeyId_; } -int ListNodesRequest::getPageSize()const -{ - return pageSize_; +void ListNodesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListNodesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +std::string ListNodesRequest::getHostName() const { + return hostName_; } -std::string ListNodesRequest::getHostNamePrefix()const -{ - return hostNamePrefix_; +void ListNodesRequest::setHostName(const std::string &hostName) { + hostName_ = hostName; + setParameter(std::string("HostName"), hostName); } -void ListNodesRequest::setHostNamePrefix(const std::string& hostNamePrefix) -{ - hostNamePrefix_ = hostNamePrefix; - setParameter("HostNamePrefix", hostNamePrefix); +int ListNodesRequest::getPageSize() const { + return pageSize_; } -std::string ListNodesRequest::getClusterId()const -{ - return clusterId_; -} - -void ListNodesRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string ListNodesRequest::getHostNameSuffix()const -{ - return hostNameSuffix_; -} - -void ListNodesRequest::setHostNameSuffix(const std::string& hostNameSuffix) -{ - hostNameSuffix_ = hostNameSuffix; - setParameter("HostNameSuffix", hostNameSuffix); -} - -std::string ListNodesRequest::getFilter()const -{ - return filter_; -} - -void ListNodesRequest::setFilter(const std::string& filter) -{ - filter_ = filter; - setParameter("Filter", filter); -} - -std::string ListNodesRequest::getPrivateIpAddress()const -{ - return privateIpAddress_; -} - -void ListNodesRequest::setPrivateIpAddress(const std::string& privateIpAddress) -{ - privateIpAddress_ = privateIpAddress; - setParameter("PrivateIpAddress", privateIpAddress); -} - -std::string ListNodesRequest::getSequence()const -{ - return sequence_; -} - -void ListNodesRequest::setSequence(const std::string& sequence) -{ - sequence_ = sequence; - setParameter("Sequence", sequence); -} - -std::string ListNodesRequest::getSortBy()const -{ - return sortBy_; -} - -void ListNodesRequest::setSortBy(const std::string& sortBy) -{ - sortBy_ = sortBy; - setParameter("SortBy", sortBy); +void ListNodesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/ehpc/src/model/ListNodesResult.cc b/ehpc/src/model/ListNodesResult.cc index 9ef3e16df..df8519215 100644 --- a/ehpc/src/model/ListNodesResult.cc +++ b/ehpc/src/model/ListNodesResult.cc @@ -43,75 +43,52 @@ void ListNodesResult::parse(const std::string &payload) for (auto valueNodesNodeInfo : allNodesNode) { NodeInfo nodesObject; - if(!valueNodesNodeInfo["Id"].isNull()) - nodesObject.id = valueNodesNodeInfo["Id"].asString(); - if(!valueNodesNodeInfo["RegionId"].isNull()) - nodesObject.regionId = valueNodesNodeInfo["RegionId"].asString(); - if(!valueNodesNodeInfo["HostName"].isNull()) - nodesObject.hostName = valueNodesNodeInfo["HostName"].asString(); - if(!valueNodesNodeInfo["IpAddress"].isNull()) - nodesObject.ipAddress = valueNodesNodeInfo["IpAddress"].asString(); if(!valueNodesNodeInfo["Status"].isNull()) nodesObject.status = valueNodesNodeInfo["Status"].asString(); - if(!valueNodesNodeInfo["Version"].isNull()) - nodesObject.version = valueNodesNodeInfo["Version"].asString(); - if(!valueNodesNodeInfo["CreatedByEhpc"].isNull()) - nodesObject.createdByEhpc = valueNodesNodeInfo["CreatedByEhpc"].asString() == "true"; - if(!valueNodesNodeInfo["AddTime"].isNull()) - nodesObject.addTime = valueNodesNodeInfo["AddTime"].asString(); if(!valueNodesNodeInfo["Expired"].isNull()) nodesObject.expired = valueNodesNodeInfo["Expired"].asString() == "true"; - if(!valueNodesNodeInfo["ExpiredTime"].isNull()) - nodesObject.expiredTime = valueNodesNodeInfo["ExpiredTime"].asString(); - if(!valueNodesNodeInfo["SpotStrategy"].isNull()) - nodesObject.spotStrategy = valueNodesNodeInfo["SpotStrategy"].asString(); - if(!valueNodesNodeInfo["LockReason"].isNull()) - nodesObject.lockReason = valueNodesNodeInfo["LockReason"].asString(); if(!valueNodesNodeInfo["ImageOwnerAlias"].isNull()) nodesObject.imageOwnerAlias = valueNodesNodeInfo["ImageOwnerAlias"].asString(); + if(!valueNodesNodeInfo["LockReason"].isNull()) + nodesObject.lockReason = valueNodesNodeInfo["LockReason"].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["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()) nodesObject.imageId = valueNodesNodeInfo["ImageId"].asString(); - if(!valueNodesNodeInfo["Location"].isNull()) - nodesObject.location = valueNodesNodeInfo["Location"].asString(); - if(!valueNodesNodeInfo["CreateMode"].isNull()) - nodesObject.createMode = valueNodesNodeInfo["CreateMode"].asString(); - if(!valueNodesNodeInfo["VpcId"].isNull()) - nodesObject.vpcId = valueNodesNodeInfo["VpcId"].asString(); - if(!valueNodesNodeInfo["ZoneId"].isNull()) - nodesObject.zoneId = valueNodesNodeInfo["ZoneId"].asString(); - if(!valueNodesNodeInfo["VSwitchId"].isNull()) - nodesObject.vSwitchId = valueNodesNodeInfo["VSwitchId"].asString(); - if(!valueNodesNodeInfo["HtEnabled"].isNull()) - nodesObject.htEnabled = valueNodesNodeInfo["HtEnabled"].asString() == "true"; - if(!valueNodesNodeInfo["PublicIpAddress"].isNull()) - nodesObject.publicIpAddress = valueNodesNodeInfo["PublicIpAddress"].asString(); - if(!valueNodesNodeInfo["InstanceType"].isNull()) - nodesObject.instanceType = valueNodesNodeInfo["InstanceType"].asString(); + if(!valueNodesNodeInfo["Id"].isNull()) + nodesObject.id = valueNodesNodeInfo["Id"].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()); - if(!totalResourcesNode["Gpu"].isNull()) - nodesObject.totalResources.gpu = std::stoi(totalResourcesNode["Gpu"].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()); - if(!usedResourcesNode["Gpu"].isNull()) - nodesObject.usedResources.gpu = std::stoi(usedResourcesNode["Gpu"].asString()); - auto allRoles = value["Roles"]["Role"]; - for (auto value : allRoles) - nodesObject.roles.push_back(value.asString()); nodes_.push_back(nodesObject); } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ehpc/src/model/ListPreferredEcsTypesRequest.cc b/ehpc/src/model/ListPreferredEcsTypesRequest.cc index 36b90356a..e3fd7ad47 100644 --- a/ehpc/src/model/ListPreferredEcsTypesRequest.cc +++ b/ehpc/src/model/ListPreferredEcsTypesRequest.cc @@ -1,73 +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::ListPreferredEcsTypesRequest; - -ListPreferredEcsTypesRequest::ListPreferredEcsTypesRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "ListPreferredEcsTypes") -{ - setMethod(HttpRequest::Method::Get); -} - -ListPreferredEcsTypesRequest::~ListPreferredEcsTypesRequest() -{} - -std::string ListPreferredEcsTypesRequest::getAccessKeyId()const -{ - return accessKeyId_; + */ + +#include + +using AlibabaCloud::EHPC::Model::ListPreferredEcsTypesRequest; + +ListPreferredEcsTypesRequest::ListPreferredEcsTypesRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "ListPreferredEcsTypes") { + setMethod(HttpRequest::Method::Get); } -void ListPreferredEcsTypesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +ListPreferredEcsTypesRequest::~ListPreferredEcsTypesRequest() {} + +std::string ListPreferredEcsTypesRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ListPreferredEcsTypesRequest::getSpotStrategy()const -{ - return spotStrategy_; +void ListPreferredEcsTypesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListPreferredEcsTypesRequest::setSpotStrategy(const std::string& spotStrategy) -{ - spotStrategy_ = spotStrategy; - setParameter("SpotStrategy", spotStrategy); +std::string ListPreferredEcsTypesRequest::getSpotStrategy() const { + return spotStrategy_; } -std::string ListPreferredEcsTypesRequest::getZoneId()const -{ - return zoneId_; +void ListPreferredEcsTypesRequest::setSpotStrategy(const std::string &spotStrategy) { + spotStrategy_ = spotStrategy; + setParameter(std::string("SpotStrategy"), spotStrategy); } -void ListPreferredEcsTypesRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string ListPreferredEcsTypesRequest::getZoneId() const { + return zoneId_; } -std::string ListPreferredEcsTypesRequest::getInstanceChargeType()const -{ - return instanceChargeType_; -} - -void ListPreferredEcsTypesRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +void ListPreferredEcsTypesRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } diff --git a/ehpc/src/model/ListPreferredEcsTypesResult.cc b/ehpc/src/model/ListPreferredEcsTypesResult.cc index 42308a13f..62834bebd 100644 --- a/ehpc/src/model/ListPreferredEcsTypesResult.cc +++ b/ehpc/src/model/ListPreferredEcsTypesResult.cc @@ -43,10 +43,10 @@ void ListPreferredEcsTypesResult::parse(const std::string &payload) for (auto valueSeriesSeriesInfo : allSeriesNode) { SeriesInfo seriesObject; - if(!valueSeriesSeriesInfo["SeriesId"].isNull()) - seriesObject.seriesId = valueSeriesSeriesInfo["SeriesId"].asString(); if(!valueSeriesSeriesInfo["SeriesName"].isNull()) seriesObject.seriesName = valueSeriesSeriesInfo["SeriesName"].asString(); + if(!valueSeriesSeriesInfo["SeriesId"].isNull()) + seriesObject.seriesId = valueSeriesSeriesInfo["SeriesId"].asString(); auto rolesNode = value["Roles"]; auto allManager = rolesNode["Manager"]["InstanceTypeId"]; for (auto value : allManager) diff --git a/ehpc/src/model/ListQueuesRequest.cc b/ehpc/src/model/ListQueuesRequest.cc deleted file mode 100644 index d16a0d5a4..000000000 --- a/ehpc/src/model/ListQueuesRequest.cc +++ /dev/null @@ -1,51 +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::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("ClusterId", clusterId); -} - -std::string ListQueuesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListQueuesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/ListQueuesResult.cc b/ehpc/src/model/ListQueuesResult.cc deleted file mode 100644 index af6106188..000000000 --- a/ehpc/src/model/ListQueuesResult.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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["QueueName"].isNull()) - queuesObject.queueName = valueQueuesQueueInfo["QueueName"].asString(); - if(!valueQueuesQueueInfo["Type"].isNull()) - queuesObject.type = valueQueuesQueueInfo["Type"].asString(); - if(!valueQueuesQueueInfo["ResourceGroupId"].isNull()) - queuesObject.resourceGroupId = valueQueuesQueueInfo["ResourceGroupId"].asString(); - if(!valueQueuesQueueInfo["HostNamePrefix"].isNull()) - queuesObject.hostNamePrefix = valueQueuesQueueInfo["HostNamePrefix"].asString(); - if(!valueQueuesQueueInfo["HostNameSuffix"].isNull()) - queuesObject.hostNameSuffix = valueQueuesQueueInfo["HostNameSuffix"].asString(); - if(!valueQueuesQueueInfo["SpotStrategy"].isNull()) - queuesObject.spotStrategy = valueQueuesQueueInfo["SpotStrategy"].asString(); - if(!valueQueuesQueueInfo["ImageId"].isNull()) - queuesObject.imageId = valueQueuesQueueInfo["ImageId"].asString(); - if(!valueQueuesQueueInfo["EnableAutoGrow"].isNull()) - queuesObject.enableAutoGrow = valueQueuesQueueInfo["EnableAutoGrow"].asString() == "true"; - 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 983668693..c1dd4f4b1 100644 --- a/ehpc/src/model/ListRegionsRequest.cc +++ b/ehpc/src/model/ListRegionsRequest.cc @@ -1,40 +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::ListRegionsRequest; - -ListRegionsRequest::ListRegionsRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "ListRegions") -{ - setMethod(HttpRequest::Method::Get); -} - -ListRegionsRequest::~ListRegionsRequest() -{} - -std::string ListRegionsRequest::getAccessKeyId()const -{ - return accessKeyId_; + */ + +#include + +using AlibabaCloud::EHPC::Model::ListRegionsRequest; + +ListRegionsRequest::ListRegionsRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "ListRegions") { + setMethod(HttpRequest::Method::Get); } -void ListRegionsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +ListRegionsRequest::~ListRegionsRequest() {} + +std::string ListRegionsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListRegionsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/ehpc/src/model/ListRegionsResult.cc b/ehpc/src/model/ListRegionsResult.cc index 32e806695..902c3e13b 100644 --- a/ehpc/src/model/ListRegionsResult.cc +++ b/ehpc/src/model/ListRegionsResult.cc @@ -43,10 +43,10 @@ void ListRegionsResult::parse(const std::string &payload) for (auto valueRegionsRegionInfo : allRegionsNode) { RegionInfo regionsObject; - if(!valueRegionsRegionInfo["RegionId"].isNull()) - regionsObject.regionId = valueRegionsRegionInfo["RegionId"].asString(); if(!valueRegionsRegionInfo["LocalName"].isNull()) regionsObject.localName = valueRegionsRegionInfo["LocalName"].asString(); + if(!valueRegionsRegionInfo["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegionInfo["RegionId"].asString(); regions_.push_back(regionsObject); } diff --git a/ehpc/src/model/ListSecurityGroupsRequest.cc b/ehpc/src/model/ListSecurityGroupsRequest.cc deleted file mode 100644 index e3f3a86fe..000000000 --- a/ehpc/src/model/ListSecurityGroupsRequest.cc +++ /dev/null @@ -1,51 +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::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("ClusterId", clusterId); -} - -std::string ListSecurityGroupsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListSecurityGroupsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/ListSecurityGroupsResult.cc b/ehpc/src/model/ListSecurityGroupsResult.cc deleted file mode 100644 index 4f873f281..000000000 --- a/ehpc/src/model/ListSecurityGroupsResult.cc +++ /dev/null @@ -1,59 +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 -#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 9773baafb..066fe18a1 100644 --- a/ehpc/src/model/ListSoftwaresRequest.cc +++ b/ehpc/src/model/ListSoftwaresRequest.cc @@ -1,62 +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::ListSoftwaresRequest; - -ListSoftwaresRequest::ListSoftwaresRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "ListSoftwares") -{ - setMethod(HttpRequest::Method::Get); -} - -ListSoftwaresRequest::~ListSoftwaresRequest() -{} - -std::string ListSoftwaresRequest::getOsTag()const -{ - return osTag_; + */ + +#include + +using AlibabaCloud::EHPC::Model::ListSoftwaresRequest; + +ListSoftwaresRequest::ListSoftwaresRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "ListSoftwares") { + setMethod(HttpRequest::Method::Get); } -void ListSoftwaresRequest::setOsTag(const std::string& osTag) -{ - osTag_ = osTag; - setParameter("OsTag", osTag); +ListSoftwaresRequest::~ListSoftwaresRequest() {} + +std::string ListSoftwaresRequest::getEhpcVersion() const { + return ehpcVersion_; } -std::string ListSoftwaresRequest::getEhpcVersion()const -{ - return ehpcVersion_; +void ListSoftwaresRequest::setEhpcVersion(const std::string &ehpcVersion) { + ehpcVersion_ = ehpcVersion; + setParameter(std::string("EhpcVersion"), ehpcVersion); } -void ListSoftwaresRequest::setEhpcVersion(const std::string& ehpcVersion) -{ - ehpcVersion_ = ehpcVersion; - setParameter("EhpcVersion", ehpcVersion); +std::string ListSoftwaresRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ListSoftwaresRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListSoftwaresRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +void ListSoftwaresRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/ehpc/src/model/ListSoftwaresResult.cc b/ehpc/src/model/ListSoftwaresResult.cc index b4cc317f6..eed64b3bb 100644 --- a/ehpc/src/model/ListSoftwaresResult.cc +++ b/ehpc/src/model/ListSoftwaresResult.cc @@ -43,30 +43,30 @@ void ListSoftwaresResult::parse(const std::string &payload) for (auto valueSoftwaresSoftwareInfo : allSoftwaresNode) { SoftwareInfo softwaresObject; - if(!valueSoftwaresSoftwareInfo["EhpcVersion"].isNull()) - softwaresObject.ehpcVersion = valueSoftwaresSoftwareInfo["EhpcVersion"].asString(); - if(!valueSoftwaresSoftwareInfo["OsTag"].isNull()) - softwaresObject.osTag = valueSoftwaresSoftwareInfo["OsTag"].asString(); if(!valueSoftwaresSoftwareInfo["SchedulerType"].isNull()) softwaresObject.schedulerType = valueSoftwaresSoftwareInfo["SchedulerType"].asString(); + if(!valueSoftwaresSoftwareInfo["OsTag"].isNull()) + softwaresObject.osTag = valueSoftwaresSoftwareInfo["OsTag"].asString(); if(!valueSoftwaresSoftwareInfo["SchedulerVersion"].isNull()) softwaresObject.schedulerVersion = valueSoftwaresSoftwareInfo["SchedulerVersion"].asString(); - if(!valueSoftwaresSoftwareInfo["AccountType"].isNull()) - softwaresObject.accountType = valueSoftwaresSoftwareInfo["AccountType"].asString(); if(!valueSoftwaresSoftwareInfo["AccountVersion"].isNull()) softwaresObject.accountVersion = valueSoftwaresSoftwareInfo["AccountVersion"].asString(); + if(!valueSoftwaresSoftwareInfo["AccountType"].isNull()) + softwaresObject.accountType = valueSoftwaresSoftwareInfo["AccountType"].asString(); + if(!valueSoftwaresSoftwareInfo["EhpcVersion"].isNull()) + softwaresObject.ehpcVersion = valueSoftwaresSoftwareInfo["EhpcVersion"].asString(); auto allApplicationsNode = valueSoftwaresSoftwareInfo["Applications"]["ApplicationInfo"]; for (auto valueSoftwaresSoftwareInfoApplicationsApplicationInfo : allApplicationsNode) { SoftwareInfo::ApplicationInfo applicationsObject; + if(!valueSoftwaresSoftwareInfoApplicationsApplicationInfo["Required"].isNull()) + applicationsObject.required = valueSoftwaresSoftwareInfoApplicationsApplicationInfo["Required"].asString() == "true"; if(!valueSoftwaresSoftwareInfoApplicationsApplicationInfo["Tag"].isNull()) applicationsObject.tag = valueSoftwaresSoftwareInfoApplicationsApplicationInfo["Tag"].asString(); if(!valueSoftwaresSoftwareInfoApplicationsApplicationInfo["Name"].isNull()) applicationsObject.name = valueSoftwaresSoftwareInfoApplicationsApplicationInfo["Name"].asString(); if(!valueSoftwaresSoftwareInfoApplicationsApplicationInfo["Version"].isNull()) applicationsObject.version = valueSoftwaresSoftwareInfoApplicationsApplicationInfo["Version"].asString(); - if(!valueSoftwaresSoftwareInfoApplicationsApplicationInfo["Required"].isNull()) - applicationsObject.required = valueSoftwaresSoftwareInfoApplicationsApplicationInfo["Required"].asString() == "true"; softwaresObject.applications.push_back(applicationsObject); } softwares_.push_back(softwaresObject); diff --git a/ehpc/src/model/ListTasksRequest.cc b/ehpc/src/model/ListTasksRequest.cc deleted file mode 100644 index 856f1899e..000000000 --- a/ehpc/src/model/ListTasksRequest.cc +++ /dev/null @@ -1,95 +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::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("ClusterId", clusterId); -} - -int ListTasksRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListTasksRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListTasksRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListTasksRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -bool ListTasksRequest::getArchived()const -{ - return archived_; -} - -void ListTasksRequest::setArchived(bool archived) -{ - archived_ = archived; - setParameter("Archived", archived ? "true" : "false"); -} - -int ListTasksRequest::getPageSize()const -{ - return pageSize_; -} - -void ListTasksRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string ListTasksRequest::getTaskId()const -{ - return taskId_; -} - -void ListTasksRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); -} - diff --git a/ehpc/src/model/ListTasksResult.cc b/ehpc/src/model/ListTasksResult.cc deleted file mode 100644 index 1d9e898cd..000000000 --- a/ehpc/src/model/ListTasksResult.cc +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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["TaskId"].isNull()) - tasksObject.taskId = valueTasksTaskInfo["TaskId"].asString(); - if(!valueTasksTaskInfo["TaskType"].isNull()) - tasksObject.taskType = valueTasksTaskInfo["TaskType"].asString(); - if(!valueTasksTaskInfo["ClusterId"].isNull()) - tasksObject.clusterId = valueTasksTaskInfo["ClusterId"].asString(); - if(!valueTasksTaskInfo["Request"].isNull()) - tasksObject.request = valueTasksTaskInfo["Request"].asString(); - if(!valueTasksTaskInfo["Status"].isNull()) - tasksObject.status = valueTasksTaskInfo["Status"].asString(); - if(!valueTasksTaskInfo["CurrentStep"].isNull()) - tasksObject.currentStep = std::stoi(valueTasksTaskInfo["CurrentStep"].asString()); - if(!valueTasksTaskInfo["TotalSteps"].isNull()) - tasksObject.totalSteps = std::stoi(valueTasksTaskInfo["TotalSteps"].asString()); - if(!valueTasksTaskInfo["Result"].isNull()) - tasksObject.result = valueTasksTaskInfo["Result"].asString(); - if(!valueTasksTaskInfo["Errors"].isNull()) - tasksObject.errors = valueTasksTaskInfo["Errors"].asString(); - tasks_.push_back(tasksObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -int 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/ListUsersRequest.cc b/ehpc/src/model/ListUsersRequest.cc index 69e8cb6c1..790a4a32e 100644 --- a/ehpc/src/model/ListUsersRequest.cc +++ b/ehpc/src/model/ListUsersRequest.cc @@ -1,73 +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::ListUsersRequest; - -ListUsersRequest::ListUsersRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "ListUsers") -{ - setMethod(HttpRequest::Method::Get); -} - -ListUsersRequest::~ListUsersRequest() -{} - -std::string ListUsersRequest::getClusterId()const -{ - return clusterId_; + */ + +#include + +using AlibabaCloud::EHPC::Model::ListUsersRequest; + +ListUsersRequest::ListUsersRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "ListUsers") { + setMethod(HttpRequest::Method::Get); } -void ListUsersRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +ListUsersRequest::~ListUsersRequest() {} + +std::string ListUsersRequest::getClusterId() const { + return clusterId_; } -int ListUsersRequest::getPageNumber()const -{ - return pageNumber_; +void ListUsersRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void ListUsersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListUsersRequest::getPageNumber() const { + return pageNumber_; } -std::string ListUsersRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListUsersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListUsersRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListUsersRequest::getAccessKeyId() const { + return accessKeyId_; } -int ListUsersRequest::getPageSize()const -{ - return pageSize_; +void ListUsersRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListUsersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListUsersRequest::getPageSize() const { + return pageSize_; +} + +void ListUsersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/ehpc/src/model/ListUsersResult.cc b/ehpc/src/model/ListUsersResult.cc index 8497729d2..cb94181db 100644 --- a/ehpc/src/model/ListUsersResult.cc +++ b/ehpc/src/model/ListUsersResult.cc @@ -45,18 +45,18 @@ void ListUsersResult::parse(const std::string &payload) UserInfo usersObject; if(!valueUsersUserInfo["Name"].isNull()) usersObject.name = valueUsersUserInfo["Name"].asString(); - if(!valueUsersUserInfo["Group"].isNull()) - usersObject.group = valueUsersUserInfo["Group"].asString(); if(!valueUsersUserInfo["AddTime"].isNull()) usersObject.addTime = valueUsersUserInfo["AddTime"].asString(); + if(!valueUsersUserInfo["Group"].isNull()) + usersObject.group = valueUsersUserInfo["Group"].asString(); users_.push_back(usersObject); } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ehpc/src/model/ListVolumesRequest.cc b/ehpc/src/model/ListVolumesRequest.cc index 5ddaed206..6a161b24b 100644 --- a/ehpc/src/model/ListVolumesRequest.cc +++ b/ehpc/src/model/ListVolumesRequest.cc @@ -1,62 +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::ListVolumesRequest; - -ListVolumesRequest::ListVolumesRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "ListVolumes") -{ - setMethod(HttpRequest::Method::Get); -} - -ListVolumesRequest::~ListVolumesRequest() -{} - -int ListVolumesRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::EHPC::Model::ListVolumesRequest; + +ListVolumesRequest::ListVolumesRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "ListVolumes") { + setMethod(HttpRequest::Method::Get); } -void ListVolumesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListVolumesRequest::~ListVolumesRequest() {} + +int ListVolumesRequest::getPageNumber() const { + return pageNumber_; } -std::string ListVolumesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListVolumesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListVolumesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListVolumesRequest::getAccessKeyId() const { + return accessKeyId_; } -int ListVolumesRequest::getPageSize()const -{ - return pageSize_; +void ListVolumesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListVolumesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListVolumesRequest::getPageSize() const { + return pageSize_; +} + +void ListVolumesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/ehpc/src/model/ListVolumesResult.cc b/ehpc/src/model/ListVolumesResult.cc index 941a83434..0fb66fe84 100644 --- a/ehpc/src/model/ListVolumesResult.cc +++ b/ehpc/src/model/ListVolumesResult.cc @@ -43,54 +43,30 @@ void ListVolumesResult::parse(const std::string &payload) for (auto valueVolumesVolumeInfo : allVolumesNode) { VolumeInfo volumesObject; - if(!valueVolumesVolumeInfo["RegionId"].isNull()) - volumesObject.regionId = valueVolumesVolumeInfo["RegionId"].asString(); - if(!valueVolumesVolumeInfo["ClusterId"].isNull()) - volumesObject.clusterId = valueVolumesVolumeInfo["ClusterId"].asString(); - if(!valueVolumesVolumeInfo["ClusterName"].isNull()) - volumesObject.clusterName = valueVolumesVolumeInfo["ClusterName"].asString(); if(!valueVolumesVolumeInfo["VolumeId"].isNull()) volumesObject.volumeId = valueVolumesVolumeInfo["VolumeId"].asString(); + if(!valueVolumesVolumeInfo["ClusterName"].isNull()) + volumesObject.clusterName = valueVolumesVolumeInfo["ClusterName"].asString(); + if(!valueVolumesVolumeInfo["RemoteDirectory"].isNull()) + volumesObject.remoteDirectory = valueVolumesVolumeInfo["RemoteDirectory"].asString(); + if(!valueVolumesVolumeInfo["VolumeMountpoint"].isNull()) + volumesObject.volumeMountpoint = valueVolumesVolumeInfo["VolumeMountpoint"].asString(); if(!valueVolumesVolumeInfo["VolumeType"].isNull()) volumesObject.volumeType = valueVolumesVolumeInfo["VolumeType"].asString(); if(!valueVolumesVolumeInfo["VolumeProtocol"].isNull()) volumesObject.volumeProtocol = valueVolumesVolumeInfo["VolumeProtocol"].asString(); - if(!valueVolumesVolumeInfo["VolumeMountpoint"].isNull()) - volumesObject.volumeMountpoint = valueVolumesVolumeInfo["VolumeMountpoint"].asString(); - if(!valueVolumesVolumeInfo["RemoteDirectory"].isNull()) - volumesObject.remoteDirectory = valueVolumesVolumeInfo["RemoteDirectory"].asString(); - auto allAdditionalVolumesNode = valueVolumesVolumeInfo["AdditionalVolumes"]["VolumeInfo"]; - for (auto valueVolumesVolumeInfoAdditionalVolumesVolumeInfo : allAdditionalVolumesNode) - { - VolumeInfo::VolumeInfo1 additionalVolumesObject; - if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeType"].isNull()) - additionalVolumesObject.volumeType = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeType"].asString(); - if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeId"].isNull()) - additionalVolumesObject.volumeId = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeId"].asString(); - if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeProtocol"].isNull()) - additionalVolumesObject.volumeProtocol = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeProtocol"].asString(); - if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeMountpoint"].isNull()) - additionalVolumesObject.volumeMountpoint = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeMountpoint"].asString(); - if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["RemoteDirectory"].isNull()) - additionalVolumesObject.remoteDirectory = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["RemoteDirectory"].asString(); - if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["LocalDirectory"].isNull()) - additionalVolumesObject.localDirectory = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["LocalDirectory"].asString(); - if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["Role"].isNull()) - additionalVolumesObject.role = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["Role"].asString(); - if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["Location"].isNull()) - additionalVolumesObject.location = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["Location"].asString(); - if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["JobQueue"].isNull()) - additionalVolumesObject.jobQueue = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["JobQueue"].asString(); - volumesObject.additionalVolumes.push_back(additionalVolumesObject); - } + if(!valueVolumesVolumeInfo["RegionId"].isNull()) + volumesObject.regionId = valueVolumesVolumeInfo["RegionId"].asString(); + if(!valueVolumesVolumeInfo["ClusterId"].isNull()) + volumesObject.clusterId = valueVolumesVolumeInfo["ClusterId"].asString(); volumes_.push_back(volumesObject); } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ehpc/src/model/ModifyClusterAttributesRequest.cc b/ehpc/src/model/ModifyClusterAttributesRequest.cc index 39ff451aa..32e5844d9 100644 --- a/ehpc/src/model/ModifyClusterAttributesRequest.cc +++ b/ehpc/src/model/ModifyClusterAttributesRequest.cc @@ -1,95 +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::ModifyClusterAttributesRequest; - -ModifyClusterAttributesRequest::ModifyClusterAttributesRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "ModifyClusterAttributes") -{ - setMethod(HttpRequest::Method::Get); -} - -ModifyClusterAttributesRequest::~ModifyClusterAttributesRequest() -{} - -std::string ModifyClusterAttributesRequest::getImageId()const -{ - return imageId_; + */ + +#include + +using AlibabaCloud::EHPC::Model::ModifyClusterAttributesRequest; + +ModifyClusterAttributesRequest::ModifyClusterAttributesRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "ModifyClusterAttributes") { + setMethod(HttpRequest::Method::Get); } -void ModifyClusterAttributesRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +ModifyClusterAttributesRequest::~ModifyClusterAttributesRequest() {} + +std::string ModifyClusterAttributesRequest::getDescription() const { + return description_; } -std::string ModifyClusterAttributesRequest::getDescription()const -{ - return description_; +void ModifyClusterAttributesRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyClusterAttributesRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyClusterAttributesRequest::getClusterId() const { + return clusterId_; } -std::string ModifyClusterAttributesRequest::getClusterId()const -{ - return clusterId_; +void ModifyClusterAttributesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void ModifyClusterAttributesRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +std::string ModifyClusterAttributesRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ModifyClusterAttributesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ModifyClusterAttributesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ModifyClusterAttributesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ModifyClusterAttributesRequest::getName() const { + return name_; } -std::string ModifyClusterAttributesRequest::getImageOwnerAlias()const -{ - return imageOwnerAlias_; -} - -void ModifyClusterAttributesRequest::setImageOwnerAlias(const std::string& imageOwnerAlias) -{ - imageOwnerAlias_ = imageOwnerAlias; - setParameter("ImageOwnerAlias", imageOwnerAlias); -} - -std::string ModifyClusterAttributesRequest::getName()const -{ - return name_; -} - -void ModifyClusterAttributesRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +void ModifyClusterAttributesRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ehpc/src/model/ModifyContainerAppAttributesRequest.cc b/ehpc/src/model/ModifyContainerAppAttributesRequest.cc deleted file mode 100644 index 842d65283..000000000 --- a/ehpc/src/model/ModifyContainerAppAttributesRequest.cc +++ /dev/null @@ -1,62 +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::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("Description", description); -} - -std::string ModifyContainerAppAttributesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ModifyContainerAppAttributesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ModifyContainerAppAttributesRequest::getContainerId()const -{ - return containerId_; -} - -void ModifyContainerAppAttributesRequest::setContainerId(const std::string& containerId) -{ - containerId_ = containerId; - setParameter("ContainerId", containerId); -} - diff --git a/ehpc/src/model/ModifyContainerAppAttributesResult.cc b/ehpc/src/model/ModifyContainerAppAttributesResult.cc deleted file mode 100644 index 98f601cdb..000000000 --- a/ehpc/src/model/ModifyContainerAppAttributesResult.cc +++ /dev/null @@ -1,44 +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 -#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 deleted file mode 100644 index e97ebf5f4..000000000 --- a/ehpc/src/model/ModifyImageGatewayConfigRequest.cc +++ /dev/null @@ -1,145 +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::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 = "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("DBServerInfo", dBServerInfo); -} - -std::string ModifyImageGatewayConfigRequest::getClusterId()const -{ - return clusterId_; -} - -void ModifyImageGatewayConfigRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string ModifyImageGatewayConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ModifyImageGatewayConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ModifyImageGatewayConfigRequest::getDefaultRepoLocation()const -{ - return defaultRepoLocation_; -} - -void ModifyImageGatewayConfigRequest::setDefaultRepoLocation(const std::string& defaultRepoLocation) -{ - defaultRepoLocation_ = defaultRepoLocation; - setParameter("DefaultRepoLocation", defaultRepoLocation); -} - -std::string ModifyImageGatewayConfigRequest::getDBPassword()const -{ - return dBPassword_; -} - -void ModifyImageGatewayConfigRequest::setDBPassword(const std::string& dBPassword) -{ - dBPassword_ = dBPassword; - setParameter("DBPassword", dBPassword); -} - -std::string ModifyImageGatewayConfigRequest::getDBType()const -{ - return dBType_; -} - -void ModifyImageGatewayConfigRequest::setDBType(const std::string& dBType) -{ - dBType_ = dBType; - setParameter("DBType", dBType); -} - -std::string ModifyImageGatewayConfigRequest::getDBUsername()const -{ - return dBUsername_; -} - -void ModifyImageGatewayConfigRequest::setDBUsername(const std::string& dBUsername) -{ - dBUsername_ = dBUsername; - setParameter("DBUsername", dBUsername); -} - -int ModifyImageGatewayConfigRequest::getPullUpdateTimeout()const -{ - return pullUpdateTimeout_; -} - -void ModifyImageGatewayConfigRequest::setPullUpdateTimeout(int pullUpdateTimeout) -{ - pullUpdateTimeout_ = pullUpdateTimeout; - setParameter("PullUpdateTimeout", std::to_string(pullUpdateTimeout)); -} - -std::string ModifyImageGatewayConfigRequest::getImageExpirationTimeout()const -{ - return imageExpirationTimeout_; -} - -void ModifyImageGatewayConfigRequest::setImageExpirationTimeout(const std::string& imageExpirationTimeout) -{ - imageExpirationTimeout_ = imageExpirationTimeout; - setParameter("ImageExpirationTimeout", imageExpirationTimeout); -} - diff --git a/ehpc/src/model/ModifyImageGatewayConfigResult.cc b/ehpc/src/model/ModifyImageGatewayConfigResult.cc deleted file mode 100644 index f124b3d50..000000000 --- a/ehpc/src/model/ModifyImageGatewayConfigResult.cc +++ /dev/null @@ -1,44 +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 -#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 a74d2e4b1..fca2ea43d 100644 --- a/ehpc/src/model/ModifyUserGroupsRequest.cc +++ b/ehpc/src/model/ModifyUserGroupsRequest.cc @@ -1,67 +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 - -using AlibabaCloud::EHPC::Model::ModifyUserGroupsRequest; - -ModifyUserGroupsRequest::ModifyUserGroupsRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "ModifyUserGroups") -{ - setMethod(HttpRequest::Method::Get); -} - -ModifyUserGroupsRequest::~ModifyUserGroupsRequest() -{} - -std::string ModifyUserGroupsRequest::getClusterId()const -{ - return clusterId_; + */ + +#include + +using AlibabaCloud::EHPC::Model::ModifyUserGroupsRequest; + +ModifyUserGroupsRequest::ModifyUserGroupsRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "ModifyUserGroups") { + setMethod(HttpRequest::Method::Get); } -void ModifyUserGroupsRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +ModifyUserGroupsRequest::~ModifyUserGroupsRequest() {} + +std::string ModifyUserGroupsRequest::getClusterId() const { + return clusterId_; } -std::string ModifyUserGroupsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ModifyUserGroupsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void ModifyUserGroupsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ModifyUserGroupsRequest::getAccessKeyId() const { + return accessKeyId_; } -std::vector ModifyUserGroupsRequest::getUser()const -{ - return user_; +void ModifyUserGroupsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ModifyUserGroupsRequest::setUser(const std::vector& user) -{ - user_ = user; - for(int dep1 = 0; dep1!= user.size(); dep1++) { - auto userObj = user.at(dep1); - std::string userObjStr = "User." + std::to_string(dep1 + 1); - setParameter(userObjStr + ".Name", userObj.name); - setParameter(userObjStr + ".Group", userObj.group); - } +std::vector ModifyUserGroupsRequest::getUser() const { + return user_; +} + +void ModifyUserGroupsRequest::setUser(const std::vector &user) { + user_ = user; + for(int dep1 = 0; dep1 != user.size(); dep1++) { + auto userObj = user.at(dep1); + std::string userObjStr = std::string("User") + "." + std::to_string(dep1 + 1); + setParameter(userObjStr + ".Name", userObj.name); + setParameter(userObjStr + ".Group", userObj.group); + } } diff --git a/ehpc/src/model/ModifyUserPasswordsRequest.cc b/ehpc/src/model/ModifyUserPasswordsRequest.cc index cd5dde22c..6d0881b4c 100644 --- a/ehpc/src/model/ModifyUserPasswordsRequest.cc +++ b/ehpc/src/model/ModifyUserPasswordsRequest.cc @@ -1,67 +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 - -using AlibabaCloud::EHPC::Model::ModifyUserPasswordsRequest; - -ModifyUserPasswordsRequest::ModifyUserPasswordsRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "ModifyUserPasswords") -{ - setMethod(HttpRequest::Method::Get); -} - -ModifyUserPasswordsRequest::~ModifyUserPasswordsRequest() -{} - -std::string ModifyUserPasswordsRequest::getClusterId()const -{ - return clusterId_; + */ + +#include + +using AlibabaCloud::EHPC::Model::ModifyUserPasswordsRequest; + +ModifyUserPasswordsRequest::ModifyUserPasswordsRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "ModifyUserPasswords") { + setMethod(HttpRequest::Method::Get); } -void ModifyUserPasswordsRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +ModifyUserPasswordsRequest::~ModifyUserPasswordsRequest() {} + +std::string ModifyUserPasswordsRequest::getClusterId() const { + return clusterId_; } -std::string ModifyUserPasswordsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ModifyUserPasswordsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void ModifyUserPasswordsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ModifyUserPasswordsRequest::getAccessKeyId() const { + return accessKeyId_; } -std::vector ModifyUserPasswordsRequest::getUser()const -{ - return user_; +void ModifyUserPasswordsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ModifyUserPasswordsRequest::setUser(const std::vector& user) -{ - user_ = user; - for(int dep1 = 0; dep1!= user.size(); dep1++) { - auto userObj = user.at(dep1); - std::string userObjStr = "User." + std::to_string(dep1 + 1); - setParameter(userObjStr + ".Password", userObj.password); - setParameter(userObjStr + ".Name", userObj.name); - } +std::vector ModifyUserPasswordsRequest::getUser() const { + return user_; +} + +void ModifyUserPasswordsRequest::setUser(const std::vector &user) { + user_ = user; + for(int dep1 = 0; dep1 != user.size(); dep1++) { + auto userObj = user.at(dep1); + std::string userObjStr = std::string("User") + "." + std::to_string(dep1 + 1); + setParameter(userObjStr + ".Password", userObj.password); + setParameter(userObjStr + ".Name", userObj.name); + } } diff --git a/ehpc/src/model/ModifyVisualServicePasswdRequest.cc b/ehpc/src/model/ModifyVisualServicePasswdRequest.cc deleted file mode 100644 index a9096bcde..000000000 --- a/ehpc/src/model/ModifyVisualServicePasswdRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("RunasUserPassword", runasUserPassword); -} - -std::string ModifyVisualServicePasswdRequest::getRunasUser()const -{ - return runasUser_; -} - -void ModifyVisualServicePasswdRequest::setRunasUser(const std::string& runasUser) -{ - runasUser_ = runasUser; - setParameter("RunasUser", runasUser); -} - -std::string ModifyVisualServicePasswdRequest::getClusterId()const -{ - return clusterId_; -} - -void ModifyVisualServicePasswdRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string ModifyVisualServicePasswdRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ModifyVisualServicePasswdRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string ModifyVisualServicePasswdRequest::getPasswd()const -{ - return passwd_; -} - -void ModifyVisualServicePasswdRequest::setPasswd(const std::string& passwd) -{ - passwd_ = passwd; - setParameter("Passwd", passwd); -} - diff --git a/ehpc/src/model/ModifyVisualServicePasswdResult.cc b/ehpc/src/model/ModifyVisualServicePasswdResult.cc deleted file mode 100644 index 1cdbc25d0..000000000 --- a/ehpc/src/model/ModifyVisualServicePasswdResult.cc +++ /dev/null @@ -1,51 +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 -#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 deleted file mode 100644 index 846436455..000000000 --- a/ehpc/src/model/MountNFSRequest.cc +++ /dev/null @@ -1,95 +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::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("MountDir", mountDir); -} - -std::string MountNFSRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void MountNFSRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string MountNFSRequest::getInstanceId()const -{ - return instanceId_; -} - -void MountNFSRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string MountNFSRequest::getRemoteDir()const -{ - return remoteDir_; -} - -void MountNFSRequest::setRemoteDir(const std::string& remoteDir) -{ - remoteDir_ = remoteDir; - setParameter("RemoteDir", remoteDir); -} - -std::string MountNFSRequest::getNfsDir()const -{ - return nfsDir_; -} - -void MountNFSRequest::setNfsDir(const std::string& nfsDir) -{ - nfsDir_ = nfsDir; - setParameter("NfsDir", nfsDir); -} - -std::string MountNFSRequest::getProtocolType()const -{ - return protocolType_; -} - -void MountNFSRequest::setProtocolType(const std::string& protocolType) -{ - protocolType_ = protocolType; - setParameter("ProtocolType", protocolType); -} - diff --git a/ehpc/src/model/MountNFSResult.cc b/ehpc/src/model/MountNFSResult.cc deleted file mode 100644 index 8f5a610db..000000000 --- a/ehpc/src/model/MountNFSResult.cc +++ /dev/null @@ -1,51 +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 -#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 deleted file mode 100644 index ead36d5ba..000000000 --- a/ehpc/src/model/PullImageRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("ClusterId", clusterId); -} - -std::string PullImageRequest::getRepository()const -{ - return repository_; -} - -void PullImageRequest::setRepository(const std::string& repository) -{ - repository_ = repository; - setParameter("Repository", repository); -} - -std::string PullImageRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void PullImageRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string PullImageRequest::getContainerType()const -{ - return containerType_; -} - -void PullImageRequest::setContainerType(const std::string& containerType) -{ - containerType_ = containerType; - setParameter("ContainerType", containerType); -} - -std::string PullImageRequest::getImageTag()const -{ - return imageTag_; -} - -void PullImageRequest::setImageTag(const std::string& imageTag) -{ - imageTag_ = imageTag; - setParameter("ImageTag", imageTag); -} - diff --git a/ehpc/src/model/PullImageResult.cc b/ehpc/src/model/PullImageResult.cc deleted file mode 100644 index 931a9cc74..000000000 --- a/ehpc/src/model/PullImageResult.cc +++ /dev/null @@ -1,44 +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 -#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 deleted file mode 100644 index c0c88f330..000000000 --- a/ehpc/src/model/QueryServicePackAndPriceRequest.cc +++ /dev/null @@ -1,40 +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::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("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/QueryServicePackAndPriceResult.cc b/ehpc/src/model/QueryServicePackAndPriceResult.cc deleted file mode 100644 index 79d204aaf..000000000 --- a/ehpc/src/model/QueryServicePackAndPriceResult.cc +++ /dev/null @@ -1,112 +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 -#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["InstanceName"].isNull()) - servicePackObject.instanceName = valueServicePackServicePackInfo["InstanceName"].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["EndTime"].isNull()) - servicePackObject.endTime = std::stoi(valueServicePackServicePackInfo["EndTime"].asString()); - servicePack_.push_back(servicePackObject); - } - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); - if(!value["TradePrice"].isNull()) - tradePrice_ = std::stof(value["TradePrice"].asString()); - if(!value["OriginalPrice"].isNull()) - originalPrice_ = std::stof(value["OriginalPrice"].asString()); - if(!value["DiscountPrice"].isNull()) - discountPrice_ = std::stof(value["DiscountPrice"].asString()); - if(!value["Currency"].isNull()) - currency_ = value["Currency"].asString(); - if(!value["OriginalAmount"].isNull()) - originalAmount_ = std::stoi(value["OriginalAmount"].asString()); - if(!value["ChargeAmount"].isNull()) - chargeAmount_ = std::stoi(value["ChargeAmount"].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 deleted file mode 100644 index 6781941bc..000000000 --- a/ehpc/src/model/RecoverClusterRequest.cc +++ /dev/null @@ -1,117 +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::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("ImageId", imageId); -} - -std::string RecoverClusterRequest::getOsTag()const -{ - return osTag_; -} - -void RecoverClusterRequest::setOsTag(const std::string& osTag) -{ - osTag_ = osTag; - setParameter("OsTag", osTag); -} - -std::string RecoverClusterRequest::getClientVersion()const -{ - return clientVersion_; -} - -void RecoverClusterRequest::setClientVersion(const std::string& clientVersion) -{ - clientVersion_ = clientVersion; - setParameter("ClientVersion", clientVersion); -} - -std::string RecoverClusterRequest::getAccountType()const -{ - return accountType_; -} - -void RecoverClusterRequest::setAccountType(const std::string& accountType) -{ - accountType_ = accountType; - setParameter("AccountType", accountType); -} - -std::string RecoverClusterRequest::getClusterId()const -{ - return clusterId_; -} - -void RecoverClusterRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string RecoverClusterRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void RecoverClusterRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string RecoverClusterRequest::getImageOwnerAlias()const -{ - return imageOwnerAlias_; -} - -void RecoverClusterRequest::setImageOwnerAlias(const std::string& imageOwnerAlias) -{ - imageOwnerAlias_ = imageOwnerAlias; - setParameter("ImageOwnerAlias", imageOwnerAlias); -} - -std::string RecoverClusterRequest::getSchedulerType()const -{ - return schedulerType_; -} - -void RecoverClusterRequest::setSchedulerType(const std::string& schedulerType) -{ - schedulerType_ = schedulerType; - setParameter("SchedulerType", schedulerType); -} - diff --git a/ehpc/src/model/RecoverClusterResult.cc b/ehpc/src/model/RecoverClusterResult.cc deleted file mode 100644 index faed06ba9..000000000 --- a/ehpc/src/model/RecoverClusterResult.cc +++ /dev/null @@ -1,51 +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 -#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 6012b225d..dc9b815ca 100644 --- a/ehpc/src/model/RerunJobsRequest.cc +++ b/ehpc/src/model/RerunJobsRequest.cc @@ -1,62 +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::RerunJobsRequest; - -RerunJobsRequest::RerunJobsRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "RerunJobs") -{ - setMethod(HttpRequest::Method::Get); -} - -RerunJobsRequest::~RerunJobsRequest() -{} - -std::string RerunJobsRequest::getJobs()const -{ - return jobs_; + */ + +#include + +using AlibabaCloud::EHPC::Model::RerunJobsRequest; + +RerunJobsRequest::RerunJobsRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "RerunJobs") { + setMethod(HttpRequest::Method::Get); } -void RerunJobsRequest::setJobs(const std::string& jobs) -{ - jobs_ = jobs; - setParameter("Jobs", jobs); +RerunJobsRequest::~RerunJobsRequest() {} + +std::string RerunJobsRequest::getJobs() const { + return jobs_; } -std::string RerunJobsRequest::getClusterId()const -{ - return clusterId_; +void RerunJobsRequest::setJobs(const std::string &jobs) { + jobs_ = jobs; + setParameter(std::string("Jobs"), jobs); } -void RerunJobsRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +std::string RerunJobsRequest::getClusterId() const { + return clusterId_; } -std::string RerunJobsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void RerunJobsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void RerunJobsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string RerunJobsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void RerunJobsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/ehpc/src/model/ResetNodesRequest.cc b/ehpc/src/model/ResetNodesRequest.cc index 3c97a2ddb..b452f2c56 100644 --- a/ehpc/src/model/ResetNodesRequest.cc +++ b/ehpc/src/model/ResetNodesRequest.cc @@ -1,66 +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 - -using AlibabaCloud::EHPC::Model::ResetNodesRequest; - -ResetNodesRequest::ResetNodesRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "ResetNodes") -{ - setMethod(HttpRequest::Method::Get); -} - -ResetNodesRequest::~ResetNodesRequest() -{} - -std::vector ResetNodesRequest::getInstance()const -{ - return instance_; + */ + +#include + +using AlibabaCloud::EHPC::Model::ResetNodesRequest; + +ResetNodesRequest::ResetNodesRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "ResetNodes") { + setMethod(HttpRequest::Method::Get); } -void ResetNodesRequest::setInstance(const std::vector& instance) -{ - instance_ = instance; - for(int dep1 = 0; dep1!= instance.size(); dep1++) { - auto instanceObj = instance.at(dep1); - std::string instanceObjStr = "Instance." + std::to_string(dep1 + 1); - setParameter(instanceObjStr + ".Id", instanceObj.id); - } +ResetNodesRequest::~ResetNodesRequest() {} + +std::vector ResetNodesRequest::getInstance() const { + return instance_; } -std::string ResetNodesRequest::getClusterId()const -{ - return clusterId_; +void ResetNodesRequest::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); + } } -void ResetNodesRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +std::string ResetNodesRequest::getClusterId() const { + return clusterId_; } -std::string ResetNodesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ResetNodesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void ResetNodesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ResetNodesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ResetNodesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/ehpc/src/model/ResetNodesResult.cc b/ehpc/src/model/ResetNodesResult.cc index 727999a11..b5bb99ee9 100644 --- a/ehpc/src/model/ResetNodesResult.cc +++ b/ehpc/src/model/ResetNodesResult.cc @@ -39,13 +39,6 @@ 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 deleted file mode 100644 index 3d4b1ac75..000000000 --- a/ehpc/src/model/RunCloudMetricProfilingRequest.cc +++ /dev/null @@ -1,106 +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::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("Freq", std::to_string(freq)); -} - -std::string RunCloudMetricProfilingRequest::getClusterId()const -{ - return clusterId_; -} - -void RunCloudMetricProfilingRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string RunCloudMetricProfilingRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void RunCloudMetricProfilingRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -int RunCloudMetricProfilingRequest::getDuration()const -{ - return duration_; -} - -void RunCloudMetricProfilingRequest::setDuration(int duration) -{ - duration_ = duration; - setParameter("Duration", std::to_string(duration)); -} - -std::string RunCloudMetricProfilingRequest::getHostName()const -{ - return hostName_; -} - -void RunCloudMetricProfilingRequest::setHostName(const std::string& hostName) -{ - hostName_ = hostName; - setParameter("HostName", hostName); -} - -std::string RunCloudMetricProfilingRequest::getRegionId()const -{ - return regionId_; -} - -void RunCloudMetricProfilingRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -int RunCloudMetricProfilingRequest::getProcessId()const -{ - return processId_; -} - -void RunCloudMetricProfilingRequest::setProcessId(int processId) -{ - processId_ = processId; - setParameter("ProcessId", std::to_string(processId)); -} - diff --git a/ehpc/src/model/RunCloudMetricProfilingResult.cc b/ehpc/src/model/RunCloudMetricProfilingResult.cc deleted file mode 100644 index 69f529694..000000000 --- a/ehpc/src/model/RunCloudMetricProfilingResult.cc +++ /dev/null @@ -1,44 +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 -#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 dabfaaee9..7c7993c3d 100644 --- a/ehpc/src/model/SetAutoScaleConfigRequest.cc +++ b/ehpc/src/model/SetAutoScaleConfigRequest.cc @@ -1,231 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::SetAutoScaleConfigRequest; - -SetAutoScaleConfigRequest::SetAutoScaleConfigRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "SetAutoScaleConfig") -{ - setMethod(HttpRequest::Method::Get); -} - -SetAutoScaleConfigRequest::~SetAutoScaleConfigRequest() -{} - -std::string SetAutoScaleConfigRequest::getImageId()const -{ - return imageId_; + */ + +#include + +using AlibabaCloud::EHPC::Model::SetAutoScaleConfigRequest; + +SetAutoScaleConfigRequest::SetAutoScaleConfigRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "SetAutoScaleConfig") { + setMethod(HttpRequest::Method::Get); } -void SetAutoScaleConfigRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +SetAutoScaleConfigRequest::~SetAutoScaleConfigRequest() {} + +std::string SetAutoScaleConfigRequest::getAccessKeyId() const { + return accessKeyId_; } -float SetAutoScaleConfigRequest::getSpotPriceLimit()const -{ - return spotPriceLimit_; +void SetAutoScaleConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SetAutoScaleConfigRequest::setSpotPriceLimit(float spotPriceLimit) -{ - spotPriceLimit_ = spotPriceLimit; - setParameter("SpotPriceLimit", std::to_string(spotPriceLimit)); +std::string SetAutoScaleConfigRequest::getExcludeNodes() const { + return excludeNodes_; } -std::string SetAutoScaleConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SetAutoScaleConfigRequest::setExcludeNodes(const std::string &excludeNodes) { + excludeNodes_ = excludeNodes; + setParameter(std::string("ExcludeNodes"), excludeNodes); } -void SetAutoScaleConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +int SetAutoScaleConfigRequest::getExtraNodesGrowRatio() const { + return extraNodesGrowRatio_; } -std::string SetAutoScaleConfigRequest::getExcludeNodes()const -{ - return excludeNodes_; +void SetAutoScaleConfigRequest::setExtraNodesGrowRatio(int extraNodesGrowRatio) { + extraNodesGrowRatio_ = extraNodesGrowRatio; + setParameter(std::string("ExtraNodesGrowRatio"), std::to_string(extraNodesGrowRatio)); } -void SetAutoScaleConfigRequest::setExcludeNodes(const std::string& excludeNodes) -{ - excludeNodes_ = excludeNodes; - setParameter("ExcludeNodes", excludeNodes); +int SetAutoScaleConfigRequest::getShrinkIdleTimes() const { + return shrinkIdleTimes_; } -int SetAutoScaleConfigRequest::getExtraNodesGrowRatio()const -{ - return extraNodesGrowRatio_; +void SetAutoScaleConfigRequest::setShrinkIdleTimes(int shrinkIdleTimes) { + shrinkIdleTimes_ = shrinkIdleTimes; + setParameter(std::string("ShrinkIdleTimes"), std::to_string(shrinkIdleTimes)); } -void SetAutoScaleConfigRequest::setExtraNodesGrowRatio(int extraNodesGrowRatio) -{ - extraNodesGrowRatio_ = extraNodesGrowRatio; - setParameter("ExtraNodesGrowRatio", std::to_string(extraNodesGrowRatio)); +int SetAutoScaleConfigRequest::getGrowTimeoutInMinutes() const { + return growTimeoutInMinutes_; } -int SetAutoScaleConfigRequest::getShrinkIdleTimes()const -{ - return shrinkIdleTimes_; +void SetAutoScaleConfigRequest::setGrowTimeoutInMinutes(int growTimeoutInMinutes) { + growTimeoutInMinutes_ = growTimeoutInMinutes; + setParameter(std::string("GrowTimeoutInMinutes"), std::to_string(growTimeoutInMinutes)); } -void SetAutoScaleConfigRequest::setShrinkIdleTimes(int shrinkIdleTimes) -{ - shrinkIdleTimes_ = shrinkIdleTimes; - setParameter("ShrinkIdleTimes", std::to_string(shrinkIdleTimes)); +std::string SetAutoScaleConfigRequest::getClusterId() const { + return clusterId_; } -int SetAutoScaleConfigRequest::getGrowTimeoutInMinutes()const -{ - return growTimeoutInMinutes_; +void SetAutoScaleConfigRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void SetAutoScaleConfigRequest::setGrowTimeoutInMinutes(int growTimeoutInMinutes) -{ - growTimeoutInMinutes_ = growTimeoutInMinutes; - setParameter("GrowTimeoutInMinutes", std::to_string(growTimeoutInMinutes)); +bool SetAutoScaleConfigRequest::getEnableAutoGrow() const { + return enableAutoGrow_; } -std::string SetAutoScaleConfigRequest::getClusterId()const -{ - return clusterId_; +void SetAutoScaleConfigRequest::setEnableAutoGrow(bool enableAutoGrow) { + enableAutoGrow_ = enableAutoGrow; + setParameter(std::string("EnableAutoGrow"), enableAutoGrow ? "true" : "false"); } -void SetAutoScaleConfigRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +bool SetAutoScaleConfigRequest::getEnableAutoShrink() const { + return enableAutoShrink_; } -bool SetAutoScaleConfigRequest::getEnableAutoGrow()const -{ - return enableAutoGrow_; +void SetAutoScaleConfigRequest::setEnableAutoShrink(bool enableAutoShrink) { + enableAutoShrink_ = enableAutoShrink; + setParameter(std::string("EnableAutoShrink"), enableAutoShrink ? "true" : "false"); } -void SetAutoScaleConfigRequest::setEnableAutoGrow(bool enableAutoGrow) -{ - enableAutoGrow_ = enableAutoGrow; - setParameter("EnableAutoGrow", enableAutoGrow ? "true" : "false"); +int SetAutoScaleConfigRequest::getMaxNodesInCluster() const { + return maxNodesInCluster_; } -bool SetAutoScaleConfigRequest::getEnableAutoShrink()const -{ - return enableAutoShrink_; +void SetAutoScaleConfigRequest::setMaxNodesInCluster(int maxNodesInCluster) { + maxNodesInCluster_ = maxNodesInCluster; + setParameter(std::string("MaxNodesInCluster"), std::to_string(maxNodesInCluster)); } -void SetAutoScaleConfigRequest::setEnableAutoShrink(bool enableAutoShrink) -{ - enableAutoShrink_ = enableAutoShrink; - setParameter("EnableAutoShrink", enableAutoShrink ? "true" : "false"); +int SetAutoScaleConfigRequest::getShrinkIntervalInMinutes() const { + return shrinkIntervalInMinutes_; } -std::string SetAutoScaleConfigRequest::getSpotStrategy()const -{ - return spotStrategy_; +void SetAutoScaleConfigRequest::setShrinkIntervalInMinutes(int shrinkIntervalInMinutes) { + shrinkIntervalInMinutes_ = shrinkIntervalInMinutes; + setParameter(std::string("ShrinkIntervalInMinutes"), std::to_string(shrinkIntervalInMinutes)); } -void SetAutoScaleConfigRequest::setSpotStrategy(const std::string& spotStrategy) -{ - spotStrategy_ = spotStrategy; - setParameter("SpotStrategy", spotStrategy); +int SetAutoScaleConfigRequest::getGrowIntervalInMinutes() const { + return growIntervalInMinutes_; } -int SetAutoScaleConfigRequest::getMaxNodesInCluster()const -{ - return maxNodesInCluster_; +void SetAutoScaleConfigRequest::setGrowIntervalInMinutes(int growIntervalInMinutes) { + growIntervalInMinutes_ = growIntervalInMinutes; + setParameter(std::string("GrowIntervalInMinutes"), std::to_string(growIntervalInMinutes)); } -void SetAutoScaleConfigRequest::setMaxNodesInCluster(int maxNodesInCluster) -{ - maxNodesInCluster_ = maxNodesInCluster; - setParameter("MaxNodesInCluster", std::to_string(maxNodesInCluster)); +int SetAutoScaleConfigRequest::getGrowRatio() const { + return growRatio_; } -int SetAutoScaleConfigRequest::getShrinkIntervalInMinutes()const -{ - return shrinkIntervalInMinutes_; -} - -void SetAutoScaleConfigRequest::setShrinkIntervalInMinutes(int shrinkIntervalInMinutes) -{ - shrinkIntervalInMinutes_ = shrinkIntervalInMinutes; - setParameter("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 = "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 + ".SpotStrategy", instanceTypesObj.spotStrategy); - setParameter(instanceTypesObjStr + ".VSwitchId", instanceTypesObj.vSwitchId); - setParameter(instanceTypesObjStr + ".InstanceType", instanceTypesObj.instanceType); - setParameter(instanceTypesObjStr + ".ZoneId", instanceTypesObj.zoneId); - setParameter(instanceTypesObjStr + ".SpotPriceLimit", std::to_string(instanceTypesObj.spotPriceLimit)); - } - setParameter(queuesObjStr + ".EnableAutoGrow", queuesObj.enableAutoGrow ? "true" : "false"); - setParameter(queuesObjStr + ".SpotPriceLimit", std::to_string(queuesObj.spotPriceLimit)); - setParameter(queuesObjStr + ".HostNameSuffix", queuesObj.hostNameSuffix); - setParameter(queuesObjStr + ".EnableAutoShrink", queuesObj.enableAutoShrink ? "true" : "false"); - setParameter(queuesObjStr + ".SpotStrategy", queuesObj.spotStrategy); - setParameter(queuesObjStr + ".MinNodesInQueue", std::to_string(queuesObj.minNodesInQueue)); - setParameter(queuesObjStr + ".SystemDiskCategory", queuesObj.systemDiskCategory); - setParameter(queuesObjStr + ".MaxNodesInQueue", std::to_string(queuesObj.maxNodesInQueue)); - setParameter(queuesObjStr + ".SystemDiskSize", std::to_string(queuesObj.systemDiskSize)); - setParameter(queuesObjStr + ".InstanceType", queuesObj.instanceType); - setParameter(queuesObjStr + ".QueueImageId", queuesObj.queueImageId); - setParameter(queuesObjStr + ".HostNamePrefix", queuesObj.hostNamePrefix); - } -} - -int SetAutoScaleConfigRequest::getGrowIntervalInMinutes()const -{ - return growIntervalInMinutes_; -} - -void SetAutoScaleConfigRequest::setGrowIntervalInMinutes(int growIntervalInMinutes) -{ - growIntervalInMinutes_ = growIntervalInMinutes; - setParameter("GrowIntervalInMinutes", std::to_string(growIntervalInMinutes)); -} - -int SetAutoScaleConfigRequest::getGrowRatio()const -{ - return growRatio_; -} - -void SetAutoScaleConfigRequest::setGrowRatio(int growRatio) -{ - growRatio_ = growRatio; - setParameter("GrowRatio", std::to_string(growRatio)); +void SetAutoScaleConfigRequest::setGrowRatio(int growRatio) { + growRatio_ = growRatio; + setParameter(std::string("GrowRatio"), std::to_string(growRatio)); } diff --git a/ehpc/src/model/SetGWSClusterPolicyRequest.cc b/ehpc/src/model/SetGWSClusterPolicyRequest.cc deleted file mode 100644 index 247c03259..000000000 --- a/ehpc/src/model/SetGWSClusterPolicyRequest.cc +++ /dev/null @@ -1,117 +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::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("Watermark", watermark); -} - -std::string SetGWSClusterPolicyRequest::getLocalDrive()const -{ - return localDrive_; -} - -void SetGWSClusterPolicyRequest::setLocalDrive(const std::string& localDrive) -{ - localDrive_ = localDrive; - setParameter("LocalDrive", localDrive); -} - -std::string SetGWSClusterPolicyRequest::getClusterId()const -{ - return clusterId_; -} - -void SetGWSClusterPolicyRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string SetGWSClusterPolicyRequest::getClipboard()const -{ - return clipboard_; -} - -void SetGWSClusterPolicyRequest::setClipboard(const std::string& clipboard) -{ - clipboard_ = clipboard; - setParameter("Clipboard", clipboard); -} - -std::string SetGWSClusterPolicyRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void SetGWSClusterPolicyRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string SetGWSClusterPolicyRequest::getUsbRedirect()const -{ - return usbRedirect_; -} - -void SetGWSClusterPolicyRequest::setUsbRedirect(const std::string& usbRedirect) -{ - usbRedirect_ = usbRedirect; - setParameter("UsbRedirect", usbRedirect); -} - -bool SetGWSClusterPolicyRequest::getAsyncMode()const -{ - return asyncMode_; -} - -void SetGWSClusterPolicyRequest::setAsyncMode(bool asyncMode) -{ - asyncMode_ = asyncMode; - setParameter("AsyncMode", asyncMode ? "true" : "false"); -} - -std::string SetGWSClusterPolicyRequest::getUdpPort()const -{ - return udpPort_; -} - -void SetGWSClusterPolicyRequest::setUdpPort(const std::string& udpPort) -{ - udpPort_ = udpPort; - setParameter("UdpPort", udpPort); -} - diff --git a/ehpc/src/model/SetGWSClusterPolicyResult.cc b/ehpc/src/model/SetGWSClusterPolicyResult.cc deleted file mode 100644 index f9c1e1980..000000000 --- a/ehpc/src/model/SetGWSClusterPolicyResult.cc +++ /dev/null @@ -1,44 +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 -#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 deleted file mode 100644 index 7032739a1..000000000 --- a/ehpc/src/model/SetGWSInstanceNameRequest.cc +++ /dev/null @@ -1,62 +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::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("AccessKeyId", accessKeyId); -} - -std::string SetGWSInstanceNameRequest::getInstanceId()const -{ - return instanceId_; -} - -void SetGWSInstanceNameRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string SetGWSInstanceNameRequest::getName()const -{ - return name_; -} - -void SetGWSInstanceNameRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - diff --git a/ehpc/src/model/SetGWSInstanceNameResult.cc b/ehpc/src/model/SetGWSInstanceNameResult.cc deleted file mode 100644 index 3d95e0b89..000000000 --- a/ehpc/src/model/SetGWSInstanceNameResult.cc +++ /dev/null @@ -1,44 +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 -#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 deleted file mode 100644 index 9d878123b..000000000 --- a/ehpc/src/model/SetGWSInstanceUserRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("AccessKeyId", accessKeyId); -} - -std::string SetGWSInstanceUserRequest::getInstanceId()const -{ - return instanceId_; -} - -void SetGWSInstanceUserRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string SetGWSInstanceUserRequest::getUserUid()const -{ - return userUid_; -} - -void SetGWSInstanceUserRequest::setUserUid(const std::string& userUid) -{ - userUid_ = userUid; - setParameter("UserUid", userUid); -} - -std::string SetGWSInstanceUserRequest::getUserName()const -{ - return userName_; -} - -void SetGWSInstanceUserRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); -} - diff --git a/ehpc/src/model/SetGWSInstanceUserResult.cc b/ehpc/src/model/SetGWSInstanceUserResult.cc deleted file mode 100644 index a296122c5..000000000 --- a/ehpc/src/model/SetGWSInstanceUserResult.cc +++ /dev/null @@ -1,44 +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 -#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 new file mode 100644 index 000000000..28a8ba533 --- /dev/null +++ b/ehpc/src/model/SetJobUserRequest.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::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/SetQueueResult.cc b/ehpc/src/model/SetJobUserResult.cc similarity index 78% rename from ehpc/src/model/SetQueueResult.cc rename to ehpc/src/model/SetJobUserResult.cc index cfed45962..3ddd594a2 100644 --- a/ehpc/src/model/SetQueueResult.cc +++ b/ehpc/src/model/SetJobUserResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::EHPC; using namespace AlibabaCloud::EHPC::Model; -SetQueueResult::SetQueueResult() : +SetJobUserResult::SetJobUserResult() : ServiceResult() {} -SetQueueResult::SetQueueResult(const std::string &payload) : +SetJobUserResult::SetJobUserResult(const std::string &payload) : ServiceResult() { parse(payload); } -SetQueueResult::~SetQueueResult() +SetJobUserResult::~SetJobUserResult() {} -void SetQueueResult::parse(const std::string &payload) +void SetJobUserResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/ehpc/src/model/SetQueueRequest.cc b/ehpc/src/model/SetQueueRequest.cc deleted file mode 100644 index 49da6831f..000000000 --- a/ehpc/src/model/SetQueueRequest.cc +++ /dev/null @@ -1,77 +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::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("QueueName", queueName); -} - -std::string SetQueueRequest::getClusterId()const -{ - return clusterId_; -} - -void SetQueueRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string SetQueueRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void SetQueueRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("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 = "Node." + std::to_string(dep1 + 1); - setParameter(nodeObjStr + ".Name", nodeObj.name); - } -} - diff --git a/ehpc/src/model/SetSchedulerInfoRequest.cc b/ehpc/src/model/SetSchedulerInfoRequest.cc deleted file mode 100644 index bb3325e5a..000000000 --- a/ehpc/src/model/SetSchedulerInfoRequest.cc +++ /dev/null @@ -1,124 +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::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 = "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("ClusterId", clusterId); -} - -std::string SetSchedulerInfoRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void SetSchedulerInfoRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("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 = "Scheduler." + std::to_string(dep1 + 1); - setParameter(schedulerObjStr + ".SchedName", schedulerObj.schedName); - } -} - -std::string SetSchedulerInfoRequest::getRegionId()const -{ - return regionId_; -} - -void SetSchedulerInfoRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("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 = "PbsInfo." + std::to_string(dep1 + 1); - setParameter(pbsInfoObjStr + ".SchedInterval", std::to_string(pbsInfoObj.schedInterval)); - 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 + ".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); - } - 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); - } - setParameter(pbsInfoObjStr + ".JobHistoryDuration", std::to_string(pbsInfoObj.jobHistoryDuration)); - } -} - diff --git a/ehpc/src/model/SetSchedulerInfoResult.cc b/ehpc/src/model/SetSchedulerInfoResult.cc deleted file mode 100644 index d79add01b..000000000 --- a/ehpc/src/model/SetSchedulerInfoResult.cc +++ /dev/null @@ -1,51 +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 -#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 deleted file mode 100644 index c4bd8d5e7..000000000 --- a/ehpc/src/model/StartClusterRequest.cc +++ /dev/null @@ -1,51 +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::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("ClusterId", clusterId); -} - -std::string StartClusterRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void StartClusterRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/StartClusterResult.cc b/ehpc/src/model/StartClusterResult.cc deleted file mode 100644 index 2bbcbf0ce..000000000 --- a/ehpc/src/model/StartClusterResult.cc +++ /dev/null @@ -1,51 +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 -#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 deleted file mode 100644 index 2ad7cd75b..000000000 --- a/ehpc/src/model/StartGWSInstanceRequest.cc +++ /dev/null @@ -1,51 +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::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("AccessKeyId", accessKeyId); -} - -std::string StartGWSInstanceRequest::getInstanceId()const -{ - return instanceId_; -} - -void StartGWSInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ehpc/src/model/StartGWSInstanceResult.cc b/ehpc/src/model/StartGWSInstanceResult.cc deleted file mode 100644 index 8714a6df0..000000000 --- a/ehpc/src/model/StartGWSInstanceResult.cc +++ /dev/null @@ -1,44 +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 -#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 deleted file mode 100644 index 50936e0bd..000000000 --- a/ehpc/src/model/StartNodesRequest.cc +++ /dev/null @@ -1,77 +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::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("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 = "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("ClusterId", clusterId); -} - -std::string StartNodesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void StartNodesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/StartNodesResult.cc b/ehpc/src/model/StartNodesResult.cc deleted file mode 100644 index 03da441d1..000000000 --- a/ehpc/src/model/StartNodesResult.cc +++ /dev/null @@ -1,51 +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 -#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 deleted file mode 100644 index 8587193fa..000000000 --- a/ehpc/src/model/StartVisualServiceRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("ClusterId", clusterId); -} - -std::string StartVisualServiceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void StartVisualServiceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -int StartVisualServiceRequest::getPort()const -{ - return port_; -} - -void StartVisualServiceRequest::setPort(int port) -{ - port_ = port; - setParameter("Port", std::to_string(port)); -} - -std::string StartVisualServiceRequest::getCidrIp()const -{ - return cidrIp_; -} - -void StartVisualServiceRequest::setCidrIp(const std::string& cidrIp) -{ - cidrIp_ = cidrIp; - setParameter("CidrIp", cidrIp); -} - diff --git a/ehpc/src/model/StartVisualServiceResult.cc b/ehpc/src/model/StartVisualServiceResult.cc deleted file mode 100644 index a980eccd0..000000000 --- a/ehpc/src/model/StartVisualServiceResult.cc +++ /dev/null @@ -1,51 +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 -#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 deleted file mode 100644 index 681db8a22..000000000 --- a/ehpc/src/model/StopClusterRequest.cc +++ /dev/null @@ -1,51 +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::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("ClusterId", clusterId); -} - -std::string StopClusterRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void StopClusterRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/StopClusterResult.cc b/ehpc/src/model/StopClusterResult.cc deleted file mode 100644 index 6122b1a6e..000000000 --- a/ehpc/src/model/StopClusterResult.cc +++ /dev/null @@ -1,51 +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 -#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 deleted file mode 100644 index 73d8ed26a..000000000 --- a/ehpc/src/model/StopGWSInstanceRequest.cc +++ /dev/null @@ -1,51 +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::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("AccessKeyId", accessKeyId); -} - -std::string StopGWSInstanceRequest::getInstanceId()const -{ - return instanceId_; -} - -void StopGWSInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/ehpc/src/model/StopGWSInstanceResult.cc b/ehpc/src/model/StopGWSInstanceResult.cc deleted file mode 100644 index 6ebcc8ed0..000000000 --- a/ehpc/src/model/StopGWSInstanceResult.cc +++ /dev/null @@ -1,44 +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 -#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 72dbff7f0..7b77f84ca 100644 --- a/ehpc/src/model/StopJobsRequest.cc +++ b/ehpc/src/model/StopJobsRequest.cc @@ -1,62 +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::StopJobsRequest; - -StopJobsRequest::StopJobsRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "StopJobs") -{ - setMethod(HttpRequest::Method::Get); -} - -StopJobsRequest::~StopJobsRequest() -{} - -std::string StopJobsRequest::getJobs()const -{ - return jobs_; + */ + +#include + +using AlibabaCloud::EHPC::Model::StopJobsRequest; + +StopJobsRequest::StopJobsRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "StopJobs") { + setMethod(HttpRequest::Method::Get); } -void StopJobsRequest::setJobs(const std::string& jobs) -{ - jobs_ = jobs; - setParameter("Jobs", jobs); +StopJobsRequest::~StopJobsRequest() {} + +std::string StopJobsRequest::getJobs() const { + return jobs_; } -std::string StopJobsRequest::getClusterId()const -{ - return clusterId_; +void StopJobsRequest::setJobs(const std::string &jobs) { + jobs_ = jobs; + setParameter(std::string("Jobs"), jobs); } -void StopJobsRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +std::string StopJobsRequest::getClusterId() const { + return clusterId_; } -std::string StopJobsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void StopJobsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void StopJobsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string StopJobsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void StopJobsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/ehpc/src/model/StopNodesRequest.cc b/ehpc/src/model/StopNodesRequest.cc deleted file mode 100644 index 16c49deaa..000000000 --- a/ehpc/src/model/StopNodesRequest.cc +++ /dev/null @@ -1,77 +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::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("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 = "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("ClusterId", clusterId); -} - -std::string StopNodesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void StopNodesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/StopNodesResult.cc b/ehpc/src/model/StopNodesResult.cc deleted file mode 100644 index 30cee0bec..000000000 --- a/ehpc/src/model/StopNodesResult.cc +++ /dev/null @@ -1,51 +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 -#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 deleted file mode 100644 index f4ec37266..000000000 --- a/ehpc/src/model/StopVisualServiceRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("ClusterId", clusterId); -} - -std::string StopVisualServiceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void StopVisualServiceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -int StopVisualServiceRequest::getPort()const -{ - return port_; -} - -void StopVisualServiceRequest::setPort(int port) -{ - port_ = port; - setParameter("Port", std::to_string(port)); -} - -std::string StopVisualServiceRequest::getCidrIp()const -{ - return cidrIp_; -} - -void StopVisualServiceRequest::setCidrIp(const std::string& cidrIp) -{ - cidrIp_ = cidrIp; - setParameter("CidrIp", cidrIp); -} - diff --git a/ehpc/src/model/StopVisualServiceResult.cc b/ehpc/src/model/StopVisualServiceResult.cc deleted file mode 100644 index 6d4166143..000000000 --- a/ehpc/src/model/StopVisualServiceResult.cc +++ /dev/null @@ -1,51 +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 -#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 f58fa38f5..c6744a406 100644 --- a/ehpc/src/model/SubmitJobRequest.cc +++ b/ehpc/src/model/SubmitJobRequest.cc @@ -1,293 +1,144 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::SubmitJobRequest; - -SubmitJobRequest::SubmitJobRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "SubmitJob") -{ - setMethod(HttpRequest::Method::Get); -} - -SubmitJobRequest::~SubmitJobRequest() -{} - -std::string SubmitJobRequest::getStderrRedirectPath()const -{ - return stderrRedirectPath_; + */ + +#include + +using AlibabaCloud::EHPC::Model::SubmitJobRequest; + +SubmitJobRequest::SubmitJobRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "SubmitJob") { + setMethod(HttpRequest::Method::Get); } -void SubmitJobRequest::setStderrRedirectPath(const std::string& stderrRedirectPath) -{ - stderrRedirectPath_ = stderrRedirectPath; - setParameter("StderrRedirectPath", stderrRedirectPath); +SubmitJobRequest::~SubmitJobRequest() {} + +std::string SubmitJobRequest::getStderrRedirectPath() const { + return stderrRedirectPath_; } -std::string SubmitJobRequest::getRunasUserPassword()const -{ - return runasUserPassword_; +void SubmitJobRequest::setStderrRedirectPath(const std::string &stderrRedirectPath) { + stderrRedirectPath_ = stderrRedirectPath; + setParameter(std::string("StderrRedirectPath"), stderrRedirectPath); } -void SubmitJobRequest::setRunasUserPassword(const std::string& runasUserPassword) -{ - runasUserPassword_ = runasUserPassword; - setParameter("RunasUserPassword", runasUserPassword); +std::string SubmitJobRequest::getRunasUserPassword() const { + return runasUserPassword_; } -std::string SubmitJobRequest::getClockTime()const -{ - return clockTime_; +void SubmitJobRequest::setRunasUserPassword(const std::string &runasUserPassword) { + runasUserPassword_ = runasUserPassword; + setParameter(std::string("RunasUserPassword"), runasUserPassword); } -void SubmitJobRequest::setClockTime(const std::string& clockTime) -{ - clockTime_ = clockTime; - setParameter("ClockTime", clockTime); +std::string SubmitJobRequest::getCommandLine() const { + return commandLine_; } -std::string SubmitJobRequest::getCommandLine()const -{ - return commandLine_; +void SubmitJobRequest::setCommandLine(const std::string &commandLine) { + commandLine_ = commandLine; + setParameter(std::string("CommandLine"), commandLine); } -void SubmitJobRequest::setCommandLine(const std::string& commandLine) -{ - commandLine_ = commandLine; - setParameter("CommandLine", commandLine); +std::string SubmitJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitJobRequest::getJobQueue()const -{ - return jobQueue_; +void SubmitJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitJobRequest::setJobQueue(const std::string& jobQueue) -{ - jobQueue_ = jobQueue; - setParameter("JobQueue", jobQueue); +std::string SubmitJobRequest::getArrayRequest() const { + return arrayRequest_; } -std::string SubmitJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitJobRequest::setArrayRequest(const std::string &arrayRequest) { + arrayRequest_ = arrayRequest; + setParameter(std::string("ArrayRequest"), arrayRequest); } -void SubmitJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitJobRequest::getPackagePath() const { + return packagePath_; } -std::string SubmitJobRequest::getArrayRequest()const -{ - return arrayRequest_; +void SubmitJobRequest::setPackagePath(const std::string &packagePath) { + packagePath_ = packagePath; + setParameter(std::string("PackagePath"), packagePath); } -void SubmitJobRequest::setArrayRequest(const std::string& arrayRequest) -{ - arrayRequest_ = arrayRequest; - setParameter("ArrayRequest", arrayRequest); +std::string SubmitJobRequest::getStdoutRedirectPath() const { + return stdoutRedirectPath_; } -std::string SubmitJobRequest::getUnzipCmd()const -{ - return unzipCmd_; +void SubmitJobRequest::setStdoutRedirectPath(const std::string &stdoutRedirectPath) { + stdoutRedirectPath_ = stdoutRedirectPath; + setParameter(std::string("StdoutRedirectPath"), stdoutRedirectPath); } -void SubmitJobRequest::setUnzipCmd(const std::string& unzipCmd) -{ - unzipCmd_ = unzipCmd; - setParameter("UnzipCmd", unzipCmd); +std::string SubmitJobRequest::getVariables() const { + return variables_; } -std::string SubmitJobRequest::getPackagePath()const -{ - return packagePath_; +void SubmitJobRequest::setVariables(const std::string &variables) { + variables_ = variables; + setParameter(std::string("Variables"), variables); } -void SubmitJobRequest::setPackagePath(const std::string& packagePath) -{ - packagePath_ = packagePath; - setParameter("PackagePath", packagePath); +std::string SubmitJobRequest::getRunasUser() const { + return runasUser_; } -std::string SubmitJobRequest::getMem()const -{ - return mem_; +void SubmitJobRequest::setRunasUser(const std::string &runasUser) { + runasUser_ = runasUser; + setParameter(std::string("RunasUser"), runasUser); } -void SubmitJobRequest::setMem(const std::string& mem) -{ - mem_ = mem; - setParameter("Mem", mem); +std::string SubmitJobRequest::getClusterId() const { + return clusterId_; } -std::string SubmitJobRequest::getStdoutRedirectPath()const -{ - return stdoutRedirectPath_; +void SubmitJobRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void SubmitJobRequest::setStdoutRedirectPath(const std::string& stdoutRedirectPath) -{ - stdoutRedirectPath_ = stdoutRedirectPath; - setParameter("StdoutRedirectPath", stdoutRedirectPath); +bool SubmitJobRequest::getReRunable() const { + return reRunable_; } -std::string SubmitJobRequest::getVariables()const -{ - return variables_; +void SubmitJobRequest::setReRunable(bool reRunable) { + reRunable_ = reRunable; + setParameter(std::string("ReRunable"), reRunable ? "true" : "false"); } -void SubmitJobRequest::setVariables(const std::string& variables) -{ - variables_ = variables; - setParameter("Variables", variables); +int SubmitJobRequest::getPriority() const { + return priority_; } -std::string SubmitJobRequest::getPostCmdLine()const -{ - return postCmdLine_; +void SubmitJobRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void SubmitJobRequest::setPostCmdLine(const std::string& postCmdLine) -{ - postCmdLine_ = postCmdLine; - setParameter("PostCmdLine", postCmdLine); +std::string SubmitJobRequest::getName() const { + return name_; } -std::string SubmitJobRequest::getRunasUser()const -{ - return runasUser_; -} - -void SubmitJobRequest::setRunasUser(const std::string& runasUser) -{ - runasUser_ = runasUser; - setParameter("RunasUser", runasUser); -} - -std::string SubmitJobRequest::getClusterId()const -{ - return clusterId_; -} - -void SubmitJobRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -bool SubmitJobRequest::getReRunable()const -{ - return reRunable_; -} - -void SubmitJobRequest::setReRunable(bool reRunable) -{ - reRunable_ = reRunable; - setParameter("ReRunable", reRunable ? "true" : "false"); -} - -int SubmitJobRequest::getThread()const -{ - return thread_; -} - -void SubmitJobRequest::setThread(int thread) -{ - thread_ = thread; - setParameter("Thread", std::to_string(thread)); -} - -int SubmitJobRequest::getPriority()const -{ - return priority_; -} - -void SubmitJobRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); -} - -int SubmitJobRequest::getGpu()const -{ - return gpu_; -} - -void SubmitJobRequest::setGpu(int gpu) -{ - gpu_ = gpu; - setParameter("Gpu", std::to_string(gpu)); -} - -int SubmitJobRequest::getNode()const -{ - return node_; -} - -void SubmitJobRequest::setNode(int node) -{ - node_ = node; - setParameter("Node", std::to_string(node)); -} - -int SubmitJobRequest::getTask()const -{ - return task_; -} - -void SubmitJobRequest::setTask(int task) -{ - task_ = task; - setParameter("Task", std::to_string(task)); -} - -std::string SubmitJobRequest::getInputFileUrl()const -{ - return inputFileUrl_; -} - -void SubmitJobRequest::setInputFileUrl(const std::string& inputFileUrl) -{ - inputFileUrl_ = inputFileUrl; - setParameter("InputFileUrl", inputFileUrl); -} - -std::string SubmitJobRequest::getName()const -{ - return name_; -} - -void SubmitJobRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - -std::string SubmitJobRequest::getContainerId()const -{ - return containerId_; -} - -void SubmitJobRequest::setContainerId(const std::string& containerId) -{ - containerId_ = containerId; - setParameter("ContainerId", containerId); +void SubmitJobRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ehpc/src/model/UninstallSoftwareRequest.cc b/ehpc/src/model/UninstallSoftwareRequest.cc deleted file mode 100644 index c2ae134f2..000000000 --- a/ehpc/src/model/UninstallSoftwareRequest.cc +++ /dev/null @@ -1,62 +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::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("ClusterId", clusterId); -} - -std::string UninstallSoftwareRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void UninstallSoftwareRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string UninstallSoftwareRequest::getApplication()const -{ - return application_; -} - -void UninstallSoftwareRequest::setApplication(const std::string& application) -{ - application_ = application; - setParameter("Application", application); -} - diff --git a/ehpc/src/model/UninstallSoftwareResult.cc b/ehpc/src/model/UninstallSoftwareResult.cc deleted file mode 100644 index fbd7f2aa7..000000000 --- a/ehpc/src/model/UninstallSoftwareResult.cc +++ /dev/null @@ -1,44 +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 -#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 deleted file mode 100644 index 72f2fe16f..000000000 --- a/ehpc/src/model/UpdateClusterVolumesRequest.cc +++ /dev/null @@ -1,78 +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::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 = "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("ClusterId", clusterId); -} - -std::string UpdateClusterVolumesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void UpdateClusterVolumesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/ehpc/src/model/UpdateClusterVolumesResult.cc b/ehpc/src/model/UpdateClusterVolumesResult.cc deleted file mode 100644 index 132214d1f..000000000 --- a/ehpc/src/model/UpdateClusterVolumesResult.cc +++ /dev/null @@ -1,44 +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 -#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 deleted file mode 100644 index 8c80cc58d..000000000 --- a/ehpc/src/model/UpdateQueueConfigRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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("QueueName", queueName); -} - -std::string UpdateQueueConfigRequest::getClusterId()const -{ - return clusterId_; -} - -void UpdateQueueConfigRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); -} - -std::string UpdateQueueConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void UpdateQueueConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string UpdateQueueConfigRequest::getResourceGroupId()const -{ - return resourceGroupId_; -} - -void UpdateQueueConfigRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); -} - -std::string UpdateQueueConfigRequest::getComputeInstanceType()const -{ - return computeInstanceType_; -} - -void UpdateQueueConfigRequest::setComputeInstanceType(const std::string& computeInstanceType) -{ - computeInstanceType_ = computeInstanceType; - setParameter("ComputeInstanceType", computeInstanceType); -} - diff --git a/ehpc/src/model/UpdateQueueConfigResult.cc b/ehpc/src/model/UpdateQueueConfigResult.cc deleted file mode 100644 index 242b3810a..000000000 --- a/ehpc/src/model/UpdateQueueConfigResult.cc +++ /dev/null @@ -1,44 +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 -#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 9e92e0ec6..44db7c40f 100644 --- a/ehpc/src/model/UpgradeClientRequest.cc +++ b/ehpc/src/model/UpgradeClientRequest.cc @@ -1,62 +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::UpgradeClientRequest; - -UpgradeClientRequest::UpgradeClientRequest() : - RpcServiceRequest("ehpc", "2018-04-12", "UpgradeClient") -{ - setMethod(HttpRequest::Method::Get); -} - -UpgradeClientRequest::~UpgradeClientRequest() -{} - -std::string UpgradeClientRequest::getClientVersion()const -{ - return clientVersion_; + */ + +#include + +using AlibabaCloud::EHPC::Model::UpgradeClientRequest; + +UpgradeClientRequest::UpgradeClientRequest() + : RpcServiceRequest("ehpc", "2017-07-14", "UpgradeClient") { + setMethod(HttpRequest::Method::Get); } -void UpgradeClientRequest::setClientVersion(const std::string& clientVersion) -{ - clientVersion_ = clientVersion; - setParameter("ClientVersion", clientVersion); +UpgradeClientRequest::~UpgradeClientRequest() {} + +std::string UpgradeClientRequest::getClientVersion() const { + return clientVersion_; } -std::string UpgradeClientRequest::getClusterId()const -{ - return clusterId_; +void UpgradeClientRequest::setClientVersion(const std::string &clientVersion) { + clientVersion_ = clientVersion; + setParameter(std::string("ClientVersion"), clientVersion); } -void UpgradeClientRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +std::string UpgradeClientRequest::getClusterId() const { + return clusterId_; } -std::string UpgradeClientRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpgradeClientRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void UpgradeClientRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpgradeClientRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpgradeClientRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); }