From 1e896e337ae7ead77ec177696f7ecb49e6f9a659 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 7 Jun 2023 07:49:44 +0000 Subject: [PATCH] Add Overview Query API. --- VERSION | 2 +- schedulerx2/CMakeLists.txt | 4 + .../schedulerx2/Schedulerx2Client.h | 8 ++ .../schedulerx2/model/CreateJobRequest.h | 3 + .../schedulerx2/model/GetJobInstanceRequest.h | 3 + .../schedulerx2/model/GetOverviewRequest.h | 63 ++++++++++++ .../schedulerx2/model/GetOverviewResult.h | 57 +++++++++++ .../schedulerx2/model/ListGroupsRequest.h | 3 + .../schedulerx2/model/ListNamespacesRequest.h | 6 ++ .../schedulerx2/model/UpdateJobRequest.h | 9 ++ schedulerx2/src/Schedulerx2Client.cc | 36 +++++++ schedulerx2/src/model/CreateJobRequest.cc | 9 ++ .../src/model/GetJobInstanceRequest.cc | 9 ++ schedulerx2/src/model/GetOverviewRequest.cc | 99 +++++++++++++++++++ schedulerx2/src/model/GetOverviewResult.cc | 72 ++++++++++++++ schedulerx2/src/model/ListGroupsRequest.cc | 11 ++- .../src/model/ListNamespacesRequest.cc | 20 +++- schedulerx2/src/model/UpdateJobRequest.cc | 27 +++++ 18 files changed, 438 insertions(+), 3 deletions(-) create mode 100644 schedulerx2/include/alibabacloud/schedulerx2/model/GetOverviewRequest.h create mode 100644 schedulerx2/include/alibabacloud/schedulerx2/model/GetOverviewResult.h create mode 100644 schedulerx2/src/model/GetOverviewRequest.cc create mode 100644 schedulerx2/src/model/GetOverviewResult.cc diff --git a/VERSION b/VERSION index 70aaadf4b..9e3021453 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1592 \ No newline at end of file +1.36.1593 \ No newline at end of file diff --git a/schedulerx2/CMakeLists.txt b/schedulerx2/CMakeLists.txt index ba3b7ac2e..cb4f512e9 100644 --- a/schedulerx2/CMakeLists.txt +++ b/schedulerx2/CMakeLists.txt @@ -73,6 +73,8 @@ set(schedulerx2_public_header_model include/alibabacloud/schedulerx2/model/GetJobInstanceListResult.h include/alibabacloud/schedulerx2/model/GetLogRequest.h include/alibabacloud/schedulerx2/model/GetLogResult.h + include/alibabacloud/schedulerx2/model/GetOverviewRequest.h + include/alibabacloud/schedulerx2/model/GetOverviewResult.h include/alibabacloud/schedulerx2/model/GetWorkFlowRequest.h include/alibabacloud/schedulerx2/model/GetWorkFlowResult.h include/alibabacloud/schedulerx2/model/GetWorkerListRequest.h @@ -164,6 +166,8 @@ set(schedulerx2_src src/model/GetJobInstanceListResult.cc src/model/GetLogRequest.cc src/model/GetLogResult.cc + src/model/GetOverviewRequest.cc + src/model/GetOverviewResult.cc src/model/GetWorkFlowRequest.cc src/model/GetWorkFlowResult.cc src/model/GetWorkerListRequest.cc diff --git a/schedulerx2/include/alibabacloud/schedulerx2/Schedulerx2Client.h b/schedulerx2/include/alibabacloud/schedulerx2/Schedulerx2Client.h index cf0cf640f..f66635cf4 100644 --- a/schedulerx2/include/alibabacloud/schedulerx2/Schedulerx2Client.h +++ b/schedulerx2/include/alibabacloud/schedulerx2/Schedulerx2Client.h @@ -74,6 +74,8 @@ #include "model/GetJobInstanceListResult.h" #include "model/GetLogRequest.h" #include "model/GetLogResult.h" +#include "model/GetOverviewRequest.h" +#include "model/GetOverviewResult.h" #include "model/GetWorkFlowRequest.h" #include "model/GetWorkFlowResult.h" #include "model/GetWorkerListRequest.h" @@ -197,6 +199,9 @@ namespace AlibabaCloud typedef Outcome GetLogOutcome; typedef std::future GetLogOutcomeCallable; typedef std::function&)> GetLogAsyncHandler; + typedef Outcome GetOverviewOutcome; + typedef std::future GetOverviewOutcomeCallable; + typedef std::function&)> GetOverviewAsyncHandler; typedef Outcome GetWorkFlowOutcome; typedef std::future GetWorkFlowOutcomeCallable; typedef std::function&)> GetWorkFlowAsyncHandler; @@ -334,6 +339,9 @@ namespace AlibabaCloud GetLogOutcome getLog(const Model::GetLogRequest &request)const; void getLogAsync(const Model::GetLogRequest& request, const GetLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetLogOutcomeCallable getLogCallable(const Model::GetLogRequest& request) const; + GetOverviewOutcome getOverview(const Model::GetOverviewRequest &request)const; + void getOverviewAsync(const Model::GetOverviewRequest& request, const GetOverviewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOverviewOutcomeCallable getOverviewCallable(const Model::GetOverviewRequest& request) const; GetWorkFlowOutcome getWorkFlow(const Model::GetWorkFlowRequest &request)const; void getWorkFlowAsync(const Model::GetWorkFlowRequest& request, const GetWorkFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetWorkFlowOutcomeCallable getWorkFlowCallable(const Model::GetWorkFlowRequest& request) const; diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/CreateJobRequest.h b/schedulerx2/include/alibabacloud/schedulerx2/model/CreateJobRequest.h index 575a9a695..cff1f5cc5 100644 --- a/schedulerx2/include/alibabacloud/schedulerx2/model/CreateJobRequest.h +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/CreateJobRequest.h @@ -74,6 +74,8 @@ public: void setStatus(int status); std::string getNamespaceSource() const; void setNamespaceSource(const std::string &namespaceSource); + std::string getTimezone() const; + void setTimezone(const std::string &timezone); std::string getDescription() const; void setDescription(const std::string &description); std::string getContent() const; @@ -129,6 +131,7 @@ private: std::string parameters_; int status_; std::string namespaceSource_; + std::string timezone_; std::string description_; std::string content_; long timeout_; diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/GetJobInstanceRequest.h b/schedulerx2/include/alibabacloud/schedulerx2/model/GetJobInstanceRequest.h index 6e4a396a6..3cde1492e 100644 --- a/schedulerx2/include/alibabacloud/schedulerx2/model/GetJobInstanceRequest.h +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/GetJobInstanceRequest.h @@ -36,6 +36,8 @@ public: void setGroupId(const std::string &groupId); 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); long getJobInstanceId() const; @@ -45,6 +47,7 @@ private: std::string namespaceSource_; std::string groupId_; long jobId_; + std::string regionId_; std::string _namespace_; long jobInstanceId_; }; diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/GetOverviewRequest.h b/schedulerx2/include/alibabacloud/schedulerx2/model/GetOverviewRequest.h new file mode 100644 index 000000000..8e0362689 --- /dev/null +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/GetOverviewRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_GETOVERVIEWREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX2_MODEL_GETOVERVIEWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Schedulerx2 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX2_EXPORT GetOverviewRequest : public RpcServiceRequest { +public: + GetOverviewRequest(); + ~GetOverviewRequest(); + int getMetricType() const; + void setMetricType(int metricType); + std::string getNamespaceSource() const; + void setNamespaceSource(const std::string &namespaceSource); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + long getEndTime() const; + void setEndTime(long endTime); + long getStartTime() const; + void setStartTime(long startTime); + std::string getOperate() const; + void setOperate(const std::string &operate); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + int metricType_; + std::string namespaceSource_; + std::string groupId_; + long endTime_; + long startTime_; + std::string operate_; + std::string regionId_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Schedulerx2 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_GETOVERVIEWREQUEST_H_ diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/GetOverviewResult.h b/schedulerx2/include/alibabacloud/schedulerx2/model/GetOverviewResult.h new file mode 100644 index 000000000..584129248 --- /dev/null +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/GetOverviewResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_GETOVERVIEWRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX2_MODEL_GETOVERVIEWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Schedulerx2 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX2_EXPORT GetOverviewResult : public ServiceResult + { + public: + + + GetOverviewResult(); + explicit GetOverviewResult(const std::string &payload); + ~GetOverviewResult(); + std::string getMessage()const; + std::string getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_GETOVERVIEWRESULT_H_ \ No newline at end of file diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/ListGroupsRequest.h b/schedulerx2/include/alibabacloud/schedulerx2/model/ListGroupsRequest.h index b438b8600..828314c20 100644 --- a/schedulerx2/include/alibabacloud/schedulerx2/model/ListGroupsRequest.h +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/ListGroupsRequest.h @@ -32,6 +32,8 @@ public: ~ListGroupsRequest(); std::string getNamespaceSource() const; void setNamespaceSource(const std::string &namespaceSource); + std::string getAppGroupName() const; + void setAppGroupName(const std::string &appGroupName); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string get_Namespace() const; @@ -39,6 +41,7 @@ public: private: std::string namespaceSource_; + std::string appGroupName_; std::string regionId_; std::string _namespace_; }; diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/ListNamespacesRequest.h b/schedulerx2/include/alibabacloud/schedulerx2/model/ListNamespacesRequest.h index f096d3fd5..61233963d 100644 --- a/schedulerx2/include/alibabacloud/schedulerx2/model/ListNamespacesRequest.h +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/ListNamespacesRequest.h @@ -30,11 +30,17 @@ class ALIBABACLOUD_SCHEDULERX2_EXPORT ListNamespacesRequest : public RpcServiceR public: ListNamespacesRequest(); ~ListNamespacesRequest(); + std::string getNamespaceName() const; + void setNamespaceName(const std::string &namespaceName); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); private: + std::string namespaceName_; std::string regionId_; + std::string _namespace_; }; } // namespace Model } // namespace Schedulerx2 diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateJobRequest.h b/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateJobRequest.h index 3c8580671..094f328ca 100644 --- a/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateJobRequest.h +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateJobRequest.h @@ -70,8 +70,12 @@ public: void setTimeType(int timeType); std::string getParameters() const; void setParameters(const std::string ¶meters); + std::string get_Template() const; + void set_Template(const std::string &_template); std::string getNamespaceSource() const; void setNamespaceSource(const std::string &namespaceSource); + std::string getTimezone() const; + void setTimezone(const std::string &timezone); std::string getDescription() const; void setDescription(const std::string &description); std::string getContent() const; @@ -104,6 +108,8 @@ public: void setClassName(const std::string &className); 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); @@ -125,7 +131,9 @@ private: std::string name_; int timeType_; std::string parameters_; + std::string _template_; std::string namespaceSource_; + std::string timezone_; std::string description_; std::string content_; long timeout_; @@ -142,6 +150,7 @@ private: int queueSize_; std::string className_; std::string _namespace_; + std::string xAttrs_; int maxConcurrency_; }; } // namespace Model diff --git a/schedulerx2/src/Schedulerx2Client.cc b/schedulerx2/src/Schedulerx2Client.cc index 628d1707d..869bc38d6 100644 --- a/schedulerx2/src/Schedulerx2Client.cc +++ b/schedulerx2/src/Schedulerx2Client.cc @@ -987,6 +987,42 @@ Schedulerx2Client::GetLogOutcomeCallable Schedulerx2Client::getLogCallable(const return task->get_future(); } +Schedulerx2Client::GetOverviewOutcome Schedulerx2Client::getOverview(const GetOverviewRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOverviewOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOverviewOutcome(GetOverviewResult(outcome.result())); + else + return GetOverviewOutcome(outcome.error()); +} + +void Schedulerx2Client::getOverviewAsync(const GetOverviewRequest& request, const GetOverviewAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOverview(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Schedulerx2Client::GetOverviewOutcomeCallable Schedulerx2Client::getOverviewCallable(const GetOverviewRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOverview(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Schedulerx2Client::GetWorkFlowOutcome Schedulerx2Client::getWorkFlow(const GetWorkFlowRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/schedulerx2/src/model/CreateJobRequest.cc b/schedulerx2/src/model/CreateJobRequest.cc index c6ea8ea41..f954f8c1e 100644 --- a/schedulerx2/src/model/CreateJobRequest.cc +++ b/schedulerx2/src/model/CreateJobRequest.cc @@ -203,6 +203,15 @@ void CreateJobRequest::setNamespaceSource(const std::string &namespaceSource) { setBodyParameter(std::string("NamespaceSource"), namespaceSource); } +std::string CreateJobRequest::getTimezone() const { + return timezone_; +} + +void CreateJobRequest::setTimezone(const std::string &timezone) { + timezone_ = timezone; + setBodyParameter(std::string("Timezone"), timezone); +} + std::string CreateJobRequest::getDescription() const { return description_; } diff --git a/schedulerx2/src/model/GetJobInstanceRequest.cc b/schedulerx2/src/model/GetJobInstanceRequest.cc index 810f89e05..9b53b68f4 100644 --- a/schedulerx2/src/model/GetJobInstanceRequest.cc +++ b/schedulerx2/src/model/GetJobInstanceRequest.cc @@ -52,6 +52,15 @@ void GetJobInstanceRequest::setJobId(long jobId) { setParameter(std::string("JobId"), std::to_string(jobId)); } +std::string GetJobInstanceRequest::getRegionId() const { + return regionId_; +} + +void GetJobInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + std::string GetJobInstanceRequest::get_Namespace() const { return _namespace_; } diff --git a/schedulerx2/src/model/GetOverviewRequest.cc b/schedulerx2/src/model/GetOverviewRequest.cc new file mode 100644 index 000000000..06c0073ec --- /dev/null +++ b/schedulerx2/src/model/GetOverviewRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Schedulerx2::Model::GetOverviewRequest; + +GetOverviewRequest::GetOverviewRequest() + : RpcServiceRequest("schedulerx2", "2019-04-30", "GetOverview") { + setMethod(HttpRequest::Method::Post); +} + +GetOverviewRequest::~GetOverviewRequest() {} + +int GetOverviewRequest::getMetricType() const { + return metricType_; +} + +void GetOverviewRequest::setMetricType(int metricType) { + metricType_ = metricType; + setParameter(std::string("MetricType"), std::to_string(metricType)); +} + +std::string GetOverviewRequest::getNamespaceSource() const { + return namespaceSource_; +} + +void GetOverviewRequest::setNamespaceSource(const std::string &namespaceSource) { + namespaceSource_ = namespaceSource; + setParameter(std::string("NamespaceSource"), namespaceSource); +} + +std::string GetOverviewRequest::getGroupId() const { + return groupId_; +} + +void GetOverviewRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +long GetOverviewRequest::getEndTime() const { + return endTime_; +} + +void GetOverviewRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +long GetOverviewRequest::getStartTime() const { + return startTime_; +} + +void GetOverviewRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +std::string GetOverviewRequest::getOperate() const { + return operate_; +} + +void GetOverviewRequest::setOperate(const std::string &operate) { + operate_ = operate; + setParameter(std::string("Operate"), operate); +} + +std::string GetOverviewRequest::getRegionId() const { + return regionId_; +} + +void GetOverviewRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetOverviewRequest::get_Namespace() const { + return _namespace_; +} + +void GetOverviewRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/schedulerx2/src/model/GetOverviewResult.cc b/schedulerx2/src/model/GetOverviewResult.cc new file mode 100644 index 000000000..50cfdff8c --- /dev/null +++ b/schedulerx2/src/model/GetOverviewResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Schedulerx2; +using namespace AlibabaCloud::Schedulerx2::Model; + +GetOverviewResult::GetOverviewResult() : + ServiceResult() +{} + +GetOverviewResult::GetOverviewResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOverviewResult::~GetOverviewResult() +{} + +void GetOverviewResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string GetOverviewResult::getMessage()const +{ + return message_; +} + +std::string GetOverviewResult::getData()const +{ + return data_; +} + +int GetOverviewResult::getCode()const +{ + return code_; +} + +bool GetOverviewResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx2/src/model/ListGroupsRequest.cc b/schedulerx2/src/model/ListGroupsRequest.cc index 5ae71108f..c2a3a04e0 100644 --- a/schedulerx2/src/model/ListGroupsRequest.cc +++ b/schedulerx2/src/model/ListGroupsRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Schedulerx2::Model::ListGroupsRequest; ListGroupsRequest::ListGroupsRequest() : RpcServiceRequest("schedulerx2", "2019-04-30", "ListGroups") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } ListGroupsRequest::~ListGroupsRequest() {} @@ -34,6 +34,15 @@ void ListGroupsRequest::setNamespaceSource(const std::string &namespaceSource) { setParameter(std::string("NamespaceSource"), namespaceSource); } +std::string ListGroupsRequest::getAppGroupName() const { + return appGroupName_; +} + +void ListGroupsRequest::setAppGroupName(const std::string &appGroupName) { + appGroupName_ = appGroupName; + setParameter(std::string("AppGroupName"), appGroupName); +} + std::string ListGroupsRequest::getRegionId() const { return regionId_; } diff --git a/schedulerx2/src/model/ListNamespacesRequest.cc b/schedulerx2/src/model/ListNamespacesRequest.cc index 62f20ee66..bd74153c5 100644 --- a/schedulerx2/src/model/ListNamespacesRequest.cc +++ b/schedulerx2/src/model/ListNamespacesRequest.cc @@ -20,11 +20,20 @@ using AlibabaCloud::Schedulerx2::Model::ListNamespacesRequest; ListNamespacesRequest::ListNamespacesRequest() : RpcServiceRequest("schedulerx2", "2019-04-30", "ListNamespaces") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } ListNamespacesRequest::~ListNamespacesRequest() {} +std::string ListNamespacesRequest::getNamespaceName() const { + return namespaceName_; +} + +void ListNamespacesRequest::setNamespaceName(const std::string &namespaceName) { + namespaceName_ = namespaceName; + setParameter(std::string("NamespaceName"), namespaceName); +} + std::string ListNamespacesRequest::getRegionId() const { return regionId_; } @@ -34,3 +43,12 @@ void ListNamespacesRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::string ListNamespacesRequest::get_Namespace() const { + return _namespace_; +} + +void ListNamespacesRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/schedulerx2/src/model/UpdateJobRequest.cc b/schedulerx2/src/model/UpdateJobRequest.cc index 199813d7e..827c4f475 100644 --- a/schedulerx2/src/model/UpdateJobRequest.cc +++ b/schedulerx2/src/model/UpdateJobRequest.cc @@ -185,6 +185,15 @@ void UpdateJobRequest::setParameters(const std::string ¶meters) { setBodyParameter(std::string("Parameters"), parameters); } +std::string UpdateJobRequest::get_Template() const { + return _template_; +} + +void UpdateJobRequest::set_Template(const std::string &_template) { + _template_ = _template; + setBodyParameter(std::string("Template"), _template); +} + std::string UpdateJobRequest::getNamespaceSource() const { return namespaceSource_; } @@ -194,6 +203,15 @@ void UpdateJobRequest::setNamespaceSource(const std::string &namespaceSource) { setBodyParameter(std::string("NamespaceSource"), namespaceSource); } +std::string UpdateJobRequest::getTimezone() const { + return timezone_; +} + +void UpdateJobRequest::setTimezone(const std::string &timezone) { + timezone_ = timezone; + setBodyParameter(std::string("Timezone"), timezone); +} + std::string UpdateJobRequest::getDescription() const { return description_; } @@ -338,6 +356,15 @@ void UpdateJobRequest::set_Namespace(const std::string &_namespace) { setBodyParameter(std::string("Namespace"), _namespace); } +std::string UpdateJobRequest::getXAttrs() const { + return xAttrs_; +} + +void UpdateJobRequest::setXAttrs(const std::string &xAttrs) { + xAttrs_ = xAttrs; + setBodyParameter(std::string("XAttrs"), xAttrs); +} + int UpdateJobRequest::getMaxConcurrency() const { return maxConcurrency_; }