Add new openapi ApplyNodes.
This commit is contained in:
@@ -32,6 +32,8 @@
|
||||
#include "model/AddQueueResult.h"
|
||||
#include "model/AddUsersRequest.h"
|
||||
#include "model/AddUsersResult.h"
|
||||
#include "model/ApplyNodesRequest.h"
|
||||
#include "model/ApplyNodesResult.h"
|
||||
#include "model/BindAccountToClusterUserRequest.h"
|
||||
#include "model/BindAccountToClusterUserResult.h"
|
||||
#include "model/CreateClusterRequest.h"
|
||||
@@ -270,6 +272,9 @@ namespace AlibabaCloud
|
||||
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::ApplyNodesResult> ApplyNodesOutcome;
|
||||
typedef std::future<ApplyNodesOutcome> ApplyNodesOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ApplyNodesRequest&, const ApplyNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApplyNodesAsyncHandler;
|
||||
typedef Outcome<Error, Model::BindAccountToClusterUserResult> BindAccountToClusterUserOutcome;
|
||||
typedef std::future<BindAccountToClusterUserOutcome> BindAccountToClusterUserOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::BindAccountToClusterUserRequest&, const BindAccountToClusterUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindAccountToClusterUserAsyncHandler;
|
||||
@@ -611,6 +616,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
ApplyNodesOutcome applyNodes(const Model::ApplyNodesRequest &request)const;
|
||||
void applyNodesAsync(const Model::ApplyNodesRequest& request, const ApplyNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ApplyNodesOutcomeCallable applyNodesCallable(const Model::ApplyNodesRequest& request) const;
|
||||
BindAccountToClusterUserOutcome bindAccountToClusterUser(const Model::BindAccountToClusterUserRequest &request)const;
|
||||
void bindAccountToClusterUserAsync(const Model::BindAccountToClusterUserRequest& request, const BindAccountToClusterUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BindAccountToClusterUserOutcomeCallable bindAccountToClusterUserCallable(const Model::BindAccountToClusterUserRequest& request) const;
|
||||
|
||||
122
ehpc/include/alibabacloud/ehpc/model/ApplyNodesRequest.h
Normal file
122
ehpc/include/alibabacloud/ehpc/model/ApplyNodesRequest.h
Normal file
@@ -0,0 +1,122 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EHPC_MODEL_APPLYNODESREQUEST_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_APPLYNODESREQUEST_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 ApplyNodesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct ZoneInfos
|
||||
{
|
||||
std::string vSwitchId;
|
||||
std::string zoneId;
|
||||
};
|
||||
struct InstanceTypeModel
|
||||
{
|
||||
float maxPrice;
|
||||
std::string instanceType;
|
||||
};
|
||||
|
||||
public:
|
||||
ApplyNodesRequest();
|
||||
~ApplyNodesRequest();
|
||||
|
||||
std::string getImageId()const;
|
||||
void setImageId(const std::string& imageId);
|
||||
int getMemory()const;
|
||||
void setMemory(int memory);
|
||||
bool getAllocatePublicAddress()const;
|
||||
void setAllocatePublicAddress(bool allocatePublicAddress);
|
||||
int getInternetMaxBandWidthOut()const;
|
||||
void setInternetMaxBandWidthOut(int internetMaxBandWidthOut);
|
||||
std::string getResourceAmountType()const;
|
||||
void setResourceAmountType(const std::string& resourceAmountType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSystemDiskType()const;
|
||||
void setSystemDiskType(const std::string& systemDiskType);
|
||||
int getCores()const;
|
||||
void setCores(int cores);
|
||||
int getSystemDiskSize()const;
|
||||
void setSystemDiskSize(int systemDiskSize);
|
||||
std::vector<ZoneInfos> getZoneInfos()const;
|
||||
void setZoneInfos(const std::vector<ZoneInfos>& zoneInfos);
|
||||
std::string getHostNamePrefix()const;
|
||||
void setHostNamePrefix(const std::string& hostNamePrefix);
|
||||
std::string getComputeSpotPriceLimit()const;
|
||||
void setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getComputeSpotStrategy()const;
|
||||
void setComputeSpotStrategy(const std::string& computeSpotStrategy);
|
||||
std::string getHostNameSuffix()const;
|
||||
void setHostNameSuffix(const std::string& hostNameSuffix);
|
||||
std::string getPriorityStrategy()const;
|
||||
void setPriorityStrategy(const std::string& priorityStrategy);
|
||||
std::string getInstanceFamilyLevel()const;
|
||||
void setInstanceFamilyLevel(const std::string& instanceFamilyLevel);
|
||||
std::string getEcsChargeType()const;
|
||||
void setEcsChargeType(const std::string& ecsChargeType);
|
||||
std::string getInternetChargeType()const;
|
||||
void setInternetChargeType(const std::string& internetChargeType);
|
||||
std::vector<InstanceTypeModel> getInstanceTypeModel()const;
|
||||
void setInstanceTypeModel(const std::vector<InstanceTypeModel>& instanceTypeModel);
|
||||
int getInternetMaxBandWidthIn()const;
|
||||
void setInternetMaxBandWidthIn(int internetMaxBandWidthIn);
|
||||
int getTargetCapacity()const;
|
||||
void setTargetCapacity(int targetCapacity);
|
||||
|
||||
private:
|
||||
std::string imageId_;
|
||||
int memory_;
|
||||
bool allocatePublicAddress_;
|
||||
int internetMaxBandWidthOut_;
|
||||
std::string resourceAmountType_;
|
||||
std::string accessKeyId_;
|
||||
std::string systemDiskType_;
|
||||
int cores_;
|
||||
int systemDiskSize_;
|
||||
std::vector<ZoneInfos> zoneInfos_;
|
||||
std::string hostNamePrefix_;
|
||||
std::string computeSpotPriceLimit_;
|
||||
std::string clusterId_;
|
||||
std::string computeSpotStrategy_;
|
||||
std::string hostNameSuffix_;
|
||||
std::string priorityStrategy_;
|
||||
std::string instanceFamilyLevel_;
|
||||
std::string ecsChargeType_;
|
||||
std::string internetChargeType_;
|
||||
std::vector<InstanceTypeModel> instanceTypeModel_;
|
||||
int internetMaxBandWidthIn_;
|
||||
int targetCapacity_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_APPLYNODESREQUEST_H_
|
||||
53
ehpc/include/alibabacloud/ehpc/model/ApplyNodesResult.h
Normal file
53
ehpc/include/alibabacloud/ehpc/model/ApplyNodesResult.h
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EHPC_MODEL_APPLYNODESRESULT_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_APPLYNODESRESULT_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 ApplyNodesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ApplyNodesResult();
|
||||
explicit ApplyNodesResult(const std::string &payload);
|
||||
~ApplyNodesResult();
|
||||
std::vector<std::string> getInstanceIds()const;
|
||||
std::string getDetail()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> instanceIds_;
|
||||
std::string detail_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_APPLYNODESRESULT_H_
|
||||
@@ -53,99 +53,111 @@ namespace AlibabaCloud
|
||||
CreateHybridClusterRequest();
|
||||
~CreateHybridClusterRequest();
|
||||
|
||||
std::string getKeyPairName()const;
|
||||
void setKeyPairName(const std::string& keyPairName);
|
||||
std::string getSecurityGroupName()const;
|
||||
void setSecurityGroupName(const std::string& securityGroupName);
|
||||
std::string getOnPremiseVolumeRemotePath()const;
|
||||
void setOnPremiseVolumeRemotePath(const std::string& onPremiseVolumeRemotePath);
|
||||
std::string getImageOwnerAlias()const;
|
||||
void setImageOwnerAlias(const std::string& imageOwnerAlias);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getPassword()const;
|
||||
void setPassword(const std::string& password);
|
||||
float getComputeSpotPriceLimit()const;
|
||||
void setComputeSpotPriceLimit(float computeSpotPriceLimit);
|
||||
std::string getOnPremiseVolumeLocalPath()const;
|
||||
void setOnPremiseVolumeLocalPath(const std::string& onPremiseVolumeLocalPath);
|
||||
std::string getRemoteDirectory()const;
|
||||
void setRemoteDirectory(const std::string& remoteDirectory);
|
||||
std::string getComputeSpotStrategy()const;
|
||||
void setComputeSpotStrategy(const std::string& computeSpotStrategy);
|
||||
std::vector<PostInstallScript> getPostInstallScript()const;
|
||||
void setPostInstallScript(const std::vector<PostInstallScript>& postInstallScript);
|
||||
std::string getVSwitchId()const;
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
std::string getDomain()const;
|
||||
void setDomain(const std::string& domain);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getVolumeId()const;
|
||||
void setVolumeId(const std::string& volumeId);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
std::string getImageId()const;
|
||||
void setImageId(const std::string& imageId);
|
||||
std::string getEhpcVersion()const;
|
||||
void setEhpcVersion(const std::string& ehpcVersion);
|
||||
std::string getSecurityGroupId()const;
|
||||
void setSecurityGroupId(const std::string& securityGroupId);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string 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 getOnPremiseVolumeRemotePath()const;
|
||||
void setOnPremiseVolumeRemotePath(const std::string& onPremiseVolumeRemotePath);
|
||||
std::string getJobQueue()const;
|
||||
void setJobQueue(const std::string& jobQueue);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getVolumeType()const;
|
||||
void setVolumeType(const std::string& volumeType);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getPassword()const;
|
||||
void setPassword(const std::string& password);
|
||||
std::string getOnPremiseVolumeMountPoint()const;
|
||||
void setOnPremiseVolumeMountPoint(const std::string& onPremiseVolumeMountPoint);
|
||||
std::string getOnPremiseVolumeProtocol()const;
|
||||
void setOnPremiseVolumeProtocol(const std::string& onPremiseVolumeProtocol);
|
||||
std::string getVolumeProtocol()const;
|
||||
void setVolumeProtocol(const std::string& volumeProtocol);
|
||||
std::string getOnPremiseVolumeLocalPath()const;
|
||||
void setOnPremiseVolumeLocalPath(const std::string& onPremiseVolumeLocalPath);
|
||||
std::string getClientVersion()const;
|
||||
void setClientVersion(const std::string& clientVersion);
|
||||
std::string getOsTag()const;
|
||||
void setOsTag(const std::string& osTag);
|
||||
std::string getRemoteDirectory()const;
|
||||
void setRemoteDirectory(const std::string& remoteDirectory);
|
||||
std::vector<PostInstallScript> getPostInstallScript()const;
|
||||
void setPostInstallScript(const std::vector<PostInstallScript>& postInstallScript);
|
||||
std::string getVSwitchId()const;
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
std::vector<Nodes> getNodes()const;
|
||||
void setNodes(const std::vector<Nodes>& nodes);
|
||||
std::vector<Application> getApplication()const;
|
||||
void setApplication(const std::vector<Application>& application);
|
||||
std::string getDomain()const;
|
||||
void setDomain(const std::string& domain);
|
||||
std::string getVpcId()const;
|
||||
void setVpcId(const std::string& vpcId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getVolumeId()const;
|
||||
void setVolumeId(const std::string& volumeId);
|
||||
std::string getVolumeMountpoint()const;
|
||||
void setVolumeMountpoint(const std::string& volumeMountpoint);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
bool getSchedulerPreInstall()const;
|
||||
void setSchedulerPreInstall(bool schedulerPreInstall);
|
||||
std::string getLocation()const;
|
||||
void setLocation(const std::string& location);
|
||||
|
||||
private:
|
||||
std::string keyPairName_;
|
||||
std::string securityGroupName_;
|
||||
std::string onPremiseVolumeRemotePath_;
|
||||
std::string imageOwnerAlias_;
|
||||
std::string resourceGroupId_;
|
||||
std::string password_;
|
||||
float computeSpotPriceLimit_;
|
||||
std::string onPremiseVolumeLocalPath_;
|
||||
std::string remoteDirectory_;
|
||||
std::string computeSpotStrategy_;
|
||||
std::vector<PostInstallScript> postInstallScript_;
|
||||
std::string vSwitchId_;
|
||||
std::string domain_;
|
||||
std::string name_;
|
||||
std::string volumeId_;
|
||||
std::string zoneId_;
|
||||
std::string imageId_;
|
||||
std::string ehpcVersion_;
|
||||
std::string securityGroupId_;
|
||||
std::string description_;
|
||||
std::string keyPairName_;
|
||||
std::string securityGroupName_;
|
||||
std::string ecsOrderComputeInstanceType_;
|
||||
std::string onPremiseVolumeRemotePath_;
|
||||
std::string jobQueue_;
|
||||
std::string accessKeyId_;
|
||||
std::string volumeType_;
|
||||
std::string resourceGroupId_;
|
||||
std::string password_;
|
||||
std::string onPremiseVolumeMountPoint_;
|
||||
std::string onPremiseVolumeProtocol_;
|
||||
std::string volumeProtocol_;
|
||||
std::string onPremiseVolumeLocalPath_;
|
||||
std::string clientVersion_;
|
||||
std::string osTag_;
|
||||
std::string remoteDirectory_;
|
||||
std::vector<PostInstallScript> postInstallScript_;
|
||||
std::string vSwitchId_;
|
||||
std::vector<Nodes> nodes_;
|
||||
std::vector<Application> application_;
|
||||
std::string domain_;
|
||||
std::string vpcId_;
|
||||
std::string name_;
|
||||
std::string volumeId_;
|
||||
std::string volumeMountpoint_;
|
||||
std::string zoneId_;
|
||||
bool schedulerPreInstall_;
|
||||
std::string location_;
|
||||
|
||||
|
||||
@@ -88,6 +88,7 @@ namespace AlibabaCloud
|
||||
std::string accountType;
|
||||
std::string volumeMountpoint;
|
||||
std::string baseOsTag;
|
||||
std::string imageName;
|
||||
std::string vpcId;
|
||||
EcsInfo ecsInfo;
|
||||
bool haEnable;
|
||||
|
||||
@@ -43,6 +43,7 @@ namespace AlibabaCloud
|
||||
std::string instanceType;
|
||||
std::string spotStrategy;
|
||||
};
|
||||
int minNodesInQueue;
|
||||
int maxNodesInQueue;
|
||||
std::string resourceGroupId;
|
||||
bool enableAutoGrow;
|
||||
|
||||
@@ -65,6 +65,8 @@ namespace AlibabaCloud
|
||||
std::string imageOwnerAlias;
|
||||
std::string description;
|
||||
std::string nodePrefix;
|
||||
std::string instanceChargeType;
|
||||
float computeSpotPriceLimit;
|
||||
std::string nodeSuffix;
|
||||
int count;
|
||||
std::string name;
|
||||
@@ -79,6 +81,7 @@ namespace AlibabaCloud
|
||||
std::string vSwitchId;
|
||||
std::string createTime;
|
||||
std::string schedulerType;
|
||||
std::string computeSpotStrategy;
|
||||
std::string accountType;
|
||||
std::string ehpcVersion;
|
||||
std::string baseOsTag;
|
||||
|
||||
@@ -35,19 +35,25 @@ namespace AlibabaCloud
|
||||
ModifyClusterAttributesRequest();
|
||||
~ModifyClusterAttributesRequest();
|
||||
|
||||
std::string getImageId()const;
|
||||
void setImageId(const std::string& imageId);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getImageOwnerAlias()const;
|
||||
void setImageOwnerAlias(const std::string& imageOwnerAlias);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string imageId_;
|
||||
std::string description_;
|
||||
std::string clusterId_;
|
||||
std::string accessKeyId_;
|
||||
std::string imageOwnerAlias_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string spotStrategy;
|
||||
std::string queueName;
|
||||
int minNodesInQueue;
|
||||
struct InstanceTypes
|
||||
{
|
||||
std::string spotStrategy;
|
||||
|
||||
Reference in New Issue
Block a user