由谦正发起的EHPC SDK自动发布, BUILD_ID=409, 版本号:1.1.0

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2018-02-09 15:08:46 +08:00
parent a6a0ab2f05
commit 85c755b1c2
151 changed files with 11894 additions and 2 deletions

View File

@@ -0,0 +1,335 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_EHPCCLIENT_H_
#define ALIBABACLOUD_EHPC_EHPCCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "EHPCExport.h"
#include "model/DeleteUsersRequest.h"
#include "model/DeleteUsersResult.h"
#include "model/DescribeClusterRequest.h"
#include "model/DescribeClusterResult.h"
#include "model/ListUsersRequest.h"
#include "model/ListUsersResult.h"
#include "model/UpgradeClientRequest.h"
#include "model/UpgradeClientResult.h"
#include "model/ListCurrentClientVersionRequest.h"
#include "model/ListCurrentClientVersionResult.h"
#include "model/DeleteClusterRequest.h"
#include "model/DeleteClusterResult.h"
#include "model/ListImagesRequest.h"
#include "model/ListImagesResult.h"
#include "model/SetAutoScaleConfigRequest.h"
#include "model/SetAutoScaleConfigResult.h"
#include "model/ListVolumesRequest.h"
#include "model/ListVolumesResult.h"
#include "model/AddNodesRequest.h"
#include "model/AddNodesResult.h"
#include "model/ListSoftwaresRequest.h"
#include "model/ListSoftwaresResult.h"
#include "model/StopJobsRequest.h"
#include "model/StopJobsResult.h"
#include "model/GetAutoScaleConfigRequest.h"
#include "model/GetAutoScaleConfigResult.h"
#include "model/ListNodesRequest.h"
#include "model/ListNodesResult.h"
#include "model/SetJobUserRequest.h"
#include "model/SetJobUserResult.h"
#include "model/ModifyUserGroupsRequest.h"
#include "model/ModifyUserGroupsResult.h"
#include "model/ListClustersRequest.h"
#include "model/ListClustersResult.h"
#include "model/SubmitJobRequest.h"
#include "model/SubmitJobResult.h"
#include "model/ListCustomImagesRequest.h"
#include "model/ListCustomImagesResult.h"
#include "model/ListRegionsRequest.h"
#include "model/ListRegionsResult.h"
#include "model/AddUsersRequest.h"
#include "model/AddUsersResult.h"
#include "model/ListJobTemplatesRequest.h"
#include "model/ListJobTemplatesResult.h"
#include "model/ModifyClusterAttributesRequest.h"
#include "model/ModifyClusterAttributesResult.h"
#include "model/DeleteJobTemplatesRequest.h"
#include "model/DeleteJobTemplatesResult.h"
#include "model/ListNodesNoPagingRequest.h"
#include "model/ListNodesNoPagingResult.h"
#include "model/CreateJobTemplateRequest.h"
#include "model/CreateJobTemplateResult.h"
#include "model/RerunJobsRequest.h"
#include "model/RerunJobsResult.h"
#include "model/ResetNodesRequest.h"
#include "model/ResetNodesResult.h"
#include "model/EditJobTemplateRequest.h"
#include "model/EditJobTemplateResult.h"
#include "model/ListPreferredEcsTypesRequest.h"
#include "model/ListPreferredEcsTypesResult.h"
#include "model/ListClusterLogsRequest.h"
#include "model/ListClusterLogsResult.h"
#include "model/DeleteJobsRequest.h"
#include "model/DeleteJobsResult.h"
#include "model/DeleteNodesRequest.h"
#include "model/DeleteNodesResult.h"
#include "model/ListJobsRequest.h"
#include "model/ListJobsResult.h"
#include "model/CreateClusterRequest.h"
#include "model/CreateClusterResult.h"
#include "model/ModifyUserPasswordsRequest.h"
#include "model/ModifyUserPasswordsResult.h"
namespace AlibabaCloud
{
namespace EHPC
{
class ALIBABACLOUD_EHPC_EXPORT EHPCClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::DeleteUsersResult> DeleteUsersOutcome;
typedef std::future<DeleteUsersOutcome> DeleteUsersOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::DeleteUsersRequest&, const DeleteUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteUsersAsyncHandler;
typedef Outcome<Error, Model::DescribeClusterResult> DescribeClusterOutcome;
typedef std::future<DescribeClusterOutcome> DescribeClusterOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::DescribeClusterRequest&, const DescribeClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClusterAsyncHandler;
typedef Outcome<Error, Model::ListUsersResult> ListUsersOutcome;
typedef std::future<ListUsersOutcome> ListUsersOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ListUsersRequest&, const ListUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUsersAsyncHandler;
typedef Outcome<Error, Model::UpgradeClientResult> UpgradeClientOutcome;
typedef std::future<UpgradeClientOutcome> UpgradeClientOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::UpgradeClientRequest&, const UpgradeClientOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeClientAsyncHandler;
typedef Outcome<Error, Model::ListCurrentClientVersionResult> ListCurrentClientVersionOutcome;
typedef std::future<ListCurrentClientVersionOutcome> ListCurrentClientVersionOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ListCurrentClientVersionRequest&, const ListCurrentClientVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCurrentClientVersionAsyncHandler;
typedef Outcome<Error, Model::DeleteClusterResult> DeleteClusterOutcome;
typedef std::future<DeleteClusterOutcome> DeleteClusterOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::DeleteClusterRequest&, const DeleteClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteClusterAsyncHandler;
typedef Outcome<Error, Model::ListImagesResult> ListImagesOutcome;
typedef std::future<ListImagesOutcome> ListImagesOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ListImagesRequest&, const ListImagesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListImagesAsyncHandler;
typedef Outcome<Error, Model::SetAutoScaleConfigResult> SetAutoScaleConfigOutcome;
typedef std::future<SetAutoScaleConfigOutcome> SetAutoScaleConfigOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::SetAutoScaleConfigRequest&, const SetAutoScaleConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetAutoScaleConfigAsyncHandler;
typedef Outcome<Error, Model::ListVolumesResult> ListVolumesOutcome;
typedef std::future<ListVolumesOutcome> ListVolumesOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ListVolumesRequest&, const ListVolumesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListVolumesAsyncHandler;
typedef Outcome<Error, Model::AddNodesResult> AddNodesOutcome;
typedef std::future<AddNodesOutcome> AddNodesOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::AddNodesRequest&, const AddNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddNodesAsyncHandler;
typedef Outcome<Error, Model::ListSoftwaresResult> ListSoftwaresOutcome;
typedef std::future<ListSoftwaresOutcome> ListSoftwaresOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ListSoftwaresRequest&, const ListSoftwaresOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSoftwaresAsyncHandler;
typedef Outcome<Error, Model::StopJobsResult> StopJobsOutcome;
typedef std::future<StopJobsOutcome> StopJobsOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::StopJobsRequest&, const StopJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopJobsAsyncHandler;
typedef Outcome<Error, Model::GetAutoScaleConfigResult> GetAutoScaleConfigOutcome;
typedef std::future<GetAutoScaleConfigOutcome> GetAutoScaleConfigOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::GetAutoScaleConfigRequest&, const GetAutoScaleConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAutoScaleConfigAsyncHandler;
typedef Outcome<Error, Model::ListNodesResult> ListNodesOutcome;
typedef std::future<ListNodesOutcome> ListNodesOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ListNodesRequest&, const ListNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListNodesAsyncHandler;
typedef Outcome<Error, Model::SetJobUserResult> SetJobUserOutcome;
typedef std::future<SetJobUserOutcome> SetJobUserOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::SetJobUserRequest&, const SetJobUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetJobUserAsyncHandler;
typedef Outcome<Error, Model::ModifyUserGroupsResult> ModifyUserGroupsOutcome;
typedef std::future<ModifyUserGroupsOutcome> ModifyUserGroupsOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ModifyUserGroupsRequest&, const ModifyUserGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyUserGroupsAsyncHandler;
typedef Outcome<Error, Model::ListClustersResult> ListClustersOutcome;
typedef std::future<ListClustersOutcome> ListClustersOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ListClustersRequest&, const ListClustersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListClustersAsyncHandler;
typedef Outcome<Error, Model::SubmitJobResult> SubmitJobOutcome;
typedef std::future<SubmitJobOutcome> SubmitJobOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::SubmitJobRequest&, const SubmitJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitJobAsyncHandler;
typedef Outcome<Error, Model::ListCustomImagesResult> ListCustomImagesOutcome;
typedef std::future<ListCustomImagesOutcome> ListCustomImagesOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ListCustomImagesRequest&, const ListCustomImagesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCustomImagesAsyncHandler;
typedef Outcome<Error, Model::ListRegionsResult> ListRegionsOutcome;
typedef std::future<ListRegionsOutcome> ListRegionsOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ListRegionsRequest&, const ListRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRegionsAsyncHandler;
typedef Outcome<Error, Model::AddUsersResult> AddUsersOutcome;
typedef std::future<AddUsersOutcome> AddUsersOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::AddUsersRequest&, const AddUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddUsersAsyncHandler;
typedef Outcome<Error, Model::ListJobTemplatesResult> ListJobTemplatesOutcome;
typedef std::future<ListJobTemplatesOutcome> ListJobTemplatesOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ListJobTemplatesRequest&, const ListJobTemplatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListJobTemplatesAsyncHandler;
typedef Outcome<Error, Model::ModifyClusterAttributesResult> ModifyClusterAttributesOutcome;
typedef std::future<ModifyClusterAttributesOutcome> ModifyClusterAttributesOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ModifyClusterAttributesRequest&, const ModifyClusterAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyClusterAttributesAsyncHandler;
typedef Outcome<Error, Model::DeleteJobTemplatesResult> DeleteJobTemplatesOutcome;
typedef std::future<DeleteJobTemplatesOutcome> DeleteJobTemplatesOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::DeleteJobTemplatesRequest&, const DeleteJobTemplatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteJobTemplatesAsyncHandler;
typedef Outcome<Error, Model::ListNodesNoPagingResult> ListNodesNoPagingOutcome;
typedef std::future<ListNodesNoPagingOutcome> ListNodesNoPagingOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ListNodesNoPagingRequest&, const ListNodesNoPagingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListNodesNoPagingAsyncHandler;
typedef Outcome<Error, Model::CreateJobTemplateResult> CreateJobTemplateOutcome;
typedef std::future<CreateJobTemplateOutcome> CreateJobTemplateOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::CreateJobTemplateRequest&, const CreateJobTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateJobTemplateAsyncHandler;
typedef Outcome<Error, Model::RerunJobsResult> RerunJobsOutcome;
typedef std::future<RerunJobsOutcome> RerunJobsOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::RerunJobsRequest&, const RerunJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RerunJobsAsyncHandler;
typedef Outcome<Error, Model::ResetNodesResult> ResetNodesOutcome;
typedef std::future<ResetNodesOutcome> ResetNodesOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ResetNodesRequest&, const ResetNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetNodesAsyncHandler;
typedef Outcome<Error, Model::EditJobTemplateResult> EditJobTemplateOutcome;
typedef std::future<EditJobTemplateOutcome> EditJobTemplateOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::EditJobTemplateRequest&, const EditJobTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EditJobTemplateAsyncHandler;
typedef Outcome<Error, Model::ListPreferredEcsTypesResult> ListPreferredEcsTypesOutcome;
typedef std::future<ListPreferredEcsTypesOutcome> ListPreferredEcsTypesOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ListPreferredEcsTypesRequest&, const ListPreferredEcsTypesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPreferredEcsTypesAsyncHandler;
typedef Outcome<Error, Model::ListClusterLogsResult> ListClusterLogsOutcome;
typedef std::future<ListClusterLogsOutcome> ListClusterLogsOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ListClusterLogsRequest&, const ListClusterLogsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListClusterLogsAsyncHandler;
typedef Outcome<Error, Model::DeleteJobsResult> DeleteJobsOutcome;
typedef std::future<DeleteJobsOutcome> DeleteJobsOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::DeleteJobsRequest&, const DeleteJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteJobsAsyncHandler;
typedef Outcome<Error, Model::DeleteNodesResult> DeleteNodesOutcome;
typedef std::future<DeleteNodesOutcome> DeleteNodesOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::DeleteNodesRequest&, const DeleteNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteNodesAsyncHandler;
typedef Outcome<Error, Model::ListJobsResult> ListJobsOutcome;
typedef std::future<ListJobsOutcome> ListJobsOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ListJobsRequest&, const ListJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListJobsAsyncHandler;
typedef Outcome<Error, Model::CreateClusterResult> CreateClusterOutcome;
typedef std::future<CreateClusterOutcome> CreateClusterOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::CreateClusterRequest&, const CreateClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateClusterAsyncHandler;
typedef Outcome<Error, Model::ModifyUserPasswordsResult> ModifyUserPasswordsOutcome;
typedef std::future<ModifyUserPasswordsOutcome> ModifyUserPasswordsOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ModifyUserPasswordsRequest&, const ModifyUserPasswordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyUserPasswordsAsyncHandler;
EHPCClient(const Credentials &credentials, const ClientConfiguration &configuration);
EHPCClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
EHPCClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~EHPCClient();
DeleteUsersOutcome deleteUsers(const Model::DeleteUsersRequest &request)const;
void deleteUsersAsync(const Model::DeleteUsersRequest& request, const DeleteUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteUsersOutcomeCallable deleteUsersCallable(const Model::DeleteUsersRequest& request) const;
DescribeClusterOutcome describeCluster(const Model::DescribeClusterRequest &request)const;
void describeClusterAsync(const Model::DescribeClusterRequest& request, const DescribeClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeClusterOutcomeCallable describeClusterCallable(const Model::DescribeClusterRequest& request) const;
ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const;
void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const;
UpgradeClientOutcome upgradeClient(const Model::UpgradeClientRequest &request)const;
void upgradeClientAsync(const Model::UpgradeClientRequest& request, const UpgradeClientAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpgradeClientOutcomeCallable upgradeClientCallable(const Model::UpgradeClientRequest& request) const;
ListCurrentClientVersionOutcome listCurrentClientVersion(const Model::ListCurrentClientVersionRequest &request)const;
void listCurrentClientVersionAsync(const Model::ListCurrentClientVersionRequest& request, const ListCurrentClientVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCurrentClientVersionOutcomeCallable listCurrentClientVersionCallable(const Model::ListCurrentClientVersionRequest& request) const;
DeleteClusterOutcome deleteCluster(const Model::DeleteClusterRequest &request)const;
void deleteClusterAsync(const Model::DeleteClusterRequest& request, const DeleteClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteClusterOutcomeCallable deleteClusterCallable(const Model::DeleteClusterRequest& request) const;
ListImagesOutcome listImages(const Model::ListImagesRequest &request)const;
void listImagesAsync(const Model::ListImagesRequest& request, const ListImagesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListImagesOutcomeCallable listImagesCallable(const Model::ListImagesRequest& request) const;
SetAutoScaleConfigOutcome setAutoScaleConfig(const Model::SetAutoScaleConfigRequest &request)const;
void setAutoScaleConfigAsync(const Model::SetAutoScaleConfigRequest& request, const SetAutoScaleConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetAutoScaleConfigOutcomeCallable setAutoScaleConfigCallable(const Model::SetAutoScaleConfigRequest& request) const;
ListVolumesOutcome listVolumes(const Model::ListVolumesRequest &request)const;
void listVolumesAsync(const Model::ListVolumesRequest& request, const ListVolumesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListVolumesOutcomeCallable listVolumesCallable(const Model::ListVolumesRequest& request) const;
AddNodesOutcome addNodes(const Model::AddNodesRequest &request)const;
void addNodesAsync(const Model::AddNodesRequest& request, const AddNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddNodesOutcomeCallable addNodesCallable(const Model::AddNodesRequest& request) const;
ListSoftwaresOutcome listSoftwares(const Model::ListSoftwaresRequest &request)const;
void listSoftwaresAsync(const Model::ListSoftwaresRequest& request, const ListSoftwaresAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListSoftwaresOutcomeCallable listSoftwaresCallable(const Model::ListSoftwaresRequest& request) const;
StopJobsOutcome stopJobs(const Model::StopJobsRequest &request)const;
void stopJobsAsync(const Model::StopJobsRequest& request, const StopJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopJobsOutcomeCallable stopJobsCallable(const Model::StopJobsRequest& request) const;
GetAutoScaleConfigOutcome getAutoScaleConfig(const Model::GetAutoScaleConfigRequest &request)const;
void getAutoScaleConfigAsync(const Model::GetAutoScaleConfigRequest& request, const GetAutoScaleConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetAutoScaleConfigOutcomeCallable getAutoScaleConfigCallable(const Model::GetAutoScaleConfigRequest& request) const;
ListNodesOutcome listNodes(const Model::ListNodesRequest &request)const;
void listNodesAsync(const Model::ListNodesRequest& request, const ListNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListNodesOutcomeCallable listNodesCallable(const Model::ListNodesRequest& request) const;
SetJobUserOutcome setJobUser(const Model::SetJobUserRequest &request)const;
void setJobUserAsync(const Model::SetJobUserRequest& request, const SetJobUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetJobUserOutcomeCallable setJobUserCallable(const Model::SetJobUserRequest& request) const;
ModifyUserGroupsOutcome modifyUserGroups(const Model::ModifyUserGroupsRequest &request)const;
void modifyUserGroupsAsync(const Model::ModifyUserGroupsRequest& request, const ModifyUserGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyUserGroupsOutcomeCallable modifyUserGroupsCallable(const Model::ModifyUserGroupsRequest& request) const;
ListClustersOutcome listClusters(const Model::ListClustersRequest &request)const;
void listClustersAsync(const Model::ListClustersRequest& request, const ListClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListClustersOutcomeCallable listClustersCallable(const Model::ListClustersRequest& request) const;
SubmitJobOutcome submitJob(const Model::SubmitJobRequest &request)const;
void submitJobAsync(const Model::SubmitJobRequest& request, const SubmitJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SubmitJobOutcomeCallable submitJobCallable(const Model::SubmitJobRequest& request) const;
ListCustomImagesOutcome listCustomImages(const Model::ListCustomImagesRequest &request)const;
void listCustomImagesAsync(const Model::ListCustomImagesRequest& request, const ListCustomImagesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCustomImagesOutcomeCallable listCustomImagesCallable(const Model::ListCustomImagesRequest& request) const;
ListRegionsOutcome listRegions(const Model::ListRegionsRequest &request)const;
void listRegionsAsync(const Model::ListRegionsRequest& request, const ListRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRegionsOutcomeCallable listRegionsCallable(const Model::ListRegionsRequest& request) const;
AddUsersOutcome addUsers(const Model::AddUsersRequest &request)const;
void addUsersAsync(const Model::AddUsersRequest& request, const AddUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddUsersOutcomeCallable addUsersCallable(const Model::AddUsersRequest& request) const;
ListJobTemplatesOutcome listJobTemplates(const Model::ListJobTemplatesRequest &request)const;
void listJobTemplatesAsync(const Model::ListJobTemplatesRequest& request, const ListJobTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListJobTemplatesOutcomeCallable listJobTemplatesCallable(const Model::ListJobTemplatesRequest& request) const;
ModifyClusterAttributesOutcome modifyClusterAttributes(const Model::ModifyClusterAttributesRequest &request)const;
void modifyClusterAttributesAsync(const Model::ModifyClusterAttributesRequest& request, const ModifyClusterAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyClusterAttributesOutcomeCallable modifyClusterAttributesCallable(const Model::ModifyClusterAttributesRequest& request) const;
DeleteJobTemplatesOutcome deleteJobTemplates(const Model::DeleteJobTemplatesRequest &request)const;
void deleteJobTemplatesAsync(const Model::DeleteJobTemplatesRequest& request, const DeleteJobTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteJobTemplatesOutcomeCallable deleteJobTemplatesCallable(const Model::DeleteJobTemplatesRequest& request) const;
ListNodesNoPagingOutcome listNodesNoPaging(const Model::ListNodesNoPagingRequest &request)const;
void listNodesNoPagingAsync(const Model::ListNodesNoPagingRequest& request, const ListNodesNoPagingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListNodesNoPagingOutcomeCallable listNodesNoPagingCallable(const Model::ListNodesNoPagingRequest& request) const;
CreateJobTemplateOutcome createJobTemplate(const Model::CreateJobTemplateRequest &request)const;
void createJobTemplateAsync(const Model::CreateJobTemplateRequest& request, const CreateJobTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateJobTemplateOutcomeCallable createJobTemplateCallable(const Model::CreateJobTemplateRequest& request) const;
RerunJobsOutcome rerunJobs(const Model::RerunJobsRequest &request)const;
void rerunJobsAsync(const Model::RerunJobsRequest& request, const RerunJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
ResetNodesOutcomeCallable resetNodesCallable(const Model::ResetNodesRequest& request) const;
EditJobTemplateOutcome editJobTemplate(const Model::EditJobTemplateRequest &request)const;
void editJobTemplateAsync(const Model::EditJobTemplateRequest& request, const EditJobTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EditJobTemplateOutcomeCallable editJobTemplateCallable(const Model::EditJobTemplateRequest& request) const;
ListPreferredEcsTypesOutcome listPreferredEcsTypes(const Model::ListPreferredEcsTypesRequest &request)const;
void listPreferredEcsTypesAsync(const Model::ListPreferredEcsTypesRequest& request, const ListPreferredEcsTypesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPreferredEcsTypesOutcomeCallable listPreferredEcsTypesCallable(const Model::ListPreferredEcsTypesRequest& request) const;
ListClusterLogsOutcome listClusterLogs(const Model::ListClusterLogsRequest &request)const;
void listClusterLogsAsync(const Model::ListClusterLogsRequest& request, const ListClusterLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListClusterLogsOutcomeCallable listClusterLogsCallable(const Model::ListClusterLogsRequest& request) const;
DeleteJobsOutcome deleteJobs(const Model::DeleteJobsRequest &request)const;
void deleteJobsAsync(const Model::DeleteJobsRequest& request, const DeleteJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteJobsOutcomeCallable deleteJobsCallable(const Model::DeleteJobsRequest& request) const;
DeleteNodesOutcome deleteNodes(const Model::DeleteNodesRequest &request)const;
void deleteNodesAsync(const Model::DeleteNodesRequest& request, const DeleteNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteNodesOutcomeCallable deleteNodesCallable(const Model::DeleteNodesRequest& request) const;
ListJobsOutcome listJobs(const Model::ListJobsRequest &request)const;
void listJobsAsync(const Model::ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListJobsOutcomeCallable listJobsCallable(const Model::ListJobsRequest& request) const;
CreateClusterOutcome createCluster(const Model::CreateClusterRequest &request)const;
void createClusterAsync(const Model::CreateClusterRequest& request, const CreateClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateClusterOutcomeCallable createClusterCallable(const Model::CreateClusterRequest& request) const;
ModifyUserPasswordsOutcome modifyUserPasswords(const Model::ModifyUserPasswordsRequest &request)const;
void modifyUserPasswordsAsync(const Model::ModifyUserPasswordsRequest& request, const ModifyUserPasswordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyUserPasswordsOutcomeCallable modifyUserPasswordsCallable(const Model::ModifyUserPasswordsRequest& request) const;
private:
virtual EndpointOutcome endpoint()const override;
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_EHPC_EHPCCLIENT_H_

View File

@@ -0,0 +1,32 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_EHPCEXPORT_H_
#define ALIBABACLOUD_EHPC_EHPCEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_EHPC_LIBRARY)
# define ALIBABACLOUD_EHPC_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_EHPC_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_EHPC_EXPORT
#endif
#endif // !ALIBABACLOUD_EHPC_EHPCEXPORT_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_ADDNODESREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_ADDNODESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
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 getComputeSpotPriceLimit()const;
void setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getImageOwnerAlias()const;
void setImageOwnerAlias(const std::string& imageOwnerAlias);
private:
std::string imageId_;
int count_;
std::string clusterId_;
std::string computeSpotStrategy_;
std::string computeSpotPriceLimit_;
std::string accessKeyId_;
std::string imageOwnerAlias_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_ADDNODESREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_ADDNODESRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_ADDNODESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT AddNodesResult : public ServiceResult
{
public:
AddNodesResult();
explicit AddNodesResult(const std::string &payload);
~AddNodesResult();
std::vector<std::string> getInstanceIds()const;
protected:
void parse(const std::string &payload);
private:
std::vector<std::string> instanceIds_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_ADDNODESRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_ADDUSERSREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_ADDUSERSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT AddUsersRequest : public RpcServiceRequest
{
struct User
{
std::string name;
std::string group;
std::string password;
};
public:
AddUsersRequest();
~AddUsersRequest();
bool getReleaseInstance()const;
void setReleaseInstance(bool releaseInstance);
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
std::vector<User> getUser()const;
void setUser(const std::vector<User>& user);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
bool releaseInstance_;
std::string clusterId_;
std::vector<User> user_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_ADDUSERSREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_ADDUSERSRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_ADDUSERSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT AddUsersResult : public ServiceResult
{
public:
AddUsersResult();
explicit AddUsersResult(const std::string &payload);
~AddUsersResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_ADDUSERSRESULT_H_

View File

@@ -0,0 +1,145 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF 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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT CreateClusterRequest : public RpcServiceRequest
{
struct Application
{
std::string tag;
};
public:
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<Application> getApplication()const;
void setApplication(const std::vector<Application>& application);
std::string getEcsChargeType()const;
void setEcsChargeType(const std::string& ecsChargeType);
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> application_;
std::string ecsChargeType_;
bool haEnable_;
std::string name_;
std::string schedulerType_;
std::string volumeId_;
std::string volumeMountpoint_;
std::string ecsOrderLoginInstanceType_;
std::string zoneId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_CREATECLUSTERREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_CREATECLUSTERRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_CREATECLUSTERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT CreateClusterResult : public ServiceResult
{
public:
CreateClusterResult();
explicit CreateClusterResult(const std::string &payload);
~CreateClusterResult();
std::string getClusterId()const;
protected:
void parse(const std::string &payload);
private:
std::string clusterId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_CREATECLUSTERRESULT_H_

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_CREATEJOBTEMPLATEREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_CREATEJOBTEMPLATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
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 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 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& regionId);
std::string getName()const;
void setName(const std::string& name);
std::string getStdoutRedirectPath()const;
void setStdoutRedirectPath(const std::string& stdoutRedirectPath);
private:
std::string stderrRedirectPath_;
std::string variables_;
std::string runasUser_;
bool reRunable_;
int priority_;
std::string commandLine_;
std::string accessKeyId_;
std::string arrayRequest_;
std::string packagePath_;
std::string regionId_;
std::string name_;
std::string stdoutRedirectPath_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEJOBTEMPLATEREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_CREATEJOBTEMPLATERESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_CREATEJOBTEMPLATERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT CreateJobTemplateResult : public ServiceResult
{
public:
CreateJobTemplateResult();
explicit CreateJobTemplateResult(const std::string &payload);
~CreateJobTemplateResult();
std::string getTemplateId()const;
protected:
void parse(const std::string &payload);
private:
std::string templateId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEJOBTEMPLATERESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_DELETECLUSTERREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_DELETECLUSTERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT DeleteClusterRequest : public RpcServiceRequest
{
public:
DeleteClusterRequest();
~DeleteClusterRequest();
std::string getReleaseInstance()const;
void setReleaseInstance(const std::string& releaseInstance);
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string releaseInstance_;
std::string clusterId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_DELETECLUSTERREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_DELETECLUSTERRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_DELETECLUSTERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT DeleteClusterResult : public ServiceResult
{
public:
DeleteClusterResult();
explicit DeleteClusterResult(const std::string &payload);
~DeleteClusterResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_DELETECLUSTERRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_DELETEJOBTEMPLATESREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_DELETEJOBTEMPLATESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT DeleteJobTemplatesRequest : public RpcServiceRequest
{
public:
DeleteJobTemplatesRequest();
~DeleteJobTemplatesRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getTemplates()const;
void setTemplates(const std::string& templates);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string regionId_;
std::string templates_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEJOBTEMPLATESREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_DELETEJOBTEMPLATESRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_DELETEJOBTEMPLATESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT DeleteJobTemplatesResult : public ServiceResult
{
public:
DeleteJobTemplatesResult();
explicit DeleteJobTemplatesResult(const std::string &payload);
~DeleteJobTemplatesResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEJOBTEMPLATESRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_DELETEJOBSREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_DELETEJOBSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
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_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_DELETEJOBSRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_DELETEJOBSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT DeleteJobsResult : public ServiceResult
{
public:
DeleteJobsResult();
explicit DeleteJobsResult(const std::string &payload);
~DeleteJobsResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEJOBSRESULT_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_DELETENODESREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_DELETENODESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT DeleteNodesRequest : public RpcServiceRequest
{
struct Instance
{
std::string id;
};
public:
DeleteNodesRequest();
~DeleteNodesRequest();
bool getReleaseInstance()const;
void setReleaseInstance(bool releaseInstance);
std::vector<Instance> getInstance()const;
void setInstance(const std::vector<Instance>& instance);
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
bool releaseInstance_;
std::vector<Instance> instance_;
std::string clusterId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_DELETENODESREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_DELETENODESRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_DELETENODESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT DeleteNodesResult : public ServiceResult
{
public:
DeleteNodesResult();
explicit DeleteNodesResult(const std::string &payload);
~DeleteNodesResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_DELETENODESRESULT_H_

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_DELETEUSERSREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_DELETEUSERSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT DeleteUsersRequest : public RpcServiceRequest
{
struct User
{
std::string name;
};
public:
DeleteUsersRequest();
~DeleteUsersRequest();
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
std::vector<User> getUser()const;
void setUser(const std::vector<User>& user);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string clusterId_;
std::vector<User> user_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEUSERSREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_DELETEUSERSRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_DELETEUSERSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT DeleteUsersResult : public ServiceResult
{
public:
DeleteUsersResult();
explicit DeleteUsersResult(const std::string &payload);
~DeleteUsersResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEUSERSRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBECLUSTERREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_DESCRIBECLUSTERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
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_

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBECLUSTERRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_DESCRIBECLUSTERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT DescribeClusterResult : public ServiceResult
{
public:
struct ClusterInfo
{
struct EcsInfo
{
struct Manager
{
int count;
std::string instanceType;
};
struct Compute
{
int count;
std::string instanceType;
};
struct Login
{
int count;
std::string instanceType;
};
std::vector<Compute> compute;
std::vector<Login> login;
std::vector<Manager> manager;
};
struct ApplicationInfoItem
{
std::string version;
std::string tag;
std::string name;
};
std::string volumeProtocol;
std::string imageOwnerAlias;
std::string description;
std::vector<ApplicationInfoItem> applicationInfo;
std::string clientVersion;
std::string name;
std::string volumeId;
std::string volumeType;
std::string imageId;
std::string status;
std::string keyPairName;
std::string remoteDirectory;
std::string sccClusterId;
std::string createTime;
std::string securityGroupId;
std::string vSwitchId;
std::string schedulerType;
std::string accountType;
std::string volumeMountpoint;
std::vector<EcsInfo> ecsInfo;
bool haEnable;
std::string osTag;
std::string id;
std::string regionId;
std::string ecsChargeType;
};
DescribeClusterResult();
explicit DescribeClusterResult(const std::string &payload);
~DescribeClusterResult();
std::vector<ClusterInfo> getClusterInfo()const;
protected:
void parse(const std::string &payload);
private:
std::vector<ClusterInfo> clusterInfo_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBECLUSTERRESULT_H_

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_EDITJOBTEMPLATEREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_EDITJOBTEMPLATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
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 getVariables()const;
void setVariables(const std::string& variables);
std::string getRunasUser()const;
void setRunasUser(const std::string& runasUser);
std::string getTemplateId()const;
void setTemplateId(const std::string& templateId);
int getPriority()const;
void setPriority(int priority);
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);
bool getReRunnable()const;
void setReRunnable(bool reRunnable);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getName()const;
void setName(const std::string& name);
std::string getStdoutRedirectPath()const;
void setStdoutRedirectPath(const std::string& stdoutRedirectPath);
private:
std::string stderrRedirectPath_;
std::string variables_;
std::string runasUser_;
std::string templateId_;
int priority_;
std::string commandLine_;
std::string accessKeyId_;
std::string arrayRequest_;
std::string packagePath_;
bool reRunnable_;
std::string regionId_;
std::string name_;
std::string stdoutRedirectPath_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_EDITJOBTEMPLATEREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_EDITJOBTEMPLATERESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_EDITJOBTEMPLATERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT EditJobTemplateResult : public ServiceResult
{
public:
EditJobTemplateResult();
explicit EditJobTemplateResult(const std::string &payload);
~EditJobTemplateResult();
std::string getTemplateId()const;
protected:
void parse(const std::string &payload);
private:
std::string templateId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_EDITJOBTEMPLATERESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_GETAUTOSCALECONFIGREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_GETAUTOSCALECONFIGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
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_

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_GETAUTOSCALECONFIGRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_GETAUTOSCALECONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT GetAutoScaleConfigResult : public ServiceResult
{
public:
GetAutoScaleConfigResult();
explicit GetAutoScaleConfigResult(const std::string &payload);
~GetAutoScaleConfigResult();
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 getExcludeNodes()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 excludeNodes_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_GETAUTOSCALECONFIGRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERLOGSREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERLOGSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListClusterLogsRequest : public RpcServiceRequest
{
public:
ListClusterLogsRequest();
~ListClusterLogsRequest();
int getPageSize()const;
void setPageSize(int pageSize);
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);
private:
int pageSize_;
std::string clusterId_;
int pageNumber_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERLOGSREQUEST_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERLOGSRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERLOGSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListClusterLogsResult : public ServiceResult
{
public:
struct LogInfo
{
std::string message;
std::string createTime;
std::string level;
std::string operation;
};
ListClusterLogsResult();
explicit ListClusterLogsResult(const std::string &payload);
~ListClusterLogsResult();
int getTotalCount()const;
int getPageSize()const;
int getPageNumber()const;
std::string getClusterId()const;
std::vector<LogInfo> getLogs()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
int pageNumber_;
std::string clusterId_;
std::vector<LogInfo> logs_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERLOGSRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERSREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListClustersRequest : public RpcServiceRequest
{
public:
ListClustersRequest();
~ListClustersRequest();
int getPageSize()const;
void setPageSize(int pageSize);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
int pageSize_;
int pageNumber_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERSREQUEST_H_

View File

@@ -0,0 +1,103 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERSRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListClustersResult : public ServiceResult
{
public:
struct ClusterInfoSimple
{
struct Managers
{
int normalCount;
int total;
int exceptionCount;
};
struct Computes
{
int normalCount;
int total;
int exceptionCount;
};
struct TotalResources
{
int memory;
int cpu;
int gpu;
};
struct UsedResources
{
int memory;
int cpu;
int gpu;
};
std::string status;
std::string imageOwnerAlias;
std::string description;
std::string zoneId;
std::string createTime;
std::string schedulerType;
int count;
std::string accountType;
std::string name;
std::vector<UsedResources> usedResources;
std::vector<Managers> managers;
std::vector<TotalResources> totalResources;
std::string osTag;
std::string imageId;
std::string id;
std::string regionId;
std::string instanceType;
std::string loginNodes;
std::vector<Computes> computes;
};
ListClustersResult();
explicit ListClustersResult(const std::string &payload);
~ListClustersResult();
int getTotalCount()const;
int getPageSize()const;
int getPageNumber()const;
std::vector<ClusterInfoSimple> getClusters()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
int pageNumber_;
std::vector<ClusterInfoSimple> clusters_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERSRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCURRENTCLIENTVERSIONREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTCURRENTCLIENTVERSIONREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
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_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCURRENTCLIENTVERSIONRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTCURRENTCLIENTVERSIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListCurrentClientVersionResult : public ServiceResult
{
public:
ListCurrentClientVersionResult();
explicit ListCurrentClientVersionResult(const std::string &payload);
~ListCurrentClientVersionResult();
std::string getClientVersion()const;
protected:
void parse(const std::string &payload);
private:
std::string clientVersion_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCURRENTCLIENTVERSIONRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCUSTOMIMAGESREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTCUSTOMIMAGESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListCustomImagesRequest : public RpcServiceRequest
{
public:
ListCustomImagesRequest();
~ListCustomImagesRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getBaseOsTag()const;
void setBaseOsTag(const std::string& baseOsTag);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getImageOwnerAlias()const;
void setImageOwnerAlias(const std::string& imageOwnerAlias);
private:
std::string regionId_;
std::string baseOsTag_;
std::string accessKeyId_;
std::string imageOwnerAlias_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCUSTOMIMAGESREQUEST_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCUSTOMIMAGESRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTCUSTOMIMAGESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListCustomImagesResult : public ServiceResult
{
public:
struct ImageInfo
{
struct BaseOsTag
{
std::string platform;
std::string architecture;
std::string version;
std::string osTag;
};
std::string imageOwnerAlias;
std::string imageName;
std::string description;
std::string imageId;
std::vector<BaseOsTag> baseOsTag;
};
ListCustomImagesResult();
explicit ListCustomImagesResult(const std::string &payload);
~ListCustomImagesResult();
std::vector<ImageInfo> getImages()const;
protected:
void parse(const std::string &payload);
private:
std::vector<ImageInfo> images_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCUSTOMIMAGESRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTIMAGESREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTIMAGESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
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_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTIMAGESREQUEST_H_

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTIMAGESRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTIMAGESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListImagesResult : public ServiceResult
{
public:
struct OsInfo
{
std::string platform;
std::string architecture;
std::string version;
std::string osTag;
};
ListImagesResult();
explicit ListImagesResult(const std::string &payload);
~ListImagesResult();
std::vector<OsInfo> getOsTags()const;
protected:
void parse(const std::string &payload);
private:
std::vector<OsInfo> osTags_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTIMAGESRESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTJOBTEMPLATESREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTJOBTEMPLATESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListJobTemplatesRequest : public RpcServiceRequest
{
public:
ListJobTemplatesRequest();
~ListJobTemplatesRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getName()const;
void setName(const std::string& name);
int getPageSize()const;
void setPageSize(int pageSize);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string regionId_;
std::string name_;
int pageSize_;
int pageNumber_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTJOBTEMPLATESREQUEST_H_

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTJOBTEMPLATESRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTJOBTEMPLATESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListJobTemplatesResult : public ServiceResult
{
public:
struct JobTemplates
{
std::string variables;
bool reRunable;
std::string commandLine;
int priority;
std::string stderrRedirectPath;
std::string stdoutRedirectPath;
std::string id;
std::string package;
std::string arrayRequest;
std::string runasUser;
std::string name;
};
ListJobTemplatesResult();
explicit ListJobTemplatesResult(const std::string &payload);
~ListJobTemplatesResult();
int getTotalCount()const;
int getPageSize()const;
int getPageNumber()const;
std::vector<JobTemplates> getTemplates()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
int pageNumber_;
std::vector<JobTemplates> templates_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTJOBTEMPLATESRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTJOBSREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTJOBSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
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);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
std::string getState()const;
void setState(const std::string& state);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string owner_;
int pageSize_;
std::string clusterId_;
std::string state_;
int pageNumber_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTJOBSREQUEST_H_

View File

@@ -0,0 +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_LISTJOBSRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTJOBSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListJobsResult : public ServiceResult
{
public:
struct JobInfo
{
struct Resources
{
int cores;
int nodes;
};
std::string comment;
std::string owner;
int priority;
std::string startTime;
std::string lastModifyTime;
std::string submitTime;
std::string name;
std::string stderr;
std::string state;
std::vector<Resources> resources;
std::string id;
std::string arrayRequest;
std::string stdout;
};
ListJobsResult();
explicit ListJobsResult(const std::string &payload);
~ListJobsResult();
int getTotalCount()const;
int getPageSize()const;
std::vector<JobInfo> getJobs()const;
int getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
std::vector<JobInfo> jobs_;
int pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTJOBSRESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTNODESNOPAGINGREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTNODESNOPAGINGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListNodesNoPagingRequest : public RpcServiceRequest
{
public:
ListNodesNoPagingRequest();
~ListNodesNoPagingRequest();
std::string getHostName()const;
void setHostName(const std::string& hostName);
std::string getRole()const;
void setRole(const std::string& role);
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
bool getOnlyDetached()const;
void setOnlyDetached(bool onlyDetached);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string hostName_;
std::string role_;
std::string clusterId_;
bool onlyDetached_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTNODESNOPAGINGREQUEST_H_

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTNODESNOPAGINGRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTNODESNOPAGINGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListNodesNoPagingResult : 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;
bool expired;
std::string addTime;
std::vector<UsedResources> usedResources;
std::string role;
bool createdByEhpc;
std::vector<TotalResources> totalResources;
std::string expiredTime;
std::string imageId;
std::string id;
std::string regionId;
std::string lockReason;
std::string spotStrategy;
};
ListNodesNoPagingResult();
explicit ListNodesNoPagingResult(const std::string &payload);
~ListNodesNoPagingResult();
int getTotalCount()const;
int getPageSize()const;
int getPageNumber()const;
std::vector<NodeInfo> getNodes()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
int pageNumber_;
std::vector<NodeInfo> nodes_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTNODESNOPAGINGRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTNODESREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTNODESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListNodesRequest : public RpcServiceRequest
{
public:
ListNodesRequest();
~ListNodesRequest();
std::string getHostName()const;
void setHostName(const std::string& hostName);
std::string getRole()const;
void setRole(const std::string& role);
int getPageSize()const;
void setPageSize(int pageSize);
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);
private:
std::string hostName_;
std::string role_;
int pageSize_;
std::string clusterId_;
int pageNumber_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTNODESREQUEST_H_

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTNODESRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTNODESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListNodesResult : 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;
bool expired;
std::string addTime;
std::vector<UsedResources> usedResources;
std::string role;
bool createdByEhpc;
std::vector<TotalResources> totalResources;
std::string expiredTime;
std::string imageId;
std::string id;
std::string regionId;
std::string lockReason;
std::string spotStrategy;
};
ListNodesResult();
explicit ListNodesResult(const std::string &payload);
~ListNodesResult();
int getTotalCount()const;
int getPageSize()const;
int getPageNumber()const;
std::vector<NodeInfo> getNodes()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
int pageNumber_;
std::vector<NodeInfo> nodes_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTNODESRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTPREFERREDECSTYPESREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTPREFERREDECSTYPESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListPreferredEcsTypesRequest : public RpcServiceRequest
{
public:
ListPreferredEcsTypesRequest();
~ListPreferredEcsTypesRequest();
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string zoneId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTPREFERREDECSTYPESREQUEST_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTPREFERREDECSTYPESRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTPREFERREDECSTYPESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListPreferredEcsTypesResult : public ServiceResult
{
public:
struct SeriesInfo
{
struct Roles
{
std::vector<std::string> compute;
std::vector<std::string> login;
std::vector<std::string> manager;
};
std::string seriesId;
std::string seriesName;
std::vector<Roles> roles;
};
ListPreferredEcsTypesResult();
explicit ListPreferredEcsTypesResult(const std::string &payload);
~ListPreferredEcsTypesResult();
std::vector<SeriesInfo> getSeries()const;
protected:
void parse(const std::string &payload);
private:
std::vector<SeriesInfo> series_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTPREFERREDECSTYPESRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTREGIONSREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTREGIONSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
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_

View File

@@ -0,0 +1,56 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTREGIONSRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTREGIONSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListRegionsResult : public ServiceResult
{
public:
struct RegionInfo
{
std::string regionId;
std::string localName;
};
ListRegionsResult();
explicit ListRegionsResult(const std::string &payload);
~ListRegionsResult();
std::vector<RegionInfo> getRegions()const;
protected:
void parse(const std::string &payload);
private:
std::vector<RegionInfo> regions_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTREGIONSRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTSOFTWARESREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTSOFTWARESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
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_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTSOFTWARESREQUEST_H_

View File

@@ -0,0 +1,68 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTSOFTWARESRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTSOFTWARESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListSoftwaresResult : public ServiceResult
{
public:
struct SoftwareInfo
{
struct ApplicationInfo
{
bool required;
std::string version;
std::string tag;
std::string name;
};
std::vector<SoftwareInfo::ApplicationInfo> applications;
std::string schedulerVersion;
std::string osTag;
std::string schedulerType;
std::string accountType;
std::string accountVersion;
std::string ehpcVersion;
};
ListSoftwaresResult();
explicit ListSoftwaresResult(const std::string &payload);
~ListSoftwaresResult();
std::vector<SoftwareInfo> getSoftwares()const;
protected:
void parse(const std::string &payload);
private:
std::vector<SoftwareInfo> softwares_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTSOFTWARESRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTUSERSREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTUSERSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListUsersRequest : public RpcServiceRequest
{
public:
ListUsersRequest();
~ListUsersRequest();
int getPageSize()const;
void setPageSize(int pageSize);
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);
private:
int pageSize_;
std::string clusterId_;
int pageNumber_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTUSERSREQUEST_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTUSERSRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTUSERSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListUsersResult : public ServiceResult
{
public:
struct UserInfo
{
std::string group;
std::string addTime;
std::string name;
};
ListUsersResult();
explicit ListUsersResult(const std::string &payload);
~ListUsersResult();
int getTotalCount()const;
int getPageSize()const;
int getPageNumber()const;
std::vector<UserInfo> getUsers()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
int pageNumber_;
std::vector<UserInfo> users_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTUSERSRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTVOLUMESREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTVOLUMESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListVolumesRequest : public RpcServiceRequest
{
public:
ListVolumesRequest();
~ListVolumesRequest();
int getPageSize()const;
void setPageSize(int pageSize);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
int pageSize_;
int pageNumber_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTVOLUMESREQUEST_H_

View File

@@ -0,0 +1,68 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTVOLUMESRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTVOLUMESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ListVolumesResult : public ServiceResult
{
public:
struct VolumeInfo
{
std::string volumeProtocol;
std::string volumeId;
std::string remoteDirectory;
std::string volumeType;
std::string clusterId;
std::string clusterName;
std::string regionId;
std::string volumeMountpoint;
};
ListVolumesResult();
explicit ListVolumesResult(const std::string &payload);
~ListVolumesResult();
int getTotalCount()const;
std::vector<VolumeInfo> getVolumes()const;
int getPageSize()const;
int getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
std::vector<VolumeInfo> volumes_;
int pageSize_;
int pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTVOLUMESRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_MODIFYCLUSTERATTRIBUTESREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_MODIFYCLUSTERATTRIBUTESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ModifyClusterAttributesRequest : public RpcServiceRequest
{
public:
ModifyClusterAttributesRequest();
~ModifyClusterAttributesRequest();
std::string getName()const;
void setName(const std::string& name);
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);
private:
std::string name_;
std::string description_;
std::string clusterId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYCLUSTERATTRIBUTESREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_MODIFYCLUSTERATTRIBUTESRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_MODIFYCLUSTERATTRIBUTESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ModifyClusterAttributesResult : public ServiceResult
{
public:
ModifyClusterAttributesResult();
explicit ModifyClusterAttributesResult(const std::string &payload);
~ModifyClusterAttributesResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYCLUSTERATTRIBUTESRESULT_H_

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_MODIFYUSERGROUPSREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_MODIFYUSERGROUPSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ModifyUserGroupsRequest : public RpcServiceRequest
{
struct User
{
std::string name;
std::string group;
};
public:
ModifyUserGroupsRequest();
~ModifyUserGroupsRequest();
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
std::vector<User> getUser()const;
void setUser(const std::vector<User>& user);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string clusterId_;
std::vector<User> user_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYUSERGROUPSREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_MODIFYUSERGROUPSRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_MODIFYUSERGROUPSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ModifyUserGroupsResult : public ServiceResult
{
public:
ModifyUserGroupsResult();
explicit ModifyUserGroupsResult(const std::string &payload);
~ModifyUserGroupsResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYUSERGROUPSRESULT_H_

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_MODIFYUSERPASSWORDSREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_MODIFYUSERPASSWORDSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ModifyUserPasswordsRequest : public RpcServiceRequest
{
struct User
{
std::string name;
std::string password;
};
public:
ModifyUserPasswordsRequest();
~ModifyUserPasswordsRequest();
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
std::vector<User> getUser()const;
void setUser(const std::vector<User>& user);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string clusterId_;
std::vector<User> user_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYUSERPASSWORDSREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_MODIFYUSERPASSWORDSRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_MODIFYUSERPASSWORDSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ModifyUserPasswordsResult : public ServiceResult
{
public:
ModifyUserPasswordsResult();
explicit ModifyUserPasswordsResult(const std::string &payload);
~ModifyUserPasswordsResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYUSERPASSWORDSRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_RERUNJOBSREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_RERUNJOBSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
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_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_RERUNJOBSRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_RERUNJOBSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT RerunJobsResult : public ServiceResult
{
public:
RerunJobsResult();
explicit RerunJobsResult(const std::string &payload);
~RerunJobsResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_RERUNJOBSRESULT_H_

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_RESETNODESREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_RESETNODESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ResetNodesRequest : public RpcServiceRequest
{
struct Instance
{
std::string id;
};
public:
ResetNodesRequest();
~ResetNodesRequest();
std::vector<Instance> getInstance()const;
void setInstance(const std::vector<Instance>& 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> instance_;
std::string clusterId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_RESETNODESREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_RESETNODESRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_RESETNODESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ResetNodesResult : public ServiceResult
{
public:
ResetNodesResult();
explicit ResetNodesResult(const std::string &payload);
~ResetNodesResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_RESETNODESRESULT_H_

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_SETAUTOSCALECONFIGREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_SETAUTOSCALECONFIGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT SetAutoScaleConfigRequest : public RpcServiceRequest
{
public:
SetAutoScaleConfigRequest();
~SetAutoScaleConfigRequest();
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 getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
int getMaxNodesInCluster()const;
void setMaxNodesInCluster(int maxNodesInCluster);
std::string getExcludeNodes()const;
void setExcludeNodes(const std::string& excludeNodes);
int getShrinkIntervalInMinutes()const;
void setShrinkIntervalInMinutes(int shrinkIntervalInMinutes);
int getExtraNodesGrowRatio()const;
void setExtraNodesGrowRatio(int extraNodesGrowRatio);
int getGrowIntervalInMinutes()const;
void setGrowIntervalInMinutes(int growIntervalInMinutes);
int getGrowRatio()const;
void setGrowRatio(int growRatio);
private:
int shrinkIdleTimes_;
int growTimeoutInMinutes_;
std::string clusterId_;
bool enableAutoGrow_;
bool enableAutoShrink_;
std::string accessKeyId_;
int maxNodesInCluster_;
std::string excludeNodes_;
int shrinkIntervalInMinutes_;
int extraNodesGrowRatio_;
int growIntervalInMinutes_;
int growRatio_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_SETAUTOSCALECONFIGREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_SETAUTOSCALECONFIGRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_SETAUTOSCALECONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT SetAutoScaleConfigResult : public ServiceResult
{
public:
SetAutoScaleConfigResult();
explicit SetAutoScaleConfigResult(const std::string &payload);
~SetAutoScaleConfigResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_SETAUTOSCALECONFIGRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_SETJOBUSERREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_SETJOBUSERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
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_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_SETJOBUSERREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_SETJOBUSERRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_SETJOBUSERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT SetJobUserResult : public ServiceResult
{
public:
SetJobUserResult();
explicit SetJobUserResult(const std::string &payload);
~SetJobUserResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_SETJOBUSERRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_STOPJOBSREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_STOPJOBSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
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_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_STOPJOBSRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_STOPJOBSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT StopJobsResult : public ServiceResult
{
public:
StopJobsResult();
explicit StopJobsResult(const std::string &payload);
~StopJobsResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_STOPJOBSRESULT_H_

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_SUBMITJOBREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_SUBMITJOBREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
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 getVariables()const;
void setVariables(const std::string& variables);
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);
bool getReRunable()const;
void setReRunable(bool reRunable);
int getPriority()const;
void setPriority(int priority);
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 getName()const;
void setName(const std::string& name);
std::string getStdoutRedirectPath()const;
void setStdoutRedirectPath(const std::string& stdoutRedirectPath);
private:
std::string stderrRedirectPath_;
std::string variables_;
std::string runasUserPassword_;
std::string runasUser_;
std::string clusterId_;
bool reRunable_;
int priority_;
std::string commandLine_;
std::string accessKeyId_;
std::string arrayRequest_;
std::string packagePath_;
std::string name_;
std::string stdoutRedirectPath_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_SUBMITJOBREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_SUBMITJOBRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_SUBMITJOBRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT SubmitJobResult : public ServiceResult
{
public:
SubmitJobResult();
explicit SubmitJobResult(const std::string &payload);
~SubmitJobResult();
std::string getJobId()const;
protected:
void parse(const std::string &payload);
private:
std::string jobId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_SUBMITJOBRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_UPGRADECLIENTREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_UPGRADECLIENTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
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_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_UPGRADECLIENTRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_UPGRADECLIENTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT UpgradeClientResult : public ServiceResult
{
public:
UpgradeClientResult();
explicit UpgradeClientResult(const std::string &payload);
~UpgradeClientResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_UPGRADECLIENTRESULT_H_