EHPC SDK Auto Released By qianzheng.llc,Version:1.27.0

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
This commit is contained in:
yixiong.jxy
2018-09-27 15:12:27 +08:00
parent 46a517571d
commit f2a390fbc8
19 changed files with 377 additions and 11 deletions

View File

@@ -124,6 +124,8 @@
#include "model/ModifyImageGatewayConfigResult.h"
#include "model/ListContainerAppsRequest.h"
#include "model/ListContainerAppsResult.h"
#include "model/ListQueuesRequest.h"
#include "model/ListQueuesResult.h"
#include "model/ListCloudMetricProfilingsRequest.h"
#include "model/ListCloudMetricProfilingsResult.h"
#include "model/SetJobUserRequest.h"
@@ -316,6 +318,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListContainerAppsResult> ListContainerAppsOutcome;
typedef std::future<ListContainerAppsOutcome> ListContainerAppsOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ListContainerAppsRequest&, const ListContainerAppsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListContainerAppsAsyncHandler;
typedef Outcome<Error, Model::ListQueuesResult> ListQueuesOutcome;
typedef std::future<ListQueuesOutcome> ListQueuesOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ListQueuesRequest&, const ListQueuesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListQueuesAsyncHandler;
typedef Outcome<Error, Model::ListCloudMetricProfilingsResult> ListCloudMetricProfilingsOutcome;
typedef std::future<ListCloudMetricProfilingsOutcome> ListCloudMetricProfilingsOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ListCloudMetricProfilingsRequest&, const ListCloudMetricProfilingsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCloudMetricProfilingsAsyncHandler;
@@ -519,6 +524,9 @@ namespace AlibabaCloud
ListContainerAppsOutcome listContainerApps(const Model::ListContainerAppsRequest &request)const;
void listContainerAppsAsync(const Model::ListContainerAppsRequest& request, const ListContainerAppsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListContainerAppsOutcomeCallable listContainerAppsCallable(const Model::ListContainerAppsRequest& request) const;
ListQueuesOutcome listQueues(const Model::ListQueuesRequest &request)const;
void listQueuesAsync(const Model::ListQueuesRequest& request, const ListQueuesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListQueuesOutcomeCallable listQueuesCallable(const Model::ListQueuesRequest& request) const;
ListCloudMetricProfilingsOutcome listCloudMetricProfilings(const Model::ListCloudMetricProfilingsRequest &request)const;
void listCloudMetricProfilingsAsync(const Model::ListCloudMetricProfilingsRequest& request, const ListCloudMetricProfilingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCloudMetricProfilingsOutcomeCallable listCloudMetricProfilingsCallable(const Model::ListCloudMetricProfilingsRequest& request) const;

View File

@@ -47,6 +47,8 @@ namespace AlibabaCloud
void setClusterId(const std::string& clusterId);
std::string getComputeSpotStrategy()const;
void setComputeSpotStrategy(const std::string& computeSpotStrategy);
std::string getJobQueue()const;
void setJobQueue(const std::string& jobQueue);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getImageOwnerAlias()const;
@@ -69,6 +71,7 @@ namespace AlibabaCloud
int count_;
std::string clusterId_;
std::string computeSpotStrategy_;
std::string jobQueue_;
std::string accessKeyId_;
std::string imageOwnerAlias_;
std::string periodUnit_;

View File

@@ -64,6 +64,8 @@ namespace AlibabaCloud
void setSecurityGroupName(const std::string& securityGroupName);
std::string getEcsOrderComputeInstanceType()const;
void setEcsOrderComputeInstanceType(const std::string& ecsOrderComputeInstanceType);
std::string getJobQueue()const;
void setJobQueue(const std::string& jobQueue);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getImageOwnerAlias()const;
@@ -138,6 +140,7 @@ namespace AlibabaCloud
std::string keyPairName_;
std::string securityGroupName_;
std::string ecsOrderComputeInstanceType_;
std::string jobQueue_;
std::string accessKeyId_;
std::string imageOwnerAlias_;
std::string volumeType_;

View File

@@ -32,6 +32,13 @@ namespace AlibabaCloud
class ALIBABACLOUD_EHPC_EXPORT GetAutoScaleConfigResult : public ServiceResult
{
public:
struct QueueInfo
{
float spotPriceLimit;
std::string instanceType;
std::string queueName;
std::string spotStrategy;
};
GetAutoScaleConfigResult();
@@ -49,7 +56,8 @@ namespace AlibabaCloud
std::string getUid()const;
int getGrowTimeoutInMinutes()const;
int getShrinkIntervalInMinutes()const;
std::string getSpotPriceLimit()const;
float getSpotPriceLimit()const;
std::vector<QueueInfo> getQueues()const;
std::string getExcludeNodes()const;
std::string getSpotStrategy()const;
@@ -68,7 +76,8 @@ namespace AlibabaCloud
std::string uid_;
int growTimeoutInMinutes_;
int shrinkIntervalInMinutes_;
std::string spotPriceLimit_;
float spotPriceLimit_;
std::vector<QueueInfo> queues_;
std::string excludeNodes_;
std::string spotStrategy_;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTQUEUESREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTQUEUESREQUEST_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 ListQueuesRequest : public RpcServiceRequest
{
public:
ListQueuesRequest();
~ListQueuesRequest();
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string clusterId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTQUEUESREQUEST_H_

View File

@@ -0,0 +1,56 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTQUEUESRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTQUEUESRESULT_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 ListQueuesResult : public ServiceResult
{
public:
struct QueueInfo
{
std::string type;
std::string queueName;
};
ListQueuesResult();
explicit ListQueuesResult(const std::string &payload);
~ListQueuesResult();
std::vector<QueueInfo> getQueues()const;
protected:
void parse(const std::string &payload);
private:
std::vector<QueueInfo> queues_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTQUEUESRESULT_H_

View File

@@ -30,6 +30,13 @@ namespace AlibabaCloud
{
class ALIBABACLOUD_EHPC_EXPORT SetAutoScaleConfigRequest : public RpcServiceRequest
{
struct Queues
{
std::string spotStrategy;
std::string queueName;
std::string instanceType;
float spotPriceLimit;
};
public:
SetAutoScaleConfigRequest();
@@ -43,8 +50,8 @@ namespace AlibabaCloud
void setClusterId(const std::string& clusterId);
bool getEnableAutoGrow()const;
void setEnableAutoGrow(bool enableAutoGrow);
std::string getSpotPriceLimit()const;
void setSpotPriceLimit(const std::string& spotPriceLimit);
float getSpotPriceLimit()const;
void setSpotPriceLimit(float spotPriceLimit);
bool getEnableAutoShrink()const;
void setEnableAutoShrink(bool enableAutoShrink);
std::string getAccessKeyId()const;
@@ -57,6 +64,8 @@ namespace AlibabaCloud
void setExcludeNodes(const std::string& excludeNodes);
int getShrinkIntervalInMinutes()const;
void setShrinkIntervalInMinutes(int shrinkIntervalInMinutes);
std::vector<Queues> getQueues()const;
void setQueues(const std::vector<Queues>& queues);
int getExtraNodesGrowRatio()const;
void setExtraNodesGrowRatio(int extraNodesGrowRatio);
int getGrowIntervalInMinutes()const;
@@ -69,13 +78,14 @@ namespace AlibabaCloud
int growTimeoutInMinutes_;
std::string clusterId_;
bool enableAutoGrow_;
std::string spotPriceLimit_;
float spotPriceLimit_;
bool enableAutoShrink_;
std::string accessKeyId_;
std::string spotStrategy_;
int maxNodesInCluster_;
std::string excludeNodes_;
int shrinkIntervalInMinutes_;
std::vector<Queues> queues_;
int extraNodesGrowRatio_;
int growIntervalInMinutes_;
int growRatio_;

View File

@@ -53,6 +53,8 @@ namespace AlibabaCloud
void setPriority(int priority);
std::string getCommandLine()const;
void setCommandLine(const std::string& commandLine);
std::string getJobQueue()const;
void setJobQueue(const std::string& jobQueue);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getArrayRequest()const;
@@ -80,6 +82,7 @@ namespace AlibabaCloud
bool reRunable_;
int priority_;
std::string commandLine_;
std::string jobQueue_;
std::string accessKeyId_;
std::string arrayRequest_;
std::string unzipCmd_;