Support multiple security group for one ehpc cluster.
This commit is contained in:
@@ -29,6 +29,8 @@ set(ehpc_public_header_model
|
||||
include/alibabacloud/ehpc/model/AddNodesResult.h
|
||||
include/alibabacloud/ehpc/model/AddQueueRequest.h
|
||||
include/alibabacloud/ehpc/model/AddQueueResult.h
|
||||
include/alibabacloud/ehpc/model/AddSecurityGroupRequest.h
|
||||
include/alibabacloud/ehpc/model/AddSecurityGroupResult.h
|
||||
include/alibabacloud/ehpc/model/AddUsersRequest.h
|
||||
include/alibabacloud/ehpc/model/AddUsersResult.h
|
||||
include/alibabacloud/ehpc/model/ApplyNodesRequest.h
|
||||
@@ -67,6 +69,8 @@ set(ehpc_public_header_model
|
||||
include/alibabacloud/ehpc/model/DeleteNodesResult.h
|
||||
include/alibabacloud/ehpc/model/DeleteQueueRequest.h
|
||||
include/alibabacloud/ehpc/model/DeleteQueueResult.h
|
||||
include/alibabacloud/ehpc/model/DeleteSecurityGroupRequest.h
|
||||
include/alibabacloud/ehpc/model/DeleteSecurityGroupResult.h
|
||||
include/alibabacloud/ehpc/model/DeleteUsersRequest.h
|
||||
include/alibabacloud/ehpc/model/DeleteUsersResult.h
|
||||
include/alibabacloud/ehpc/model/DescribeAutoScaleConfigRequest.h
|
||||
@@ -173,8 +177,12 @@ set(ehpc_public_header_model
|
||||
include/alibabacloud/ehpc/model/ListQueuesResult.h
|
||||
include/alibabacloud/ehpc/model/ListRegionsRequest.h
|
||||
include/alibabacloud/ehpc/model/ListRegionsResult.h
|
||||
include/alibabacloud/ehpc/model/ListSecurityGroupsRequest.h
|
||||
include/alibabacloud/ehpc/model/ListSecurityGroupsResult.h
|
||||
include/alibabacloud/ehpc/model/ListSoftwaresRequest.h
|
||||
include/alibabacloud/ehpc/model/ListSoftwaresResult.h
|
||||
include/alibabacloud/ehpc/model/ListTasksRequest.h
|
||||
include/alibabacloud/ehpc/model/ListTasksResult.h
|
||||
include/alibabacloud/ehpc/model/ListUsersRequest.h
|
||||
include/alibabacloud/ehpc/model/ListUsersResult.h
|
||||
include/alibabacloud/ehpc/model/ListVolumesRequest.h
|
||||
@@ -258,6 +266,8 @@ set(ehpc_src
|
||||
src/model/AddNodesResult.cc
|
||||
src/model/AddQueueRequest.cc
|
||||
src/model/AddQueueResult.cc
|
||||
src/model/AddSecurityGroupRequest.cc
|
||||
src/model/AddSecurityGroupResult.cc
|
||||
src/model/AddUsersRequest.cc
|
||||
src/model/AddUsersResult.cc
|
||||
src/model/ApplyNodesRequest.cc
|
||||
@@ -296,6 +306,8 @@ set(ehpc_src
|
||||
src/model/DeleteNodesResult.cc
|
||||
src/model/DeleteQueueRequest.cc
|
||||
src/model/DeleteQueueResult.cc
|
||||
src/model/DeleteSecurityGroupRequest.cc
|
||||
src/model/DeleteSecurityGroupResult.cc
|
||||
src/model/DeleteUsersRequest.cc
|
||||
src/model/DeleteUsersResult.cc
|
||||
src/model/DescribeAutoScaleConfigRequest.cc
|
||||
@@ -402,8 +414,12 @@ set(ehpc_src
|
||||
src/model/ListQueuesResult.cc
|
||||
src/model/ListRegionsRequest.cc
|
||||
src/model/ListRegionsResult.cc
|
||||
src/model/ListSecurityGroupsRequest.cc
|
||||
src/model/ListSecurityGroupsResult.cc
|
||||
src/model/ListSoftwaresRequest.cc
|
||||
src/model/ListSoftwaresResult.cc
|
||||
src/model/ListTasksRequest.cc
|
||||
src/model/ListTasksResult.cc
|
||||
src/model/ListUsersRequest.cc
|
||||
src/model/ListUsersResult.cc
|
||||
src/model/ListVolumesRequest.cc
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
#include "model/AddNodesResult.h"
|
||||
#include "model/AddQueueRequest.h"
|
||||
#include "model/AddQueueResult.h"
|
||||
#include "model/AddSecurityGroupRequest.h"
|
||||
#include "model/AddSecurityGroupResult.h"
|
||||
#include "model/AddUsersRequest.h"
|
||||
#include "model/AddUsersResult.h"
|
||||
#include "model/ApplyNodesRequest.h"
|
||||
@@ -68,6 +70,8 @@
|
||||
#include "model/DeleteNodesResult.h"
|
||||
#include "model/DeleteQueueRequest.h"
|
||||
#include "model/DeleteQueueResult.h"
|
||||
#include "model/DeleteSecurityGroupRequest.h"
|
||||
#include "model/DeleteSecurityGroupResult.h"
|
||||
#include "model/DeleteUsersRequest.h"
|
||||
#include "model/DeleteUsersResult.h"
|
||||
#include "model/DescribeAutoScaleConfigRequest.h"
|
||||
@@ -174,8 +178,12 @@
|
||||
#include "model/ListQueuesResult.h"
|
||||
#include "model/ListRegionsRequest.h"
|
||||
#include "model/ListRegionsResult.h"
|
||||
#include "model/ListSecurityGroupsRequest.h"
|
||||
#include "model/ListSecurityGroupsResult.h"
|
||||
#include "model/ListSoftwaresRequest.h"
|
||||
#include "model/ListSoftwaresResult.h"
|
||||
#include "model/ListTasksRequest.h"
|
||||
#include "model/ListTasksResult.h"
|
||||
#include "model/ListUsersRequest.h"
|
||||
#include "model/ListUsersResult.h"
|
||||
#include "model/ListVolumesRequest.h"
|
||||
@@ -269,6 +277,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AddQueueResult> AddQueueOutcome;
|
||||
typedef std::future<AddQueueOutcome> AddQueueOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::AddQueueRequest&, const AddQueueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddQueueAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddSecurityGroupResult> AddSecurityGroupOutcome;
|
||||
typedef std::future<AddSecurityGroupOutcome> AddSecurityGroupOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::AddSecurityGroupRequest&, const AddSecurityGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddSecurityGroupAsyncHandler;
|
||||
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;
|
||||
@@ -326,6 +337,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteQueueResult> DeleteQueueOutcome;
|
||||
typedef std::future<DeleteQueueOutcome> DeleteQueueOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::DeleteQueueRequest&, const DeleteQueueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteQueueAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteSecurityGroupResult> DeleteSecurityGroupOutcome;
|
||||
typedef std::future<DeleteSecurityGroupOutcome> DeleteSecurityGroupOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::DeleteSecurityGroupRequest&, const DeleteSecurityGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSecurityGroupAsyncHandler;
|
||||
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;
|
||||
@@ -485,9 +499,15 @@ namespace AlibabaCloud
|
||||
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::ListSecurityGroupsResult> ListSecurityGroupsOutcome;
|
||||
typedef std::future<ListSecurityGroupsOutcome> ListSecurityGroupsOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListSecurityGroupsRequest&, const ListSecurityGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSecurityGroupsAsyncHandler;
|
||||
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::ListTasksResult> ListTasksOutcome;
|
||||
typedef std::future<ListTasksOutcome> ListTasksOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::ListTasksRequest&, const ListTasksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTasksAsyncHandler;
|
||||
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;
|
||||
@@ -613,6 +633,9 @@ namespace AlibabaCloud
|
||||
AddQueueOutcome addQueue(const Model::AddQueueRequest &request)const;
|
||||
void addQueueAsync(const Model::AddQueueRequest& request, const AddQueueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddQueueOutcomeCallable addQueueCallable(const Model::AddQueueRequest& request) const;
|
||||
AddSecurityGroupOutcome addSecurityGroup(const Model::AddSecurityGroupRequest &request)const;
|
||||
void addSecurityGroupAsync(const Model::AddSecurityGroupRequest& request, const AddSecurityGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddSecurityGroupOutcomeCallable addSecurityGroupCallable(const Model::AddSecurityGroupRequest& request) const;
|
||||
AddUsersOutcome addUsers(const Model::AddUsersRequest &request)const;
|
||||
void addUsersAsync(const Model::AddUsersRequest& request, const AddUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddUsersOutcomeCallable addUsersCallable(const Model::AddUsersRequest& request) const;
|
||||
@@ -670,6 +693,9 @@ namespace AlibabaCloud
|
||||
DeleteQueueOutcome deleteQueue(const Model::DeleteQueueRequest &request)const;
|
||||
void deleteQueueAsync(const Model::DeleteQueueRequest& request, const DeleteQueueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteQueueOutcomeCallable deleteQueueCallable(const Model::DeleteQueueRequest& request) const;
|
||||
DeleteSecurityGroupOutcome deleteSecurityGroup(const Model::DeleteSecurityGroupRequest &request)const;
|
||||
void deleteSecurityGroupAsync(const Model::DeleteSecurityGroupRequest& request, const DeleteSecurityGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteSecurityGroupOutcomeCallable deleteSecurityGroupCallable(const Model::DeleteSecurityGroupRequest& request) const;
|
||||
DeleteUsersOutcome deleteUsers(const Model::DeleteUsersRequest &request)const;
|
||||
void deleteUsersAsync(const Model::DeleteUsersRequest& request, const DeleteUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteUsersOutcomeCallable deleteUsersCallable(const Model::DeleteUsersRequest& request) const;
|
||||
@@ -829,9 +855,15 @@ namespace AlibabaCloud
|
||||
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;
|
||||
ListSecurityGroupsOutcome listSecurityGroups(const Model::ListSecurityGroupsRequest &request)const;
|
||||
void listSecurityGroupsAsync(const Model::ListSecurityGroupsRequest& request, const ListSecurityGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListSecurityGroupsOutcomeCallable listSecurityGroupsCallable(const Model::ListSecurityGroupsRequest& request) const;
|
||||
ListSoftwaresOutcome listSoftwares(const Model::ListSoftwaresRequest &request)const;
|
||||
void listSoftwaresAsync(const Model::ListSoftwaresRequest& request, const ListSoftwaresAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListSoftwaresOutcomeCallable listSoftwaresCallable(const Model::ListSoftwaresRequest& request) const;
|
||||
ListTasksOutcome listTasks(const Model::ListTasksRequest &request)const;
|
||||
void listTasksAsync(const Model::ListTasksRequest& request, const ListTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTasksOutcomeCallable listTasksCallable(const Model::ListTasksRequest& request) const;
|
||||
ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const;
|
||||
void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const;
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getImageId()const;
|
||||
void setImageId(const std::string& imageId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
bool getAllocatePublicAddress()const;
|
||||
void setAllocatePublicAddress(bool allocatePublicAddress);
|
||||
int getInternetMaxBandWidthOut()const;
|
||||
@@ -90,6 +92,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string imageId_;
|
||||
std::string clientToken_;
|
||||
bool allocatePublicAddress_;
|
||||
int internetMaxBandWidthOut_;
|
||||
std::string jobQueue_;
|
||||
|
||||
@@ -37,11 +37,13 @@ namespace AlibabaCloud
|
||||
AddNodesResult();
|
||||
explicit AddNodesResult(const std::string &payload);
|
||||
~AddNodesResult();
|
||||
std::string getTaskId()const;
|
||||
std::vector<std::string> getInstanceIds()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
std::vector<std::string> instanceIds_;
|
||||
|
||||
};
|
||||
|
||||
@@ -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_ADDSECURITYGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_ADDSECURITYGROUPREQUEST_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 AddSecurityGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddSecurityGroupRequest();
|
||||
~AddSecurityGroupRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getSecurityGroupId()const;
|
||||
void setSecurityGroupId(const std::string& securityGroupId);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string securityGroupId_;
|
||||
std::string clusterId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_ADDSECURITYGROUPREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EHPC_MODEL_ADDSECURITYGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_ADDSECURITYGROUPRESULT_H_
|
||||
|
||||
#include <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 AddSecurityGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddSecurityGroupResult();
|
||||
explicit AddSecurityGroupResult(const std::string &payload);
|
||||
~AddSecurityGroupResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_ADDSECURITYGROUPRESULT_H_
|
||||
@@ -37,6 +37,7 @@ namespace AlibabaCloud
|
||||
ApplyNodesResult();
|
||||
explicit ApplyNodesResult(const std::string &payload);
|
||||
~ApplyNodesResult();
|
||||
std::string getTaskId()const;
|
||||
int getSatisfiedAmount()const;
|
||||
std::vector<std::string> getInstanceIds()const;
|
||||
std::string getDetail()const;
|
||||
@@ -44,6 +45,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
int satisfiedAmount_;
|
||||
std::vector<std::string> instanceIds_;
|
||||
std::string detail_;
|
||||
|
||||
@@ -81,6 +81,8 @@ namespace AlibabaCloud
|
||||
void setPassword(const std::string& password);
|
||||
int getEcsOrderLoginCount()const;
|
||||
void setEcsOrderLoginCount(int ecsOrderLoginCount);
|
||||
bool getWithoutElasticIp()const;
|
||||
void setWithoutElasticIp(bool withoutElasticIp);
|
||||
std::string getRemoteVisEnable()const;
|
||||
void setRemoteVisEnable(const std::string& remoteVisEnable);
|
||||
int getSystemDiskSize()const;
|
||||
@@ -117,6 +119,8 @@ namespace AlibabaCloud
|
||||
void setSccClusterId(const std::string& sccClusterId);
|
||||
std::string getImageId()const;
|
||||
void setImageId(const std::string& imageId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getEhpcVersion()const;
|
||||
void setEhpcVersion(const std::string& ehpcVersion);
|
||||
std::string getAccountType()const;
|
||||
@@ -169,6 +173,7 @@ namespace AlibabaCloud
|
||||
std::string resourceGroupId_;
|
||||
std::string password_;
|
||||
int ecsOrderLoginCount_;
|
||||
bool withoutElasticIp_;
|
||||
std::string remoteVisEnable_;
|
||||
int systemDiskSize_;
|
||||
std::string computeSpotPriceLimit_;
|
||||
@@ -187,6 +192,7 @@ namespace AlibabaCloud
|
||||
std::string zoneId_;
|
||||
std::string sccClusterId_;
|
||||
std::string imageId_;
|
||||
std::string clientToken_;
|
||||
std::string ehpcVersion_;
|
||||
std::string accountType_;
|
||||
std::string securityGroupId_;
|
||||
|
||||
@@ -37,11 +37,13 @@ namespace AlibabaCloud
|
||||
CreateClusterResult();
|
||||
explicit CreateClusterResult(const std::string &payload);
|
||||
~CreateClusterResult();
|
||||
std::string getTaskId()const;
|
||||
std::string getClusterId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getClusterType()const;
|
||||
void setClusterType(const std::string& clusterType);
|
||||
std::string getVSwitchId()const;
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
std::string getVpcId()const;
|
||||
void setVpcId(const std::string& vpcId);
|
||||
std::string getName()const;
|
||||
@@ -47,6 +49,7 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string accessKeyId_;
|
||||
std::string clusterType_;
|
||||
std::string vSwitchId_;
|
||||
std::string vpcId_;
|
||||
std::string name_;
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ namespace AlibabaCloud
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getWorkMode()const;
|
||||
void setWorkMode(const std::string& workMode);
|
||||
std::string getVSwitchId()const;
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
std::string getPeriodUnit()const;
|
||||
void setPeriodUnit(const std::string& periodUnit);
|
||||
bool getAutoRenew()const;
|
||||
@@ -83,6 +85,7 @@ namespace AlibabaCloud
|
||||
std::string period_;
|
||||
std::string clusterId_;
|
||||
std::string workMode_;
|
||||
std::string vSwitchId_;
|
||||
std::string periodUnit_;
|
||||
bool autoRenew_;
|
||||
std::string internetChargeType_;
|
||||
|
||||
@@ -87,6 +87,8 @@ namespace AlibabaCloud
|
||||
void setZoneId(const std::string& zoneId);
|
||||
std::string getImageId()const;
|
||||
void setImageId(const std::string& imageId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getEhpcVersion()const;
|
||||
void setEhpcVersion(const std::string& ehpcVersion);
|
||||
std::string getSecurityGroupId()const;
|
||||
@@ -142,6 +144,7 @@ namespace AlibabaCloud
|
||||
std::string volumeId_;
|
||||
std::string zoneId_;
|
||||
std::string imageId_;
|
||||
std::string clientToken_;
|
||||
std::string ehpcVersion_;
|
||||
std::string securityGroupId_;
|
||||
std::string description_;
|
||||
|
||||
@@ -37,11 +37,13 @@ namespace AlibabaCloud
|
||||
CreateHybridClusterResult();
|
||||
explicit CreateHybridClusterResult(const std::string &payload);
|
||||
~CreateHybridClusterResult();
|
||||
std::string getTaskId()const;
|
||||
std::string getClusterId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -37,10 +37,12 @@ namespace AlibabaCloud
|
||||
DeleteClusterResult();
|
||||
explicit DeleteClusterResult(const std::string &payload);
|
||||
~DeleteClusterResult();
|
||||
std::string getTaskId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,10 +37,12 @@ namespace AlibabaCloud
|
||||
DeleteNodesResult();
|
||||
explicit DeleteNodesResult(const std::string &payload);
|
||||
~DeleteNodesResult();
|
||||
std::string getTaskId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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_DELETESECURITYGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_DELETESECURITYGROUPREQUEST_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 DeleteSecurityGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteSecurityGroupRequest();
|
||||
~DeleteSecurityGroupRequest();
|
||||
|
||||
std::string getSecurityGroupId()const;
|
||||
void setSecurityGroupId(const std::string& securityGroupId);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string securityGroupId_;
|
||||
std::string clusterId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_DELETESECURITYGROUPREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EHPC_MODEL_DELETESECURITYGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_DELETESECURITYGROUPRESULT_H_
|
||||
|
||||
#include <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 DeleteSecurityGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteSecurityGroupResult();
|
||||
explicit DeleteSecurityGroupResult(const std::string &payload);
|
||||
~DeleteSecurityGroupResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_DELETESECURITYGROUPRESULT_H_
|
||||
@@ -39,10 +39,16 @@ namespace AlibabaCloud
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
bool getAsyncMode()const;
|
||||
void setAsyncMode(bool asyncMode);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string accessKeyId_;
|
||||
bool asyncMode_;
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -45,6 +45,10 @@ namespace AlibabaCloud
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getUserUid()const;
|
||||
void setUserUid(long userUid);
|
||||
std::string getUserName()const;
|
||||
void setUserName(const std::string& userName);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
@@ -52,6 +56,8 @@ namespace AlibabaCloud
|
||||
std::string accessKeyId_;
|
||||
std::string instanceId_;
|
||||
int pageSize_;
|
||||
long userUid_;
|
||||
std::string userName_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -47,6 +47,7 @@ namespace AlibabaCloud
|
||||
int maxNodesInQueue;
|
||||
std::string resourceGroupId;
|
||||
bool enableAutoGrow;
|
||||
std::string queueImageId;
|
||||
float spotPriceLimit;
|
||||
std::vector<QueueInfo::InstanceTypeInfo> instanceTypes;
|
||||
bool enableAutoShrink;
|
||||
|
||||
@@ -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_LISTSECURITYGROUPSREQUEST_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_LISTSECURITYGROUPSREQUEST_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 ListSecurityGroupsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListSecurityGroupsRequest();
|
||||
~ListSecurityGroupsRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTSECURITYGROUPSREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTSECURITYGROUPSRESULT_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_LISTSECURITYGROUPSRESULT_H_
|
||||
|
||||
#include <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 ListSecurityGroupsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ListSecurityGroupsResult();
|
||||
explicit ListSecurityGroupsResult(const std::string &payload);
|
||||
~ListSecurityGroupsResult();
|
||||
std::vector<std::string> getSecurityGroups()const;
|
||||
int getTotalCount()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> securityGroups_;
|
||||
int totalCount_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTSECURITYGROUPSRESULT_H_
|
||||
63
ehpc/include/alibabacloud/ehpc/model/ListTasksRequest.h
Normal file
63
ehpc/include/alibabacloud/ehpc/model/ListTasksRequest.h
Normal 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_LISTTASKSREQUEST_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_LISTTASKSREQUEST_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 ListTasksRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListTasksRequest();
|
||||
~ListTasksRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
bool getArchived()const;
|
||||
void setArchived(bool archived);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
bool archived_;
|
||||
int pageSize_;
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTTASKSREQUEST_H_
|
||||
69
ehpc/include/alibabacloud/ehpc/model/ListTasksResult.h
Normal file
69
ehpc/include/alibabacloud/ehpc/model/ListTasksResult.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTTASKSRESULT_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_LISTTASKSRESULT_H_
|
||||
|
||||
#include <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 ListTasksResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TaskInfo
|
||||
{
|
||||
std::string status;
|
||||
std::string errors;
|
||||
std::string taskId;
|
||||
std::string clusterId;
|
||||
std::string taskType;
|
||||
std::string request;
|
||||
int currentStep;
|
||||
int totalSteps;
|
||||
std::string result;
|
||||
};
|
||||
|
||||
|
||||
ListTasksResult();
|
||||
explicit ListTasksResult(const std::string &payload);
|
||||
~ListTasksResult();
|
||||
int getTotalCount()const;
|
||||
std::vector<TaskInfo> getTasks()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
std::vector<TaskInfo> tasks_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTTASKSRESULT_H_
|
||||
@@ -37,10 +37,12 @@ namespace AlibabaCloud
|
||||
RecoverClusterResult();
|
||||
explicit RecoverClusterResult(const std::string &payload);
|
||||
~RecoverClusterResult();
|
||||
std::string getTaskId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,10 +37,12 @@ namespace AlibabaCloud
|
||||
ResetNodesResult();
|
||||
explicit ResetNodesResult(const std::string &payload);
|
||||
~ResetNodesResult();
|
||||
std::string getTaskId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -48,6 +48,7 @@ namespace AlibabaCloud
|
||||
std::vector<InstanceTypes> instanceTypes;
|
||||
int maxNodesInQueue;
|
||||
std::string instanceType;
|
||||
std::string queueImageId;
|
||||
bool enableAutoGrow;
|
||||
float spotPriceLimit;
|
||||
bool enableAutoShrink;
|
||||
|
||||
@@ -47,6 +47,10 @@ namespace AlibabaCloud
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getUsbRedirect()const;
|
||||
void setUsbRedirect(const std::string& usbRedirect);
|
||||
bool getAsyncMode()const;
|
||||
void setAsyncMode(bool asyncMode);
|
||||
std::string getUdpPort()const;
|
||||
void setUdpPort(const std::string& udpPort);
|
||||
|
||||
private:
|
||||
std::string watermark_;
|
||||
@@ -55,6 +59,8 @@ namespace AlibabaCloud
|
||||
std::string clipboard_;
|
||||
std::string accessKeyId_;
|
||||
std::string usbRedirect_;
|
||||
bool asyncMode_;
|
||||
std::string udpPort_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,10 +37,12 @@ namespace AlibabaCloud
|
||||
StartClusterResult();
|
||||
explicit StartClusterResult(const std::string &payload);
|
||||
~StartClusterResult();
|
||||
std::string getTaskId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,10 +37,12 @@ namespace AlibabaCloud
|
||||
StartNodesResult();
|
||||
explicit StartNodesResult(const std::string &payload);
|
||||
~StartNodesResult();
|
||||
std::string getTaskId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,10 +37,12 @@ namespace AlibabaCloud
|
||||
StopClusterResult();
|
||||
explicit StopClusterResult(const std::string &payload);
|
||||
~StopClusterResult();
|
||||
std::string getTaskId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,10 +37,12 @@ namespace AlibabaCloud
|
||||
StopNodesResult();
|
||||
explicit StopNodesResult(const std::string &payload);
|
||||
~StopNodesResult();
|
||||
std::string getTaskId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -195,6 +195,42 @@ EHPCClient::AddQueueOutcomeCallable EHPCClient::addQueueCallable(const AddQueueR
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::AddSecurityGroupOutcome EHPCClient::addSecurityGroup(const AddSecurityGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddSecurityGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddSecurityGroupOutcome(AddSecurityGroupResult(outcome.result()));
|
||||
else
|
||||
return AddSecurityGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EHPCClient::addSecurityGroupAsync(const AddSecurityGroupRequest& request, const AddSecurityGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addSecurityGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EHPCClient::AddSecurityGroupOutcomeCallable EHPCClient::addSecurityGroupCallable(const AddSecurityGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddSecurityGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addSecurityGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::AddUsersOutcome EHPCClient::addUsers(const AddUsersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -879,6 +915,42 @@ EHPCClient::DeleteQueueOutcomeCallable EHPCClient::deleteQueueCallable(const Del
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::DeleteSecurityGroupOutcome EHPCClient::deleteSecurityGroup(const DeleteSecurityGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteSecurityGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteSecurityGroupOutcome(DeleteSecurityGroupResult(outcome.result()));
|
||||
else
|
||||
return DeleteSecurityGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EHPCClient::deleteSecurityGroupAsync(const DeleteSecurityGroupRequest& request, const DeleteSecurityGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteSecurityGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EHPCClient::DeleteSecurityGroupOutcomeCallable EHPCClient::deleteSecurityGroupCallable(const DeleteSecurityGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteSecurityGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteSecurityGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::DeleteUsersOutcome EHPCClient::deleteUsers(const DeleteUsersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2787,6 +2859,42 @@ EHPCClient::ListRegionsOutcomeCallable EHPCClient::listRegionsCallable(const Lis
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::ListSecurityGroupsOutcome EHPCClient::listSecurityGroups(const ListSecurityGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListSecurityGroupsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListSecurityGroupsOutcome(ListSecurityGroupsResult(outcome.result()));
|
||||
else
|
||||
return ListSecurityGroupsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EHPCClient::listSecurityGroupsAsync(const ListSecurityGroupsRequest& request, const ListSecurityGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listSecurityGroups(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EHPCClient::ListSecurityGroupsOutcomeCallable EHPCClient::listSecurityGroupsCallable(const ListSecurityGroupsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListSecurityGroupsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listSecurityGroups(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::ListSoftwaresOutcome EHPCClient::listSoftwares(const ListSoftwaresRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2823,6 +2931,42 @@ EHPCClient::ListSoftwaresOutcomeCallable EHPCClient::listSoftwaresCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::ListTasksOutcome EHPCClient::listTasks(const ListTasksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTasksOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListTasksOutcome(ListTasksResult(outcome.result()));
|
||||
else
|
||||
return ListTasksOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EHPCClient::listTasksAsync(const ListTasksRequest& request, const ListTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTasks(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EHPCClient::ListTasksOutcomeCallable EHPCClient::listTasksCallable(const ListTasksRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTasksOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTasks(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::ListUsersOutcome EHPCClient::listUsers(const ListUsersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -38,6 +38,17 @@ void AddNodesRequest::setImageId(const std::string& imageId)
|
||||
setParameter("ImageId", imageId);
|
||||
}
|
||||
|
||||
std::string AddNodesRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AddNodesRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
bool AddNodesRequest::getAllocatePublicAddress()const
|
||||
{
|
||||
return allocatePublicAddress_;
|
||||
|
||||
@@ -42,9 +42,16 @@ void AddNodesResult::parse(const std::string &payload)
|
||||
auto allInstanceIds = value["InstanceIds"]["InstanceId"];
|
||||
for (const auto &item : allInstanceIds)
|
||||
instanceIds_.push_back(item.asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddNodesResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::vector<std::string> AddNodesResult::getInstanceIds()const
|
||||
{
|
||||
return instanceIds_;
|
||||
|
||||
73
ehpc/src/model/AddSecurityGroupRequest.cc
Normal file
73
ehpc/src/model/AddSecurityGroupRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/AddSecurityGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::AddSecurityGroupRequest;
|
||||
|
||||
AddSecurityGroupRequest::AddSecurityGroupRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "AddSecurityGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
AddSecurityGroupRequest::~AddSecurityGroupRequest()
|
||||
{}
|
||||
|
||||
std::string AddSecurityGroupRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AddSecurityGroupRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string AddSecurityGroupRequest::getSecurityGroupId()const
|
||||
{
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
void AddSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId)
|
||||
{
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter("SecurityGroupId", securityGroupId);
|
||||
}
|
||||
|
||||
std::string AddSecurityGroupRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void AddSecurityGroupRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string AddSecurityGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
44
ehpc/src/model/AddSecurityGroupResult.cc
Normal file
44
ehpc/src/model/AddSecurityGroupResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/AddSecurityGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
AddSecurityGroupResult::AddSecurityGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddSecurityGroupResult::AddSecurityGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddSecurityGroupResult::~AddSecurityGroupResult()
|
||||
{}
|
||||
|
||||
void AddSecurityGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -46,9 +46,16 @@ void ApplyNodesResult::parse(const std::string &payload)
|
||||
detail_ = value["Detail"].asString();
|
||||
if(!value["SatisfiedAmount"].isNull())
|
||||
satisfiedAmount_ = std::stoi(value["SatisfiedAmount"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ApplyNodesResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
int ApplyNodesResult::getSatisfiedAmount()const
|
||||
{
|
||||
return satisfiedAmount_;
|
||||
|
||||
@@ -153,6 +153,17 @@ void CreateClusterRequest::setEcsOrderLoginCount(int ecsOrderLoginCount)
|
||||
setParameter("EcsOrderLoginCount", std::to_string(ecsOrderLoginCount));
|
||||
}
|
||||
|
||||
bool CreateClusterRequest::getWithoutElasticIp()const
|
||||
{
|
||||
return withoutElasticIp_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setWithoutElasticIp(bool withoutElasticIp)
|
||||
{
|
||||
withoutElasticIp_ = withoutElasticIp;
|
||||
setParameter("WithoutElasticIp", withoutElasticIp ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getRemoteVisEnable()const
|
||||
{
|
||||
return remoteVisEnable_;
|
||||
@@ -356,6 +367,17 @@ void CreateClusterRequest::setImageId(const std::string& imageId)
|
||||
setParameter("ImageId", imageId);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getEhpcVersion()const
|
||||
{
|
||||
return ehpcVersion_;
|
||||
|
||||
@@ -41,9 +41,16 @@ void CreateClusterResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateClusterResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string CreateClusterResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
|
||||
@@ -49,6 +49,17 @@ void CreateGWSClusterRequest::setClusterType(const std::string& clusterType)
|
||||
setParameter("ClusterType", clusterType);
|
||||
}
|
||||
|
||||
std::string CreateGWSClusterRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateGWSClusterRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateGWSClusterRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
|
||||
@@ -159,6 +159,17 @@ void CreateGWSInstanceRequest::setWorkMode(const std::string& workMode)
|
||||
setParameter("WorkMode", workMode);
|
||||
}
|
||||
|
||||
std::string CreateGWSInstanceRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateGWSInstanceRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateGWSInstanceRequest::getPeriodUnit()const
|
||||
{
|
||||
return periodUnit_;
|
||||
|
||||
@@ -219,6 +219,17 @@ void CreateHybridClusterRequest::setImageId(const std::string& imageId)
|
||||
setParameter("ImageId", imageId);
|
||||
}
|
||||
|
||||
std::string CreateHybridClusterRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateHybridClusterRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateHybridClusterRequest::getEhpcVersion()const
|
||||
{
|
||||
return ehpcVersion_;
|
||||
|
||||
@@ -41,9 +41,16 @@ void CreateHybridClusterResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateHybridClusterResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string CreateHybridClusterResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
|
||||
@@ -39,6 +39,13 @@ void DeleteClusterResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteClusterResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,13 @@ void DeleteNodesResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteNodesResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
|
||||
62
ehpc/src/model/DeleteSecurityGroupRequest.cc
Normal file
62
ehpc/src/model/DeleteSecurityGroupRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/DeleteSecurityGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::DeleteSecurityGroupRequest;
|
||||
|
||||
DeleteSecurityGroupRequest::DeleteSecurityGroupRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "DeleteSecurityGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DeleteSecurityGroupRequest::~DeleteSecurityGroupRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteSecurityGroupRequest::getSecurityGroupId()const
|
||||
{
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
void DeleteSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId)
|
||||
{
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter("SecurityGroupId", securityGroupId);
|
||||
}
|
||||
|
||||
std::string DeleteSecurityGroupRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteSecurityGroupRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DeleteSecurityGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
44
ehpc/src/model/DeleteSecurityGroupResult.cc
Normal file
44
ehpc/src/model/DeleteSecurityGroupResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/DeleteSecurityGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
DeleteSecurityGroupResult::DeleteSecurityGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSecurityGroupResult::DeleteSecurityGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSecurityGroupResult::~DeleteSecurityGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteSecurityGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -49,3 +49,25 @@ void DescribeGWSClusterPolicyRequest::setAccessKeyId(const std::string& accessKe
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool DescribeGWSClusterPolicyRequest::getAsyncMode()const
|
||||
{
|
||||
return asyncMode_;
|
||||
}
|
||||
|
||||
void DescribeGWSClusterPolicyRequest::setAsyncMode(bool asyncMode)
|
||||
{
|
||||
asyncMode_ = asyncMode;
|
||||
setParameter("AsyncMode", asyncMode ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeGWSClusterPolicyRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DescribeGWSClusterPolicyRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -82,3 +82,25 @@ void DescribeGWSInstancesRequest::setPageSize(int pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeGWSInstancesRequest::getUserUid()const
|
||||
{
|
||||
return userUid_;
|
||||
}
|
||||
|
||||
void DescribeGWSInstancesRequest::setUserUid(long userUid)
|
||||
{
|
||||
userUid_ = userUid;
|
||||
setParameter("UserUid", std::to_string(userUid));
|
||||
}
|
||||
|
||||
std::string DescribeGWSInstancesRequest::getUserName()const
|
||||
{
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void DescribeGWSInstancesRequest::setUserName(const std::string& userName)
|
||||
{
|
||||
userName_ = userName;
|
||||
setParameter("UserName", userName);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,6 +61,8 @@ void GetAutoScaleConfigResult::parse(const std::string &payload)
|
||||
queuesObject.maxNodesInQueue = std::stoi(valueQueuesQueueInfo["MaxNodesInQueue"].asString());
|
||||
if(!valueQueuesQueueInfo["MinNodesInQueue"].isNull())
|
||||
queuesObject.minNodesInQueue = std::stoi(valueQueuesQueueInfo["MinNodesInQueue"].asString());
|
||||
if(!valueQueuesQueueInfo["QueueImageId"].isNull())
|
||||
queuesObject.queueImageId = valueQueuesQueueInfo["QueueImageId"].asString();
|
||||
auto allInstanceTypesNode = allQueuesNode["InstanceTypes"]["InstanceTypeInfo"];
|
||||
for (auto allQueuesNodeInstanceTypesInstanceTypeInfo : allInstanceTypesNode)
|
||||
{
|
||||
|
||||
51
ehpc/src/model/ListSecurityGroupsRequest.cc
Normal file
51
ehpc/src/model/ListSecurityGroupsRequest.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/ListSecurityGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::ListSecurityGroupsRequest;
|
||||
|
||||
ListSecurityGroupsRequest::ListSecurityGroupsRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ListSecurityGroups")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListSecurityGroupsRequest::~ListSecurityGroupsRequest()
|
||||
{}
|
||||
|
||||
std::string ListSecurityGroupsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListSecurityGroupsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ListSecurityGroupsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListSecurityGroupsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
59
ehpc/src/model/ListSecurityGroupsResult.cc
Normal file
59
ehpc/src/model/ListSecurityGroupsResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/ListSecurityGroupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
ListSecurityGroupsResult::ListSecurityGroupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSecurityGroupsResult::ListSecurityGroupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSecurityGroupsResult::~ListSecurityGroupsResult()
|
||||
{}
|
||||
|
||||
void ListSecurityGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSecurityGroups = value["SecurityGroups"]["SecurityGroup"];
|
||||
for (const auto &item : allSecurityGroups)
|
||||
securityGroups_.push_back(item.asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> ListSecurityGroupsResult::getSecurityGroups()const
|
||||
{
|
||||
return securityGroups_;
|
||||
}
|
||||
|
||||
int ListSecurityGroupsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
95
ehpc/src/model/ListTasksRequest.cc
Normal file
95
ehpc/src/model/ListTasksRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/ListTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::ListTasksRequest;
|
||||
|
||||
ListTasksRequest::ListTasksRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ListTasks")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListTasksRequest::~ListTasksRequest()
|
||||
{}
|
||||
|
||||
std::string ListTasksRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListTasksRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int ListTasksRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListTasksRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListTasksRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListTasksRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool ListTasksRequest::getArchived()const
|
||||
{
|
||||
return archived_;
|
||||
}
|
||||
|
||||
void ListTasksRequest::setArchived(bool archived)
|
||||
{
|
||||
archived_ = archived;
|
||||
setParameter("Archived", archived ? "true" : "false");
|
||||
}
|
||||
|
||||
int ListTasksRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListTasksRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListTasksRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void ListTasksRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
94
ehpc/src/model/ListTasksResult.cc
Normal file
94
ehpc/src/model/ListTasksResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/ListTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
ListTasksResult::ListTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTasksResult::ListTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTasksResult::~ListTasksResult()
|
||||
{}
|
||||
|
||||
void ListTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTasksNode = value["Tasks"]["TaskInfo"];
|
||||
for (auto valueTasksTaskInfo : allTasksNode)
|
||||
{
|
||||
TaskInfo tasksObject;
|
||||
if(!valueTasksTaskInfo["TaskId"].isNull())
|
||||
tasksObject.taskId = valueTasksTaskInfo["TaskId"].asString();
|
||||
if(!valueTasksTaskInfo["TaskType"].isNull())
|
||||
tasksObject.taskType = valueTasksTaskInfo["TaskType"].asString();
|
||||
if(!valueTasksTaskInfo["ClusterId"].isNull())
|
||||
tasksObject.clusterId = valueTasksTaskInfo["ClusterId"].asString();
|
||||
if(!valueTasksTaskInfo["Request"].isNull())
|
||||
tasksObject.request = valueTasksTaskInfo["Request"].asString();
|
||||
if(!valueTasksTaskInfo["Status"].isNull())
|
||||
tasksObject.status = valueTasksTaskInfo["Status"].asString();
|
||||
if(!valueTasksTaskInfo["CurrentStep"].isNull())
|
||||
tasksObject.currentStep = std::stoi(valueTasksTaskInfo["CurrentStep"].asString());
|
||||
if(!valueTasksTaskInfo["TotalSteps"].isNull())
|
||||
tasksObject.totalSteps = std::stoi(valueTasksTaskInfo["TotalSteps"].asString());
|
||||
if(!valueTasksTaskInfo["Result"].isNull())
|
||||
tasksObject.result = valueTasksTaskInfo["Result"].asString();
|
||||
if(!valueTasksTaskInfo["Errors"].isNull())
|
||||
tasksObject.errors = valueTasksTaskInfo["Errors"].asString();
|
||||
tasks_.push_back(tasksObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListTasksResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<ListTasksResult::TaskInfo> ListTasksResult::getTasks()const
|
||||
{
|
||||
return tasks_;
|
||||
}
|
||||
|
||||
int ListTasksResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListTasksResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,13 @@ void RecoverClusterResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RecoverClusterResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,13 @@ void ResetNodesResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ResetNodesResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -196,6 +196,7 @@ void SetAutoScaleConfigRequest::setQueues(const std::vector<Queues>& queues)
|
||||
}
|
||||
setParameter(queuesObjStr + ".MaxNodesInQueue", std::to_string(queuesObj.maxNodesInQueue));
|
||||
setParameter(queuesObjStr + ".InstanceType", queuesObj.instanceType);
|
||||
setParameter(queuesObjStr + ".QueueImageId", queuesObj.queueImageId);
|
||||
setParameter(queuesObjStr + ".EnableAutoGrow", queuesObj.enableAutoGrow ? "true" : "false");
|
||||
setParameter(queuesObjStr + ".SpotPriceLimit", std::to_string(queuesObj.spotPriceLimit));
|
||||
setParameter(queuesObjStr + ".EnableAutoShrink", queuesObj.enableAutoShrink ? "true" : "false");
|
||||
|
||||
@@ -93,3 +93,25 @@ void SetGWSClusterPolicyRequest::setUsbRedirect(const std::string& usbRedirect)
|
||||
setParameter("UsbRedirect", usbRedirect);
|
||||
}
|
||||
|
||||
bool SetGWSClusterPolicyRequest::getAsyncMode()const
|
||||
{
|
||||
return asyncMode_;
|
||||
}
|
||||
|
||||
void SetGWSClusterPolicyRequest::setAsyncMode(bool asyncMode)
|
||||
{
|
||||
asyncMode_ = asyncMode;
|
||||
setParameter("AsyncMode", asyncMode ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SetGWSClusterPolicyRequest::getUdpPort()const
|
||||
{
|
||||
return udpPort_;
|
||||
}
|
||||
|
||||
void SetGWSClusterPolicyRequest::setUdpPort(const std::string& udpPort)
|
||||
{
|
||||
udpPort_ = udpPort;
|
||||
setParameter("UdpPort", udpPort);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,13 @@ void StartClusterResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StartClusterResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,13 @@ void StartNodesResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StartNodesResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,13 @@ void StopClusterResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StopClusterResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,13 @@ void StopNodesResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StopNodesResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user