diff --git a/VERSION b/VERSION index 4a3e8a1d1..1bc8d4fc0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2065 \ No newline at end of file +1.36.2066 \ No newline at end of file diff --git a/schedulerx2/CMakeLists.txt b/schedulerx2/CMakeLists.txt index cb4f512e9..7cbdb8efd 100644 --- a/schedulerx2/CMakeLists.txt +++ b/schedulerx2/CMakeLists.txt @@ -43,6 +43,8 @@ set(schedulerx2_public_header_model include/alibabacloud/schedulerx2/model/DeleteAppGroupResult.h include/alibabacloud/schedulerx2/model/DeleteJobRequest.h include/alibabacloud/schedulerx2/model/DeleteJobResult.h + include/alibabacloud/schedulerx2/model/DeleteNamespaceRequest.h + include/alibabacloud/schedulerx2/model/DeleteNamespaceResult.h include/alibabacloud/schedulerx2/model/DeleteRouteStrategyRequest.h include/alibabacloud/schedulerx2/model/DeleteRouteStrategyResult.h include/alibabacloud/schedulerx2/model/DeleteWorkflowRequest.h @@ -85,12 +87,16 @@ set(schedulerx2_public_header_model include/alibabacloud/schedulerx2/model/GrantPermissionResult.h include/alibabacloud/schedulerx2/model/ListGroupsRequest.h include/alibabacloud/schedulerx2/model/ListGroupsResult.h + include/alibabacloud/schedulerx2/model/ListJobScriptHistoryRequest.h + include/alibabacloud/schedulerx2/model/ListJobScriptHistoryResult.h include/alibabacloud/schedulerx2/model/ListJobsRequest.h include/alibabacloud/schedulerx2/model/ListJobsResult.h include/alibabacloud/schedulerx2/model/ListNamespacesRequest.h include/alibabacloud/schedulerx2/model/ListNamespacesResult.h include/alibabacloud/schedulerx2/model/ListWorkflowInstanceRequest.h include/alibabacloud/schedulerx2/model/ListWorkflowInstanceResult.h + include/alibabacloud/schedulerx2/model/ReadSchedulerxDesignateDetailRequest.h + include/alibabacloud/schedulerx2/model/ReadSchedulerxDesignateDetailResult.h include/alibabacloud/schedulerx2/model/RerunJobRequest.h include/alibabacloud/schedulerx2/model/RerunJobResult.h include/alibabacloud/schedulerx2/model/RetryJobInstanceRequest.h @@ -107,6 +113,10 @@ set(schedulerx2_public_header_model include/alibabacloud/schedulerx2/model/UpdateAppGroupResult.h include/alibabacloud/schedulerx2/model/UpdateJobRequest.h include/alibabacloud/schedulerx2/model/UpdateJobResult.h + include/alibabacloud/schedulerx2/model/UpdateJobScriptRequest.h + include/alibabacloud/schedulerx2/model/UpdateJobScriptResult.h + include/alibabacloud/schedulerx2/model/UpdateNamespaceRequest.h + include/alibabacloud/schedulerx2/model/UpdateNamespaceResult.h include/alibabacloud/schedulerx2/model/UpdateWorkflowRequest.h include/alibabacloud/schedulerx2/model/UpdateWorkflowResult.h include/alibabacloud/schedulerx2/model/UpdateWorkflowDagRequest.h @@ -136,6 +146,8 @@ set(schedulerx2_src src/model/DeleteAppGroupResult.cc src/model/DeleteJobRequest.cc src/model/DeleteJobResult.cc + src/model/DeleteNamespaceRequest.cc + src/model/DeleteNamespaceResult.cc src/model/DeleteRouteStrategyRequest.cc src/model/DeleteRouteStrategyResult.cc src/model/DeleteWorkflowRequest.cc @@ -178,12 +190,16 @@ set(schedulerx2_src src/model/GrantPermissionResult.cc src/model/ListGroupsRequest.cc src/model/ListGroupsResult.cc + src/model/ListJobScriptHistoryRequest.cc + src/model/ListJobScriptHistoryResult.cc src/model/ListJobsRequest.cc src/model/ListJobsResult.cc src/model/ListNamespacesRequest.cc src/model/ListNamespacesResult.cc src/model/ListWorkflowInstanceRequest.cc src/model/ListWorkflowInstanceResult.cc + src/model/ReadSchedulerxDesignateDetailRequest.cc + src/model/ReadSchedulerxDesignateDetailResult.cc src/model/RerunJobRequest.cc src/model/RerunJobResult.cc src/model/RetryJobInstanceRequest.cc @@ -200,6 +216,10 @@ set(schedulerx2_src src/model/UpdateAppGroupResult.cc src/model/UpdateJobRequest.cc src/model/UpdateJobResult.cc + src/model/UpdateJobScriptRequest.cc + src/model/UpdateJobScriptResult.cc + src/model/UpdateNamespaceRequest.cc + src/model/UpdateNamespaceResult.cc src/model/UpdateWorkflowRequest.cc src/model/UpdateWorkflowResult.cc src/model/UpdateWorkflowDagRequest.cc diff --git a/schedulerx2/include/alibabacloud/schedulerx2/Schedulerx2Client.h b/schedulerx2/include/alibabacloud/schedulerx2/Schedulerx2Client.h index f66635cf4..b2d9ea497 100644 --- a/schedulerx2/include/alibabacloud/schedulerx2/Schedulerx2Client.h +++ b/schedulerx2/include/alibabacloud/schedulerx2/Schedulerx2Client.h @@ -44,6 +44,8 @@ #include "model/DeleteAppGroupResult.h" #include "model/DeleteJobRequest.h" #include "model/DeleteJobResult.h" +#include "model/DeleteNamespaceRequest.h" +#include "model/DeleteNamespaceResult.h" #include "model/DeleteRouteStrategyRequest.h" #include "model/DeleteRouteStrategyResult.h" #include "model/DeleteWorkflowRequest.h" @@ -86,12 +88,16 @@ #include "model/GrantPermissionResult.h" #include "model/ListGroupsRequest.h" #include "model/ListGroupsResult.h" +#include "model/ListJobScriptHistoryRequest.h" +#include "model/ListJobScriptHistoryResult.h" #include "model/ListJobsRequest.h" #include "model/ListJobsResult.h" #include "model/ListNamespacesRequest.h" #include "model/ListNamespacesResult.h" #include "model/ListWorkflowInstanceRequest.h" #include "model/ListWorkflowInstanceResult.h" +#include "model/ReadSchedulerxDesignateDetailRequest.h" +#include "model/ReadSchedulerxDesignateDetailResult.h" #include "model/RerunJobRequest.h" #include "model/RerunJobResult.h" #include "model/RetryJobInstanceRequest.h" @@ -108,6 +114,10 @@ #include "model/UpdateAppGroupResult.h" #include "model/UpdateJobRequest.h" #include "model/UpdateJobResult.h" +#include "model/UpdateJobScriptRequest.h" +#include "model/UpdateJobScriptResult.h" +#include "model/UpdateNamespaceRequest.h" +#include "model/UpdateNamespaceResult.h" #include "model/UpdateWorkflowRequest.h" #include "model/UpdateWorkflowResult.h" #include "model/UpdateWorkflowDagRequest.h" @@ -154,6 +164,9 @@ namespace AlibabaCloud typedef Outcome DeleteJobOutcome; typedef std::future DeleteJobOutcomeCallable; typedef std::function&)> DeleteJobAsyncHandler; + typedef Outcome DeleteNamespaceOutcome; + typedef std::future DeleteNamespaceOutcomeCallable; + typedef std::function&)> DeleteNamespaceAsyncHandler; typedef Outcome DeleteRouteStrategyOutcome; typedef std::future DeleteRouteStrategyOutcomeCallable; typedef std::function&)> DeleteRouteStrategyAsyncHandler; @@ -217,6 +230,9 @@ namespace AlibabaCloud typedef Outcome ListGroupsOutcome; typedef std::future ListGroupsOutcomeCallable; typedef std::function&)> ListGroupsAsyncHandler; + typedef Outcome ListJobScriptHistoryOutcome; + typedef std::future ListJobScriptHistoryOutcomeCallable; + typedef std::function&)> ListJobScriptHistoryAsyncHandler; typedef Outcome ListJobsOutcome; typedef std::future ListJobsOutcomeCallable; typedef std::function&)> ListJobsAsyncHandler; @@ -226,6 +242,9 @@ namespace AlibabaCloud typedef Outcome ListWorkflowInstanceOutcome; typedef std::future ListWorkflowInstanceOutcomeCallable; typedef std::function&)> ListWorkflowInstanceAsyncHandler; + typedef Outcome ReadSchedulerxDesignateDetailOutcome; + typedef std::future ReadSchedulerxDesignateDetailOutcomeCallable; + typedef std::function&)> ReadSchedulerxDesignateDetailAsyncHandler; typedef Outcome RerunJobOutcome; typedef std::future RerunJobOutcomeCallable; typedef std::function&)> RerunJobAsyncHandler; @@ -250,6 +269,12 @@ namespace AlibabaCloud typedef Outcome UpdateJobOutcome; typedef std::future UpdateJobOutcomeCallable; typedef std::function&)> UpdateJobAsyncHandler; + typedef Outcome UpdateJobScriptOutcome; + typedef std::future UpdateJobScriptOutcomeCallable; + typedef std::function&)> UpdateJobScriptAsyncHandler; + typedef Outcome UpdateNamespaceOutcome; + typedef std::future UpdateNamespaceOutcomeCallable; + typedef std::function&)> UpdateNamespaceAsyncHandler; typedef Outcome UpdateWorkflowOutcome; typedef std::future UpdateWorkflowOutcomeCallable; typedef std::function&)> UpdateWorkflowAsyncHandler; @@ -294,6 +319,9 @@ namespace AlibabaCloud DeleteJobOutcome deleteJob(const Model::DeleteJobRequest &request)const; void deleteJobAsync(const Model::DeleteJobRequest& request, const DeleteJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteJobOutcomeCallable deleteJobCallable(const Model::DeleteJobRequest& request) const; + DeleteNamespaceOutcome deleteNamespace(const Model::DeleteNamespaceRequest &request)const; + void deleteNamespaceAsync(const Model::DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNamespaceOutcomeCallable deleteNamespaceCallable(const Model::DeleteNamespaceRequest& request) const; DeleteRouteStrategyOutcome deleteRouteStrategy(const Model::DeleteRouteStrategyRequest &request)const; void deleteRouteStrategyAsync(const Model::DeleteRouteStrategyRequest& request, const DeleteRouteStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteRouteStrategyOutcomeCallable deleteRouteStrategyCallable(const Model::DeleteRouteStrategyRequest& request) const; @@ -357,6 +385,9 @@ namespace AlibabaCloud ListGroupsOutcome listGroups(const Model::ListGroupsRequest &request)const; void listGroupsAsync(const Model::ListGroupsRequest& request, const ListGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListGroupsOutcomeCallable listGroupsCallable(const Model::ListGroupsRequest& request) const; + ListJobScriptHistoryOutcome listJobScriptHistory(const Model::ListJobScriptHistoryRequest &request)const; + void listJobScriptHistoryAsync(const Model::ListJobScriptHistoryRequest& request, const ListJobScriptHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobScriptHistoryOutcomeCallable listJobScriptHistoryCallable(const Model::ListJobScriptHistoryRequest& request) const; ListJobsOutcome listJobs(const Model::ListJobsRequest &request)const; void listJobsAsync(const Model::ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListJobsOutcomeCallable listJobsCallable(const Model::ListJobsRequest& request) const; @@ -366,6 +397,9 @@ namespace AlibabaCloud ListWorkflowInstanceOutcome listWorkflowInstance(const Model::ListWorkflowInstanceRequest &request)const; void listWorkflowInstanceAsync(const Model::ListWorkflowInstanceRequest& request, const ListWorkflowInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListWorkflowInstanceOutcomeCallable listWorkflowInstanceCallable(const Model::ListWorkflowInstanceRequest& request) const; + ReadSchedulerxDesignateDetailOutcome readSchedulerxDesignateDetail(const Model::ReadSchedulerxDesignateDetailRequest &request)const; + void readSchedulerxDesignateDetailAsync(const Model::ReadSchedulerxDesignateDetailRequest& request, const ReadSchedulerxDesignateDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReadSchedulerxDesignateDetailOutcomeCallable readSchedulerxDesignateDetailCallable(const Model::ReadSchedulerxDesignateDetailRequest& request) const; RerunJobOutcome rerunJob(const Model::RerunJobRequest &request)const; void rerunJobAsync(const Model::RerunJobRequest& request, const RerunJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RerunJobOutcomeCallable rerunJobCallable(const Model::RerunJobRequest& request) const; @@ -390,6 +424,12 @@ namespace AlibabaCloud UpdateJobOutcome updateJob(const Model::UpdateJobRequest &request)const; void updateJobAsync(const Model::UpdateJobRequest& request, const UpdateJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateJobOutcomeCallable updateJobCallable(const Model::UpdateJobRequest& request) const; + UpdateJobScriptOutcome updateJobScript(const Model::UpdateJobScriptRequest &request)const; + void updateJobScriptAsync(const Model::UpdateJobScriptRequest& request, const UpdateJobScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateJobScriptOutcomeCallable updateJobScriptCallable(const Model::UpdateJobScriptRequest& request) const; + UpdateNamespaceOutcome updateNamespace(const Model::UpdateNamespaceRequest &request)const; + void updateNamespaceAsync(const Model::UpdateNamespaceRequest& request, const UpdateNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateNamespaceOutcomeCallable updateNamespaceCallable(const Model::UpdateNamespaceRequest& request) const; UpdateWorkflowOutcome updateWorkflow(const Model::UpdateWorkflowRequest &request)const; void updateWorkflowAsync(const Model::UpdateWorkflowRequest& request, const UpdateWorkflowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateWorkflowOutcomeCallable updateWorkflowCallable(const Model::UpdateWorkflowRequest& request) const; diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/CreateJobRequest.h b/schedulerx2/include/alibabacloud/schedulerx2/model/CreateJobRequest.h index cff1f5cc5..87300e7b2 100644 --- a/schedulerx2/include/alibabacloud/schedulerx2/model/CreateJobRequest.h +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/CreateJobRequest.h @@ -52,6 +52,8 @@ public: void setTaskMaxAttempt(int taskMaxAttempt); int getDispatcherSize() const; void setDispatcherSize(int dispatcherSize); + int getPriority() const; + void setPriority(int priority); std::string getJobType() const; void setJobType(const std::string &jobType); int getTaskAttemptInterval() const; @@ -120,6 +122,7 @@ private: int dataOffset_; int taskMaxAttempt_; int dispatcherSize_; + int priority_; std::string jobType_; int taskAttemptInterval_; std::string executeMode_; diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/DeleteNamespaceRequest.h b/schedulerx2/include/alibabacloud/schedulerx2/model/DeleteNamespaceRequest.h new file mode 100644 index 000000000..a88925c1a --- /dev/null +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/DeleteNamespaceRequest.h @@ -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_SCHEDULERX2_MODEL_DELETENAMESPACEREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX2_MODEL_DELETENAMESPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Schedulerx2 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX2_EXPORT DeleteNamespaceRequest : public RpcServiceRequest { +public: + DeleteNamespaceRequest(); + ~DeleteNamespaceRequest(); + std::string getNamespaceSource() const; + void setNamespaceSource(const std::string &namespaceSource); + 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 namespaceSource_; + std::string regionId_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Schedulerx2 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_DELETENAMESPACEREQUEST_H_ diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/DeleteNamespaceResult.h b/schedulerx2/include/alibabacloud/schedulerx2/model/DeleteNamespaceResult.h new file mode 100644 index 000000000..ba92a9adc --- /dev/null +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/DeleteNamespaceResult.h @@ -0,0 +1,55 @@ +/* + * 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_DELETENAMESPACERESULT_H_ +#define ALIBABACLOUD_SCHEDULERX2_MODEL_DELETENAMESPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Schedulerx2 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX2_EXPORT DeleteNamespaceResult : public ServiceResult + { + public: + + + DeleteNamespaceResult(); + explicit DeleteNamespaceResult(const std::string &payload); + ~DeleteNamespaceResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_DELETENAMESPACERESULT_H_ \ No newline at end of file diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/GetAppGroupResult.h b/schedulerx2/include/alibabacloud/schedulerx2/model/GetAppGroupResult.h index d0632a175..2f9025cc2 100644 --- a/schedulerx2/include/alibabacloud/schedulerx2/model/GetAppGroupResult.h +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/GetAppGroupResult.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string description; int curJobs; int maxConcurrency; + std::string _namespace; + std::string monitorContactsJson; std::string appName; std::string groupId; std::string appVersion; diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/GetWorkFlowResult.h b/schedulerx2/include/alibabacloud/schedulerx2/model/GetWorkFlowResult.h index 5bf03c2a9..95bdaf13a 100644 --- a/schedulerx2/include/alibabacloud/schedulerx2/model/GetWorkFlowResult.h +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/GetWorkFlowResult.h @@ -38,10 +38,13 @@ namespace AlibabaCloud { std::string status; std::string description; + std::string maxConcurrency; std::string timeExpression; + std::string _namespace; long workflowId; std::string name; std::string timeType; + std::string groupId; }; struct WorkFlowNodeInfo { diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/GrantPermissionRequest.h b/schedulerx2/include/alibabacloud/schedulerx2/model/GrantPermissionRequest.h index d1c67c4ce..0e8d08aa2 100644 --- a/schedulerx2/include/alibabacloud/schedulerx2/model/GrantPermissionRequest.h +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/GrantPermissionRequest.h @@ -32,14 +32,14 @@ public: ~GrantPermissionRequest(); std::string getNamespaceSource() const; void setNamespaceSource(const std::string &namespaceSource); - std::string getGroupId() const; - void setGroupId(const std::string &groupId); std::string getUserId() const; void setUserId(const std::string &userId); bool getGrantOption() const; void setGrantOption(bool grantOption); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); std::string get_Namespace() const; void set_Namespace(const std::string &_namespace); std::string getUserName() const; @@ -47,10 +47,10 @@ public: private: std::string namespaceSource_; - std::string groupId_; std::string userId_; bool grantOption_; std::string regionId_; + std::string groupId_; std::string _namespace_; std::string userName_; }; diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/ListGroupsResult.h b/schedulerx2/include/alibabacloud/schedulerx2/model/ListGroupsResult.h index 6e0e0ccb9..41379b41b 100644 --- a/schedulerx2/include/alibabacloud/schedulerx2/model/ListGroupsResult.h +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/ListGroupsResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string description; long appGroupId; std::string appKey; + std::string _namespace; std::string xattrs; std::string appName; std::string groupId; diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/ListJobScriptHistoryRequest.h b/schedulerx2/include/alibabacloud/schedulerx2/model/ListJobScriptHistoryRequest.h new file mode 100644 index 000000000..95a3dbbbe --- /dev/null +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/ListJobScriptHistoryRequest.h @@ -0,0 +1,54 @@ +/* + * 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_LISTJOBSCRIPTHISTORYREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX2_MODEL_LISTJOBSCRIPTHISTORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Schedulerx2 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX2_EXPORT ListJobScriptHistoryRequest : public RpcServiceRequest { +public: + ListJobScriptHistoryRequest(); + ~ListJobScriptHistoryRequest(); + std::string getNamespaceSource() const; + void setNamespaceSource(const std::string &namespaceSource); + std::string getGroupId() const; + 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); + +private: + std::string namespaceSource_; + std::string groupId_; + long jobId_; + std::string regionId_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Schedulerx2 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_LISTJOBSCRIPTHISTORYREQUEST_H_ diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/ListJobScriptHistoryResult.h b/schedulerx2/include/alibabacloud/schedulerx2/model/ListJobScriptHistoryResult.h new file mode 100644 index 000000000..c59c04e09 --- /dev/null +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/ListJobScriptHistoryResult.h @@ -0,0 +1,68 @@ +/* + * 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_LISTJOBSCRIPTHISTORYRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX2_MODEL_LISTJOBSCRIPTHISTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Schedulerx2 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX2_EXPORT ListJobScriptHistoryResult : public ServiceResult + { + public: + struct Data + { + struct JobScriptHistoryInfo + { + std::string scriptContent; + std::string createTime; + std::string versionesDescription; + std::string creator; + }; + std::vector jobScriptHistoryInfos; + }; + + + ListJobScriptHistoryResult(); + explicit ListJobScriptHistoryResult(const std::string &payload); + ~ListJobScriptHistoryResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_LISTJOBSCRIPTHISTORYRESULT_H_ \ No newline at end of file diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/ReadSchedulerxDesignateDetailRequest.h b/schedulerx2/include/alibabacloud/schedulerx2/model/ReadSchedulerxDesignateDetailRequest.h new file mode 100644 index 000000000..b6e354060 --- /dev/null +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/ReadSchedulerxDesignateDetailRequest.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_READSCHEDULERXDESIGNATEDETAILREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX2_MODEL_READSCHEDULERXDESIGNATEDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Schedulerx2 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX2_EXPORT ReadSchedulerxDesignateDetailRequest : public RpcServiceRequest { +public: + ReadSchedulerxDesignateDetailRequest(); + ~ReadSchedulerxDesignateDetailRequest(); + std::string getNamespaceSource() const; + void setNamespaceSource(const std::string &namespaceSource); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + 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); + +private: + std::string namespaceSource_; + std::string groupId_; + int designateType_; + long jobId_; + std::string regionId_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Schedulerx2 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_READSCHEDULERXDESIGNATEDETAILREQUEST_H_ diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/ReadSchedulerxDesignateDetailResult.h b/schedulerx2/include/alibabacloud/schedulerx2/model/ReadSchedulerxDesignateDetailResult.h new file mode 100644 index 000000000..5532d6109 --- /dev/null +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/ReadSchedulerxDesignateDetailResult.h @@ -0,0 +1,100 @@ +/* + * 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_READSCHEDULERXDESIGNATEDETAILRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX2_MODEL_READSCHEDULERXDESIGNATEDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Schedulerx2 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX2_EXPORT ReadSchedulerxDesignateDetailResult : public ServiceResult + { + public: + struct Data + { + struct DesignateDetailVo + { + struct Metrics + { + int sharePoolAvailableSize; + double heap1Usage; + double diskUsage; + int cpuProcessors; + double heap1Used; + double cpuLoad1; + double cpuLoad5; + long execCount; + int sharePoolQueueSize; + int heapMax; + int diskUsed; + int diskMax; + double heap5Usage; + }; + bool checked; + Metrics metrics; + std::string version; + int size; + std::string busy; + bool offline; + std::string starter; + std::string key; + }; + std::vector designateDetailVos; + }; + struct AccessDeniedDetail + { + std::string policyType; + std::string authPrincipalOwnerId; + std::string encodedDiagnosticMessage; + std::string authPrincipalType; + std::string authPrincipalDisplayName; + std::string noPermissionType; + std::string authAction; + }; + + + ReadSchedulerxDesignateDetailResult(); + explicit ReadSchedulerxDesignateDetailResult(const std::string &payload); + ~ReadSchedulerxDesignateDetailResult(); + AccessDeniedDetail getAccessDeniedDetail()const; + std::string getMessage()const; + Data getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + AccessDeniedDetail accessDeniedDetail_; + std::string message_; + Data data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_READSCHEDULERXDESIGNATEDETAILRESULT_H_ \ No newline at end of file diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateAppGroupRequest.h b/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateAppGroupRequest.h index 81932ca71..ae359a6ec 100644 --- a/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateAppGroupRequest.h +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateAppGroupRequest.h @@ -36,6 +36,8 @@ public: void setRegionId(const std::string ®ionId); std::string getAlarmJson() const; void setAlarmJson(const std::string &alarmJson); + std::string getMonitorContactsJson() const; + void setMonitorContactsJson(const std::string &monitorContactsJson); long getAppGroupId() const; void setAppGroupId(long appGroupId); int getMaxJobs() const; @@ -46,6 +48,8 @@ public: void setGroupId(const std::string &groupId); int getAppVersion() const; void setAppVersion(int appVersion); + std::string getMonitorConfigJson() const; + void setMonitorConfigJson(const std::string &monitorConfigJson); std::string get_Namespace() const; void set_Namespace(const std::string &_namespace); std::string getXattrs() const; @@ -57,11 +61,13 @@ private: std::string description_; std::string regionId_; std::string alarmJson_; + std::string monitorContactsJson_; long appGroupId_; int maxJobs_; std::string metricsThresholdJson_; std::string groupId_; int appVersion_; + std::string monitorConfigJson_; std::string _namespace_; std::string xattrs_; int maxConcurrency_; diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateJobRequest.h b/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateJobRequest.h index 094f328ca..2d1f32f11 100644 --- a/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateJobRequest.h +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateJobRequest.h @@ -54,6 +54,8 @@ public: void setDataOffset(int dataOffset); int getDispatcherSize() const; void setDispatcherSize(int dispatcherSize); + int getPriority() const; + void setPriority(int priority); int getTaskAttemptInterval() const; void setTaskAttemptInterval(int taskAttemptInterval); std::string getExecuteMode() const; @@ -123,6 +125,7 @@ private: int taskMaxAttempt_; int dataOffset_; int dispatcherSize_; + int priority_; int taskAttemptInterval_; std::string executeMode_; std::string timeExpression_; diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateJobScriptRequest.h b/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateJobScriptRequest.h new file mode 100644 index 000000000..87265658c --- /dev/null +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateJobScriptRequest.h @@ -0,0 +1,60 @@ +/* + * 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_UPDATEJOBSCRIPTREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX2_MODEL_UPDATEJOBSCRIPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Schedulerx2 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX2_EXPORT UpdateJobScriptRequest : public RpcServiceRequest { +public: + UpdateJobScriptRequest(); + ~UpdateJobScriptRequest(); + std::string getNamespaceSource() const; + void setNamespaceSource(const std::string &namespaceSource); + long getJobId() const; + void setJobId(long jobId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getScriptContent() const; + void setScriptContent(const std::string &scriptContent); + std::string getVersionDescription() const; + void setVersionDescription(const std::string &versionDescription); + +private: + std::string namespaceSource_; + long jobId_; + std::string regionId_; + std::string groupId_; + std::string _namespace_; + std::string scriptContent_; + std::string versionDescription_; +}; +} // namespace Model +} // namespace Schedulerx2 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_UPDATEJOBSCRIPTREQUEST_H_ diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateJobScriptResult.h b/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateJobScriptResult.h new file mode 100644 index 000000000..ac9d37c35 --- /dev/null +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateJobScriptResult.h @@ -0,0 +1,55 @@ +/* + * 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_UPDATEJOBSCRIPTRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX2_MODEL_UPDATEJOBSCRIPTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Schedulerx2 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX2_EXPORT UpdateJobScriptResult : public ServiceResult + { + public: + + + UpdateJobScriptResult(); + explicit UpdateJobScriptResult(const std::string &payload); + ~UpdateJobScriptResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_UPDATEJOBSCRIPTRESULT_H_ \ No newline at end of file diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateNamespaceRequest.h b/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateNamespaceRequest.h new file mode 100644 index 000000000..723302ffa --- /dev/null +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateNamespaceRequest.h @@ -0,0 +1,54 @@ +/* + * 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_UPDATENAMESPACEREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX2_MODEL_UPDATENAMESPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Schedulerx2 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX2_EXPORT UpdateNamespaceRequest : public RpcServiceRequest { +public: + UpdateNamespaceRequest(); + ~UpdateNamespaceRequest(); + std::string getNamespaceName() const; + void setNamespaceName(const std::string &namespaceName); + std::string getNamespaceSource() const; + void setNamespaceSource(const std::string &namespaceSource); + std::string getDescription() const; + void setDescription(const std::string &description); + 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 namespaceSource_; + std::string description_; + std::string regionId_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Schedulerx2 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_UPDATENAMESPACEREQUEST_H_ diff --git a/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateNamespaceResult.h b/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateNamespaceResult.h new file mode 100644 index 000000000..acb9ca954 --- /dev/null +++ b/schedulerx2/include/alibabacloud/schedulerx2/model/UpdateNamespaceResult.h @@ -0,0 +1,55 @@ +/* + * 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_UPDATENAMESPACERESULT_H_ +#define ALIBABACLOUD_SCHEDULERX2_MODEL_UPDATENAMESPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Schedulerx2 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX2_EXPORT UpdateNamespaceResult : public ServiceResult + { + public: + + + UpdateNamespaceResult(); + explicit UpdateNamespaceResult(const std::string &payload); + ~UpdateNamespaceResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_UPDATENAMESPACERESULT_H_ \ No newline at end of file diff --git a/schedulerx2/src/Schedulerx2Client.cc b/schedulerx2/src/Schedulerx2Client.cc index b3d8fbb53..332478a3a 100644 --- a/schedulerx2/src/Schedulerx2Client.cc +++ b/schedulerx2/src/Schedulerx2Client.cc @@ -447,6 +447,42 @@ Schedulerx2Client::DeleteJobOutcomeCallable Schedulerx2Client::deleteJobCallable return task->get_future(); } +Schedulerx2Client::DeleteNamespaceOutcome Schedulerx2Client::deleteNamespace(const DeleteNamespaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNamespaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNamespaceOutcome(DeleteNamespaceResult(outcome.result())); + else + return DeleteNamespaceOutcome(outcome.error()); +} + +void Schedulerx2Client::deleteNamespaceAsync(const DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNamespace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Schedulerx2Client::DeleteNamespaceOutcomeCallable Schedulerx2Client::deleteNamespaceCallable(const DeleteNamespaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNamespace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Schedulerx2Client::DeleteRouteStrategyOutcome Schedulerx2Client::deleteRouteStrategy(const DeleteRouteStrategyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,6 +1239,42 @@ Schedulerx2Client::ListGroupsOutcomeCallable Schedulerx2Client::listGroupsCallab return task->get_future(); } +Schedulerx2Client::ListJobScriptHistoryOutcome Schedulerx2Client::listJobScriptHistory(const ListJobScriptHistoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListJobScriptHistoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListJobScriptHistoryOutcome(ListJobScriptHistoryResult(outcome.result())); + else + return ListJobScriptHistoryOutcome(outcome.error()); +} + +void Schedulerx2Client::listJobScriptHistoryAsync(const ListJobScriptHistoryRequest& request, const ListJobScriptHistoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listJobScriptHistory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Schedulerx2Client::ListJobScriptHistoryOutcomeCallable Schedulerx2Client::listJobScriptHistoryCallable(const ListJobScriptHistoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listJobScriptHistory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Schedulerx2Client::ListJobsOutcome Schedulerx2Client::listJobs(const ListJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1311,6 +1383,42 @@ Schedulerx2Client::ListWorkflowInstanceOutcomeCallable Schedulerx2Client::listWo return task->get_future(); } +Schedulerx2Client::ReadSchedulerxDesignateDetailOutcome Schedulerx2Client::readSchedulerxDesignateDetail(const ReadSchedulerxDesignateDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReadSchedulerxDesignateDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReadSchedulerxDesignateDetailOutcome(ReadSchedulerxDesignateDetailResult(outcome.result())); + else + return ReadSchedulerxDesignateDetailOutcome(outcome.error()); +} + +void Schedulerx2Client::readSchedulerxDesignateDetailAsync(const ReadSchedulerxDesignateDetailRequest& request, const ReadSchedulerxDesignateDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, readSchedulerxDesignateDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Schedulerx2Client::ReadSchedulerxDesignateDetailOutcomeCallable Schedulerx2Client::readSchedulerxDesignateDetailCallable(const ReadSchedulerxDesignateDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->readSchedulerxDesignateDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Schedulerx2Client::RerunJobOutcome Schedulerx2Client::rerunJob(const RerunJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1599,6 +1707,78 @@ Schedulerx2Client::UpdateJobOutcomeCallable Schedulerx2Client::updateJobCallable return task->get_future(); } +Schedulerx2Client::UpdateJobScriptOutcome Schedulerx2Client::updateJobScript(const UpdateJobScriptRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateJobScriptOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateJobScriptOutcome(UpdateJobScriptResult(outcome.result())); + else + return UpdateJobScriptOutcome(outcome.error()); +} + +void Schedulerx2Client::updateJobScriptAsync(const UpdateJobScriptRequest& request, const UpdateJobScriptAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateJobScript(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Schedulerx2Client::UpdateJobScriptOutcomeCallable Schedulerx2Client::updateJobScriptCallable(const UpdateJobScriptRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateJobScript(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Schedulerx2Client::UpdateNamespaceOutcome Schedulerx2Client::updateNamespace(const UpdateNamespaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateNamespaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateNamespaceOutcome(UpdateNamespaceResult(outcome.result())); + else + return UpdateNamespaceOutcome(outcome.error()); +} + +void Schedulerx2Client::updateNamespaceAsync(const UpdateNamespaceRequest& request, const UpdateNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateNamespace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Schedulerx2Client::UpdateNamespaceOutcomeCallable Schedulerx2Client::updateNamespaceCallable(const UpdateNamespaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateNamespace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Schedulerx2Client::UpdateWorkflowOutcome Schedulerx2Client::updateWorkflow(const UpdateWorkflowRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/schedulerx2/src/model/CreateJobRequest.cc b/schedulerx2/src/model/CreateJobRequest.cc index f954f8c1e..40951e042 100644 --- a/schedulerx2/src/model/CreateJobRequest.cc +++ b/schedulerx2/src/model/CreateJobRequest.cc @@ -97,6 +97,15 @@ void CreateJobRequest::setDispatcherSize(int dispatcherSize) { setBodyParameter(std::string("DispatcherSize"), std::to_string(dispatcherSize)); } +int CreateJobRequest::getPriority() const { + return priority_; +} + +void CreateJobRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); +} + std::string CreateJobRequest::getJobType() const { return jobType_; } diff --git a/schedulerx2/src/model/DeleteNamespaceRequest.cc b/schedulerx2/src/model/DeleteNamespaceRequest.cc new file mode 100644 index 000000000..43a1e76dd --- /dev/null +++ b/schedulerx2/src/model/DeleteNamespaceRequest.cc @@ -0,0 +1,54 @@ +/* + * 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::DeleteNamespaceRequest; + +DeleteNamespaceRequest::DeleteNamespaceRequest() + : RpcServiceRequest("schedulerx2", "2019-04-30", "DeleteNamespace") { + setMethod(HttpRequest::Method::Post); +} + +DeleteNamespaceRequest::~DeleteNamespaceRequest() {} + +std::string DeleteNamespaceRequest::getNamespaceSource() const { + return namespaceSource_; +} + +void DeleteNamespaceRequest::setNamespaceSource(const std::string &namespaceSource) { + namespaceSource_ = namespaceSource; + setParameter(std::string("NamespaceSource"), namespaceSource); +} + +std::string DeleteNamespaceRequest::getRegionId() const { + return regionId_; +} + +void DeleteNamespaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteNamespaceRequest::get_Namespace() const { + return _namespace_; +} + +void DeleteNamespaceRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/schedulerx2/src/model/DeleteNamespaceResult.cc b/schedulerx2/src/model/DeleteNamespaceResult.cc new file mode 100644 index 000000000..f20469c8a --- /dev/null +++ b/schedulerx2/src/model/DeleteNamespaceResult.cc @@ -0,0 +1,65 @@ +/* + * 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; + +DeleteNamespaceResult::DeleteNamespaceResult() : + ServiceResult() +{} + +DeleteNamespaceResult::DeleteNamespaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNamespaceResult::~DeleteNamespaceResult() +{} + +void DeleteNamespaceResult::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["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteNamespaceResult::getMessage()const +{ + return message_; +} + +int DeleteNamespaceResult::getCode()const +{ + return code_; +} + +bool DeleteNamespaceResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx2/src/model/GetAppGroupResult.cc b/schedulerx2/src/model/GetAppGroupResult.cc index a9e9a0d6c..a735bb14b 100644 --- a/schedulerx2/src/model/GetAppGroupResult.cc +++ b/schedulerx2/src/model/GetAppGroupResult.cc @@ -70,6 +70,10 @@ void GetAppGroupResult::parse(const std::string &payload) data_.xattrs = dataNode["Xattrs"].asString(); if(!dataNode["AppVersion"].isNull()) data_.appVersion = dataNode["AppVersion"].asString(); + if(!dataNode["Namespace"].isNull()) + data_._namespace = dataNode["Namespace"].asString(); + if(!dataNode["MonitorContactsJson"].isNull()) + data_.monitorContactsJson = dataNode["MonitorContactsJson"].asString(); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) diff --git a/schedulerx2/src/model/GetWorkFlowResult.cc b/schedulerx2/src/model/GetWorkFlowResult.cc index 3a56ddd1e..ccc993672 100644 --- a/schedulerx2/src/model/GetWorkFlowResult.cc +++ b/schedulerx2/src/model/GetWorkFlowResult.cc @@ -53,6 +53,12 @@ void GetWorkFlowResult::parse(const std::string &payload) data_.workFlowInfo.timeType = workFlowInfoNode["TimeType"].asString(); if(!workFlowInfoNode["TimeExpression"].isNull()) data_.workFlowInfo.timeExpression = workFlowInfoNode["TimeExpression"].asString(); + if(!workFlowInfoNode["GroupId"].isNull()) + data_.workFlowInfo.groupId = workFlowInfoNode["GroupId"].asString(); + if(!workFlowInfoNode["Namespace"].isNull()) + data_.workFlowInfo._namespace = workFlowInfoNode["Namespace"].asString(); + if(!workFlowInfoNode["MaxConcurrency"].isNull()) + data_.workFlowInfo.maxConcurrency = workFlowInfoNode["MaxConcurrency"].asString(); auto workFlowNodeInfoNode = dataNode["WorkFlowNodeInfo"]; auto allNodesNode = workFlowNodeInfoNode["Nodes"]["Node"]; for (auto workFlowNodeInfoNodeNodesNode : allNodesNode) diff --git a/schedulerx2/src/model/GrantPermissionRequest.cc b/schedulerx2/src/model/GrantPermissionRequest.cc index 6ba8503eb..62f52e506 100644 --- a/schedulerx2/src/model/GrantPermissionRequest.cc +++ b/schedulerx2/src/model/GrantPermissionRequest.cc @@ -34,15 +34,6 @@ void GrantPermissionRequest::setNamespaceSource(const std::string &namespaceSour setParameter(std::string("NamespaceSource"), namespaceSource); } -std::string GrantPermissionRequest::getGroupId() const { - return groupId_; -} - -void GrantPermissionRequest::setGroupId(const std::string &groupId) { - groupId_ = groupId; - setParameter(std::string("GroupId"), groupId); -} - std::string GrantPermissionRequest::getUserId() const { return userId_; } @@ -70,6 +61,15 @@ void GrantPermissionRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::string GrantPermissionRequest::getGroupId() const { + return groupId_; +} + +void GrantPermissionRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + std::string GrantPermissionRequest::get_Namespace() const { return _namespace_; } diff --git a/schedulerx2/src/model/ListGroupsResult.cc b/schedulerx2/src/model/ListGroupsResult.cc index 237dcae0a..4b67ef4f7 100644 --- a/schedulerx2/src/model/ListGroupsResult.cc +++ b/schedulerx2/src/model/ListGroupsResult.cc @@ -58,6 +58,8 @@ void ListGroupsResult::parse(const std::string &payload) appGroupObject.xattrs = dataNodeAppGroupsAppGroup["Xattrs"].asString(); if(!dataNodeAppGroupsAppGroup["AppVersion"].isNull()) appGroupObject.appVersion = std::stoi(dataNodeAppGroupsAppGroup["AppVersion"].asString()); + if(!dataNodeAppGroupsAppGroup["Namespace"].isNull()) + appGroupObject._namespace = dataNodeAppGroupsAppGroup["Namespace"].asString(); data_.appGroups.push_back(appGroupObject); } if(!value["Code"].isNull()) diff --git a/schedulerx2/src/model/ListJobScriptHistoryRequest.cc b/schedulerx2/src/model/ListJobScriptHistoryRequest.cc new file mode 100644 index 000000000..f5b1f41e0 --- /dev/null +++ b/schedulerx2/src/model/ListJobScriptHistoryRequest.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 + +using AlibabaCloud::Schedulerx2::Model::ListJobScriptHistoryRequest; + +ListJobScriptHistoryRequest::ListJobScriptHistoryRequest() + : RpcServiceRequest("schedulerx2", "2019-04-30", "ListJobScriptHistory") { + setMethod(HttpRequest::Method::Post); +} + +ListJobScriptHistoryRequest::~ListJobScriptHistoryRequest() {} + +std::string ListJobScriptHistoryRequest::getNamespaceSource() const { + return namespaceSource_; +} + +void ListJobScriptHistoryRequest::setNamespaceSource(const std::string &namespaceSource) { + namespaceSource_ = namespaceSource; + setParameter(std::string("NamespaceSource"), namespaceSource); +} + +std::string ListJobScriptHistoryRequest::getGroupId() const { + return groupId_; +} + +void ListJobScriptHistoryRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +long ListJobScriptHistoryRequest::getJobId() const { + return jobId_; +} + +void ListJobScriptHistoryRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +std::string ListJobScriptHistoryRequest::getRegionId() const { + return regionId_; +} + +void ListJobScriptHistoryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListJobScriptHistoryRequest::get_Namespace() const { + return _namespace_; +} + +void ListJobScriptHistoryRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/schedulerx2/src/model/ListJobScriptHistoryResult.cc b/schedulerx2/src/model/ListJobScriptHistoryResult.cc new file mode 100644 index 000000000..782658caf --- /dev/null +++ b/schedulerx2/src/model/ListJobScriptHistoryResult.cc @@ -0,0 +1,85 @@ +/* + * 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; + +ListJobScriptHistoryResult::ListJobScriptHistoryResult() : + ServiceResult() +{} + +ListJobScriptHistoryResult::ListJobScriptHistoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListJobScriptHistoryResult::~ListJobScriptHistoryResult() +{} + +void ListJobScriptHistoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allJobScriptHistoryInfosNode = dataNode["JobScriptHistoryInfos"]["JobScriptHistoryInfo"]; + for (auto dataNodeJobScriptHistoryInfosJobScriptHistoryInfo : allJobScriptHistoryInfosNode) + { + Data::JobScriptHistoryInfo jobScriptHistoryInfoObject; + if(!dataNodeJobScriptHistoryInfosJobScriptHistoryInfo["VersionesDescription"].isNull()) + jobScriptHistoryInfoObject.versionesDescription = dataNodeJobScriptHistoryInfosJobScriptHistoryInfo["VersionesDescription"].asString(); + if(!dataNodeJobScriptHistoryInfosJobScriptHistoryInfo["Creator"].isNull()) + jobScriptHistoryInfoObject.creator = dataNodeJobScriptHistoryInfosJobScriptHistoryInfo["Creator"].asString(); + if(!dataNodeJobScriptHistoryInfosJobScriptHistoryInfo["CreateTime"].isNull()) + jobScriptHistoryInfoObject.createTime = dataNodeJobScriptHistoryInfosJobScriptHistoryInfo["CreateTime"].asString(); + if(!dataNodeJobScriptHistoryInfosJobScriptHistoryInfo["ScriptContent"].isNull()) + jobScriptHistoryInfoObject.scriptContent = dataNodeJobScriptHistoryInfosJobScriptHistoryInfo["ScriptContent"].asString(); + data_.jobScriptHistoryInfos.push_back(jobScriptHistoryInfoObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListJobScriptHistoryResult::getMessage()const +{ + return message_; +} + +ListJobScriptHistoryResult::Data ListJobScriptHistoryResult::getData()const +{ + return data_; +} + +int ListJobScriptHistoryResult::getCode()const +{ + return code_; +} + +bool ListJobScriptHistoryResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx2/src/model/ReadSchedulerxDesignateDetailRequest.cc b/schedulerx2/src/model/ReadSchedulerxDesignateDetailRequest.cc new file mode 100644 index 000000000..2bfa5f9bf --- /dev/null +++ b/schedulerx2/src/model/ReadSchedulerxDesignateDetailRequest.cc @@ -0,0 +1,81 @@ +/* + * 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::ReadSchedulerxDesignateDetailRequest; + +ReadSchedulerxDesignateDetailRequest::ReadSchedulerxDesignateDetailRequest() + : RpcServiceRequest("schedulerx2", "2019-04-30", "ReadSchedulerxDesignateDetail") { + setMethod(HttpRequest::Method::Post); +} + +ReadSchedulerxDesignateDetailRequest::~ReadSchedulerxDesignateDetailRequest() {} + +std::string ReadSchedulerxDesignateDetailRequest::getNamespaceSource() const { + return namespaceSource_; +} + +void ReadSchedulerxDesignateDetailRequest::setNamespaceSource(const std::string &namespaceSource) { + namespaceSource_ = namespaceSource; + setParameter(std::string("NamespaceSource"), namespaceSource); +} + +std::string ReadSchedulerxDesignateDetailRequest::getGroupId() const { + return groupId_; +} + +void ReadSchedulerxDesignateDetailRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +int ReadSchedulerxDesignateDetailRequest::getDesignateType() const { + return designateType_; +} + +void ReadSchedulerxDesignateDetailRequest::setDesignateType(int designateType) { + designateType_ = designateType; + setParameter(std::string("DesignateType"), std::to_string(designateType)); +} + +long ReadSchedulerxDesignateDetailRequest::getJobId() const { + return jobId_; +} + +void ReadSchedulerxDesignateDetailRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +std::string ReadSchedulerxDesignateDetailRequest::getRegionId() const { + return regionId_; +} + +void ReadSchedulerxDesignateDetailRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ReadSchedulerxDesignateDetailRequest::get_Namespace() const { + return _namespace_; +} + +void ReadSchedulerxDesignateDetailRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/schedulerx2/src/model/ReadSchedulerxDesignateDetailResult.cc b/schedulerx2/src/model/ReadSchedulerxDesignateDetailResult.cc new file mode 100644 index 000000000..38fe6f355 --- /dev/null +++ b/schedulerx2/src/model/ReadSchedulerxDesignateDetailResult.cc @@ -0,0 +1,138 @@ +/* + * 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; + +ReadSchedulerxDesignateDetailResult::ReadSchedulerxDesignateDetailResult() : + ServiceResult() +{} + +ReadSchedulerxDesignateDetailResult::ReadSchedulerxDesignateDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReadSchedulerxDesignateDetailResult::~ReadSchedulerxDesignateDetailResult() +{} + +void ReadSchedulerxDesignateDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allDesignateDetailVosNode = dataNode["DesignateDetailVos"]["designateDetailVo"]; + for (auto dataNodeDesignateDetailVosdesignateDetailVo : allDesignateDetailVosNode) + { + Data::DesignateDetailVo designateDetailVoObject; + if(!dataNodeDesignateDetailVosdesignateDetailVo["Offline"].isNull()) + designateDetailVoObject.offline = dataNodeDesignateDetailVosdesignateDetailVo["Offline"].asString() == "true"; + if(!dataNodeDesignateDetailVosdesignateDetailVo["Size"].isNull()) + designateDetailVoObject.size = std::stoi(dataNodeDesignateDetailVosdesignateDetailVo["Size"].asString()); + if(!dataNodeDesignateDetailVosdesignateDetailVo["Starter"].isNull()) + designateDetailVoObject.starter = dataNodeDesignateDetailVosdesignateDetailVo["Starter"].asString(); + if(!dataNodeDesignateDetailVosdesignateDetailVo["Busy"].isNull()) + designateDetailVoObject.busy = dataNodeDesignateDetailVosdesignateDetailVo["Busy"].asString(); + if(!dataNodeDesignateDetailVosdesignateDetailVo["Checked"].isNull()) + designateDetailVoObject.checked = dataNodeDesignateDetailVosdesignateDetailVo["Checked"].asString() == "true"; + if(!dataNodeDesignateDetailVosdesignateDetailVo["Version"].isNull()) + designateDetailVoObject.version = dataNodeDesignateDetailVosdesignateDetailVo["Version"].asString(); + if(!dataNodeDesignateDetailVosdesignateDetailVo["Key"].isNull()) + designateDetailVoObject.key = dataNodeDesignateDetailVosdesignateDetailVo["Key"].asString(); + auto metricsNode = value["Metrics"]; + if(!metricsNode["CpuLoad1"].isNull()) + designateDetailVoObject.metrics.cpuLoad1 = metricsNode["CpuLoad1"].asString(); + if(!metricsNode["CpuLoad5"].isNull()) + designateDetailVoObject.metrics.cpuLoad5 = metricsNode["CpuLoad5"].asString(); + if(!metricsNode["CpuProcessors"].isNull()) + designateDetailVoObject.metrics.cpuProcessors = std::stoi(metricsNode["CpuProcessors"].asString()); + if(!metricsNode["Heap1Usage"].isNull()) + designateDetailVoObject.metrics.heap1Usage = metricsNode["Heap1Usage"].asString(); + if(!metricsNode["Heap5Usage"].isNull()) + designateDetailVoObject.metrics.heap5Usage = metricsNode["Heap5Usage"].asString(); + if(!metricsNode["Heap1Used"].isNull()) + designateDetailVoObject.metrics.heap1Used = metricsNode["Heap1Used"].asString(); + if(!metricsNode["HeapMax"].isNull()) + designateDetailVoObject.metrics.heapMax = std::stoi(metricsNode["HeapMax"].asString()); + if(!metricsNode["DiskUsage"].isNull()) + designateDetailVoObject.metrics.diskUsage = metricsNode["DiskUsage"].asString(); + if(!metricsNode["DiskUsed"].isNull()) + designateDetailVoObject.metrics.diskUsed = std::stoi(metricsNode["DiskUsed"].asString()); + if(!metricsNode["DiskMax"].isNull()) + designateDetailVoObject.metrics.diskMax = std::stoi(metricsNode["DiskMax"].asString()); + if(!metricsNode["SharePoolQueueSize"].isNull()) + designateDetailVoObject.metrics.sharePoolQueueSize = std::stoi(metricsNode["SharePoolQueueSize"].asString()); + if(!metricsNode["SharePoolAvailableSize"].isNull()) + designateDetailVoObject.metrics.sharePoolAvailableSize = std::stoi(metricsNode["SharePoolAvailableSize"].asString()); + if(!metricsNode["ExecCount"].isNull()) + designateDetailVoObject.metrics.execCount = std::stol(metricsNode["ExecCount"].asString()); + data_.designateDetailVos.push_back(designateDetailVoObject); + } + auto accessDeniedDetailNode = value["AccessDeniedDetail"]; + if(!accessDeniedDetailNode["AuthAction"].isNull()) + accessDeniedDetail_.authAction = accessDeniedDetailNode["AuthAction"].asString(); + if(!accessDeniedDetailNode["AuthPrincipalDisplayName"].isNull()) + accessDeniedDetail_.authPrincipalDisplayName = accessDeniedDetailNode["AuthPrincipalDisplayName"].asString(); + if(!accessDeniedDetailNode["AuthPrincipalOwnerId"].isNull()) + accessDeniedDetail_.authPrincipalOwnerId = accessDeniedDetailNode["AuthPrincipalOwnerId"].asString(); + if(!accessDeniedDetailNode["AuthPrincipalType"].isNull()) + accessDeniedDetail_.authPrincipalType = accessDeniedDetailNode["AuthPrincipalType"].asString(); + if(!accessDeniedDetailNode["EncodedDiagnosticMessage"].isNull()) + accessDeniedDetail_.encodedDiagnosticMessage = accessDeniedDetailNode["EncodedDiagnosticMessage"].asString(); + if(!accessDeniedDetailNode["NoPermissionType"].isNull()) + accessDeniedDetail_.noPermissionType = accessDeniedDetailNode["NoPermissionType"].asString(); + if(!accessDeniedDetailNode["PolicyType"].isNull()) + accessDeniedDetail_.policyType = accessDeniedDetailNode["PolicyType"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +ReadSchedulerxDesignateDetailResult::AccessDeniedDetail ReadSchedulerxDesignateDetailResult::getAccessDeniedDetail()const +{ + return accessDeniedDetail_; +} + +std::string ReadSchedulerxDesignateDetailResult::getMessage()const +{ + return message_; +} + +ReadSchedulerxDesignateDetailResult::Data ReadSchedulerxDesignateDetailResult::getData()const +{ + return data_; +} + +int ReadSchedulerxDesignateDetailResult::getCode()const +{ + return code_; +} + +bool ReadSchedulerxDesignateDetailResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx2/src/model/UpdateAppGroupRequest.cc b/schedulerx2/src/model/UpdateAppGroupRequest.cc index cbf1f3abf..8aa37a12b 100644 --- a/schedulerx2/src/model/UpdateAppGroupRequest.cc +++ b/schedulerx2/src/model/UpdateAppGroupRequest.cc @@ -52,6 +52,15 @@ void UpdateAppGroupRequest::setAlarmJson(const std::string &alarmJson) { setParameter(std::string("AlarmJson"), alarmJson); } +std::string UpdateAppGroupRequest::getMonitorContactsJson() const { + return monitorContactsJson_; +} + +void UpdateAppGroupRequest::setMonitorContactsJson(const std::string &monitorContactsJson) { + monitorContactsJson_ = monitorContactsJson; + setParameter(std::string("MonitorContactsJson"), monitorContactsJson); +} + long UpdateAppGroupRequest::getAppGroupId() const { return appGroupId_; } @@ -97,6 +106,15 @@ void UpdateAppGroupRequest::setAppVersion(int appVersion) { setParameter(std::string("AppVersion"), std::to_string(appVersion)); } +std::string UpdateAppGroupRequest::getMonitorConfigJson() const { + return monitorConfigJson_; +} + +void UpdateAppGroupRequest::setMonitorConfigJson(const std::string &monitorConfigJson) { + monitorConfigJson_ = monitorConfigJson; + setParameter(std::string("MonitorConfigJson"), monitorConfigJson); +} + std::string UpdateAppGroupRequest::get_Namespace() const { return _namespace_; } diff --git a/schedulerx2/src/model/UpdateJobRequest.cc b/schedulerx2/src/model/UpdateJobRequest.cc index 827c4f475..4894f7db2 100644 --- a/schedulerx2/src/model/UpdateJobRequest.cc +++ b/schedulerx2/src/model/UpdateJobRequest.cc @@ -106,6 +106,15 @@ void UpdateJobRequest::setDispatcherSize(int dispatcherSize) { setBodyParameter(std::string("DispatcherSize"), std::to_string(dispatcherSize)); } +int UpdateJobRequest::getPriority() const { + return priority_; +} + +void UpdateJobRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); +} + int UpdateJobRequest::getTaskAttemptInterval() const { return taskAttemptInterval_; } diff --git a/schedulerx2/src/model/UpdateJobScriptRequest.cc b/schedulerx2/src/model/UpdateJobScriptRequest.cc new file mode 100644 index 000000000..106043205 --- /dev/null +++ b/schedulerx2/src/model/UpdateJobScriptRequest.cc @@ -0,0 +1,90 @@ +/* + * 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::UpdateJobScriptRequest; + +UpdateJobScriptRequest::UpdateJobScriptRequest() + : RpcServiceRequest("schedulerx2", "2019-04-30", "UpdateJobScript") { + setMethod(HttpRequest::Method::Post); +} + +UpdateJobScriptRequest::~UpdateJobScriptRequest() {} + +std::string UpdateJobScriptRequest::getNamespaceSource() const { + return namespaceSource_; +} + +void UpdateJobScriptRequest::setNamespaceSource(const std::string &namespaceSource) { + namespaceSource_ = namespaceSource; + setBodyParameter(std::string("NamespaceSource"), namespaceSource); +} + +long UpdateJobScriptRequest::getJobId() const { + return jobId_; +} + +void UpdateJobScriptRequest::setJobId(long jobId) { + jobId_ = jobId; + setBodyParameter(std::string("JobId"), std::to_string(jobId)); +} + +std::string UpdateJobScriptRequest::getRegionId() const { + return regionId_; +} + +void UpdateJobScriptRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string UpdateJobScriptRequest::getGroupId() const { + return groupId_; +} + +void UpdateJobScriptRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setBodyParameter(std::string("GroupId"), groupId); +} + +std::string UpdateJobScriptRequest::get_Namespace() const { + return _namespace_; +} + +void UpdateJobScriptRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setBodyParameter(std::string("Namespace"), _namespace); +} + +std::string UpdateJobScriptRequest::getScriptContent() const { + return scriptContent_; +} + +void UpdateJobScriptRequest::setScriptContent(const std::string &scriptContent) { + scriptContent_ = scriptContent; + setBodyParameter(std::string("ScriptContent"), scriptContent); +} + +std::string UpdateJobScriptRequest::getVersionDescription() const { + return versionDescription_; +} + +void UpdateJobScriptRequest::setVersionDescription(const std::string &versionDescription) { + versionDescription_ = versionDescription; + setBodyParameter(std::string("VersionDescription"), versionDescription); +} + diff --git a/schedulerx2/src/model/UpdateJobScriptResult.cc b/schedulerx2/src/model/UpdateJobScriptResult.cc new file mode 100644 index 000000000..e9950f1c0 --- /dev/null +++ b/schedulerx2/src/model/UpdateJobScriptResult.cc @@ -0,0 +1,65 @@ +/* + * 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; + +UpdateJobScriptResult::UpdateJobScriptResult() : + ServiceResult() +{} + +UpdateJobScriptResult::UpdateJobScriptResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateJobScriptResult::~UpdateJobScriptResult() +{} + +void UpdateJobScriptResult::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["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateJobScriptResult::getMessage()const +{ + return message_; +} + +int UpdateJobScriptResult::getCode()const +{ + return code_; +} + +bool UpdateJobScriptResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx2/src/model/UpdateNamespaceRequest.cc b/schedulerx2/src/model/UpdateNamespaceRequest.cc new file mode 100644 index 000000000..ff0cd5e52 --- /dev/null +++ b/schedulerx2/src/model/UpdateNamespaceRequest.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 + +using AlibabaCloud::Schedulerx2::Model::UpdateNamespaceRequest; + +UpdateNamespaceRequest::UpdateNamespaceRequest() + : RpcServiceRequest("schedulerx2", "2019-04-30", "UpdateNamespace") { + setMethod(HttpRequest::Method::Post); +} + +UpdateNamespaceRequest::~UpdateNamespaceRequest() {} + +std::string UpdateNamespaceRequest::getNamespaceName() const { + return namespaceName_; +} + +void UpdateNamespaceRequest::setNamespaceName(const std::string &namespaceName) { + namespaceName_ = namespaceName; + setParameter(std::string("NamespaceName"), namespaceName); +} + +std::string UpdateNamespaceRequest::getNamespaceSource() const { + return namespaceSource_; +} + +void UpdateNamespaceRequest::setNamespaceSource(const std::string &namespaceSource) { + namespaceSource_ = namespaceSource; + setParameter(std::string("NamespaceSource"), namespaceSource); +} + +std::string UpdateNamespaceRequest::getDescription() const { + return description_; +} + +void UpdateNamespaceRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string UpdateNamespaceRequest::getRegionId() const { + return regionId_; +} + +void UpdateNamespaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateNamespaceRequest::get_Namespace() const { + return _namespace_; +} + +void UpdateNamespaceRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/schedulerx2/src/model/UpdateNamespaceResult.cc b/schedulerx2/src/model/UpdateNamespaceResult.cc new file mode 100644 index 000000000..1bb23bdfa --- /dev/null +++ b/schedulerx2/src/model/UpdateNamespaceResult.cc @@ -0,0 +1,65 @@ +/* + * 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; + +UpdateNamespaceResult::UpdateNamespaceResult() : + ServiceResult() +{} + +UpdateNamespaceResult::UpdateNamespaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateNamespaceResult::~UpdateNamespaceResult() +{} + +void UpdateNamespaceResult::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["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateNamespaceResult::getMessage()const +{ + return message_; +} + +int UpdateNamespaceResult::getCode()const +{ + return code_; +} + +bool UpdateNamespaceResult::getSuccess()const +{ + return success_; +} +