Support Serverless Job API.

This commit is contained in:
sdk-team
2023-07-14 03:18:13 +00:00
parent c2ce4a0048
commit 1193bcf394
44 changed files with 2932 additions and 262 deletions

View File

@@ -104,6 +104,8 @@
#include "model/DescribeNFSClientStatusResult.h"
#include "model/DescribePriceRequest.h"
#include "model/DescribePriceResult.h"
#include "model/DescribeServerlessJobsRequest.h"
#include "model/DescribeServerlessJobsResult.h"
#include "model/EditJobTemplateRequest.h"
#include "model/EditJobTemplateResult.h"
#include "model/GetAccountingReportRequest.h"
@@ -196,6 +198,8 @@
#include "model/ListRegionsResult.h"
#include "model/ListSecurityGroupsRequest.h"
#include "model/ListSecurityGroupsResult.h"
#include "model/ListServerlessJobsRequest.h"
#include "model/ListServerlessJobsResult.h"
#include "model/ListSoftwaresRequest.h"
#include "model/ListSoftwaresResult.h"
#include "model/ListTagResourcesRequest.h"
@@ -266,10 +270,14 @@
#include "model/StopJobsResult.h"
#include "model/StopNodesRequest.h"
#include "model/StopNodesResult.h"
#include "model/StopServerlessJobsRequest.h"
#include "model/StopServerlessJobsResult.h"
#include "model/StopVisualServiceRequest.h"
#include "model/StopVisualServiceResult.h"
#include "model/SubmitJobRequest.h"
#include "model/SubmitJobResult.h"
#include "model/SubmitServerlessJobRequest.h"
#include "model/SubmitServerlessJobResult.h"
#include "model/SummaryImagesRequest.h"
#include "model/SummaryImagesResult.h"
#include "model/SummaryImagesInfoRequest.h"
@@ -420,6 +428,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribePriceResult> DescribePriceOutcome;
typedef std::future<DescribePriceOutcome> DescribePriceOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::DescribePriceRequest&, const DescribePriceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePriceAsyncHandler;
typedef Outcome<Error, Model::DescribeServerlessJobsResult> DescribeServerlessJobsOutcome;
typedef std::future<DescribeServerlessJobsOutcome> DescribeServerlessJobsOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::DescribeServerlessJobsRequest&, const DescribeServerlessJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeServerlessJobsAsyncHandler;
typedef Outcome<Error, Model::EditJobTemplateResult> EditJobTemplateOutcome;
typedef std::future<EditJobTemplateOutcome> EditJobTemplateOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::EditJobTemplateRequest&, const EditJobTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EditJobTemplateAsyncHandler;
@@ -558,6 +569,9 @@ namespace AlibabaCloud
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::ListServerlessJobsResult> ListServerlessJobsOutcome;
typedef std::future<ListServerlessJobsOutcome> ListServerlessJobsOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ListServerlessJobsRequest&, const ListServerlessJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListServerlessJobsAsyncHandler;
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;
@@ -663,12 +677,18 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::StopNodesResult> StopNodesOutcome;
typedef std::future<StopNodesOutcome> StopNodesOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::StopNodesRequest&, const StopNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopNodesAsyncHandler;
typedef Outcome<Error, Model::StopServerlessJobsResult> StopServerlessJobsOutcome;
typedef std::future<StopServerlessJobsOutcome> StopServerlessJobsOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::StopServerlessJobsRequest&, const StopServerlessJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopServerlessJobsAsyncHandler;
typedef Outcome<Error, Model::StopVisualServiceResult> StopVisualServiceOutcome;
typedef std::future<StopVisualServiceOutcome> StopVisualServiceOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::StopVisualServiceRequest&, const StopVisualServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopVisualServiceAsyncHandler;
typedef Outcome<Error, Model::SubmitJobResult> SubmitJobOutcome;
typedef std::future<SubmitJobOutcome> SubmitJobOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::SubmitJobRequest&, const SubmitJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitJobAsyncHandler;
typedef Outcome<Error, Model::SubmitServerlessJobResult> SubmitServerlessJobOutcome;
typedef std::future<SubmitServerlessJobOutcome> SubmitServerlessJobOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::SubmitServerlessJobRequest&, const SubmitServerlessJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitServerlessJobAsyncHandler;
typedef Outcome<Error, Model::SummaryImagesResult> SummaryImagesOutcome;
typedef std::future<SummaryImagesOutcome> SummaryImagesOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::SummaryImagesRequest&, const SummaryImagesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SummaryImagesAsyncHandler;
@@ -824,6 +844,9 @@ namespace AlibabaCloud
DescribePriceOutcome describePrice(const Model::DescribePriceRequest &request)const;
void describePriceAsync(const Model::DescribePriceRequest& request, const DescribePriceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribePriceOutcomeCallable describePriceCallable(const Model::DescribePriceRequest& request) const;
DescribeServerlessJobsOutcome describeServerlessJobs(const Model::DescribeServerlessJobsRequest &request)const;
void describeServerlessJobsAsync(const Model::DescribeServerlessJobsRequest& request, const DescribeServerlessJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeServerlessJobsOutcomeCallable describeServerlessJobsCallable(const Model::DescribeServerlessJobsRequest& request) const;
EditJobTemplateOutcome editJobTemplate(const Model::EditJobTemplateRequest &request)const;
void editJobTemplateAsync(const Model::EditJobTemplateRequest& request, const EditJobTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EditJobTemplateOutcomeCallable editJobTemplateCallable(const Model::EditJobTemplateRequest& request) const;
@@ -962,6 +985,9 @@ namespace AlibabaCloud
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;
ListServerlessJobsOutcome listServerlessJobs(const Model::ListServerlessJobsRequest &request)const;
void listServerlessJobsAsync(const Model::ListServerlessJobsRequest& request, const ListServerlessJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListServerlessJobsOutcomeCallable listServerlessJobsCallable(const Model::ListServerlessJobsRequest& 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;
@@ -1067,12 +1093,18 @@ namespace AlibabaCloud
StopNodesOutcome stopNodes(const Model::StopNodesRequest &request)const;
void stopNodesAsync(const Model::StopNodesRequest& request, const StopNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopNodesOutcomeCallable stopNodesCallable(const Model::StopNodesRequest& request) const;
StopServerlessJobsOutcome stopServerlessJobs(const Model::StopServerlessJobsRequest &request)const;
void stopServerlessJobsAsync(const Model::StopServerlessJobsRequest& request, const StopServerlessJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopServerlessJobsOutcomeCallable stopServerlessJobsCallable(const Model::StopServerlessJobsRequest& request) const;
StopVisualServiceOutcome stopVisualService(const Model::StopVisualServiceRequest &request)const;
void stopVisualServiceAsync(const Model::StopVisualServiceRequest& request, const StopVisualServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopVisualServiceOutcomeCallable stopVisualServiceCallable(const Model::StopVisualServiceRequest& request) const;
SubmitJobOutcome submitJob(const Model::SubmitJobRequest &request)const;
void submitJobAsync(const Model::SubmitJobRequest& request, const SubmitJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SubmitJobOutcomeCallable submitJobCallable(const Model::SubmitJobRequest& request) const;
SubmitServerlessJobOutcome submitServerlessJob(const Model::SubmitServerlessJobRequest &request)const;
void submitServerlessJobAsync(const Model::SubmitServerlessJobRequest& request, const SubmitServerlessJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SubmitServerlessJobOutcomeCallable submitServerlessJobCallable(const Model::SubmitServerlessJobRequest& request) const;
SummaryImagesOutcome summaryImages(const Model::SummaryImagesRequest &request)const;
void summaryImagesAsync(const Model::SummaryImagesRequest& request, const SummaryImagesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SummaryImagesOutcomeCallable summaryImagesCallable(const Model::SummaryImagesRequest& request) const;

View File

@@ -38,6 +38,48 @@ public:
};
AddNodesRequest();
~AddNodesRequest();
std::string getDnsConfig() const;
void setDnsConfig(const std::string &dnsConfig);
std::string getImageOwnerAlias() const;
void setImageOwnerAlias(const std::string &imageOwnerAlias);
std::vector<DataDisks> getDataDisks() const;
void setDataDisks(const std::vector<DataDisks> &dataDisks);
int getSystemDiskSize() const;
void setSystemDiskSize(int systemDiskSize);
std::string getHostNamePrefix() const;
void setHostNamePrefix(const std::string &hostNamePrefix);
std::string getComputeSpotInterruptionBehavior() const;
void setComputeSpotInterruptionBehavior(const std::string &computeSpotInterruptionBehavior);
std::string getComputeSpotPriceLimit() const;
void setComputeSpotPriceLimit(const std::string &computeSpotPriceLimit);
int getAutoRenewPeriod() const;
void setAutoRenewPeriod(int autoRenewPeriod);
int getPeriod() const;
void setPeriod(int period);
int getCount() const;
void setCount(int count);
std::string getComputeSpotStrategy() const;
void setComputeSpotStrategy(const std::string &computeSpotStrategy);
std::string getHostNameSuffix() const;
void setHostNameSuffix(const std::string &hostNameSuffix);
bool getSync() const;
void setSync(bool sync);
std::string getVSwitchId() const;
void setVSwitchId(const std::string &vSwitchId);
std::string getPeriodUnit() const;
void setPeriodUnit(const std::string &periodUnit);
bool getComputeEnableHt() const;
void setComputeEnableHt(bool computeEnableHt);
std::string getAutoRenew() const;
void setAutoRenew(const std::string &autoRenew);
std::string getInternetChargeType() const;
void setInternetChargeType(const std::string &internetChargeType);
std::string getCreateMode() const;
void setCreateMode(const std::string &createMode);
std::string getZoneId() const;
void setZoneId(const std::string &zoneId);
int getInternetMaxBandWidthIn() const;
void setInternetMaxBandWidthIn(int internetMaxBandWidthIn);
std::string getImageId() const;
void setImageId(const std::string &imageId);
std::string getSystemDiskLevel() const;
@@ -52,62 +94,43 @@ public:
void setJobQueue(const std::string &jobQueue);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getImageOwnerAlias() const;
void setImageOwnerAlias(const std::string &imageOwnerAlias);
std::string getSystemDiskType() const;
void setSystemDiskType(const std::string &systemDiskType);
std::vector<DataDisks> getDataDisks() const;
void setDataDisks(const std::vector<DataDisks> &dataDisks);
int getMinCount() const;
void setMinCount(int minCount);
int getSystemDiskSize() const;
void setSystemDiskSize(int systemDiskSize);
std::string getInstanceType() const;
void setInstanceType(const std::string &instanceType);
std::string getHostNamePrefix() const;
void setHostNamePrefix(const std::string &hostNamePrefix);
std::string getComputeSpotInterruptionBehavior() const;
void setComputeSpotInterruptionBehavior(const std::string &computeSpotInterruptionBehavior);
std::string getComputeSpotPriceLimit() const;
void setComputeSpotPriceLimit(const std::string &computeSpotPriceLimit);
int getAutoRenewPeriod() const;
void setAutoRenewPeriod(int autoRenewPeriod);
int getPeriod() const;
void setPeriod(int period);
int getCount() const;
void setCount(int count);
std::string getClusterId() const;
void setClusterId(const std::string &clusterId);
std::string getComputeSpotStrategy() const;
void setComputeSpotStrategy(const std::string &computeSpotStrategy);
std::string getHostNameSuffix() const;
void setHostNameSuffix(const std::string &hostNameSuffix);
bool getSync() const;
void setSync(bool sync);
std::string getNetworkInterfaceTrafficMode() const;
void setNetworkInterfaceTrafficMode(const std::string &networkInterfaceTrafficMode);
std::string getVSwitchId() const;
void setVSwitchId(const std::string &vSwitchId);
int getComputeSpotDuration() const;
void setComputeSpotDuration(int computeSpotDuration);
std::string getPeriodUnit() const;
void setPeriodUnit(const std::string &periodUnit);
bool getComputeEnableHt() const;
void setComputeEnableHt(bool computeEnableHt);
std::string getAutoRenew() const;
void setAutoRenew(const std::string &autoRenew);
std::string getEcsChargeType() const;
void setEcsChargeType(const std::string &ecsChargeType);
std::string getInternetChargeType() const;
void setInternetChargeType(const std::string &internetChargeType);
std::string getCreateMode() const;
void setCreateMode(const std::string &createMode);
std::string getZoneId() const;
void setZoneId(const std::string &zoneId);
int getInternetMaxBandWidthIn() const;
void setInternetMaxBandWidthIn(int internetMaxBandWidthIn);
private:
std::string dnsConfig_;
std::string imageOwnerAlias_;
std::vector<DataDisks> dataDisks_;
int systemDiskSize_;
std::string hostNamePrefix_;
std::string computeSpotInterruptionBehavior_;
std::string computeSpotPriceLimit_;
int autoRenewPeriod_;
int period_;
int count_;
std::string computeSpotStrategy_;
std::string hostNameSuffix_;
bool sync_;
std::string vSwitchId_;
std::string periodUnit_;
bool computeEnableHt_;
std::string autoRenew_;
std::string internetChargeType_;
std::string createMode_;
std::string zoneId_;
int internetMaxBandWidthIn_;
std::string imageId_;
std::string systemDiskLevel_;
std::string clientToken_;
@@ -115,33 +138,13 @@ private:
int internetMaxBandWidthOut_;
std::string jobQueue_;
std::string accessKeyId_;
std::string imageOwnerAlias_;
std::string systemDiskType_;
std::vector<DataDisks> dataDisks_;
int minCount_;
int systemDiskSize_;
std::string instanceType_;
std::string hostNamePrefix_;
std::string computeSpotInterruptionBehavior_;
std::string computeSpotPriceLimit_;
int autoRenewPeriod_;
int period_;
int count_;
std::string clusterId_;
std::string computeSpotStrategy_;
std::string hostNameSuffix_;
bool sync_;
std::string networkInterfaceTrafficMode_;
std::string vSwitchId_;
int computeSpotDuration_;
std::string periodUnit_;
bool computeEnableHt_;
std::string autoRenew_;
std::string ecsChargeType_;
std::string internetChargeType_;
std::string createMode_;
std::string zoneId_;
int internetMaxBandWidthIn_;
};
} // namespace Model
} // namespace EHPC

View File

@@ -30,16 +30,22 @@ class ALIBABACLOUD_EHPC_EXPORT AddQueueRequest : public RpcServiceRequest {
public:
AddQueueRequest();
~AddQueueRequest();
std::string getDeploymentSetId() const;
void setDeploymentSetId(const std::string &deploymentSetId);
std::string getQueueName() const;
void setQueueName(const std::string &queueName);
std::string getClusterId() const;
void setClusterId(const std::string &clusterId);
std::string getNetworkInterfaceTrafficMode() const;
void setNetworkInterfaceTrafficMode(const std::string &networkInterfaceTrafficMode);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
private:
std::string deploymentSetId_;
std::string queueName_;
std::string clusterId_;
std::string networkInterfaceTrafficMode_;
std::string accessKeyId_;
};
} // namespace Model

View File

@@ -43,6 +43,15 @@ public:
std::string location;
std::string jobQueue;
};
struct AddOns {
std::string deployMode;
float port;
std::string configFile;
bool defaultStart;
std::string name;
std::string dBType;
std::string version;
};
struct Tag {
std::string value;
std::string key;
@@ -58,12 +67,16 @@ public:
~CreateClusterRequest();
std::vector<AdditionalVolumes> getAdditionalVolumes() const;
void setAdditionalVolumes(const std::vector<AdditionalVolumes> &additionalVolumes);
std::vector<AddOns> getAddOns() const;
void setAddOns(const std::vector<AddOns> &addOns);
std::string getEcsOrderManagerInstanceType() const;
void setEcsOrderManagerInstanceType(const std::string &ecsOrderManagerInstanceType);
std::string getKeyPairName() const;
void setKeyPairName(const std::string &keyPairName);
std::string getSecurityGroupName() const;
void setSecurityGroupName(const std::string &securityGroupName);
bool getWithoutNas() const;
void setWithoutNas(bool withoutNas);
std::string getImageOwnerAlias() const;
void setImageOwnerAlias(const std::string &imageOwnerAlias);
std::string getDeployMode() const;
@@ -144,6 +157,8 @@ public:
void setVolumeType(const std::string &volumeType);
std::string getSystemDiskType() const;
void setSystemDiskType(const std::string &systemDiskType);
std::string getDeploymentSetId() const;
void setDeploymentSetId(const std::string &deploymentSetId);
std::string getVolumeProtocol() const;
void setVolumeProtocol(const std::string &volumeProtocol);
std::string getClientVersion() const;
@@ -181,9 +196,11 @@ public:
private:
std::vector<AdditionalVolumes> additionalVolumes_;
std::vector<AddOns> addOns_;
std::string ecsOrderManagerInstanceType_;
std::string keyPairName_;
std::string securityGroupName_;
bool withoutNas_;
std::string imageOwnerAlias_;
std::string deployMode_;
int ecsOrderManagerCount_;
@@ -224,6 +241,7 @@ private:
std::string accessKeyId_;
std::string volumeType_;
std::string systemDiskType_;
std::string deploymentSetId_;
std::string volumeProtocol_;
std::string clientVersion_;
std::string osTag_;

View File

@@ -39,6 +39,7 @@ public:
std::string url;
};
struct OpenldapPar {
std::string fallbackHomeDir;
std::string baseDn;
std::string ldapServerIp;
};
@@ -71,6 +72,8 @@ public:
void setResourceGroupId(const std::string &resourceGroupId);
std::string getPassword() const;
void setPassword(const std::string &password);
std::string getHybridClusterOpMode() const;
void setHybridClusterOpMode(const std::string &hybridClusterOpMode);
WinAdPar getWinAdPar() const;
void setWinAdPar(const WinAdPar &winAdPar);
float getComputeSpotPriceLimit() const;
@@ -147,6 +150,7 @@ private:
std::string imageOwnerAlias_;
std::string resourceGroupId_;
std::string password_;
std::string hybridClusterOpMode_;
WinAdPar winAdPar_;
float computeSpotPriceLimit_;
std::string onPremiseVolumeLocalPath_;

View File

@@ -61,6 +61,12 @@ namespace AlibabaCloud
ProxyMgr proxyMgr;
Manager manager;
};
struct InitialImage
{
std::string imageOwnerAlias;
std::string osTag;
std::string imageId;
};
struct ApplicationInfo
{
std::string version;
@@ -78,40 +84,75 @@ namespace AlibabaCloud
std::string iP;
std::string hostName;
};
struct AddOnsInfoItem
{
std::string status;
std::string softwareId;
std::string deployMode;
int port;
std::string uRL;
};
struct NodesInfo
{
std::string role;
std::string ipAddress;
std::string schedulerType;
std::string dir;
std::string accountType;
std::string hostName;
};
std::string volumeProtocol;
std::string resourceGroupId;
std::vector<AddOnsInfoItem> addOnsInfo;
std::string name;
std::string volumeId;
std::string ramRoleName;
std::string deployMode;
std::string openldapPar;
std::string imageId;
std::string status;
std::vector<PostInstallScriptInfo> postInstallScripts;
std::string vSwitchId;
std::string period;
std::string computeSpotStrategy;
std::string volumeMountpoint;
std::string vpcId;
EcsInfo ecsInfo;
std::string id;
std::string domain;
InitialImage initialImage;
std::string periodUnit;
std::string imageOwnerAlias;
std::string description;
std::string autoRenew;
std::string computeSpotPriceLimit;
std::string ramNodeTypes;
std::string clientVersion;
std::vector<OnPremiseInfoItem> onPremiseInfo;
std::string name;
std::string volumeId;
std::string winAdPar;
std::string volumeType;
std::string ramRoleName;
std::string deployMode;
std::string imageId;
std::string status;
int schedulerPreInstall;
std::string autoRenewPeriod;
std::string keyPairName;
std::string remoteDirectory;
std::string sccClusterId;
std::vector<ApplicationInfo> applications;
std::vector<PostInstallScriptInfo> postInstallScripts;
std::string zoneId;
std::string clusterVersion;
std::string securityGroupId;
std::string createTime;
std::string vSwitchId;
std::string schedulerType;
std::string accountType;
std::vector<NodesInfo> nodes;
std::string baseOsTag;
std::string volumeMountpoint;
int withoutAgent;
std::string imageName;
std::string vpcId;
EcsInfo ecsInfo;
bool haEnable;
std::string osTag;
std::string ecsChargeType;
std::string regionId;
std::string id;
std::string location;
std::string plugin;
};

View File

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

View File

@@ -0,0 +1,383 @@
/*
* 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_DESCRIBESERVERLESSJOBSRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_DESCRIBESERVERLESSJOBSRESULT_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 DescribeServerlessJobsResult : public ServiceResult
{
public:
struct JobInfo
{
struct ArrayProperties
{
long indexStart;
long indexEnd;
long indexStep;
};
struct ContainerGroup
{
struct DnsConfig
{
struct Option
{
std::string value;
std::string name;
};
std::vector<Option> options;
std::vector<std::string> searches;
std::vector<std::string> nameServers;
};
struct EciSecurityContext
{
struct Sysctl
{
std::string value;
std::string name;
};
std::vector<Sysctl> sysctls;
};
struct Container
{
struct CurrentState
{
long signal;
std::string finishTime;
std::string message;
std::string state;
long exitCode;
std::string startTime;
std::string detailStatus;
std::string reason;
};
struct LivenessProbe
{
struct HttpGet
{
std::string path;
std::string scheme;
long port;
};
struct TcpSocket
{
long port;
std::string host;
};
long initialDelaySeconds;
long timeoutSeconds;
std::vector<std::string> execs;
HttpGet httpGet;
long periodSeconds;
TcpSocket tcpSocket;
long failureThreshold;
long successThreshold;
};
struct PreviousState
{
long signal;
std::string finishTime;
std::string message;
std::string state;
long exitCode;
std::string startTime;
std::string detailStatus;
std::string reason;
};
struct ReadinessProbe
{
struct HttpGet2
{
std::string path;
std::string scheme;
long port;
};
struct TcpSocket3
{
long port;
std::string host;
};
long initialDelaySeconds;
long timeoutSeconds;
HttpGet2 httpGet2;
TcpSocket3 tcpSocket3;
std::vector<std::string> execs1;
long periodSeconds;
long failureThreshold;
long successThreshold;
};
struct SecurityContext
{
struct Capability
{
std::vector<std::string> adds;
};
long runAsUser;
Capability capability;
bool readOnlyRootFilesystem;
};
struct EnvironmentVar
{
struct ValueFrom
{
struct FieldRef
{
std::string fieldPath;
};
FieldRef fieldRef;
};
ValueFrom valueFrom;
std::string value;
std::string key;
};
struct Port
{
long port;
std::string protocol;
};
struct VolumeMount
{
std::string mountPath;
bool readOnly;
std::string subPath;
std::string mountPropagation;
std::string name;
};
ReadinessProbe readinessProbe;
std::vector<Container::EnvironmentVar> environmentVars;
std::vector<std::string> args;
LivenessProbe livenessProbe;
float memory;
std::vector<Container::Port> ports;
float cpu;
std::string image;
int gpu;
PreviousState previousState;
bool stdinOnce;
std::string name;
bool stdin;
int restartCount;
bool ready;
std::string workingDir;
std::vector<Container::VolumeMount> volumeMounts;
std::string imagePullPolicy;
CurrentState currentState;
SecurityContext securityContext;
bool tty;
std::vector<std::string> commands;
};
struct Event
{
std::string type;
std::string lastTimestamp;
std::string message;
int count;
std::string firstTimestamp;
std::string reason;
std::string name;
};
struct HostAlias
{
std::string ip;
std::vector<std::string> hostnames;
};
struct InitContainer
{
struct CurrentState5
{
long signal;
std::string finishTime;
std::string message;
std::string state;
long exitCode;
std::string startTime;
std::string detailStatus;
std::string reason;
};
struct PreviousState6
{
long signal;
std::string finishTime;
std::string message;
std::string state;
long exitCode;
std::string startTime;
std::string detailStatus;
std::string reason;
};
struct SecurityContext7
{
struct Capability16
{
std::vector<std::string> adds17;
};
long runAsUser;
bool readOnlyRootFilesystem;
Capability16 capability16;
};
struct EnvironmentVar11
{
struct ValueFrom12
{
struct FieldRef13
{
std::string fieldPath;
};
FieldRef13 fieldRef13;
};
std::string value;
std::string key;
ValueFrom12 valueFrom12;
};
struct Port14
{
long port;
std::string protocol;
};
struct VolumeMount15
{
std::string mountPath;
bool readOnly;
std::string mountPropagation;
std::string name;
};
PreviousState6 previousState6;
long memory;
long cpu;
std::string image;
long gpu;
std::string name;
CurrentState5 currentState5;
long restartCount;
std::vector<InitContainer::EnvironmentVar11> environmentVars8;
bool ready;
std::string workingDir;
std::vector<InitContainer::Port14> ports9;
std::vector<InitContainer::VolumeMount15> volumeMounts10;
std::string imagePullPolicy;
std::vector<std::string> command;
SecurityContext7 securityContext7;
std::vector<std::string> args4;
};
struct Tag
{
std::string value;
std::string key;
};
struct Volume
{
struct ConfigFileVolumeConfigFileToPath
{
std::string path;
std::string content;
};
std::string emptyDirVolumeSizeLimit;
std::string flexVolumeFsType;
std::string nFSVolumeServer;
std::vector<Volume::ConfigFileVolumeConfigFileToPath> configFileVolumeConfigFileToPaths;
bool nFSVolumeReadOnly;
std::string name;
std::string nFSVolumePath;
std::string type;
std::string flexVolumeDriver;
std::string diskVolumeDiskId;
std::string flexVolumeOptions;
std::string emptyDirVolumeMedium;
std::string diskVolumeFsType;
};
long discount;
std::string resourceGroupId;
float memory;
std::vector<ContainerGroup::Container> containers;
float cpu;
EciSecurityContext eciSecurityContext;
std::string tenantSecurityGroupId;
std::string failedTime;
std::string containerGroupName;
std::string intranetIp;
std::vector<ContainerGroup::Volume> volumes;
std::string ramRoleName;
DnsConfig dnsConfig;
std::string internetIp;
std::vector<ContainerGroup::Event> events;
std::string expiredTime;
float spotPriceLimit;
std::string instanceType;
std::vector<ContainerGroup::Tag> tags;
std::string ipv6Address;
std::string spotStrategy;
std::string status;
std::string tenantEniIp;
std::vector<ContainerGroup::InitContainer> initContainers;
std::string zoneId;
std::string succeededTime;
std::string securityGroupId;
std::string vSwitchId;
std::string restartPolicy;
std::string tenantEniInstanceId;
std::vector<ContainerGroup::HostAlias> hostAliases;
std::string tenantVSwitchId;
std::string vpcId;
std::string creationTime;
std::string eniInstanceId;
std::string containerGroupId;
std::string regionId;
long ephemeralStorage;
};
std::string owner;
std::vector<JobInfo::ContainerGroup> containerGroups;
long endTime;
long priority;
long startTime;
long lastModifyTime;
long submitTime;
std::string name;
ArrayProperties arrayProperties;
std::string state;
bool isArrayJob;
std::string id;
std::string queue;
};
DescribeServerlessJobsResult();
explicit DescribeServerlessJobsResult(const std::string &payload);
~DescribeServerlessJobsResult();
int getTotalCount()const;
std::vector<JobInfo> getJobInfos()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
std::vector<JobInfo> jobInfos_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBESERVERLESSJOBSRESULT_H_

View File

@@ -57,6 +57,7 @@ namespace AlibabaCloud
std::string hostNameSuffix;
int minNodesInQueue;
int maxNodesInQueue;
bool sortedByInventory;
std::vector<QueueInfo::DataDisksInfo> dataDisks;
bool enableAutoGrow;
std::string resourceGroupId;
@@ -81,6 +82,7 @@ namespace AlibabaCloud
~GetAutoScaleConfigResult();
int getExtraNodesGrowRatio()const;
bool getEnableAutoGrow()const;
bool getComputeEnableHt()const;
std::string getClusterId()const;
int getMaxNodesInCluster()const;
int getShrinkIdleTimes()const;
@@ -90,6 +92,7 @@ namespace AlibabaCloud
int getGrowIntervalInMinutes()const;
std::string getUid()const;
int getGrowTimeoutInMinutes()const;
std::string getDnsConfig()const;
std::string getImageId()const;
int getShrinkIntervalInMinutes()const;
float getSpotPriceLimit()const;
@@ -102,6 +105,7 @@ namespace AlibabaCloud
private:
int extraNodesGrowRatio_;
bool enableAutoGrow_;
bool computeEnableHt_;
std::string clusterId_;
int maxNodesInCluster_;
int shrinkIdleTimes_;
@@ -111,6 +115,7 @@ namespace AlibabaCloud
int growIntervalInMinutes_;
std::string uid_;
int growTimeoutInMinutes_;
std::string dnsConfig_;
std::string imageId_;
int shrinkIntervalInMinutes_;
float spotPriceLimit_;

View File

@@ -64,6 +64,7 @@ namespace AlibabaCloud
};
std::string imageOwnerAlias;
std::string description;
std::string resourceGroupId;
std::string nodePrefix;
std::string instanceChargeType;
float computeSpotPriceLimit;

View File

@@ -39,6 +39,7 @@ namespace AlibabaCloud
float spotPriceLimit;
std::string instanceType;
};
std::string deploymentSetId;
std::string hostNameSuffix;
std::string type;
std::vector<QueueInfo::Instance> spotInstanceTypes;

View File

@@ -0,0 +1,78 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EHPC_MODEL_LISTSERVERLESSJOBSREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTSERVERLESSJOBSREQUEST_H_
#include <alibabacloud/ehpc/EHPCExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace EHPC {
namespace Model {
class ALIBABACLOUD_EHPC_EXPORT ListServerlessJobsRequest : public RpcServiceRequest {
public:
ListServerlessJobsRequest();
~ListServerlessJobsRequest();
std::string getSubmitTimeStart() const;
void setSubmitTimeStart(const std::string &submitTimeStart);
long getPageNumber() const;
void setPageNumber(long pageNumber);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
long getPageSize() const;
void setPageSize(long pageSize);
std::string getState() const;
void setState(const std::string &state);
std::string getSubmitOrder() const;
void setSubmitOrder(const std::string &submitOrder);
std::string getClusterId() const;
void setClusterId(const std::string &clusterId);
std::vector<std::string> getJobNames() const;
void setJobNames(const std::vector<std::string> &jobNames);
std::vector<std::string> getUsers() const;
void setUsers(const std::vector<std::string> &users);
std::string getStartOrder() const;
void setStartOrder(const std::string &startOrder);
std::string getSubmitTimeEnd() const;
void setSubmitTimeEnd(const std::string &submitTimeEnd);
std::vector<std::string> getQueues() const;
void setQueues(const std::vector<std::string> &queues);
std::vector<std::string> getJobIds() const;
void setJobIds(const std::vector<std::string> &jobIds);
private:
std::string submitTimeStart_;
long pageNumber_;
std::string regionId_;
long pageSize_;
std::string state_;
std::string submitOrder_;
std::string clusterId_;
std::vector<std::string> jobNames_;
std::vector<std::string> users_;
std::string startOrder_;
std::string submitTimeEnd_;
std::vector<std::string> queues_;
std::vector<std::string> jobIds_;
};
} // namespace Model
} // namespace EHPC
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTSERVERLESSJOBSREQUEST_H_

View File

@@ -0,0 +1,70 @@
/*
* 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_LISTSERVERLESSJOBSRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_LISTSERVERLESSJOBSRESULT_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 ListServerlessJobsResult : public ServiceResult
{
public:
struct JobInfo
{
std::string owner;
std::string endTime;
std::string state;
std::string priority;
bool isArrayJob;
std::string startTime;
std::string id;
std::string submitTime;
std::string queue;
std::string name;
};
ListServerlessJobsResult();
explicit ListServerlessJobsResult(const std::string &payload);
~ListServerlessJobsResult();
int getTotalCount()const;
long getPageSize()const;
std::vector<JobInfo> getJobs()const;
long getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
long pageSize_;
std::vector<JobInfo> jobs_;
long pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_LISTSERVERLESSJOBSRESULT_H_

View File

@@ -28,6 +28,13 @@ namespace EHPC {
namespace Model {
class ALIBABACLOUD_EHPC_EXPORT ModifyClusterAttributesRequest : public RpcServiceRequest {
public:
struct WinAdPar {
std::string adUser;
std::string adUserPasswd;
std::string adIp;
std::string fallbackHomeDir;
std::string adDc;
};
ModifyClusterAttributesRequest();
~ModifyClusterAttributesRequest();
std::string getImageId() const;
@@ -46,6 +53,8 @@ public:
void setRamNodeTypes(const std::vector<std::string> &ramNodeTypes);
std::string getPassword() const;
void setPassword(const std::string &password);
WinAdPar getWinAdPar() const;
void setWinAdPar(const WinAdPar &winAdPar);
std::string getName() const;
void setName(const std::string &name);
@@ -58,6 +67,7 @@ private:
std::string imageOwnerAlias_;
std::vector<std::string> ramNodeTypes_;
std::string password_;
WinAdPar winAdPar_;
std::string name_;
};
} // namespace Model

View File

@@ -31,6 +31,7 @@ public:
struct Queues {
std::string queueName;
std::string systemDiskLevel;
bool sortedByInventory;
struct InstanceTypes {
std::string vSwitchId;
std::string spotStrategy;
@@ -69,6 +70,8 @@ public:
~SetAutoScaleConfigRequest();
std::string getImageId() const;
void setImageId(const std::string &imageId);
std::string getDnsConfig() const;
void setDnsConfig(const std::string &dnsConfig);
float getSpotPriceLimit() const;
void setSpotPriceLimit(float spotPriceLimit);
std::string getAccessKeyId() const;
@@ -91,6 +94,8 @@ public:
void setSpotStrategy(const std::string &spotStrategy);
int getMaxNodesInCluster() const;
void setMaxNodesInCluster(int maxNodesInCluster);
bool getComputeEnableHt() const;
void setComputeEnableHt(bool computeEnableHt);
int getShrinkIntervalInMinutes() const;
void setShrinkIntervalInMinutes(int shrinkIntervalInMinutes);
std::vector<Queues> getQueues() const;
@@ -102,6 +107,7 @@ public:
private:
std::string imageId_;
std::string dnsConfig_;
float spotPriceLimit_;
std::string accessKeyId_;
std::string excludeNodes_;
@@ -113,6 +119,7 @@ private:
bool enableAutoShrink_;
std::string spotStrategy_;
int maxNodesInCluster_;
bool computeEnableHt_;
int shrinkIntervalInMinutes_;
std::vector<Queues> queues_;
int growIntervalInMinutes_;

View File

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

View File

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

View File

@@ -0,0 +1,170 @@
/*
* 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_SUBMITSERVERLESSJOBREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_SUBMITSERVERLESSJOBREQUEST_H_
#include <alibabacloud/ehpc/EHPCExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace EHPC {
namespace Model {
class ALIBABACLOUD_EHPC_EXPORT SubmitServerlessJobRequest : public RpcServiceRequest {
public:
struct Container {
struct VolumeMountItem {
std::string flexVolumeOptions;
std::string nFSVolumeServer;
std::string mountPath;
bool readOnly;
std::string mountPropagation;
std::string subPath;
std::string nFSVolumePath;
std::string type;
bool nFSVolumeReadOnly;
std::string flexVolumeDriver;
};
VolumeMountItem volumeMountItem;
std::vector<VolumeMountItem> volumeMount;
std::string image;
struct PortItem {
std::string protocol;
int port;
};
PortItem portItem;
std::vector<PortItem> port;
struct EnvironmentVarItem {
std::string name;
std::string value;
};
EnvironmentVarItem environmentVarItem;
std::vector<EnvironmentVarItem> environmentVar;
std::string workingDir;
std::string string;
std::vector<std::string> arg;
std::string name;
int gpu;
std::string string;
std::vector<std::string> command;
};
struct DependsOn {
std::string jobId;
std::string type;
};
struct AcrRegistryInfo {
std::string instanceName;
std::string instanceId;
std::string regionId;
std::string string;
std::vector<std::string> domain;
};
struct Volume {
std::string flexVolumeOptions;
std::string nFSVolumeServer;
std::string nFSVolumePath;
bool nFSVolumeReadOnly;
std::string flexVolumeDriver;
};
struct RetryStrategy {
struct EvaluateOnExitItem {
std::string action;
std::string onExitCode;
};
EvaluateOnExitItem evaluateOnExitItem;
std::vector<EvaluateOnExitItem> evaluateOnExit;
int attempts;
};
struct ArrayProperties {
long indexStart;
long indexStep;
long indexEnd;
};
SubmitServerlessJobRequest();
~SubmitServerlessJobRequest();
Container getContainer() const;
void setContainer(const Container &container);
float getMemory() const;
void setMemory(float memory);
std::vector<DependsOn> getDependsOn() const;
void setDependsOn(const std::vector<DependsOn> &dependsOn);
float getSpotPriceLimit() const;
void setSpotPriceLimit(float spotPriceLimit);
std::string getJobQueue() const;
void setJobQueue(const std::string &jobQueue);
long getTimeout() const;
void setTimeout(long timeout);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getJobUser() const;
void setJobUser(const std::string &jobUser);
std::vector<std::string> getInstanceType() const;
void setInstanceType(const std::vector<std::string> &instanceType);
std::string getJobName() const;
void setJobName(const std::string &jobName);
long getJobPriority() const;
void setJobPriority(long jobPriority);
float getCpu() const;
void setCpu(float cpu);
std::string getRamRoleName() const;
void setRamRoleName(const std::string &ramRoleName);
std::vector<AcrRegistryInfo> getAcrRegistryInfo() const;
void setAcrRegistryInfo(const std::vector<AcrRegistryInfo> &acrRegistryInfo);
std::string getClusterId() const;
void setClusterId(const std::string &clusterId);
std::string getSpotStrategy() const;
void setSpotStrategy(const std::string &spotStrategy);
std::vector<std::string> getVSwitchId() const;
void setVSwitchId(const std::vector<std::string> &vSwitchId);
std::vector<Volume> getVolume() const;
void setVolume(const std::vector<Volume> &volume);
RetryStrategy getRetryStrategy() const;
void setRetryStrategy(const RetryStrategy &retryStrategy);
int getEphemeralStorage() const;
void setEphemeralStorage(int ephemeralStorage);
ArrayProperties getArrayProperties() const;
void setArrayProperties(const ArrayProperties &arrayProperties);
private:
Container container_;
float memory_;
std::vector<DependsOn> dependsOn_;
float spotPriceLimit_;
std::string jobQueue_;
long timeout_;
std::string accessKeyId_;
std::string jobUser_;
std::vector<std::string> instanceType_;
std::string jobName_;
long jobPriority_;
float cpu_;
std::string ramRoleName_;
std::vector<AcrRegistryInfo> acrRegistryInfo_;
std::string clusterId_;
std::string spotStrategy_;
std::vector<std::string> vSwitchId_;
std::vector<Volume> volume_;
RetryStrategy retryStrategy_;
int ephemeralStorage_;
ArrayProperties arrayProperties_;
};
} // namespace Model
} // namespace EHPC
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EHPC_MODEL_SUBMITSERVERLESSJOBREQUEST_H_

View File

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

View File

@@ -31,6 +31,7 @@ public:
struct AdditionalVolumes {
std::string volumeType;
std::string volumeProtocol;
std::string volumeMountOption;
std::string localDirectory;
std::string remoteDirectory;
struct Roles {

View File

@@ -30,6 +30,8 @@ class ALIBABACLOUD_EHPC_EXPORT UpdateQueueConfigRequest : public RpcServiceReque
public:
UpdateQueueConfigRequest();
~UpdateQueueConfigRequest();
std::string getDeploymentSetId() const;
void setDeploymentSetId(const std::string &deploymentSetId);
std::string getQueueName() const;
void setQueueName(const std::string &queueName);
std::string getClusterId() const;
@@ -42,6 +44,7 @@ public:
void setComputeInstanceType(const std::string &computeInstanceType);
private:
std::string deploymentSetId_;
std::string queueName_;
std::string clusterId_;
std::string accessKeyId_;