Create App Group Support Schedule Busy Workers.

This commit is contained in:
sdk-team
2022-04-06 06:15:37 +00:00
parent 417b73c84f
commit 08d76a4567
6 changed files with 40 additions and 13 deletions

View File

@@ -1,3 +1,6 @@
2022-04-06 Version: 1.36.1098
- Create App Group Support Schedule Busy Workers.
2022-04-06 Version: 1.36.1097
- Add ListTagResources api.
- Add TagResources api.

View File

@@ -1 +1 @@
1.36.1097
1.36.1098

View File

@@ -36,6 +36,8 @@ public:
void setNamespaceName(const std::string &namespaceName);
std::string getNamespaceSource() const;
void setNamespaceSource(const std::string &namespaceSource);
bool getScheduleBusyWorkers() const;
void setScheduleBusyWorkers(bool scheduleBusyWorkers);
std::string getMetricsThresholdJson() const;
void setMetricsThresholdJson(const std::string &metricsThresholdJson);
std::string getGroupId() const;
@@ -61,6 +63,7 @@ private:
int maxJobs_;
std::string namespaceName_;
std::string namespaceSource_;
bool scheduleBusyWorkers_;
std::string metricsThresholdJson_;
std::string groupId_;
std::string description_;

View File

@@ -30,20 +30,23 @@ class ALIBABACLOUD_SCHEDULERX2_EXPORT CreateNamespaceRequest : public RpcService
public:
CreateNamespaceRequest();
~CreateNamespaceRequest();
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getSource() const;
void setSource(const std::string &source);
std::string getUid() const;
void setUid(const std::string &uid);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getName() const;
void setName(const std::string &name);
std::string getDescription() const;
void setDescription(const std::string &description);
private:
std::string description_;
std::string source_;
std::string uid_;
std::string regionId_;
std::string name_;
std::string description_;
};
} // namespace Model
} // namespace Schedulerx2

View File

@@ -52,6 +52,15 @@ void CreateAppGroupRequest::setNamespaceSource(const std::string &namespaceSourc
setParameter(std::string("NamespaceSource"), namespaceSource);
}
bool CreateAppGroupRequest::getScheduleBusyWorkers() const {
return scheduleBusyWorkers_;
}
void CreateAppGroupRequest::setScheduleBusyWorkers(bool scheduleBusyWorkers) {
scheduleBusyWorkers_ = scheduleBusyWorkers;
setParameter(std::string("ScheduleBusyWorkers"), scheduleBusyWorkers ? "true" : "false");
}
std::string CreateAppGroupRequest::getMetricsThresholdJson() const {
return metricsThresholdJson_;
}

View File

@@ -25,6 +25,24 @@ CreateNamespaceRequest::CreateNamespaceRequest()
CreateNamespaceRequest::~CreateNamespaceRequest() {}
std::string CreateNamespaceRequest::getDescription() const {
return description_;
}
void CreateNamespaceRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string CreateNamespaceRequest::getSource() const {
return source_;
}
void CreateNamespaceRequest::setSource(const std::string &source) {
source_ = source;
setParameter(std::string("Source"), source);
}
std::string CreateNamespaceRequest::getUid() const {
return uid_;
}
@@ -52,12 +70,3 @@ void CreateNamespaceRequest::setName(const std::string &name) {
setParameter(std::string("Name"), name);
}
std::string CreateNamespaceRequest::getDescription() const {
return description_;
}
void CreateNamespaceRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}