Create Job Support XAttrs.
This commit is contained in:
@@ -52,6 +52,8 @@ public:
|
||||
void setMetricsThresholdJson(const std::string &metricsThresholdJson);
|
||||
std::string getGroupId() const;
|
||||
void setGroupId(const std::string &groupId);
|
||||
int getAppType() const;
|
||||
void setAppType(int appType);
|
||||
std::string getMonitorConfigJson() const;
|
||||
void setMonitorConfigJson(const std::string &monitorConfigJson);
|
||||
std::string get_Namespace() const;
|
||||
@@ -71,6 +73,7 @@ private:
|
||||
int maxJobs_;
|
||||
std::string metricsThresholdJson_;
|
||||
std::string groupId_;
|
||||
int appType_;
|
||||
std::string monitorConfigJson_;
|
||||
std::string _namespace_;
|
||||
std::string appKey_;
|
||||
|
||||
@@ -36,12 +36,44 @@ public:
|
||||
};
|
||||
CreateJobRequest();
|
||||
~CreateJobRequest();
|
||||
int getAttemptInterval() const;
|
||||
void setAttemptInterval(int attemptInterval);
|
||||
int getConsumerSize() const;
|
||||
void setConsumerSize(int consumerSize);
|
||||
std::string getJarUrl() const;
|
||||
void setJarUrl(const std::string &jarUrl);
|
||||
int getDataOffset() const;
|
||||
void setDataOffset(int dataOffset);
|
||||
std::string getGroupId() const;
|
||||
void setGroupId(const std::string &groupId);
|
||||
int getTaskMaxAttempt() const;
|
||||
void setTaskMaxAttempt(int taskMaxAttempt);
|
||||
int getDispatcherSize() const;
|
||||
void setDispatcherSize(int dispatcherSize);
|
||||
std::string getJobType() const;
|
||||
void setJobType(const std::string &jobType);
|
||||
int getTaskAttemptInterval() const;
|
||||
void setTaskAttemptInterval(int taskAttemptInterval);
|
||||
std::string getExecuteMode() const;
|
||||
void setExecuteMode(const std::string &executeMode);
|
||||
std::string getTimeExpression() const;
|
||||
void setTimeExpression(const std::string &timeExpression);
|
||||
bool getTimeoutEnable() const;
|
||||
void setTimeoutEnable(bool timeoutEnable);
|
||||
std::vector<ContactInfo> getContactInfo() const;
|
||||
void setContactInfo(const std::vector<ContactInfo> &contactInfo);
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
int getTimeType() const;
|
||||
void setTimeType(int timeType);
|
||||
std::string getParameters() const;
|
||||
void setParameters(const std::string ¶meters);
|
||||
int getStatus() const;
|
||||
void setStatus(int status);
|
||||
std::string getNamespaceSource() const;
|
||||
void setNamespaceSource(const std::string &namespaceSource);
|
||||
std::string getDescription() const;
|
||||
void setDescription(const std::string &description);
|
||||
int getAttemptInterval() const;
|
||||
void setAttemptInterval(int attemptInterval);
|
||||
std::string getContent() const;
|
||||
void setContent(const std::string &content);
|
||||
long getTimeout() const;
|
||||
@@ -52,91 +84,62 @@ public:
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
int getConsumerSize() const;
|
||||
void setConsumerSize(int consumerSize);
|
||||
std::string getJarUrl() const;
|
||||
void setJarUrl(const std::string &jarUrl);
|
||||
std::string getCalendar() const;
|
||||
void setCalendar(const std::string &calendar);
|
||||
bool getFailEnable() const;
|
||||
void setFailEnable(bool failEnable);
|
||||
std::string getSendChannel() const;
|
||||
void setSendChannel(const std::string &sendChannel);
|
||||
int getDataOffset() const;
|
||||
void setDataOffset(int dataOffset);
|
||||
std::string getGroupId() const;
|
||||
void setGroupId(const std::string &groupId);
|
||||
int getTaskMaxAttempt() const;
|
||||
void setTaskMaxAttempt(int taskMaxAttempt);
|
||||
int getMaxAttempt() const;
|
||||
void setMaxAttempt(int maxAttempt);
|
||||
bool getMissWorkerEnable() const;
|
||||
void setMissWorkerEnable(bool missWorkerEnable);
|
||||
int getDispatcherSize() const;
|
||||
void setDispatcherSize(int dispatcherSize);
|
||||
std::string getJobType() const;
|
||||
void setJobType(const std::string &jobType);
|
||||
int getTaskAttemptInterval() const;
|
||||
void setTaskAttemptInterval(int taskAttemptInterval);
|
||||
std::string getExecuteMode() const;
|
||||
void setExecuteMode(const std::string &executeMode);
|
||||
int getQueueSize() const;
|
||||
void setQueueSize(int queueSize);
|
||||
std::string getTimeExpression() const;
|
||||
void setTimeExpression(const std::string &timeExpression);
|
||||
std::string getClassName() const;
|
||||
void setClassName(const std::string &className);
|
||||
bool getTimeoutEnable() const;
|
||||
void setTimeoutEnable(bool timeoutEnable);
|
||||
std::vector<ContactInfo> getContactInfo() const;
|
||||
void setContactInfo(const std::vector<ContactInfo> &contactInfo);
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
std::string get_Namespace() const;
|
||||
void set_Namespace(const std::string &_namespace);
|
||||
std::string getXAttrs() const;
|
||||
void setXAttrs(const std::string &xAttrs);
|
||||
int getMaxConcurrency() const;
|
||||
void setMaxConcurrency(int maxConcurrency);
|
||||
int getTimeType() const;
|
||||
void setTimeType(int timeType);
|
||||
std::string getParameters() const;
|
||||
void setParameters(const std::string ¶meters);
|
||||
int getStatus() const;
|
||||
void setStatus(int status);
|
||||
|
||||
private:
|
||||
int attemptInterval_;
|
||||
int consumerSize_;
|
||||
std::string jarUrl_;
|
||||
int dataOffset_;
|
||||
std::string groupId_;
|
||||
int taskMaxAttempt_;
|
||||
int dispatcherSize_;
|
||||
std::string jobType_;
|
||||
int taskAttemptInterval_;
|
||||
std::string executeMode_;
|
||||
std::string timeExpression_;
|
||||
bool timeoutEnable_;
|
||||
std::vector<ContactInfo> contactInfo_;
|
||||
std::string name_;
|
||||
int timeType_;
|
||||
std::string parameters_;
|
||||
int status_;
|
||||
std::string namespaceSource_;
|
||||
std::string description_;
|
||||
int attemptInterval_;
|
||||
std::string content_;
|
||||
long timeout_;
|
||||
bool timeoutKillEnable_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
int consumerSize_;
|
||||
std::string jarUrl_;
|
||||
std::string calendar_;
|
||||
bool failEnable_;
|
||||
std::string sendChannel_;
|
||||
int dataOffset_;
|
||||
std::string groupId_;
|
||||
int taskMaxAttempt_;
|
||||
int maxAttempt_;
|
||||
bool missWorkerEnable_;
|
||||
int dispatcherSize_;
|
||||
std::string jobType_;
|
||||
int taskAttemptInterval_;
|
||||
std::string executeMode_;
|
||||
int queueSize_;
|
||||
std::string timeExpression_;
|
||||
std::string className_;
|
||||
bool timeoutEnable_;
|
||||
std::vector<ContactInfo> contactInfo_;
|
||||
std::string name_;
|
||||
std::string _namespace_;
|
||||
std::string xAttrs_;
|
||||
int maxConcurrency_;
|
||||
int timeType_;
|
||||
std::string parameters_;
|
||||
int status_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Schedulerx2
|
||||
|
||||
@@ -32,33 +32,33 @@ public:
|
||||
~DesignateWorkersRequest();
|
||||
std::string getNamespaceSource() const;
|
||||
void setNamespaceSource(const std::string &namespaceSource);
|
||||
std::string getGroupId() const;
|
||||
void setGroupId(const std::string &groupId);
|
||||
bool getTransferable() const;
|
||||
void setTransferable(bool transferable);
|
||||
std::string getLabels() const;
|
||||
void setLabels(const std::string &labels);
|
||||
int getDesignateType() const;
|
||||
void setDesignateType(int designateType);
|
||||
long getJobId() const;
|
||||
void setJobId(long jobId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string get_Namespace() const;
|
||||
void set_Namespace(const std::string &_namespace);
|
||||
std::string getWorkers() const;
|
||||
void setWorkers(const std::string &workers);
|
||||
std::string getGroupId() const;
|
||||
void setGroupId(const std::string &groupId);
|
||||
std::string getLabels() const;
|
||||
void setLabels(const std::string &labels);
|
||||
std::string get_Namespace() const;
|
||||
void set_Namespace(const std::string &_namespace);
|
||||
|
||||
private:
|
||||
std::string namespaceSource_;
|
||||
std::string groupId_;
|
||||
bool transferable_;
|
||||
std::string labels_;
|
||||
int designateType_;
|
||||
long jobId_;
|
||||
std::string regionId_;
|
||||
std::string _namespace_;
|
||||
std::string workers_;
|
||||
std::string groupId_;
|
||||
std::string labels_;
|
||||
std::string _namespace_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Schedulerx2
|
||||
|
||||
@@ -34,34 +34,34 @@ public:
|
||||
void setNamespaceSource(const std::string &namespaceSource);
|
||||
bool getCheckJobStatus() const;
|
||||
void setCheckJobStatus(bool checkJobStatus);
|
||||
std::string getGroupId() const;
|
||||
void setGroupId(const std::string &groupId);
|
||||
std::string getLabel() const;
|
||||
void setLabel(const std::string &label);
|
||||
int getDesignateType() const;
|
||||
void setDesignateType(int designateType);
|
||||
long getJobId() const;
|
||||
void setJobId(long jobId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string get_Namespace() const;
|
||||
void set_Namespace(const std::string &_namespace);
|
||||
std::string getWorker() const;
|
||||
void setWorker(const std::string &worker);
|
||||
std::string getInstanceParameters() const;
|
||||
void setInstanceParameters(const std::string &instanceParameters);
|
||||
std::string getGroupId() const;
|
||||
void setGroupId(const std::string &groupId);
|
||||
std::string getLabel() const;
|
||||
void setLabel(const std::string &label);
|
||||
std::string get_Namespace() const;
|
||||
void set_Namespace(const std::string &_namespace);
|
||||
|
||||
private:
|
||||
std::string namespaceSource_;
|
||||
bool checkJobStatus_;
|
||||
std::string groupId_;
|
||||
std::string label_;
|
||||
int designateType_;
|
||||
long jobId_;
|
||||
std::string regionId_;
|
||||
std::string _namespace_;
|
||||
std::string worker_;
|
||||
std::string instanceParameters_;
|
||||
std::string groupId_;
|
||||
std::string label_;
|
||||
std::string _namespace_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Schedulerx2
|
||||
|
||||
@@ -124,6 +124,15 @@ void CreateAppGroupRequest::setGroupId(const std::string &groupId) {
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
int CreateAppGroupRequest::getAppType() const {
|
||||
return appType_;
|
||||
}
|
||||
|
||||
void CreateAppGroupRequest::setAppType(int appType) {
|
||||
appType_ = appType;
|
||||
setParameter(std::string("AppType"), std::to_string(appType));
|
||||
}
|
||||
|
||||
std::string CreateAppGroupRequest::getMonitorConfigJson() const {
|
||||
return monitorConfigJson_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,166 @@ CreateJobRequest::CreateJobRequest()
|
||||
|
||||
CreateJobRequest::~CreateJobRequest() {}
|
||||
|
||||
int CreateJobRequest::getAttemptInterval() const {
|
||||
return attemptInterval_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setAttemptInterval(int attemptInterval) {
|
||||
attemptInterval_ = attemptInterval;
|
||||
setBodyParameter(std::string("AttemptInterval"), std::to_string(attemptInterval));
|
||||
}
|
||||
|
||||
int CreateJobRequest::getConsumerSize() const {
|
||||
return consumerSize_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setConsumerSize(int consumerSize) {
|
||||
consumerSize_ = consumerSize;
|
||||
setBodyParameter(std::string("ConsumerSize"), std::to_string(consumerSize));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getJarUrl() const {
|
||||
return jarUrl_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setJarUrl(const std::string &jarUrl) {
|
||||
jarUrl_ = jarUrl;
|
||||
setBodyParameter(std::string("JarUrl"), jarUrl);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getDataOffset() const {
|
||||
return dataOffset_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setDataOffset(int dataOffset) {
|
||||
dataOffset_ = dataOffset;
|
||||
setBodyParameter(std::string("DataOffset"), std::to_string(dataOffset));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setBodyParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getTaskMaxAttempt() const {
|
||||
return taskMaxAttempt_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setTaskMaxAttempt(int taskMaxAttempt) {
|
||||
taskMaxAttempt_ = taskMaxAttempt;
|
||||
setBodyParameter(std::string("TaskMaxAttempt"), std::to_string(taskMaxAttempt));
|
||||
}
|
||||
|
||||
int CreateJobRequest::getDispatcherSize() const {
|
||||
return dispatcherSize_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setDispatcherSize(int dispatcherSize) {
|
||||
dispatcherSize_ = dispatcherSize;
|
||||
setBodyParameter(std::string("DispatcherSize"), std::to_string(dispatcherSize));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getJobType() const {
|
||||
return jobType_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setJobType(const std::string &jobType) {
|
||||
jobType_ = jobType;
|
||||
setBodyParameter(std::string("JobType"), jobType);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getTaskAttemptInterval() const {
|
||||
return taskAttemptInterval_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setTaskAttemptInterval(int taskAttemptInterval) {
|
||||
taskAttemptInterval_ = taskAttemptInterval;
|
||||
setBodyParameter(std::string("TaskAttemptInterval"), std::to_string(taskAttemptInterval));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getExecuteMode() const {
|
||||
return executeMode_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setExecuteMode(const std::string &executeMode) {
|
||||
executeMode_ = executeMode;
|
||||
setBodyParameter(std::string("ExecuteMode"), executeMode);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getTimeExpression() const {
|
||||
return timeExpression_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setTimeExpression(const std::string &timeExpression) {
|
||||
timeExpression_ = timeExpression;
|
||||
setBodyParameter(std::string("TimeExpression"), timeExpression);
|
||||
}
|
||||
|
||||
bool CreateJobRequest::getTimeoutEnable() const {
|
||||
return timeoutEnable_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setTimeoutEnable(bool timeoutEnable) {
|
||||
timeoutEnable_ = timeoutEnable;
|
||||
setBodyParameter(std::string("TimeoutEnable"), timeoutEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<CreateJobRequest::ContactInfo> CreateJobRequest::getContactInfo() const {
|
||||
return contactInfo_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setContactInfo(const std::vector<CreateJobRequest::ContactInfo> &contactInfo) {
|
||||
contactInfo_ = contactInfo;
|
||||
for(int dep1 = 0; dep1 != contactInfo.size(); dep1++) {
|
||||
auto contactInfoObj = contactInfo.at(dep1);
|
||||
std::string contactInfoObjStr = std::string("ContactInfo") + "." + std::to_string(dep1 + 1);
|
||||
setBodyParameter(contactInfoObjStr + ".Ding", contactInfoObj.ding);
|
||||
setBodyParameter(contactInfoObjStr + ".UserPhone", contactInfoObj.userPhone);
|
||||
setBodyParameter(contactInfoObjStr + ".UserMail", contactInfoObj.userMail);
|
||||
setBodyParameter(contactInfoObjStr + ".UserName", contactInfoObj.userName);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getTimeType() const {
|
||||
return timeType_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setTimeType(int timeType) {
|
||||
timeType_ = timeType;
|
||||
setBodyParameter(std::string("TimeType"), std::to_string(timeType));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getParameters() const {
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setParameters(const std::string ¶meters) {
|
||||
parameters_ = parameters;
|
||||
setBodyParameter(std::string("Parameters"), parameters);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setStatus(int status) {
|
||||
status_ = status;
|
||||
setBodyParameter(std::string("Status"), std::to_string(status));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getNamespaceSource() const {
|
||||
return namespaceSource_;
|
||||
}
|
||||
@@ -43,15 +203,6 @@ void CreateJobRequest::setDescription(const std::string &description) {
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getAttemptInterval() const {
|
||||
return attemptInterval_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setAttemptInterval(int attemptInterval) {
|
||||
attemptInterval_ = attemptInterval;
|
||||
setBodyParameter(std::string("AttemptInterval"), std::to_string(attemptInterval));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getContent() const {
|
||||
return content_;
|
||||
}
|
||||
@@ -97,24 +248,6 @@ void CreateJobRequest::setPageSize(int pageSize) {
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int CreateJobRequest::getConsumerSize() const {
|
||||
return consumerSize_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setConsumerSize(int consumerSize) {
|
||||
consumerSize_ = consumerSize;
|
||||
setBodyParameter(std::string("ConsumerSize"), std::to_string(consumerSize));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getJarUrl() const {
|
||||
return jarUrl_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setJarUrl(const std::string &jarUrl) {
|
||||
jarUrl_ = jarUrl;
|
||||
setBodyParameter(std::string("JarUrl"), jarUrl);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getCalendar() const {
|
||||
return calendar_;
|
||||
}
|
||||
@@ -142,33 +275,6 @@ void CreateJobRequest::setSendChannel(const std::string &sendChannel) {
|
||||
setBodyParameter(std::string("SendChannel"), sendChannel);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getDataOffset() const {
|
||||
return dataOffset_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setDataOffset(int dataOffset) {
|
||||
dataOffset_ = dataOffset;
|
||||
setBodyParameter(std::string("DataOffset"), std::to_string(dataOffset));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setBodyParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getTaskMaxAttempt() const {
|
||||
return taskMaxAttempt_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setTaskMaxAttempt(int taskMaxAttempt) {
|
||||
taskMaxAttempt_ = taskMaxAttempt;
|
||||
setBodyParameter(std::string("TaskMaxAttempt"), std::to_string(taskMaxAttempt));
|
||||
}
|
||||
|
||||
int CreateJobRequest::getMaxAttempt() const {
|
||||
return maxAttempt_;
|
||||
}
|
||||
@@ -187,42 +293,6 @@ void CreateJobRequest::setMissWorkerEnable(bool missWorkerEnable) {
|
||||
setBodyParameter(std::string("MissWorkerEnable"), missWorkerEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
int CreateJobRequest::getDispatcherSize() const {
|
||||
return dispatcherSize_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setDispatcherSize(int dispatcherSize) {
|
||||
dispatcherSize_ = dispatcherSize;
|
||||
setBodyParameter(std::string("DispatcherSize"), std::to_string(dispatcherSize));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getJobType() const {
|
||||
return jobType_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setJobType(const std::string &jobType) {
|
||||
jobType_ = jobType;
|
||||
setBodyParameter(std::string("JobType"), jobType);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getTaskAttemptInterval() const {
|
||||
return taskAttemptInterval_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setTaskAttemptInterval(int taskAttemptInterval) {
|
||||
taskAttemptInterval_ = taskAttemptInterval;
|
||||
setBodyParameter(std::string("TaskAttemptInterval"), std::to_string(taskAttemptInterval));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getExecuteMode() const {
|
||||
return executeMode_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setExecuteMode(const std::string &executeMode) {
|
||||
executeMode_ = executeMode;
|
||||
setBodyParameter(std::string("ExecuteMode"), executeMode);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getQueueSize() const {
|
||||
return queueSize_;
|
||||
}
|
||||
@@ -232,15 +302,6 @@ void CreateJobRequest::setQueueSize(int queueSize) {
|
||||
setBodyParameter(std::string("QueueSize"), std::to_string(queueSize));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getTimeExpression() const {
|
||||
return timeExpression_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setTimeExpression(const std::string &timeExpression) {
|
||||
timeExpression_ = timeExpression;
|
||||
setBodyParameter(std::string("TimeExpression"), timeExpression);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getClassName() const {
|
||||
return className_;
|
||||
}
|
||||
@@ -250,40 +311,6 @@ void CreateJobRequest::setClassName(const std::string &className) {
|
||||
setBodyParameter(std::string("ClassName"), className);
|
||||
}
|
||||
|
||||
bool CreateJobRequest::getTimeoutEnable() const {
|
||||
return timeoutEnable_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setTimeoutEnable(bool timeoutEnable) {
|
||||
timeoutEnable_ = timeoutEnable;
|
||||
setBodyParameter(std::string("TimeoutEnable"), timeoutEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<CreateJobRequest::ContactInfo> CreateJobRequest::getContactInfo() const {
|
||||
return contactInfo_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setContactInfo(const std::vector<CreateJobRequest::ContactInfo> &contactInfo) {
|
||||
contactInfo_ = contactInfo;
|
||||
for(int dep1 = 0; dep1 != contactInfo.size(); dep1++) {
|
||||
auto contactInfoObj = contactInfo.at(dep1);
|
||||
std::string contactInfoObjStr = std::string("ContactInfo") + "." + std::to_string(dep1 + 1);
|
||||
setBodyParameter(contactInfoObjStr + ".Ding", contactInfoObj.ding);
|
||||
setBodyParameter(contactInfoObjStr + ".UserPhone", contactInfoObj.userPhone);
|
||||
setBodyParameter(contactInfoObjStr + ".UserMail", contactInfoObj.userMail);
|
||||
setBodyParameter(contactInfoObjStr + ".UserName", contactInfoObj.userName);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
@@ -293,6 +320,15 @@ void CreateJobRequest::set_Namespace(const std::string &_namespace) {
|
||||
setBodyParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getXAttrs() const {
|
||||
return xAttrs_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setXAttrs(const std::string &xAttrs) {
|
||||
xAttrs_ = xAttrs;
|
||||
setBodyParameter(std::string("XAttrs"), xAttrs);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getMaxConcurrency() const {
|
||||
return maxConcurrency_;
|
||||
}
|
||||
@@ -302,30 +338,3 @@ void CreateJobRequest::setMaxConcurrency(int maxConcurrency) {
|
||||
setBodyParameter(std::string("MaxConcurrency"), std::to_string(maxConcurrency));
|
||||
}
|
||||
|
||||
int CreateJobRequest::getTimeType() const {
|
||||
return timeType_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setTimeType(int timeType) {
|
||||
timeType_ = timeType;
|
||||
setBodyParameter(std::string("TimeType"), std::to_string(timeType));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getParameters() const {
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setParameters(const std::string ¶meters) {
|
||||
parameters_ = parameters;
|
||||
setBodyParameter(std::string("Parameters"), parameters);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setStatus(int status) {
|
||||
status_ = status;
|
||||
setBodyParameter(std::string("Status"), std::to_string(status));
|
||||
}
|
||||
|
||||
|
||||
@@ -34,15 +34,6 @@ void DesignateWorkersRequest::setNamespaceSource(const std::string &namespaceSou
|
||||
setParameter(std::string("NamespaceSource"), namespaceSource);
|
||||
}
|
||||
|
||||
std::string DesignateWorkersRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DesignateWorkersRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
bool DesignateWorkersRequest::getTransferable() const {
|
||||
return transferable_;
|
||||
}
|
||||
@@ -52,15 +43,6 @@ void DesignateWorkersRequest::setTransferable(bool transferable) {
|
||||
setParameter(std::string("Transferable"), transferable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DesignateWorkersRequest::getLabels() const {
|
||||
return labels_;
|
||||
}
|
||||
|
||||
void DesignateWorkersRequest::setLabels(const std::string &labels) {
|
||||
labels_ = labels;
|
||||
setParameter(std::string("Labels"), labels);
|
||||
}
|
||||
|
||||
int DesignateWorkersRequest::getDesignateType() const {
|
||||
return designateType_;
|
||||
}
|
||||
@@ -88,15 +70,6 @@ void DesignateWorkersRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DesignateWorkersRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DesignateWorkersRequest::set_Namespace(const std::string &_namespace) {
|
||||
_namespace_ = _namespace;
|
||||
setParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
std::string DesignateWorkersRequest::getWorkers() const {
|
||||
return workers_;
|
||||
}
|
||||
@@ -106,3 +79,30 @@ void DesignateWorkersRequest::setWorkers(const std::string &workers) {
|
||||
setParameter(std::string("Workers"), workers);
|
||||
}
|
||||
|
||||
std::string DesignateWorkersRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DesignateWorkersRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string DesignateWorkersRequest::getLabels() const {
|
||||
return labels_;
|
||||
}
|
||||
|
||||
void DesignateWorkersRequest::setLabels(const std::string &labels) {
|
||||
labels_ = labels;
|
||||
setParameter(std::string("Labels"), labels);
|
||||
}
|
||||
|
||||
std::string DesignateWorkersRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DesignateWorkersRequest::set_Namespace(const std::string &_namespace) {
|
||||
_namespace_ = _namespace;
|
||||
setParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,24 +43,6 @@ void ExecuteJobRequest::setCheckJobStatus(bool checkJobStatus) {
|
||||
setParameter(std::string("CheckJobStatus"), checkJobStatus ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ExecuteJobRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void ExecuteJobRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string ExecuteJobRequest::getLabel() const {
|
||||
return label_;
|
||||
}
|
||||
|
||||
void ExecuteJobRequest::setLabel(const std::string &label) {
|
||||
label_ = label;
|
||||
setParameter(std::string("Label"), label);
|
||||
}
|
||||
|
||||
int ExecuteJobRequest::getDesignateType() const {
|
||||
return designateType_;
|
||||
}
|
||||
@@ -88,15 +70,6 @@ void ExecuteJobRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ExecuteJobRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void ExecuteJobRequest::set_Namespace(const std::string &_namespace) {
|
||||
_namespace_ = _namespace;
|
||||
setParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
std::string ExecuteJobRequest::getWorker() const {
|
||||
return worker_;
|
||||
}
|
||||
@@ -115,3 +88,30 @@ void ExecuteJobRequest::setInstanceParameters(const std::string &instanceParamet
|
||||
setParameter(std::string("InstanceParameters"), instanceParameters);
|
||||
}
|
||||
|
||||
std::string ExecuteJobRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void ExecuteJobRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string ExecuteJobRequest::getLabel() const {
|
||||
return label_;
|
||||
}
|
||||
|
||||
void ExecuteJobRequest::setLabel(const std::string &label) {
|
||||
label_ = label;
|
||||
setParameter(std::string("Label"), label);
|
||||
}
|
||||
|
||||
std::string ExecuteJobRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void ExecuteJobRequest::set_Namespace(const std::string &_namespace) {
|
||||
_namespace_ = _namespace;
|
||||
setParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user