From b5790be0db8cbd8e3648b8bf96328b130a2f1cca Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 28 Aug 2020 17:29:39 +0800 Subject: [PATCH] Support multiple security group for one ehpc cluster. --- CHANGELOG | 4 + VERSION | 2 +- ehpc/CMakeLists.txt | 16 ++ ehpc/include/alibabacloud/ehpc/EHPCClient.h | 32 ++++ .../alibabacloud/ehpc/model/AddNodesRequest.h | 3 + .../alibabacloud/ehpc/model/AddNodesResult.h | 2 + .../ehpc/model/AddSecurityGroupRequest.h | 57 +++++++ .../ehpc/model/AddSecurityGroupResult.h | 49 ++++++ .../ehpc/model/ApplyNodesResult.h | 2 + .../ehpc/model/CreateClusterRequest.h | 6 + .../ehpc/model/CreateClusterResult.h | 2 + .../ehpc/model/CreateGWSClusterRequest.h | 3 + .../ehpc/model/CreateGWSInstanceRequest.h | 3 + .../ehpc/model/CreateHybridClusterRequest.h | 3 + .../ehpc/model/CreateHybridClusterResult.h | 2 + .../ehpc/model/DeleteClusterResult.h | 2 + .../ehpc/model/DeleteNodesResult.h | 2 + .../ehpc/model/DeleteSecurityGroupRequest.h | 54 +++++++ .../ehpc/model/DeleteSecurityGroupResult.h | 49 ++++++ .../model/DescribeGWSClusterPolicyRequest.h | 6 + .../ehpc/model/DescribeGWSInstancesRequest.h | 6 + .../ehpc/model/GetAutoScaleConfigResult.h | 1 + .../ehpc/model/ListSecurityGroupsRequest.h | 51 +++++++ .../ehpc/model/ListSecurityGroupsResult.h | 53 +++++++ .../ehpc/model/ListTasksRequest.h | 63 ++++++++ .../alibabacloud/ehpc/model/ListTasksResult.h | 69 +++++++++ .../ehpc/model/RecoverClusterResult.h | 2 + .../ehpc/model/ResetNodesResult.h | 2 + .../ehpc/model/SetAutoScaleConfigRequest.h | 1 + .../ehpc/model/SetGWSClusterPolicyRequest.h | 6 + .../ehpc/model/StartClusterResult.h | 2 + .../ehpc/model/StartNodesResult.h | 2 + .../ehpc/model/StopClusterResult.h | 2 + .../alibabacloud/ehpc/model/StopNodesResult.h | 2 + ehpc/src/EHPCClient.cc | 144 ++++++++++++++++++ ehpc/src/model/AddNodesRequest.cc | 11 ++ ehpc/src/model/AddNodesResult.cc | 7 + ehpc/src/model/AddSecurityGroupRequest.cc | 73 +++++++++ ehpc/src/model/AddSecurityGroupResult.cc | 44 ++++++ ehpc/src/model/ApplyNodesResult.cc | 7 + ehpc/src/model/CreateClusterRequest.cc | 22 +++ ehpc/src/model/CreateClusterResult.cc | 7 + ehpc/src/model/CreateGWSClusterRequest.cc | 11 ++ ehpc/src/model/CreateGWSInstanceRequest.cc | 11 ++ ehpc/src/model/CreateHybridClusterRequest.cc | 11 ++ ehpc/src/model/CreateHybridClusterResult.cc | 7 + ehpc/src/model/DeleteClusterResult.cc | 7 + ehpc/src/model/DeleteNodesResult.cc | 7 + ehpc/src/model/DeleteSecurityGroupRequest.cc | 62 ++++++++ ehpc/src/model/DeleteSecurityGroupResult.cc | 44 ++++++ .../model/DescribeGWSClusterPolicyRequest.cc | 22 +++ ehpc/src/model/DescribeGWSInstancesRequest.cc | 22 +++ ehpc/src/model/GetAutoScaleConfigResult.cc | 2 + ehpc/src/model/ListSecurityGroupsRequest.cc | 51 +++++++ ehpc/src/model/ListSecurityGroupsResult.cc | 59 +++++++ ehpc/src/model/ListTasksRequest.cc | 95 ++++++++++++ ehpc/src/model/ListTasksResult.cc | 94 ++++++++++++ ehpc/src/model/RecoverClusterResult.cc | 7 + ehpc/src/model/ResetNodesResult.cc | 7 + ehpc/src/model/SetAutoScaleConfigRequest.cc | 1 + ehpc/src/model/SetGWSClusterPolicyRequest.cc | 22 +++ ehpc/src/model/StartClusterResult.cc | 7 + ehpc/src/model/StartNodesResult.cc | 7 + ehpc/src/model/StopClusterResult.cc | 7 + ehpc/src/model/StopNodesResult.cc | 7 + 65 files changed, 1445 insertions(+), 1 deletion(-) create mode 100644 ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListTasksRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListTasksResult.h create mode 100644 ehpc/src/model/AddSecurityGroupRequest.cc create mode 100644 ehpc/src/model/AddSecurityGroupResult.cc create mode 100644 ehpc/src/model/DeleteSecurityGroupRequest.cc create mode 100644 ehpc/src/model/DeleteSecurityGroupResult.cc create mode 100644 ehpc/src/model/ListSecurityGroupsRequest.cc create mode 100644 ehpc/src/model/ListSecurityGroupsResult.cc create mode 100644 ehpc/src/model/ListTasksRequest.cc create mode 100644 ehpc/src/model/ListTasksResult.cc diff --git a/CHANGELOG b/CHANGELOG index acfb8c326..89d55c77d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +2020-08-28 Version: 1.36.614 +- Support multiple security group for one ehpc cluster. +- Update GWS apis. + 2020-08-28 Version: 1.36.613 - Supported Add GetAlgorithmHistoryResult. diff --git a/VERSION b/VERSION index b04bee064..b76deab97 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.613 \ No newline at end of file +1.36.614 \ No newline at end of file diff --git a/ehpc/CMakeLists.txt b/ehpc/CMakeLists.txt index 90ebf7a00..a8362f889 100644 --- a/ehpc/CMakeLists.txt +++ b/ehpc/CMakeLists.txt @@ -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 diff --git a/ehpc/include/alibabacloud/ehpc/EHPCClient.h b/ehpc/include/alibabacloud/ehpc/EHPCClient.h index 7003636b2..ba0e9b894 100644 --- a/ehpc/include/alibabacloud/ehpc/EHPCClient.h +++ b/ehpc/include/alibabacloud/ehpc/EHPCClient.h @@ -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 AddQueueOutcome; typedef std::future AddQueueOutcomeCallable; typedef std::function&)> AddQueueAsyncHandler; + typedef Outcome AddSecurityGroupOutcome; + typedef std::future AddSecurityGroupOutcomeCallable; + typedef std::function&)> AddSecurityGroupAsyncHandler; typedef Outcome AddUsersOutcome; typedef std::future AddUsersOutcomeCallable; typedef std::function&)> AddUsersAsyncHandler; @@ -326,6 +337,9 @@ namespace AlibabaCloud typedef Outcome DeleteQueueOutcome; typedef std::future DeleteQueueOutcomeCallable; typedef std::function&)> DeleteQueueAsyncHandler; + typedef Outcome DeleteSecurityGroupOutcome; + typedef std::future DeleteSecurityGroupOutcomeCallable; + typedef std::function&)> DeleteSecurityGroupAsyncHandler; typedef Outcome DeleteUsersOutcome; typedef std::future DeleteUsersOutcomeCallable; typedef std::function&)> DeleteUsersAsyncHandler; @@ -485,9 +499,15 @@ namespace AlibabaCloud typedef Outcome ListRegionsOutcome; typedef std::future ListRegionsOutcomeCallable; typedef std::function&)> ListRegionsAsyncHandler; + typedef Outcome ListSecurityGroupsOutcome; + typedef std::future ListSecurityGroupsOutcomeCallable; + typedef std::function&)> ListSecurityGroupsAsyncHandler; typedef Outcome ListSoftwaresOutcome; typedef std::future ListSoftwaresOutcomeCallable; typedef std::function&)> ListSoftwaresAsyncHandler; + typedef Outcome ListTasksOutcome; + typedef std::future ListTasksOutcomeCallable; + typedef std::function&)> ListTasksAsyncHandler; typedef Outcome ListUsersOutcome; typedef std::future ListUsersOutcomeCallable; typedef std::function&)> ListUsersAsyncHandler; @@ -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& context = nullptr) const; AddQueueOutcomeCallable addQueueCallable(const Model::AddQueueRequest& request) const; + AddSecurityGroupOutcome addSecurityGroup(const Model::AddSecurityGroupRequest &request)const; + void addSecurityGroupAsync(const Model::AddSecurityGroupRequest& request, const AddSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddSecurityGroupOutcomeCallable addSecurityGroupCallable(const Model::AddSecurityGroupRequest& request) const; AddUsersOutcome addUsers(const Model::AddUsersRequest &request)const; void addUsersAsync(const Model::AddUsersRequest& request, const AddUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddUsersOutcomeCallable addUsersCallable(const Model::AddUsersRequest& request) const; @@ -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& context = nullptr) const; DeleteQueueOutcomeCallable deleteQueueCallable(const Model::DeleteQueueRequest& request) const; + DeleteSecurityGroupOutcome deleteSecurityGroup(const Model::DeleteSecurityGroupRequest &request)const; + void deleteSecurityGroupAsync(const Model::DeleteSecurityGroupRequest& request, const DeleteSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSecurityGroupOutcomeCallable deleteSecurityGroupCallable(const Model::DeleteSecurityGroupRequest& request) const; DeleteUsersOutcome deleteUsers(const Model::DeleteUsersRequest &request)const; void deleteUsersAsync(const Model::DeleteUsersRequest& request, const DeleteUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteUsersOutcomeCallable deleteUsersCallable(const Model::DeleteUsersRequest& request) const; @@ -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& context = nullptr) const; ListRegionsOutcomeCallable listRegionsCallable(const Model::ListRegionsRequest& request) const; + ListSecurityGroupsOutcome listSecurityGroups(const Model::ListSecurityGroupsRequest &request)const; + void listSecurityGroupsAsync(const Model::ListSecurityGroupsRequest& request, const ListSecurityGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSecurityGroupsOutcomeCallable listSecurityGroupsCallable(const Model::ListSecurityGroupsRequest& request) const; ListSoftwaresOutcome listSoftwares(const Model::ListSoftwaresRequest &request)const; void listSoftwaresAsync(const Model::ListSoftwaresRequest& request, const ListSoftwaresAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListSoftwaresOutcomeCallable listSoftwaresCallable(const Model::ListSoftwaresRequest& request) const; + ListTasksOutcome listTasks(const Model::ListTasksRequest &request)const; + void listTasksAsync(const Model::ListTasksRequest& request, const ListTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTasksOutcomeCallable listTasksCallable(const Model::ListTasksRequest& request) const; ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const; diff --git a/ehpc/include/alibabacloud/ehpc/model/AddNodesRequest.h b/ehpc/include/alibabacloud/ehpc/model/AddNodesRequest.h index 4ec246bf4..8edfb8cff 100644 --- a/ehpc/include/alibabacloud/ehpc/model/AddNodesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/AddNodesRequest.h @@ -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_; diff --git a/ehpc/include/alibabacloud/ehpc/model/AddNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/AddNodesResult.h index dee5294d9..431c5b9fe 100644 --- a/ehpc/include/alibabacloud/ehpc/model/AddNodesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/AddNodesResult.h @@ -37,11 +37,13 @@ namespace AlibabaCloud AddNodesResult(); explicit AddNodesResult(const std::string &payload); ~AddNodesResult(); + std::string getTaskId()const; std::vector getInstanceIds()const; protected: void parse(const std::string &payload); private: + std::string taskId_; std::vector instanceIds_; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupRequest.h b/ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupRequest.h new file mode 100644 index 000000000..3825bf62e --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_ADDSECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_ADDSECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT AddSecurityGroupRequest : public RpcServiceRequest + { + + public: + AddSecurityGroupRequest(); + ~AddSecurityGroupRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string clientToken_; + std::string securityGroupId_; + std::string clusterId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_ADDSECURITYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupResult.h b/ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupResult.h new file mode 100644 index 000000000..760a4af7e --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_ADDSECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_ADDSECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT AddSecurityGroupResult : public ServiceResult + { + public: + + + AddSecurityGroupResult(); + explicit AddSecurityGroupResult(const std::string &payload); + ~AddSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_ADDSECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ApplyNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/ApplyNodesResult.h index e5cf2874b..58015f656 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ApplyNodesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ApplyNodesResult.h @@ -37,6 +37,7 @@ namespace AlibabaCloud ApplyNodesResult(); explicit ApplyNodesResult(const std::string &payload); ~ApplyNodesResult(); + std::string getTaskId()const; int getSatisfiedAmount()const; std::vector 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 instanceIds_; std::string detail_; diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateClusterRequest.h b/ehpc/include/alibabacloud/ehpc/model/CreateClusterRequest.h index c444ada77..7fae6805a 100644 --- a/ehpc/include/alibabacloud/ehpc/model/CreateClusterRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/CreateClusterRequest.h @@ -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_; diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/CreateClusterResult.h index c2938017b..c7f460fe5 100644 --- a/ehpc/include/alibabacloud/ehpc/model/CreateClusterResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/CreateClusterResult.h @@ -37,11 +37,13 @@ namespace AlibabaCloud CreateClusterResult(); explicit CreateClusterResult(const std::string &payload); ~CreateClusterResult(); + std::string getTaskId()const; std::string getClusterId()const; protected: void parse(const std::string &payload); private: + std::string taskId_; std::string clusterId_; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterRequest.h b/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterRequest.h index 9cd8e0e4d..30ba5b2ea 100644 --- a/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterRequest.h @@ -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_; diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceRequest.h b/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceRequest.h index d45c434f6..fd7b497da 100644 --- a/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceRequest.h @@ -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_; diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterRequest.h b/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterRequest.h index 8f4d0aef6..bfad9ff01 100644 --- a/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterRequest.h @@ -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_; diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterResult.h index 9ba20c552..56368d814 100644 --- a/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterResult.h @@ -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_; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteClusterResult.h index 70d23101d..be7fe8207 100644 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteClusterResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteClusterResult.h @@ -37,10 +37,12 @@ namespace AlibabaCloud DeleteClusterResult(); explicit DeleteClusterResult(const std::string &payload); ~DeleteClusterResult(); + std::string getTaskId()const; protected: void parse(const std::string &payload); private: + std::string taskId_; }; } diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteNodesResult.h index ac55d32a1..dfe385c74 100644 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteNodesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteNodesResult.h @@ -37,10 +37,12 @@ namespace AlibabaCloud DeleteNodesResult(); explicit DeleteNodesResult(const std::string &payload); ~DeleteNodesResult(); + std::string getTaskId()const; protected: void parse(const std::string &payload); private: + std::string taskId_; }; } diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupRequest.h b/ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupRequest.h new file mode 100644 index 000000000..e7a3da3f0 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DELETESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DeleteSecurityGroupRequest : public RpcServiceRequest + { + + public: + DeleteSecurityGroupRequest(); + ~DeleteSecurityGroupRequest(); + + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string securityGroupId_; + std::string clusterId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETESECURITYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupResult.h new file mode 100644 index 000000000..dcf257177 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DELETESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DeleteSecurityGroupResult : public ServiceResult + { + public: + + + DeleteSecurityGroupResult(); + explicit DeleteSecurityGroupResult(const std::string &payload); + ~DeleteSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyRequest.h index 117d6d3cc..01243b5e8 100644 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyRequest.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_; }; } diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesRequest.h index 9c2eb2888..12b3b3c8a 100644 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesRequest.h @@ -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_; }; } diff --git a/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h b/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h index 0958f960b..b4a37f928 100644 --- a/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h @@ -47,6 +47,7 @@ namespace AlibabaCloud int maxNodesInQueue; std::string resourceGroupId; bool enableAutoGrow; + std::string queueImageId; float spotPriceLimit; std::vector instanceTypes; bool enableAutoShrink; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsRequest.h new file mode 100644 index 000000000..aa84de55f --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTSECURITYGROUPSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTSECURITYGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListSecurityGroupsRequest : public RpcServiceRequest + { + + public: + ListSecurityGroupsRequest(); + ~ListSecurityGroupsRequest(); + + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string clusterId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTSECURITYGROUPSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsResult.h b/ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsResult.h new file mode 100644 index 000000000..629dc01b4 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTSECURITYGROUPSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTSECURITYGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListSecurityGroupsResult : public ServiceResult + { + public: + + + ListSecurityGroupsResult(); + explicit ListSecurityGroupsResult(const std::string &payload); + ~ListSecurityGroupsResult(); + std::vector getSecurityGroups()const; + int getTotalCount()const; + + protected: + void parse(const std::string &payload); + private: + std::vector securityGroups_; + int totalCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTSECURITYGROUPSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListTasksRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListTasksRequest.h new file mode 100644 index 000000000..8f8a50404 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListTasksRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTTASKSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTTASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListTasksRequest : public RpcServiceRequest + { + + public: + ListTasksRequest(); + ~ListTasksRequest(); + + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getArchived()const; + void setArchived(bool archived); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string clusterId_; + int pageNumber_; + std::string accessKeyId_; + bool archived_; + int pageSize_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTTASKSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListTasksResult.h b/ehpc/include/alibabacloud/ehpc/model/ListTasksResult.h new file mode 100644 index 000000000..c3c374425 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListTasksResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTTASKSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListTasksResult : public ServiceResult + { + public: + struct TaskInfo + { + std::string status; + std::string errors; + std::string taskId; + std::string clusterId; + std::string taskType; + std::string request; + int currentStep; + int totalSteps; + std::string result; + }; + + + ListTasksResult(); + explicit ListTasksResult(const std::string &payload); + ~ListTasksResult(); + int getTotalCount()const; + std::vector getTasks()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector tasks_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTTASKSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/RecoverClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/RecoverClusterResult.h index 0a5e26efa..817d7c81e 100644 --- a/ehpc/include/alibabacloud/ehpc/model/RecoverClusterResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/RecoverClusterResult.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_; }; } diff --git a/ehpc/include/alibabacloud/ehpc/model/ResetNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/ResetNodesResult.h index e367f8048..f6b56c03a 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ResetNodesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ResetNodesResult.h @@ -37,10 +37,12 @@ namespace AlibabaCloud ResetNodesResult(); explicit ResetNodesResult(const std::string &payload); ~ResetNodesResult(); + std::string getTaskId()const; protected: void parse(const std::string &payload); private: + std::string taskId_; }; } diff --git a/ehpc/include/alibabacloud/ehpc/model/SetAutoScaleConfigRequest.h b/ehpc/include/alibabacloud/ehpc/model/SetAutoScaleConfigRequest.h index 3cb288275..4006dc801 100644 --- a/ehpc/include/alibabacloud/ehpc/model/SetAutoScaleConfigRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/SetAutoScaleConfigRequest.h @@ -48,6 +48,7 @@ namespace AlibabaCloud std::vector instanceTypes; int maxNodesInQueue; std::string instanceType; + std::string queueImageId; bool enableAutoGrow; float spotPriceLimit; bool enableAutoShrink; diff --git a/ehpc/include/alibabacloud/ehpc/model/SetGWSClusterPolicyRequest.h b/ehpc/include/alibabacloud/ehpc/model/SetGWSClusterPolicyRequest.h index e9a412446..e5c7a24c3 100644 --- a/ehpc/include/alibabacloud/ehpc/model/SetGWSClusterPolicyRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/SetGWSClusterPolicyRequest.h @@ -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_; }; } diff --git a/ehpc/include/alibabacloud/ehpc/model/StartClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/StartClusterResult.h index 38d67e908..7a332fe6c 100644 --- a/ehpc/include/alibabacloud/ehpc/model/StartClusterResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/StartClusterResult.h @@ -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_; }; } diff --git a/ehpc/include/alibabacloud/ehpc/model/StartNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/StartNodesResult.h index 20d34f097..609da3298 100644 --- a/ehpc/include/alibabacloud/ehpc/model/StartNodesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/StartNodesResult.h @@ -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_; }; } diff --git a/ehpc/include/alibabacloud/ehpc/model/StopClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/StopClusterResult.h index fac6fc8f5..a101d0482 100644 --- a/ehpc/include/alibabacloud/ehpc/model/StopClusterResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/StopClusterResult.h @@ -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_; }; } diff --git a/ehpc/include/alibabacloud/ehpc/model/StopNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/StopNodesResult.h index 37646a842..c9dd46029 100644 --- a/ehpc/include/alibabacloud/ehpc/model/StopNodesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/StopNodesResult.h @@ -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_; }; } diff --git a/ehpc/src/EHPCClient.cc b/ehpc/src/EHPCClient.cc index 7253f5f56..ed0927699 100644 --- a/ehpc/src/EHPCClient.cc +++ b/ehpc/src/EHPCClient.cc @@ -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& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addSecurityGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::AddSecurityGroupOutcomeCallable EHPCClient::addSecurityGroupCallable(const AddSecurityGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addSecurityGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::AddUsersOutcome EHPCClient::addUsers(const AddUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -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& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSecurityGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DeleteSecurityGroupOutcomeCallable EHPCClient::deleteSecurityGroupCallable(const DeleteSecurityGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSecurityGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::DeleteUsersOutcome EHPCClient::deleteUsers(const DeleteUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -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& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSecurityGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListSecurityGroupsOutcomeCallable EHPCClient::listSecurityGroupsCallable(const ListSecurityGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSecurityGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::ListSoftwaresOutcome EHPCClient::listSoftwares(const ListSoftwaresRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -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& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListTasksOutcomeCallable EHPCClient::listTasksCallable(const ListTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::ListUsersOutcome EHPCClient::listUsers(const ListUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ehpc/src/model/AddNodesRequest.cc b/ehpc/src/model/AddNodesRequest.cc index 63f71fc21..807e8beae 100644 --- a/ehpc/src/model/AddNodesRequest.cc +++ b/ehpc/src/model/AddNodesRequest.cc @@ -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_; diff --git a/ehpc/src/model/AddNodesResult.cc b/ehpc/src/model/AddNodesResult.cc index 4be3bfb04..78fe5a538 100644 --- a/ehpc/src/model/AddNodesResult.cc +++ b/ehpc/src/model/AddNodesResult.cc @@ -42,9 +42,16 @@ void AddNodesResult::parse(const std::string &payload) auto allInstanceIds = value["InstanceIds"]["InstanceId"]; for (const auto &item : allInstanceIds) instanceIds_.push_back(item.asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); } +std::string AddNodesResult::getTaskId()const +{ + return taskId_; +} + std::vector AddNodesResult::getInstanceIds()const { return instanceIds_; diff --git a/ehpc/src/model/AddSecurityGroupRequest.cc b/ehpc/src/model/AddSecurityGroupRequest.cc new file mode 100644 index 000000000..7ff9437b6 --- /dev/null +++ b/ehpc/src/model/AddSecurityGroupRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::AddSecurityGroupRequest; + +AddSecurityGroupRequest::AddSecurityGroupRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "AddSecurityGroup") +{ + setMethod(HttpRequest::Method::Get); +} + +AddSecurityGroupRequest::~AddSecurityGroupRequest() +{} + +std::string AddSecurityGroupRequest::getClientToken()const +{ + return clientToken_; +} + +void AddSecurityGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string AddSecurityGroupRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void AddSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +std::string AddSecurityGroupRequest::getClusterId()const +{ + return clusterId_; +} + +void AddSecurityGroupRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +std::string AddSecurityGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AddSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ehpc/src/model/AddSecurityGroupResult.cc b/ehpc/src/model/AddSecurityGroupResult.cc new file mode 100644 index 000000000..5a79ad238 --- /dev/null +++ b/ehpc/src/model/AddSecurityGroupResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +AddSecurityGroupResult::AddSecurityGroupResult() : + ServiceResult() +{} + +AddSecurityGroupResult::AddSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddSecurityGroupResult::~AddSecurityGroupResult() +{} + +void AddSecurityGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/ApplyNodesResult.cc b/ehpc/src/model/ApplyNodesResult.cc index 6e82d2069..f40475b13 100644 --- a/ehpc/src/model/ApplyNodesResult.cc +++ b/ehpc/src/model/ApplyNodesResult.cc @@ -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_; diff --git a/ehpc/src/model/CreateClusterRequest.cc b/ehpc/src/model/CreateClusterRequest.cc index 76d37895c..0b91ebe12 100644 --- a/ehpc/src/model/CreateClusterRequest.cc +++ b/ehpc/src/model/CreateClusterRequest.cc @@ -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_; diff --git a/ehpc/src/model/CreateClusterResult.cc b/ehpc/src/model/CreateClusterResult.cc index 6904c2dde..60a72c51b 100644 --- a/ehpc/src/model/CreateClusterResult.cc +++ b/ehpc/src/model/CreateClusterResult.cc @@ -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_; diff --git a/ehpc/src/model/CreateGWSClusterRequest.cc b/ehpc/src/model/CreateGWSClusterRequest.cc index 588839136..547de9d4c 100644 --- a/ehpc/src/model/CreateGWSClusterRequest.cc +++ b/ehpc/src/model/CreateGWSClusterRequest.cc @@ -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_; diff --git a/ehpc/src/model/CreateGWSInstanceRequest.cc b/ehpc/src/model/CreateGWSInstanceRequest.cc index 3841fe6e0..2c1bc4d10 100644 --- a/ehpc/src/model/CreateGWSInstanceRequest.cc +++ b/ehpc/src/model/CreateGWSInstanceRequest.cc @@ -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_; diff --git a/ehpc/src/model/CreateHybridClusterRequest.cc b/ehpc/src/model/CreateHybridClusterRequest.cc index 0964035a4..e3a14cc40 100644 --- a/ehpc/src/model/CreateHybridClusterRequest.cc +++ b/ehpc/src/model/CreateHybridClusterRequest.cc @@ -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_; diff --git a/ehpc/src/model/CreateHybridClusterResult.cc b/ehpc/src/model/CreateHybridClusterResult.cc index 7f636a6c2..ed8d88870 100644 --- a/ehpc/src/model/CreateHybridClusterResult.cc +++ b/ehpc/src/model/CreateHybridClusterResult.cc @@ -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_; diff --git a/ehpc/src/model/DeleteClusterResult.cc b/ehpc/src/model/DeleteClusterResult.cc index cdc44e26c..070e89012 100644 --- a/ehpc/src/model/DeleteClusterResult.cc +++ b/ehpc/src/model/DeleteClusterResult.cc @@ -39,6 +39,13 @@ void DeleteClusterResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); } +std::string DeleteClusterResult::getTaskId()const +{ + return taskId_; +} + diff --git a/ehpc/src/model/DeleteNodesResult.cc b/ehpc/src/model/DeleteNodesResult.cc index 3805c5b9e..c181d33f0 100644 --- a/ehpc/src/model/DeleteNodesResult.cc +++ b/ehpc/src/model/DeleteNodesResult.cc @@ -39,6 +39,13 @@ void DeleteNodesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); } +std::string DeleteNodesResult::getTaskId()const +{ + return taskId_; +} + diff --git a/ehpc/src/model/DeleteSecurityGroupRequest.cc b/ehpc/src/model/DeleteSecurityGroupRequest.cc new file mode 100644 index 000000000..86c8b3d0b --- /dev/null +++ b/ehpc/src/model/DeleteSecurityGroupRequest.cc @@ -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 + +using AlibabaCloud::EHPC::Model::DeleteSecurityGroupRequest; + +DeleteSecurityGroupRequest::DeleteSecurityGroupRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "DeleteSecurityGroup") +{ + setMethod(HttpRequest::Method::Get); +} + +DeleteSecurityGroupRequest::~DeleteSecurityGroupRequest() +{} + +std::string DeleteSecurityGroupRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void DeleteSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +std::string DeleteSecurityGroupRequest::getClusterId()const +{ + return clusterId_; +} + +void DeleteSecurityGroupRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +std::string DeleteSecurityGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ehpc/src/model/DeleteSecurityGroupResult.cc b/ehpc/src/model/DeleteSecurityGroupResult.cc new file mode 100644 index 000000000..5e9267715 --- /dev/null +++ b/ehpc/src/model/DeleteSecurityGroupResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DeleteSecurityGroupResult::DeleteSecurityGroupResult() : + ServiceResult() +{} + +DeleteSecurityGroupResult::DeleteSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSecurityGroupResult::~DeleteSecurityGroupResult() +{} + +void DeleteSecurityGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/DescribeGWSClusterPolicyRequest.cc b/ehpc/src/model/DescribeGWSClusterPolicyRequest.cc index f057d6501..2d5d45038 100644 --- a/ehpc/src/model/DescribeGWSClusterPolicyRequest.cc +++ b/ehpc/src/model/DescribeGWSClusterPolicyRequest.cc @@ -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); +} + diff --git a/ehpc/src/model/DescribeGWSInstancesRequest.cc b/ehpc/src/model/DescribeGWSInstancesRequest.cc index 49f4dc4fc..dc8a42309 100644 --- a/ehpc/src/model/DescribeGWSInstancesRequest.cc +++ b/ehpc/src/model/DescribeGWSInstancesRequest.cc @@ -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); +} + diff --git a/ehpc/src/model/GetAutoScaleConfigResult.cc b/ehpc/src/model/GetAutoScaleConfigResult.cc index 8a358172b..b612ab037 100644 --- a/ehpc/src/model/GetAutoScaleConfigResult.cc +++ b/ehpc/src/model/GetAutoScaleConfigResult.cc @@ -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) { diff --git a/ehpc/src/model/ListSecurityGroupsRequest.cc b/ehpc/src/model/ListSecurityGroupsRequest.cc new file mode 100644 index 000000000..e3f3a86fe --- /dev/null +++ b/ehpc/src/model/ListSecurityGroupsRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ListSecurityGroupsRequest; + +ListSecurityGroupsRequest::ListSecurityGroupsRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "ListSecurityGroups") +{ + setMethod(HttpRequest::Method::Get); +} + +ListSecurityGroupsRequest::~ListSecurityGroupsRequest() +{} + +std::string ListSecurityGroupsRequest::getClusterId()const +{ + return clusterId_; +} + +void ListSecurityGroupsRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +std::string ListSecurityGroupsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListSecurityGroupsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ehpc/src/model/ListSecurityGroupsResult.cc b/ehpc/src/model/ListSecurityGroupsResult.cc new file mode 100644 index 000000000..4f873f281 --- /dev/null +++ b/ehpc/src/model/ListSecurityGroupsResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListSecurityGroupsResult::ListSecurityGroupsResult() : + ServiceResult() +{} + +ListSecurityGroupsResult::ListSecurityGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSecurityGroupsResult::~ListSecurityGroupsResult() +{} + +void ListSecurityGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSecurityGroups = value["SecurityGroups"]["SecurityGroup"]; + for (const auto &item : allSecurityGroups) + securityGroups_.push_back(item.asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::vector ListSecurityGroupsResult::getSecurityGroups()const +{ + return securityGroups_; +} + +int ListSecurityGroupsResult::getTotalCount()const +{ + return totalCount_; +} + diff --git a/ehpc/src/model/ListTasksRequest.cc b/ehpc/src/model/ListTasksRequest.cc new file mode 100644 index 000000000..856f1899e --- /dev/null +++ b/ehpc/src/model/ListTasksRequest.cc @@ -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 + +using AlibabaCloud::EHPC::Model::ListTasksRequest; + +ListTasksRequest::ListTasksRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "ListTasks") +{ + setMethod(HttpRequest::Method::Get); +} + +ListTasksRequest::~ListTasksRequest() +{} + +std::string ListTasksRequest::getClusterId()const +{ + return clusterId_; +} + +void ListTasksRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +int ListTasksRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListTasksRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListTasksRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListTasksRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +bool ListTasksRequest::getArchived()const +{ + return archived_; +} + +void ListTasksRequest::setArchived(bool archived) +{ + archived_ = archived; + setParameter("Archived", archived ? "true" : "false"); +} + +int ListTasksRequest::getPageSize()const +{ + return pageSize_; +} + +void ListTasksRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListTasksRequest::getTaskId()const +{ + return taskId_; +} + +void ListTasksRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/ehpc/src/model/ListTasksResult.cc b/ehpc/src/model/ListTasksResult.cc new file mode 100644 index 000000000..1d9e898cd --- /dev/null +++ b/ehpc/src/model/ListTasksResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListTasksResult::ListTasksResult() : + ServiceResult() +{} + +ListTasksResult::ListTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTasksResult::~ListTasksResult() +{} + +void ListTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTasksNode = value["Tasks"]["TaskInfo"]; + for (auto valueTasksTaskInfo : allTasksNode) + { + TaskInfo tasksObject; + if(!valueTasksTaskInfo["TaskId"].isNull()) + tasksObject.taskId = valueTasksTaskInfo["TaskId"].asString(); + if(!valueTasksTaskInfo["TaskType"].isNull()) + tasksObject.taskType = valueTasksTaskInfo["TaskType"].asString(); + if(!valueTasksTaskInfo["ClusterId"].isNull()) + tasksObject.clusterId = valueTasksTaskInfo["ClusterId"].asString(); + if(!valueTasksTaskInfo["Request"].isNull()) + tasksObject.request = valueTasksTaskInfo["Request"].asString(); + if(!valueTasksTaskInfo["Status"].isNull()) + tasksObject.status = valueTasksTaskInfo["Status"].asString(); + if(!valueTasksTaskInfo["CurrentStep"].isNull()) + tasksObject.currentStep = std::stoi(valueTasksTaskInfo["CurrentStep"].asString()); + if(!valueTasksTaskInfo["TotalSteps"].isNull()) + tasksObject.totalSteps = std::stoi(valueTasksTaskInfo["TotalSteps"].asString()); + if(!valueTasksTaskInfo["Result"].isNull()) + tasksObject.result = valueTasksTaskInfo["Result"].asString(); + if(!valueTasksTaskInfo["Errors"].isNull()) + tasksObject.errors = valueTasksTaskInfo["Errors"].asString(); + tasks_.push_back(tasksObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int ListTasksResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListTasksResult::getTasks()const +{ + return tasks_; +} + +int ListTasksResult::getPageSize()const +{ + return pageSize_; +} + +int ListTasksResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ehpc/src/model/RecoverClusterResult.cc b/ehpc/src/model/RecoverClusterResult.cc index 67dcb207d..faed06ba9 100644 --- a/ehpc/src/model/RecoverClusterResult.cc +++ b/ehpc/src/model/RecoverClusterResult.cc @@ -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_; +} + diff --git a/ehpc/src/model/ResetNodesResult.cc b/ehpc/src/model/ResetNodesResult.cc index b5bb99ee9..727999a11 100644 --- a/ehpc/src/model/ResetNodesResult.cc +++ b/ehpc/src/model/ResetNodesResult.cc @@ -39,6 +39,13 @@ void ResetNodesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); } +std::string ResetNodesResult::getTaskId()const +{ + return taskId_; +} + diff --git a/ehpc/src/model/SetAutoScaleConfigRequest.cc b/ehpc/src/model/SetAutoScaleConfigRequest.cc index 6fd55b082..4d427b8a0 100644 --- a/ehpc/src/model/SetAutoScaleConfigRequest.cc +++ b/ehpc/src/model/SetAutoScaleConfigRequest.cc @@ -196,6 +196,7 @@ void SetAutoScaleConfigRequest::setQueues(const std::vector& 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"); diff --git a/ehpc/src/model/SetGWSClusterPolicyRequest.cc b/ehpc/src/model/SetGWSClusterPolicyRequest.cc index eb4e5289f..247c03259 100644 --- a/ehpc/src/model/SetGWSClusterPolicyRequest.cc +++ b/ehpc/src/model/SetGWSClusterPolicyRequest.cc @@ -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); +} + diff --git a/ehpc/src/model/StartClusterResult.cc b/ehpc/src/model/StartClusterResult.cc index fba81fa94..2bbcbf0ce 100644 --- a/ehpc/src/model/StartClusterResult.cc +++ b/ehpc/src/model/StartClusterResult.cc @@ -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_; +} + diff --git a/ehpc/src/model/StartNodesResult.cc b/ehpc/src/model/StartNodesResult.cc index ae144e061..03da441d1 100644 --- a/ehpc/src/model/StartNodesResult.cc +++ b/ehpc/src/model/StartNodesResult.cc @@ -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_; +} + diff --git a/ehpc/src/model/StopClusterResult.cc b/ehpc/src/model/StopClusterResult.cc index 360e49cf8..6122b1a6e 100644 --- a/ehpc/src/model/StopClusterResult.cc +++ b/ehpc/src/model/StopClusterResult.cc @@ -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_; +} + diff --git a/ehpc/src/model/StopNodesResult.cc b/ehpc/src/model/StopNodesResult.cc index eba653e38..30cee0bec 100644 --- a/ehpc/src/model/StopNodesResult.cc +++ b/ehpc/src/model/StopNodesResult.cc @@ -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_; +} +