Bladeren bron

Supported Designate Workers.

sdk-team 4 jaren geleden
bovenliggende
commit
42e485b31a
82 gewijzigde bestanden met toevoegingen van 3294 en 3115 verwijderingen
  1. 4 0
      CHANGELOG
  2. 1 1
      VERSION
  3. 8 0
      schedulerx2/CMakeLists.txt
  4. 16 0
      schedulerx2/include/alibabacloud/schedulerx2/Schedulerx2Client.h
  5. 43 49
      schedulerx2/include/alibabacloud/schedulerx2/model/BatchDeleteJobsRequest.h
  6. 43 49
      schedulerx2/include/alibabacloud/schedulerx2/model/BatchDisableJobsRequest.h
  7. 43 49
      schedulerx2/include/alibabacloud/schedulerx2/model/BatchEnableJobsRequest.h
  8. 58 64
      schedulerx2/include/alibabacloud/schedulerx2/model/CreateAppGroupRequest.h
  9. 125 133
      schedulerx2/include/alibabacloud/schedulerx2/model/CreateJobRequest.h
  10. 43 49
      schedulerx2/include/alibabacloud/schedulerx2/model/DeleteJobRequest.h
  11. 43 49
      schedulerx2/include/alibabacloud/schedulerx2/model/DeleteWorkflowRequest.h
  12. 28 34
      schedulerx2/include/alibabacloud/schedulerx2/model/DescribeRegionsRequest.h
  13. 66 0
      schedulerx2/include/alibabacloud/schedulerx2/model/DesignateWorkersRequest.h
  14. 55 0
      schedulerx2/include/alibabacloud/schedulerx2/model/DesignateWorkersResult.h
  15. 43 49
      schedulerx2/include/alibabacloud/schedulerx2/model/DisableJobRequest.h
  16. 43 49
      schedulerx2/include/alibabacloud/schedulerx2/model/DisableWorkflowRequest.h
  17. 43 49
      schedulerx2/include/alibabacloud/schedulerx2/model/EnableJobRequest.h
  18. 43 49
      schedulerx2/include/alibabacloud/schedulerx2/model/EnableWorkflowRequest.h
  19. 49 52
      schedulerx2/include/alibabacloud/schedulerx2/model/ExecuteJobRequest.h
  20. 43 49
      schedulerx2/include/alibabacloud/schedulerx2/model/ExecuteWorkflowRequest.h
  21. 43 49
      schedulerx2/include/alibabacloud/schedulerx2/model/GetJobInfoRequest.h
  22. 2 2
      schedulerx2/include/alibabacloud/schedulerx2/model/GetJobInfoResult.h
  23. 43 49
      schedulerx2/include/alibabacloud/schedulerx2/model/GetJobInstanceListRequest.h
  24. 43 49
      schedulerx2/include/alibabacloud/schedulerx2/model/GetJobInstanceRequest.h
  25. 54 0
      schedulerx2/include/alibabacloud/schedulerx2/model/GetWorkFlowRequest.h
  26. 87 0
      schedulerx2/include/alibabacloud/schedulerx2/model/GetWorkFlowResult.h
  27. 49 55
      schedulerx2/include/alibabacloud/schedulerx2/model/GrantPermissionRequest.h
  28. 37 43
      schedulerx2/include/alibabacloud/schedulerx2/model/ListGroupsRequest.h
  29. 46 52
      schedulerx2/include/alibabacloud/schedulerx2/model/ListJobsRequest.h
  30. 2 2
      schedulerx2/include/alibabacloud/schedulerx2/model/ListJobsResult.h
  31. 31 37
      schedulerx2/include/alibabacloud/schedulerx2/model/ListNamespacesRequest.h
  32. 43 49
      schedulerx2/include/alibabacloud/schedulerx2/model/RevokePermissionRequest.h
  33. 46 52
      schedulerx2/include/alibabacloud/schedulerx2/model/StopInstanceRequest.h
  34. 125 133
      schedulerx2/include/alibabacloud/schedulerx2/model/UpdateJobRequest.h
  35. 72 0
      schedulerx2/src/Schedulerx2Client.cc
  36. 40 55
      schedulerx2/src/model/BatchDeleteJobsRequest.cc
  37. 40 55
      schedulerx2/src/model/BatchDisableJobsRequest.cc
  38. 2 2
      schedulerx2/src/model/BatchDisableJobsResult.cc
  39. 40 55
      schedulerx2/src/model/BatchEnableJobsRequest.cc
  40. 2 2
      schedulerx2/src/model/BatchEnableJobsResult.cc
  41. 66 88
      schedulerx2/src/model/CreateAppGroupRequest.cc
  42. 2 2
      schedulerx2/src/model/CreateAppGroupResult.cc
  43. 176 240
      schedulerx2/src/model/CreateJobRequest.cc
  44. 2 2
      schedulerx2/src/model/CreateJobResult.cc
  45. 41 53
      schedulerx2/src/model/DeleteJobRequest.cc
  46. 41 53
      schedulerx2/src/model/DeleteWorkflowRequest.cc
  47. 2 2
      schedulerx2/src/model/DeleteWorkflowResult.cc
  48. 16 18
      schedulerx2/src/model/DescribeRegionsRequest.cc
  49. 4 4
      schedulerx2/src/model/DescribeRegionsResult.cc
  50. 108 0
      schedulerx2/src/model/DesignateWorkersRequest.cc
  51. 65 0
      schedulerx2/src/model/DesignateWorkersResult.cc
  52. 41 53
      schedulerx2/src/model/DisableJobRequest.cc
  53. 2 2
      schedulerx2/src/model/DisableJobResult.cc
  54. 41 53
      schedulerx2/src/model/DisableWorkflowRequest.cc
  55. 2 2
      schedulerx2/src/model/DisableWorkflowResult.cc
  56. 41 53
      schedulerx2/src/model/EnableJobRequest.cc
  57. 2 2
      schedulerx2/src/model/EnableJobResult.cc
  58. 41 53
      schedulerx2/src/model/EnableWorkflowRequest.cc
  59. 2 2
      schedulerx2/src/model/EnableWorkflowResult.cc
  60. 55 60
      schedulerx2/src/model/ExecuteJobRequest.cc
  61. 41 53
      schedulerx2/src/model/ExecuteWorkflowRequest.cc
  62. 41 53
      schedulerx2/src/model/GetJobInfoRequest.cc
  63. 28 28
      schedulerx2/src/model/GetJobInfoResult.cc
  64. 41 53
      schedulerx2/src/model/GetJobInstanceListRequest.cc
  65. 16 16
      schedulerx2/src/model/GetJobInstanceListResult.cc
  66. 41 53
      schedulerx2/src/model/GetJobInstanceRequest.cc
  67. 16 16
      schedulerx2/src/model/GetJobInstanceResult.cc
  68. 72 0
      schedulerx2/src/model/GetWorkFlowRequest.cc
  69. 107 0
      schedulerx2/src/model/GetWorkFlowResult.cc
  70. 51 67
      schedulerx2/src/model/GrantPermissionRequest.cc
  71. 2 2
      schedulerx2/src/model/GrantPermissionResult.cc
  72. 31 39
      schedulerx2/src/model/ListGroupsRequest.cc
  73. 2 2
      schedulerx2/src/model/ListGroupsResult.cc
  74. 46 60
      schedulerx2/src/model/ListJobsRequest.cc
  75. 30 30
      schedulerx2/src/model/ListJobsResult.cc
  76. 21 25
      schedulerx2/src/model/ListNamespacesRequest.cc
  77. 4 4
      schedulerx2/src/model/ListNamespacesResult.cc
  78. 41 53
      schedulerx2/src/model/RevokePermissionRequest.cc
  79. 2 2
      schedulerx2/src/model/RevokePermissionResult.cc
  80. 46 60
      schedulerx2/src/model/StopInstanceRequest.cc
  81. 176 240
      schedulerx2/src/model/UpdateJobRequest.cc
  82. 2 2
      schedulerx2/src/model/UpdateJobResult.cc

+ 4 - 0
CHANGELOG

@@ -1,3 +1,7 @@
+2021-12-21 Version: 1.36.987
+- Supported Designate Workers.
+- Supported Get WorkFlow.
+
 2021-12-20 Version: 1.36.986
 - Add Request Param Ipv6AddressCount For API CreateLaunchTemplate AND CreateLaunchTemplateVersion.
 - Add Response Data Ipv6AddressCount For API DescribeLaunchTemplateVersions.

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.986
+1.36.987

+ 8 - 0
schedulerx2/CMakeLists.txt

@@ -37,6 +37,8 @@ set(schedulerx2_public_header_model
 	include/alibabacloud/schedulerx2/model/DeleteWorkflowResult.h
 	include/alibabacloud/schedulerx2/model/DescribeRegionsRequest.h
 	include/alibabacloud/schedulerx2/model/DescribeRegionsResult.h
+	include/alibabacloud/schedulerx2/model/DesignateWorkersRequest.h
+	include/alibabacloud/schedulerx2/model/DesignateWorkersResult.h
 	include/alibabacloud/schedulerx2/model/DisableJobRequest.h
 	include/alibabacloud/schedulerx2/model/DisableJobResult.h
 	include/alibabacloud/schedulerx2/model/DisableWorkflowRequest.h
@@ -55,6 +57,8 @@ set(schedulerx2_public_header_model
 	include/alibabacloud/schedulerx2/model/GetJobInstanceResult.h
 	include/alibabacloud/schedulerx2/model/GetJobInstanceListRequest.h
 	include/alibabacloud/schedulerx2/model/GetJobInstanceListResult.h
+	include/alibabacloud/schedulerx2/model/GetWorkFlowRequest.h
+	include/alibabacloud/schedulerx2/model/GetWorkFlowResult.h
 	include/alibabacloud/schedulerx2/model/GrantPermissionRequest.h
 	include/alibabacloud/schedulerx2/model/GrantPermissionResult.h
 	include/alibabacloud/schedulerx2/model/ListGroupsRequest.h
@@ -88,6 +92,8 @@ set(schedulerx2_src
 	src/model/DeleteWorkflowResult.cc
 	src/model/DescribeRegionsRequest.cc
 	src/model/DescribeRegionsResult.cc
+	src/model/DesignateWorkersRequest.cc
+	src/model/DesignateWorkersResult.cc
 	src/model/DisableJobRequest.cc
 	src/model/DisableJobResult.cc
 	src/model/DisableWorkflowRequest.cc
@@ -106,6 +112,8 @@ set(schedulerx2_src
 	src/model/GetJobInstanceResult.cc
 	src/model/GetJobInstanceListRequest.cc
 	src/model/GetJobInstanceListResult.cc
+	src/model/GetWorkFlowRequest.cc
+	src/model/GetWorkFlowResult.cc
 	src/model/GrantPermissionRequest.cc
 	src/model/GrantPermissionResult.cc
 	src/model/ListGroupsRequest.cc

+ 16 - 0
schedulerx2/include/alibabacloud/schedulerx2/Schedulerx2Client.h

@@ -38,6 +38,8 @@
 #include "model/DeleteWorkflowResult.h"
 #include "model/DescribeRegionsRequest.h"
 #include "model/DescribeRegionsResult.h"
+#include "model/DesignateWorkersRequest.h"
+#include "model/DesignateWorkersResult.h"
 #include "model/DisableJobRequest.h"
 #include "model/DisableJobResult.h"
 #include "model/DisableWorkflowRequest.h"
@@ -56,6 +58,8 @@
 #include "model/GetJobInstanceResult.h"
 #include "model/GetJobInstanceListRequest.h"
 #include "model/GetJobInstanceListResult.h"
+#include "model/GetWorkFlowRequest.h"
+#include "model/GetWorkFlowResult.h"
 #include "model/GrantPermissionRequest.h"
 #include "model/GrantPermissionResult.h"
 #include "model/ListGroupsRequest.h"
@@ -103,6 +107,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
 			typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
 			typedef std::function<void(const Schedulerx2Client*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
+			typedef Outcome<Error, Model::DesignateWorkersResult> DesignateWorkersOutcome;
+			typedef std::future<DesignateWorkersOutcome> DesignateWorkersOutcomeCallable;
+			typedef std::function<void(const Schedulerx2Client*, const Model::DesignateWorkersRequest&, const DesignateWorkersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DesignateWorkersAsyncHandler;
 			typedef Outcome<Error, Model::DisableJobResult> DisableJobOutcome;
 			typedef std::future<DisableJobOutcome> DisableJobOutcomeCallable;
 			typedef std::function<void(const Schedulerx2Client*, const Model::DisableJobRequest&, const DisableJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableJobAsyncHandler;
@@ -130,6 +137,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::GetJobInstanceListResult> GetJobInstanceListOutcome;
 			typedef std::future<GetJobInstanceListOutcome> GetJobInstanceListOutcomeCallable;
 			typedef std::function<void(const Schedulerx2Client*, const Model::GetJobInstanceListRequest&, const GetJobInstanceListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetJobInstanceListAsyncHandler;
+			typedef Outcome<Error, Model::GetWorkFlowResult> GetWorkFlowOutcome;
+			typedef std::future<GetWorkFlowOutcome> GetWorkFlowOutcomeCallable;
+			typedef std::function<void(const Schedulerx2Client*, const Model::GetWorkFlowRequest&, const GetWorkFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetWorkFlowAsyncHandler;
 			typedef Outcome<Error, Model::GrantPermissionResult> GrantPermissionOutcome;
 			typedef std::future<GrantPermissionOutcome> GrantPermissionOutcomeCallable;
 			typedef std::function<void(const Schedulerx2Client*, const Model::GrantPermissionRequest&, const GrantPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GrantPermissionAsyncHandler;
@@ -180,6 +190,9 @@ namespace AlibabaCloud
 			DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
 			void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
+			DesignateWorkersOutcome designateWorkers(const Model::DesignateWorkersRequest &request)const;
+			void designateWorkersAsync(const Model::DesignateWorkersRequest& request, const DesignateWorkersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			DesignateWorkersOutcomeCallable designateWorkersCallable(const Model::DesignateWorkersRequest& request) const;
 			DisableJobOutcome disableJob(const Model::DisableJobRequest &request)const;
 			void disableJobAsync(const Model::DisableJobRequest& request, const DisableJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			DisableJobOutcomeCallable disableJobCallable(const Model::DisableJobRequest& request) const;
@@ -207,6 +220,9 @@ namespace AlibabaCloud
 			GetJobInstanceListOutcome getJobInstanceList(const Model::GetJobInstanceListRequest &request)const;
 			void getJobInstanceListAsync(const Model::GetJobInstanceListRequest& request, const GetJobInstanceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			GetJobInstanceListOutcomeCallable getJobInstanceListCallable(const Model::GetJobInstanceListRequest& request) const;
+			GetWorkFlowOutcome getWorkFlow(const Model::GetWorkFlowRequest &request)const;
+			void getWorkFlowAsync(const Model::GetWorkFlowRequest& request, const GetWorkFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			GetWorkFlowOutcomeCallable getWorkFlowCallable(const Model::GetWorkFlowRequest& request) const;
 			GrantPermissionOutcome grantPermission(const Model::GrantPermissionRequest &request)const;
 			void grantPermissionAsync(const Model::GrantPermissionRequest& request, const GrantPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			GrantPermissionOutcomeCallable grantPermissionCallable(const Model::GrantPermissionRequest& request) const;

+ 43 - 49
schedulerx2/include/alibabacloud/schedulerx2/model/BatchDeleteJobsRequest.h

@@ -1,60 +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_BATCHDELETEJOBSREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHDELETEJOBSREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT BatchDeleteJobsRequest : public RpcServiceRequest
-			{
-
-			public:
-				BatchDeleteJobsRequest();
-				~BatchDeleteJobsRequest();
-
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::vector<long> getJobIdList()const;
-				void setJobIdList(const std::vector<long>& jobIdList);
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-
-            private:
-				std::string namespaceSource_;
-				std::string groupId_;
-				std::vector<long> jobIdList_;
-				std::string regionId_;
-				std::string _namespace_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHDELETEJOBSREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHDELETEJOBSREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHDELETEJOBSREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT BatchDeleteJobsRequest : public RpcServiceRequest {
+public:
+	BatchDeleteJobsRequest();
+	~BatchDeleteJobsRequest();
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::vector<long> getJobIdList() const;
+	void setJobIdList(const std::vector<long> &jobIdList);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+
+private:
+	std::string namespaceSource_;
+	std::string groupId_;
+	std::vector<long> jobIdList_;
+	std::string regionId_;
+	std::string _namespace_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHDELETEJOBSREQUEST_H_

+ 43 - 49
schedulerx2/include/alibabacloud/schedulerx2/model/BatchDisableJobsRequest.h

@@ -1,60 +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_BATCHDISABLEJOBSREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHDISABLEJOBSREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT BatchDisableJobsRequest : public RpcServiceRequest
-			{
-
-			public:
-				BatchDisableJobsRequest();
-				~BatchDisableJobsRequest();
-
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-				std::vector<long> getJobIdList()const;
-				void setJobIdList(const std::vector<long>& jobIdList);
-
-            private:
-				std::string namespaceSource_;
-				std::string regionId_;
-				std::string groupId_;
-				std::string _namespace_;
-				std::vector<long> jobIdList_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHDISABLEJOBSREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHDISABLEJOBSREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHDISABLEJOBSREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT BatchDisableJobsRequest : public RpcServiceRequest {
+public:
+	BatchDisableJobsRequest();
+	~BatchDisableJobsRequest();
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+	std::vector<long> getJobIdList() const;
+	void setJobIdList(const std::vector<long> &jobIdList);
+
+private:
+	std::string namespaceSource_;
+	std::string regionId_;
+	std::string groupId_;
+	std::string _namespace_;
+	std::vector<long> jobIdList_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHDISABLEJOBSREQUEST_H_

+ 43 - 49
schedulerx2/include/alibabacloud/schedulerx2/model/BatchEnableJobsRequest.h

@@ -1,60 +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_BATCHENABLEJOBSREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHENABLEJOBSREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT BatchEnableJobsRequest : public RpcServiceRequest
-			{
-
-			public:
-				BatchEnableJobsRequest();
-				~BatchEnableJobsRequest();
-
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-				std::vector<long> getJobIdList()const;
-				void setJobIdList(const std::vector<long>& jobIdList);
-
-            private:
-				std::string namespaceSource_;
-				std::string regionId_;
-				std::string groupId_;
-				std::string _namespace_;
-				std::vector<long> jobIdList_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHENABLEJOBSREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHENABLEJOBSREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHENABLEJOBSREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT BatchEnableJobsRequest : public RpcServiceRequest {
+public:
+	BatchEnableJobsRequest();
+	~BatchEnableJobsRequest();
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+	std::vector<long> getJobIdList() const;
+	void setJobIdList(const std::vector<long> &jobIdList);
+
+private:
+	std::string namespaceSource_;
+	std::string regionId_;
+	std::string groupId_;
+	std::string _namespace_;
+	std::vector<long> jobIdList_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHENABLEJOBSREQUEST_H_

+ 58 - 64
schedulerx2/include/alibabacloud/schedulerx2/model/CreateAppGroupRequest.h

@@ -1,75 +1,69 @@
 /*
  * 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_CREATEAPPGROUPREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_CREATEAPPGROUPREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT CreateAppGroupRequest : public RpcServiceRequest
-			{
-
-			public:
-				CreateAppGroupRequest();
-				~CreateAppGroupRequest();
-
-				int getMaxJobs()const;
-				void setMaxJobs(int maxJobs);
-				std::string getNamespaceName()const;
-				void setNamespaceName(const std::string& namespaceName);
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getMetricsThresholdJson()const;
-				void setMetricsThresholdJson(const std::string& metricsThresholdJson);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string getDescription()const;
-				void setDescription(const std::string& description);
-				std::string getAppName()const;
-				void setAppName(const std::string& appName);
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-				std::string getAlarmJson()const;
-				void setAlarmJson(const std::string& alarmJson);
-
-            private:
-				int maxJobs_;
-				std::string namespaceName_;
-				std::string namespaceSource_;
-				std::string metricsThresholdJson_;
-				std::string groupId_;
-				std::string description_;
-				std::string appName_;
-				std::string regionId_;
-				std::string _namespace_;
-				std::string alarmJson_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_CREATEAPPGROUPREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_CREATEAPPGROUPREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_CREATEAPPGROUPREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT CreateAppGroupRequest : public RpcServiceRequest {
+public:
+	CreateAppGroupRequest();
+	~CreateAppGroupRequest();
+	int getMaxJobs() const;
+	void setMaxJobs(int maxJobs);
+	std::string getNamespaceName() const;
+	void setNamespaceName(const std::string &namespaceName);
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getMetricsThresholdJson() const;
+	void setMetricsThresholdJson(const std::string &metricsThresholdJson);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string getDescription() const;
+	void setDescription(const std::string &description);
+	std::string getAppName() const;
+	void setAppName(const std::string &appName);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+	std::string getAlarmJson() const;
+	void setAlarmJson(const std::string &alarmJson);
+
+private:
+	int maxJobs_;
+	std::string namespaceName_;
+	std::string namespaceSource_;
+	std::string metricsThresholdJson_;
+	std::string groupId_;
+	std::string description_;
+	std::string appName_;
+	std::string regionId_;
+	std::string _namespace_;
+	std::string alarmJson_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_CREATEAPPGROUPREQUEST_H_

+ 125 - 133
schedulerx2/include/alibabacloud/schedulerx2/model/CreateJobRequest.h

@@ -1,144 +1,136 @@
 /*
  * 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_CREATEJOBREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_CREATEJOBREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT CreateJobRequest : public RpcServiceRequest
-			{
-			public:
-				struct ContactInfo
-				{
-					std::string userPhone;
-					std::string userName;
-				};
-
-			public:
-				CreateJobRequest();
-				~CreateJobRequest();
-
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getDescription()const;
-				void setDescription(const std::string& description);
-				int getAttemptInterval()const;
-				void setAttemptInterval(int attemptInterval);
-				std::string getContent()const;
-				void setContent(const std::string& content);
-				long getTimeout()const;
-				void setTimeout(long timeout);
-				bool getTimeoutKillEnable()const;
-				void setTimeoutKillEnable(bool timeoutKillEnable);
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-				int getPageSize()const;
-				void setPageSize(int pageSize);
-				int getConsumerSize()const;
-				void setConsumerSize(int consumerSize);
-				std::string getJarUrl()const;
-				void setJarUrl(const std::string& jarUrl);
-				std::string getCalendar()const;
-				void setCalendar(const std::string& calendar);
-				bool getFailEnable()const;
-				void setFailEnable(bool failEnable);
-				std::string getSendChannel()const;
-				void setSendChannel(const std::string& sendChannel);
-				int getDataOffset()const;
-				void setDataOffset(int dataOffset);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				int getTaskMaxAttempt()const;
-				void setTaskMaxAttempt(int taskMaxAttempt);
-				int getMaxAttempt()const;
-				void setMaxAttempt(int maxAttempt);
-				int getDispatcherSize()const;
-				void setDispatcherSize(int dispatcherSize);
-				std::string getJobType()const;
-				void setJobType(const std::string& jobType);
-				int getTaskAttemptInterval()const;
-				void setTaskAttemptInterval(int taskAttemptInterval);
-				std::string getExecuteMode()const;
-				void setExecuteMode(const std::string& executeMode);
-				int getQueueSize()const;
-				void setQueueSize(int queueSize);
-				std::string getTimeExpression()const;
-				void setTimeExpression(const std::string& timeExpression);
-				std::string getClassName()const;
-				void setClassName(const std::string& className);
-				bool getTimeoutEnable()const;
-				void setTimeoutEnable(bool timeoutEnable);
-				std::vector<ContactInfo> getContactInfo()const;
-				void setContactInfo(const std::vector<ContactInfo>& contactInfo);
-				std::string getName()const;
-				void setName(const std::string& name);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-				int getMaxConcurrency()const;
-				void setMaxConcurrency(int maxConcurrency);
-				int getTimeType()const;
-				void setTimeType(int timeType);
-				std::string getParameters()const;
-				void setParameters(const std::string& parameters);
-
-            private:
-				std::string namespaceSource_;
-				std::string description_;
-				int attemptInterval_;
-				std::string content_;
-				long timeout_;
-				bool timeoutKillEnable_;
-				std::string regionId_;
-				int pageSize_;
-				int consumerSize_;
-				std::string jarUrl_;
-				std::string calendar_;
-				bool failEnable_;
-				std::string sendChannel_;
-				int dataOffset_;
-				std::string groupId_;
-				int taskMaxAttempt_;
-				int maxAttempt_;
-				int dispatcherSize_;
-				std::string jobType_;
-				int taskAttemptInterval_;
-				std::string executeMode_;
-				int queueSize_;
-				std::string timeExpression_;
-				std::string className_;
-				bool timeoutEnable_;
-				std::vector<ContactInfo> contactInfo_;
-				std::string name_;
-				std::string _namespace_;
-				int maxConcurrency_;
-				int timeType_;
-				std::string parameters_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_CREATEJOBREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_CREATEJOBREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_CREATEJOBREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT CreateJobRequest : public RpcServiceRequest {
+public:
+	struct ContactInfo {
+		std::string userPhone;
+		std::string userName;
+	};
+	CreateJobRequest();
+	~CreateJobRequest();
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getDescription() const;
+	void setDescription(const std::string &description);
+	int getAttemptInterval() const;
+	void setAttemptInterval(int attemptInterval);
+	std::string getContent() const;
+	void setContent(const std::string &content);
+	long getTimeout() const;
+	void setTimeout(long timeout);
+	bool getTimeoutKillEnable() const;
+	void setTimeoutKillEnable(bool timeoutKillEnable);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	int getPageSize() const;
+	void setPageSize(int pageSize);
+	int getConsumerSize() const;
+	void setConsumerSize(int consumerSize);
+	std::string getJarUrl() const;
+	void setJarUrl(const std::string &jarUrl);
+	std::string getCalendar() const;
+	void setCalendar(const std::string &calendar);
+	bool getFailEnable() const;
+	void setFailEnable(bool failEnable);
+	std::string getSendChannel() const;
+	void setSendChannel(const std::string &sendChannel);
+	int getDataOffset() const;
+	void setDataOffset(int dataOffset);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	int getTaskMaxAttempt() const;
+	void setTaskMaxAttempt(int taskMaxAttempt);
+	int getMaxAttempt() const;
+	void setMaxAttempt(int maxAttempt);
+	int getDispatcherSize() const;
+	void setDispatcherSize(int dispatcherSize);
+	std::string getJobType() const;
+	void setJobType(const std::string &jobType);
+	int getTaskAttemptInterval() const;
+	void setTaskAttemptInterval(int taskAttemptInterval);
+	std::string getExecuteMode() const;
+	void setExecuteMode(const std::string &executeMode);
+	int getQueueSize() const;
+	void setQueueSize(int queueSize);
+	std::string getTimeExpression() const;
+	void setTimeExpression(const std::string &timeExpression);
+	std::string getClassName() const;
+	void setClassName(const std::string &className);
+	bool getTimeoutEnable() const;
+	void setTimeoutEnable(bool timeoutEnable);
+	std::vector<ContactInfo> getContactInfo() const;
+	void setContactInfo(const std::vector<ContactInfo> &contactInfo);
+	std::string getName() const;
+	void setName(const std::string &name);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+	int getMaxConcurrency() const;
+	void setMaxConcurrency(int maxConcurrency);
+	int getTimeType() const;
+	void setTimeType(int timeType);
+	std::string getParameters() const;
+	void setParameters(const std::string &parameters);
+
+private:
+	std::string namespaceSource_;
+	std::string description_;
+	int attemptInterval_;
+	std::string content_;
+	long timeout_;
+	bool timeoutKillEnable_;
+	std::string regionId_;
+	int pageSize_;
+	int consumerSize_;
+	std::string jarUrl_;
+	std::string calendar_;
+	bool failEnable_;
+	std::string sendChannel_;
+	int dataOffset_;
+	std::string groupId_;
+	int taskMaxAttempt_;
+	int maxAttempt_;
+	int dispatcherSize_;
+	std::string jobType_;
+	int taskAttemptInterval_;
+	std::string executeMode_;
+	int queueSize_;
+	std::string timeExpression_;
+	std::string className_;
+	bool timeoutEnable_;
+	std::vector<ContactInfo> contactInfo_;
+	std::string name_;
+	std::string _namespace_;
+	int maxConcurrency_;
+	int timeType_;
+	std::string parameters_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_CREATEJOBREQUEST_H_

+ 43 - 49
schedulerx2/include/alibabacloud/schedulerx2/model/DeleteJobRequest.h

@@ -1,60 +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_DELETEJOBREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_DELETEJOBREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT DeleteJobRequest : public RpcServiceRequest
-			{
-
-			public:
-				DeleteJobRequest();
-				~DeleteJobRequest();
-
-				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& regionId);
-				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_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_DELETEJOBREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_DELETEJOBREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_DELETEJOBREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT DeleteJobRequest : public RpcServiceRequest {
+public:
+	DeleteJobRequest();
+	~DeleteJobRequest();
+	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 &regionId);
+	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_DELETEJOBREQUEST_H_

+ 43 - 49
schedulerx2/include/alibabacloud/schedulerx2/model/DeleteWorkflowRequest.h

@@ -1,60 +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_DELETEWORKFLOWREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_DELETEWORKFLOWREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT DeleteWorkflowRequest : public RpcServiceRequest
-			{
-
-			public:
-				DeleteWorkflowRequest();
-				~DeleteWorkflowRequest();
-
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-				long getWorkflowId()const;
-				void setWorkflowId(long workflowId);
-
-            private:
-				std::string namespaceSource_;
-				std::string regionId_;
-				std::string groupId_;
-				std::string _namespace_;
-				long workflowId_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_DELETEWORKFLOWREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_DELETEWORKFLOWREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_DELETEWORKFLOWREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT DeleteWorkflowRequest : public RpcServiceRequest {
+public:
+	DeleteWorkflowRequest();
+	~DeleteWorkflowRequest();
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+	long getWorkflowId() const;
+	void setWorkflowId(long workflowId);
+
+private:
+	std::string namespaceSource_;
+	std::string regionId_;
+	std::string groupId_;
+	std::string _namespace_;
+	long workflowId_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_DELETEWORKFLOWREQUEST_H_

+ 28 - 34
schedulerx2/include/alibabacloud/schedulerx2/model/DescribeRegionsRequest.h

@@ -1,45 +1,39 @@
 /*
  * 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_DESCRIBEREGIONSREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_DESCRIBEREGIONSREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT DescribeRegionsRequest : public RpcServiceRequest
-			{
-
-			public:
-				DescribeRegionsRequest();
-				~DescribeRegionsRequest();
-
-
-            private:
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_DESCRIBEREGIONSREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_DESCRIBEREGIONSREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_DESCRIBEREGIONSREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT DescribeRegionsRequest : public RpcServiceRequest {
+public:
+	DescribeRegionsRequest();
+	~DescribeRegionsRequest();
+
+private:
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_DESCRIBEREGIONSREQUEST_H_

+ 66 - 0
schedulerx2/include/alibabacloud/schedulerx2/model/DesignateWorkersRequest.h

@@ -0,0 +1,66 @@
+/*
+ * 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_DESIGNATEWORKERSREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_DESIGNATEWORKERSREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT DesignateWorkersRequest : public RpcServiceRequest {
+public:
+	DesignateWorkersRequest();
+	~DesignateWorkersRequest();
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	bool getTransferable() const;
+	void setTransferable(bool transferable);
+	std::string getLabels() const;
+	void setLabels(const std::string &labels);
+	int getDesignateType() const;
+	void setDesignateType(int designateType);
+	long getJobId() const;
+	void setJobId(long jobId);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+	std::string getWorkers() const;
+	void setWorkers(const std::string &workers);
+
+private:
+	std::string namespaceSource_;
+	std::string groupId_;
+	bool transferable_;
+	std::string labels_;
+	int designateType_;
+	long jobId_;
+	std::string regionId_;
+	std::string _namespace_;
+	std::string workers_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_DESIGNATEWORKERSREQUEST_H_

+ 55 - 0
schedulerx2/include/alibabacloud/schedulerx2/model/DesignateWorkersResult.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_DESIGNATEWORKERSRESULT_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_DESIGNATEWORKERSRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+
+namespace AlibabaCloud
+{
+	namespace Schedulerx2
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_SCHEDULERX2_EXPORT DesignateWorkersResult : public ServiceResult
+			{
+			public:
+
+
+				DesignateWorkersResult();
+				explicit DesignateWorkersResult(const std::string &payload);
+				~DesignateWorkersResult();
+				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_DESIGNATEWORKERSRESULT_H_

+ 43 - 49
schedulerx2/include/alibabacloud/schedulerx2/model/DisableJobRequest.h

@@ -1,60 +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_DISABLEJOBREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_DISABLEJOBREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT DisableJobRequest : public RpcServiceRequest
-			{
-
-			public:
-				DisableJobRequest();
-				~DisableJobRequest();
-
-				long getJobId()const;
-				void setJobId(long jobId);
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-
-            private:
-				long jobId_;
-				std::string namespaceSource_;
-				std::string regionId_;
-				std::string groupId_;
-				std::string _namespace_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_DISABLEJOBREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_DISABLEJOBREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_DISABLEJOBREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT DisableJobRequest : public RpcServiceRequest {
+public:
+	DisableJobRequest();
+	~DisableJobRequest();
+	long getJobId() const;
+	void setJobId(long jobId);
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+
+private:
+	long jobId_;
+	std::string namespaceSource_;
+	std::string regionId_;
+	std::string groupId_;
+	std::string _namespace_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_DISABLEJOBREQUEST_H_

+ 43 - 49
schedulerx2/include/alibabacloud/schedulerx2/model/DisableWorkflowRequest.h

@@ -1,60 +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_DISABLEWORKFLOWREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_DISABLEWORKFLOWREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT DisableWorkflowRequest : public RpcServiceRequest
-			{
-
-			public:
-				DisableWorkflowRequest();
-				~DisableWorkflowRequest();
-
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-				long getWorkflowId()const;
-				void setWorkflowId(long workflowId);
-
-            private:
-				std::string namespaceSource_;
-				std::string regionId_;
-				std::string groupId_;
-				std::string _namespace_;
-				long workflowId_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_DISABLEWORKFLOWREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_DISABLEWORKFLOWREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_DISABLEWORKFLOWREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT DisableWorkflowRequest : public RpcServiceRequest {
+public:
+	DisableWorkflowRequest();
+	~DisableWorkflowRequest();
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+	long getWorkflowId() const;
+	void setWorkflowId(long workflowId);
+
+private:
+	std::string namespaceSource_;
+	std::string regionId_;
+	std::string groupId_;
+	std::string _namespace_;
+	long workflowId_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_DISABLEWORKFLOWREQUEST_H_

+ 43 - 49
schedulerx2/include/alibabacloud/schedulerx2/model/EnableJobRequest.h

@@ -1,60 +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_ENABLEJOBREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_ENABLEJOBREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT EnableJobRequest : public RpcServiceRequest
-			{
-
-			public:
-				EnableJobRequest();
-				~EnableJobRequest();
-
-				long getJobId()const;
-				void setJobId(long jobId);
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-
-            private:
-				long jobId_;
-				std::string namespaceSource_;
-				std::string regionId_;
-				std::string groupId_;
-				std::string _namespace_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_ENABLEJOBREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_ENABLEJOBREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_ENABLEJOBREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT EnableJobRequest : public RpcServiceRequest {
+public:
+	EnableJobRequest();
+	~EnableJobRequest();
+	long getJobId() const;
+	void setJobId(long jobId);
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+
+private:
+	long jobId_;
+	std::string namespaceSource_;
+	std::string regionId_;
+	std::string groupId_;
+	std::string _namespace_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_ENABLEJOBREQUEST_H_

+ 43 - 49
schedulerx2/include/alibabacloud/schedulerx2/model/EnableWorkflowRequest.h

@@ -1,60 +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_ENABLEWORKFLOWREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_ENABLEWORKFLOWREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT EnableWorkflowRequest : public RpcServiceRequest
-			{
-
-			public:
-				EnableWorkflowRequest();
-				~EnableWorkflowRequest();
-
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-				long getWorkflowId()const;
-				void setWorkflowId(long workflowId);
-
-            private:
-				std::string namespaceSource_;
-				std::string regionId_;
-				std::string groupId_;
-				std::string _namespace_;
-				long workflowId_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_ENABLEWORKFLOWREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_ENABLEWORKFLOWREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_ENABLEWORKFLOWREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT EnableWorkflowRequest : public RpcServiceRequest {
+public:
+	EnableWorkflowRequest();
+	~EnableWorkflowRequest();
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+	long getWorkflowId() const;
+	void setWorkflowId(long workflowId);
+
+private:
+	std::string namespaceSource_;
+	std::string regionId_;
+	std::string groupId_;
+	std::string _namespace_;
+	long workflowId_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_ENABLEWORKFLOWREQUEST_H_

+ 49 - 52
schedulerx2/include/alibabacloud/schedulerx2/model/ExecuteJobRequest.h

@@ -1,63 +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_EXECUTEJOBREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_EXECUTEJOBREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT ExecuteJobRequest : public RpcServiceRequest
-			{
-
-			public:
-				ExecuteJobRequest();
-				~ExecuteJobRequest();
-
-				long getJobId()const;
-				void setJobId(long jobId);
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-				std::string getInstanceParameters()const;
-				void setInstanceParameters(const std::string& instanceParameters);
-
-            private:
-				long jobId_;
-				std::string namespaceSource_;
-				std::string regionId_;
-				std::string groupId_;
-				std::string _namespace_;
-				std::string instanceParameters_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_EXECUTEJOBREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_EXECUTEJOBREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_EXECUTEJOBREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT ExecuteJobRequest : public RpcServiceRequest {
+public:
+	ExecuteJobRequest();
+	~ExecuteJobRequest();
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	bool getCheckJobStatus() const;
+	void setCheckJobStatus(bool checkJobStatus);
+	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 &regionId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+	std::string getInstanceParameters() const;
+	void setInstanceParameters(const std::string &instanceParameters);
+
+private:
+	std::string namespaceSource_;
+	bool checkJobStatus_;
+	std::string groupId_;
+	long jobId_;
+	std::string regionId_;
+	std::string _namespace_;
+	std::string instanceParameters_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_EXECUTEJOBREQUEST_H_

+ 43 - 49
schedulerx2/include/alibabacloud/schedulerx2/model/ExecuteWorkflowRequest.h

@@ -1,60 +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_EXECUTEWORKFLOWREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_EXECUTEWORKFLOWREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT ExecuteWorkflowRequest : public RpcServiceRequest
-			{
-
-			public:
-				ExecuteWorkflowRequest();
-				~ExecuteWorkflowRequest();
-
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-				long getWorkflowId()const;
-				void setWorkflowId(long workflowId);
-				std::string getInstanceParameters()const;
-				void setInstanceParameters(const std::string& instanceParameters);
-
-            private:
-				std::string namespaceSource_;
-				std::string groupId_;
-				std::string _namespace_;
-				long workflowId_;
-				std::string instanceParameters_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_EXECUTEWORKFLOWREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_EXECUTEWORKFLOWREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_EXECUTEWORKFLOWREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT ExecuteWorkflowRequest : public RpcServiceRequest {
+public:
+	ExecuteWorkflowRequest();
+	~ExecuteWorkflowRequest();
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+	long getWorkflowId() const;
+	void setWorkflowId(long workflowId);
+	std::string getInstanceParameters() const;
+	void setInstanceParameters(const std::string &instanceParameters);
+
+private:
+	std::string namespaceSource_;
+	std::string groupId_;
+	std::string _namespace_;
+	long workflowId_;
+	std::string instanceParameters_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_EXECUTEWORKFLOWREQUEST_H_

+ 43 - 49
schedulerx2/include/alibabacloud/schedulerx2/model/GetJobInfoRequest.h

@@ -1,60 +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_GETJOBINFOREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_GETJOBINFOREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT GetJobInfoRequest : public RpcServiceRequest
-			{
-
-			public:
-				GetJobInfoRequest();
-				~GetJobInfoRequest();
-
-				long getJobId()const;
-				void setJobId(long jobId);
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-
-            private:
-				long jobId_;
-				std::string namespaceSource_;
-				std::string regionId_;
-				std::string groupId_;
-				std::string _namespace_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_GETJOBINFOREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_GETJOBINFOREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_GETJOBINFOREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT GetJobInfoRequest : public RpcServiceRequest {
+public:
+	GetJobInfoRequest();
+	~GetJobInfoRequest();
+	long getJobId() const;
+	void setJobId(long jobId);
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+
+private:
+	long jobId_;
+	std::string namespaceSource_;
+	std::string regionId_;
+	std::string groupId_;
+	std::string _namespace_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_GETJOBINFOREQUEST_H_

+ 2 - 2
schedulerx2/include/alibabacloud/schedulerx2/model/GetJobInfoResult.h

@@ -40,8 +40,8 @@ namespace AlibabaCloud
 						{
 							int taskAttemptInterval;
 							int queueSize;
-							int pageSize;
 							int dispatcherSize;
+							int pageSize;
 							int taskMaxAttempt;
 							int consumerSize;
 						};
@@ -72,8 +72,8 @@ namespace AlibabaCloud
 						};
 						int status;
 						int maxAttempt;
-						std::string description;
 						std::string parameters;
+						std::string description;
 						std::string jarUrl;
 						std::string maxConcurrency;
 						TimeConfig timeConfig;

+ 43 - 49
schedulerx2/include/alibabacloud/schedulerx2/model/GetJobInstanceListRequest.h

@@ -1,60 +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_GETJOBINSTANCELISTREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_GETJOBINSTANCELISTREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT GetJobInstanceListRequest : public RpcServiceRequest
-			{
-
-			public:
-				GetJobInstanceListRequest();
-				~GetJobInstanceListRequest();
-
-				long getJobId()const;
-				void setJobId(long jobId);
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-
-            private:
-				long jobId_;
-				std::string namespaceSource_;
-				std::string regionId_;
-				std::string groupId_;
-				std::string _namespace_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_GETJOBINSTANCELISTREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_GETJOBINSTANCELISTREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_GETJOBINSTANCELISTREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT GetJobInstanceListRequest : public RpcServiceRequest {
+public:
+	GetJobInstanceListRequest();
+	~GetJobInstanceListRequest();
+	long getJobId() const;
+	void setJobId(long jobId);
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+
+private:
+	long jobId_;
+	std::string namespaceSource_;
+	std::string regionId_;
+	std::string groupId_;
+	std::string _namespace_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_GETJOBINSTANCELISTREQUEST_H_

+ 43 - 49
schedulerx2/include/alibabacloud/schedulerx2/model/GetJobInstanceRequest.h

@@ -1,60 +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_GETJOBINSTANCEREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_GETJOBINSTANCEREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT GetJobInstanceRequest : public RpcServiceRequest
-			{
-
-			public:
-				GetJobInstanceRequest();
-				~GetJobInstanceRequest();
-
-				long getJobId()const;
-				void setJobId(long jobId);
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-				long getJobInstanceId()const;
-				void setJobInstanceId(long jobInstanceId);
-
-            private:
-				long jobId_;
-				std::string namespaceSource_;
-				std::string groupId_;
-				std::string _namespace_;
-				long jobInstanceId_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_GETJOBINSTANCEREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_GETJOBINSTANCEREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_GETJOBINSTANCEREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT GetJobInstanceRequest : public RpcServiceRequest {
+public:
+	GetJobInstanceRequest();
+	~GetJobInstanceRequest();
+	long getJobId() const;
+	void setJobId(long jobId);
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+	long getJobInstanceId() const;
+	void setJobInstanceId(long jobInstanceId);
+
+private:
+	long jobId_;
+	std::string namespaceSource_;
+	std::string groupId_;
+	std::string _namespace_;
+	long jobInstanceId_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_GETJOBINSTANCEREQUEST_H_

+ 54 - 0
schedulerx2/include/alibabacloud/schedulerx2/model/GetWorkFlowRequest.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_GETWORKFLOWREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_GETWORKFLOWREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT GetWorkFlowRequest : public RpcServiceRequest {
+public:
+	GetWorkFlowRequest();
+	~GetWorkFlowRequest();
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+	long getWorkflowId() const;
+	void setWorkflowId(long workflowId);
+
+private:
+	std::string namespaceSource_;
+	std::string groupId_;
+	std::string regionId_;
+	std::string _namespace_;
+	long workflowId_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_GETWORKFLOWREQUEST_H_

+ 87 - 0
schedulerx2/include/alibabacloud/schedulerx2/model/GetWorkFlowResult.h

@@ -0,0 +1,87 @@
+/*
+ * 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_GETWORKFLOWRESULT_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_GETWORKFLOWRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+
+namespace AlibabaCloud
+{
+	namespace Schedulerx2
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_SCHEDULERX2_EXPORT GetWorkFlowResult : public ServiceResult
+			{
+			public:
+				struct Data
+				{
+					struct WorkFlowInfo
+					{
+						std::string status;
+						std::string description;
+						std::string timeExpression;
+						long workflowId;
+						std::string name;
+						std::string timeType;
+					};
+					struct WorkFlowNodeInfo
+					{
+						struct Node
+						{
+							int status;
+							std::string label;
+							long id;
+						};
+						struct Edge
+						{
+							long target;
+							long source;
+						};
+						std::vector<Edge> edges;
+						std::vector<Node> nodes;
+					};
+					WorkFlowNodeInfo workFlowNodeInfo;
+					WorkFlowInfo workFlowInfo;
+				};
+
+
+				GetWorkFlowResult();
+				explicit GetWorkFlowResult(const std::string &payload);
+				~GetWorkFlowResult();
+				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_GETWORKFLOWRESULT_H_

+ 49 - 55
schedulerx2/include/alibabacloud/schedulerx2/model/GrantPermissionRequest.h

@@ -1,66 +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_GRANTPERMISSIONREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_GRANTPERMISSIONREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT GrantPermissionRequest : public RpcServiceRequest
-			{
-
-			public:
-				GrantPermissionRequest();
-				~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& regionId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-				std::string getUserName()const;
-				void setUserName(const std::string& userName);
-
-            private:
-				std::string namespaceSource_;
-				std::string groupId_;
-				std::string userId_;
-				bool grantOption_;
-				std::string regionId_;
-				std::string _namespace_;
-				std::string userName_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_GRANTPERMISSIONREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_GRANTPERMISSIONREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_GRANTPERMISSIONREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT GrantPermissionRequest : public RpcServiceRequest {
+public:
+	GrantPermissionRequest();
+	~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 &regionId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+	std::string getUserName() const;
+	void setUserName(const std::string &userName);
+
+private:
+	std::string namespaceSource_;
+	std::string groupId_;
+	std::string userId_;
+	bool grantOption_;
+	std::string regionId_;
+	std::string _namespace_;
+	std::string userName_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_GRANTPERMISSIONREQUEST_H_

+ 37 - 43
schedulerx2/include/alibabacloud/schedulerx2/model/ListGroupsRequest.h

@@ -1,54 +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_LISTGROUPSREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_LISTGROUPSREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT ListGroupsRequest : public RpcServiceRequest
-			{
-
-			public:
-				ListGroupsRequest();
-				~ListGroupsRequest();
-
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-
-            private:
-				std::string namespaceSource_;
-				std::string regionId_;
-				std::string _namespace_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_LISTGROUPSREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_LISTGROUPSREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_LISTGROUPSREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT ListGroupsRequest : public RpcServiceRequest {
+public:
+	ListGroupsRequest();
+	~ListGroupsRequest();
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	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_LISTGROUPSREQUEST_H_

+ 46 - 52
schedulerx2/include/alibabacloud/schedulerx2/model/ListJobsRequest.h

@@ -1,63 +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_LISTJOBSREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_LISTJOBSREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT ListJobsRequest : public RpcServiceRequest
-			{
-
-			public:
-				ListJobsRequest();
-				~ListJobsRequest();
-
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-				std::string getJobName()const;
-				void setJobName(const std::string& jobName);
-				std::string getStatus()const;
-				void setStatus(const std::string& status);
-
-            private:
-				std::string namespaceSource_;
-				std::string regionId_;
-				std::string groupId_;
-				std::string _namespace_;
-				std::string jobName_;
-				std::string status_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_LISTJOBSREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_LISTJOBSREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_LISTJOBSREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT ListJobsRequest : public RpcServiceRequest {
+public:
+	ListJobsRequest();
+	~ListJobsRequest();
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+	std::string getJobName() const;
+	void setJobName(const std::string &jobName);
+	std::string getStatus() const;
+	void setStatus(const std::string &status);
+
+private:
+	std::string namespaceSource_;
+	std::string regionId_;
+	std::string groupId_;
+	std::string _namespace_;
+	std::string jobName_;
+	std::string status_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_LISTJOBSREQUEST_H_

+ 2 - 2
schedulerx2/include/alibabacloud/schedulerx2/model/ListJobsResult.h

@@ -40,8 +40,8 @@ namespace AlibabaCloud
 						{
 							int taskAttemptInterval;
 							int queueSize;
-							int pageSize;
 							int dispatcherSize;
+							int pageSize;
 							int taskMaxAttempt;
 							int consumerSize;
 						};
@@ -72,8 +72,8 @@ namespace AlibabaCloud
 						};
 						int status;
 						int maxAttempt;
-						std::string description;
 						std::string parameters;
+						std::string description;
 						std::string jarUrl;
 						std::string maxConcurrency;
 						TimeConfig timeConfig;

+ 31 - 37
schedulerx2/include/alibabacloud/schedulerx2/model/ListNamespacesRequest.h

@@ -1,48 +1,42 @@
 /*
  * 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_LISTNAMESPACESREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_LISTNAMESPACESREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT ListNamespacesRequest : public RpcServiceRequest
-			{
-
-			public:
-				ListNamespacesRequest();
-				~ListNamespacesRequest();
-
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-
-            private:
-				std::string regionId_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_LISTNAMESPACESREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_LISTNAMESPACESREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_LISTNAMESPACESREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT ListNamespacesRequest : public RpcServiceRequest {
+public:
+	ListNamespacesRequest();
+	~ListNamespacesRequest();
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+
+private:
+	std::string regionId_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_LISTNAMESPACESREQUEST_H_

+ 43 - 49
schedulerx2/include/alibabacloud/schedulerx2/model/RevokePermissionRequest.h

@@ -1,60 +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_REVOKEPERMISSIONREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_REVOKEPERMISSIONREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT RevokePermissionRequest : public RpcServiceRequest
-			{
-
-			public:
-				RevokePermissionRequest();
-				~RevokePermissionRequest();
-
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-				std::string getUserId()const;
-				void setUserId(const std::string& userId);
-
-            private:
-				std::string namespaceSource_;
-				std::string regionId_;
-				std::string groupId_;
-				std::string _namespace_;
-				std::string userId_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_REVOKEPERMISSIONREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_REVOKEPERMISSIONREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_REVOKEPERMISSIONREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT RevokePermissionRequest : public RpcServiceRequest {
+public:
+	RevokePermissionRequest();
+	~RevokePermissionRequest();
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+	std::string getUserId() const;
+	void setUserId(const std::string &userId);
+
+private:
+	std::string namespaceSource_;
+	std::string regionId_;
+	std::string groupId_;
+	std::string _namespace_;
+	std::string userId_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_REVOKEPERMISSIONREQUEST_H_

+ 46 - 52
schedulerx2/include/alibabacloud/schedulerx2/model/StopInstanceRequest.h

@@ -1,63 +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_STOPINSTANCEREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_STOPINSTANCEREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT StopInstanceRequest : public RpcServiceRequest
-			{
-
-			public:
-				StopInstanceRequest();
-				~StopInstanceRequest();
-
-				long getJobId()const;
-				void setJobId(long jobId);
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				long getInstanceId()const;
-				void setInstanceId(long instanceId);
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-
-            private:
-				long jobId_;
-				std::string namespaceSource_;
-				long instanceId_;
-				std::string regionId_;
-				std::string groupId_;
-				std::string _namespace_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_STOPINSTANCEREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_STOPINSTANCEREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_STOPINSTANCEREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT StopInstanceRequest : public RpcServiceRequest {
+public:
+	StopInstanceRequest();
+	~StopInstanceRequest();
+	long getJobId() const;
+	void setJobId(long jobId);
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	long getInstanceId() const;
+	void setInstanceId(long instanceId);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+
+private:
+	long jobId_;
+	std::string namespaceSource_;
+	long instanceId_;
+	std::string regionId_;
+	std::string groupId_;
+	std::string _namespace_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_STOPINSTANCEREQUEST_H_

+ 125 - 133
schedulerx2/include/alibabacloud/schedulerx2/model/UpdateJobRequest.h

@@ -1,144 +1,136 @@
 /*
  * 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_UPDATEJOBREQUEST_H_
-#define ALIBABACLOUD_SCHEDULERX2_MODEL_UPDATEJOBREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
-
-namespace AlibabaCloud
-{
-	namespace Schedulerx2
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_SCHEDULERX2_EXPORT UpdateJobRequest : public RpcServiceRequest
-			{
-			public:
-				struct ContactInfo
-				{
-					std::string userPhone;
-					std::string userName;
-				};
-
-			public:
-				UpdateJobRequest();
-				~UpdateJobRequest();
-
-				std::string getNamespaceSource()const;
-				void setNamespaceSource(const std::string& namespaceSource);
-				std::string getDescription()const;
-				void setDescription(const std::string& description);
-				int getAttemptInterval()const;
-				void setAttemptInterval(int attemptInterval);
-				std::string getContent()const;
-				void setContent(const std::string& content);
-				long getTimeout()const;
-				void setTimeout(long timeout);
-				bool getTimeoutKillEnable()const;
-				void setTimeoutKillEnable(bool timeoutKillEnable);
-				long getJobId()const;
-				void setJobId(long jobId);
-				std::string getRegionId()const;
-				void setRegionId(const std::string& regionId);
-				int getPageSize()const;
-				void setPageSize(int pageSize);
-				int getConsumerSize()const;
-				void setConsumerSize(int consumerSize);
-				std::string getJarUrl()const;
-				void setJarUrl(const std::string& jarUrl);
-				std::string getCalendar()const;
-				void setCalendar(const std::string& calendar);
-				bool getFailEnable()const;
-				void setFailEnable(bool failEnable);
-				std::string getSendChannel()const;
-				void setSendChannel(const std::string& sendChannel);
-				int getDataOffset()const;
-				void setDataOffset(int dataOffset);
-				std::string getGroupId()const;
-				void setGroupId(const std::string& groupId);
-				int getTaskMaxAttempt()const;
-				void setTaskMaxAttempt(int taskMaxAttempt);
-				int getMaxAttempt()const;
-				void setMaxAttempt(int maxAttempt);
-				int getDispatcherSize()const;
-				void setDispatcherSize(int dispatcherSize);
-				int getTaskAttemptInterval()const;
-				void setTaskAttemptInterval(int taskAttemptInterval);
-				std::string getExecuteMode()const;
-				void setExecuteMode(const std::string& executeMode);
-				int getQueueSize()const;
-				void setQueueSize(int queueSize);
-				std::string getTimeExpression()const;
-				void setTimeExpression(const std::string& timeExpression);
-				std::string getClassName()const;
-				void setClassName(const std::string& className);
-				bool getTimeoutEnable()const;
-				void setTimeoutEnable(bool timeoutEnable);
-				std::vector<ContactInfo> getContactInfo()const;
-				void setContactInfo(const std::vector<ContactInfo>& contactInfo);
-				std::string getName()const;
-				void setName(const std::string& name);
-				std::string get_Namespace()const;
-				void set_Namespace(const std::string& _namespace);
-				int getMaxConcurrency()const;
-				void setMaxConcurrency(int maxConcurrency);
-				int getTimeType()const;
-				void setTimeType(int timeType);
-				std::string getParameters()const;
-				void setParameters(const std::string& parameters);
-
-            private:
-				std::string namespaceSource_;
-				std::string description_;
-				int attemptInterval_;
-				std::string content_;
-				long timeout_;
-				bool timeoutKillEnable_;
-				long jobId_;
-				std::string regionId_;
-				int pageSize_;
-				int consumerSize_;
-				std::string jarUrl_;
-				std::string calendar_;
-				bool failEnable_;
-				std::string sendChannel_;
-				int dataOffset_;
-				std::string groupId_;
-				int taskMaxAttempt_;
-				int maxAttempt_;
-				int dispatcherSize_;
-				int taskAttemptInterval_;
-				std::string executeMode_;
-				int queueSize_;
-				std::string timeExpression_;
-				std::string className_;
-				bool timeoutEnable_;
-				std::vector<ContactInfo> contactInfo_;
-				std::string name_;
-				std::string _namespace_;
-				int maxConcurrency_;
-				int timeType_;
-				std::string parameters_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_UPDATEJOBREQUEST_H_
+ */
+
+#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_UPDATEJOBREQUEST_H_
+#define ALIBABACLOUD_SCHEDULERX2_MODEL_UPDATEJOBREQUEST_H_
+
+#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Schedulerx2 {
+namespace Model {
+class ALIBABACLOUD_SCHEDULERX2_EXPORT UpdateJobRequest : public RpcServiceRequest {
+public:
+	struct ContactInfo {
+		std::string userPhone;
+		std::string userName;
+	};
+	UpdateJobRequest();
+	~UpdateJobRequest();
+	std::string getNamespaceSource() const;
+	void setNamespaceSource(const std::string &namespaceSource);
+	std::string getDescription() const;
+	void setDescription(const std::string &description);
+	int getAttemptInterval() const;
+	void setAttemptInterval(int attemptInterval);
+	std::string getContent() const;
+	void setContent(const std::string &content);
+	long getTimeout() const;
+	void setTimeout(long timeout);
+	bool getTimeoutKillEnable() const;
+	void setTimeoutKillEnable(bool timeoutKillEnable);
+	long getJobId() const;
+	void setJobId(long jobId);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	int getPageSize() const;
+	void setPageSize(int pageSize);
+	int getConsumerSize() const;
+	void setConsumerSize(int consumerSize);
+	std::string getJarUrl() const;
+	void setJarUrl(const std::string &jarUrl);
+	std::string getCalendar() const;
+	void setCalendar(const std::string &calendar);
+	bool getFailEnable() const;
+	void setFailEnable(bool failEnable);
+	std::string getSendChannel() const;
+	void setSendChannel(const std::string &sendChannel);
+	int getDataOffset() const;
+	void setDataOffset(int dataOffset);
+	std::string getGroupId() const;
+	void setGroupId(const std::string &groupId);
+	int getTaskMaxAttempt() const;
+	void setTaskMaxAttempt(int taskMaxAttempt);
+	int getMaxAttempt() const;
+	void setMaxAttempt(int maxAttempt);
+	int getDispatcherSize() const;
+	void setDispatcherSize(int dispatcherSize);
+	int getTaskAttemptInterval() const;
+	void setTaskAttemptInterval(int taskAttemptInterval);
+	std::string getExecuteMode() const;
+	void setExecuteMode(const std::string &executeMode);
+	int getQueueSize() const;
+	void setQueueSize(int queueSize);
+	std::string getTimeExpression() const;
+	void setTimeExpression(const std::string &timeExpression);
+	std::string getClassName() const;
+	void setClassName(const std::string &className);
+	bool getTimeoutEnable() const;
+	void setTimeoutEnable(bool timeoutEnable);
+	std::vector<ContactInfo> getContactInfo() const;
+	void setContactInfo(const std::vector<ContactInfo> &contactInfo);
+	std::string getName() const;
+	void setName(const std::string &name);
+	std::string get_Namespace() const;
+	void set_Namespace(const std::string &_namespace);
+	int getMaxConcurrency() const;
+	void setMaxConcurrency(int maxConcurrency);
+	int getTimeType() const;
+	void setTimeType(int timeType);
+	std::string getParameters() const;
+	void setParameters(const std::string &parameters);
+
+private:
+	std::string namespaceSource_;
+	std::string description_;
+	int attemptInterval_;
+	std::string content_;
+	long timeout_;
+	bool timeoutKillEnable_;
+	long jobId_;
+	std::string regionId_;
+	int pageSize_;
+	int consumerSize_;
+	std::string jarUrl_;
+	std::string calendar_;
+	bool failEnable_;
+	std::string sendChannel_;
+	int dataOffset_;
+	std::string groupId_;
+	int taskMaxAttempt_;
+	int maxAttempt_;
+	int dispatcherSize_;
+	int taskAttemptInterval_;
+	std::string executeMode_;
+	int queueSize_;
+	std::string timeExpression_;
+	std::string className_;
+	bool timeoutEnable_;
+	std::vector<ContactInfo> contactInfo_;
+	std::string name_;
+	std::string _namespace_;
+	int maxConcurrency_;
+	int timeType_;
+	std::string parameters_;
+};
+} // namespace Model
+} // namespace Schedulerx2
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_UPDATEJOBREQUEST_H_

+ 72 - 0
schedulerx2/src/Schedulerx2Client.cc

@@ -339,6 +339,42 @@ Schedulerx2Client::DescribeRegionsOutcomeCallable Schedulerx2Client::describeReg
 	return task->get_future();
 }
 
+Schedulerx2Client::DesignateWorkersOutcome Schedulerx2Client::designateWorkers(const DesignateWorkersRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return DesignateWorkersOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return DesignateWorkersOutcome(DesignateWorkersResult(outcome.result()));
+	else
+		return DesignateWorkersOutcome(outcome.error());
+}
+
+void Schedulerx2Client::designateWorkersAsync(const DesignateWorkersRequest& request, const DesignateWorkersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, designateWorkers(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+Schedulerx2Client::DesignateWorkersOutcomeCallable Schedulerx2Client::designateWorkersCallable(const DesignateWorkersRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<DesignateWorkersOutcome()>>(
+			[this, request]()
+			{
+			return this->designateWorkers(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 Schedulerx2Client::DisableJobOutcome Schedulerx2Client::disableJob(const DisableJobRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -663,6 +699,42 @@ Schedulerx2Client::GetJobInstanceListOutcomeCallable Schedulerx2Client::getJobIn
 	return task->get_future();
 }
 
+Schedulerx2Client::GetWorkFlowOutcome Schedulerx2Client::getWorkFlow(const GetWorkFlowRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return GetWorkFlowOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return GetWorkFlowOutcome(GetWorkFlowResult(outcome.result()));
+	else
+		return GetWorkFlowOutcome(outcome.error());
+}
+
+void Schedulerx2Client::getWorkFlowAsync(const GetWorkFlowRequest& request, const GetWorkFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, getWorkFlow(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+Schedulerx2Client::GetWorkFlowOutcomeCallable Schedulerx2Client::getWorkFlowCallable(const GetWorkFlowRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<GetWorkFlowOutcome()>>(
+			[this, request]()
+			{
+			return this->getWorkFlow(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 Schedulerx2Client::GrantPermissionOutcome Schedulerx2Client::grantPermission(const GrantPermissionRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();

+ 40 - 55
schedulerx2/src/model/BatchDeleteJobsRequest.cc

@@ -1,86 +1,71 @@
 /*
  * 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 <alibabacloud/schedulerx2/model/BatchDeleteJobsRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::BatchDeleteJobsRequest;
-
-BatchDeleteJobsRequest::BatchDeleteJobsRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "BatchDeleteJobs")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-BatchDeleteJobsRequest::~BatchDeleteJobsRequest()
-{}
-
-std::string BatchDeleteJobsRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+ */
+
+#include <alibabacloud/schedulerx2/model/BatchDeleteJobsRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::BatchDeleteJobsRequest;
+
+BatchDeleteJobsRequest::BatchDeleteJobsRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "BatchDeleteJobs") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+BatchDeleteJobsRequest::~BatchDeleteJobsRequest() {}
+
+std::string BatchDeleteJobsRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void BatchDeleteJobsRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void BatchDeleteJobsRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string BatchDeleteJobsRequest::getGroupId()const
-{
-	return groupId_;
+std::string BatchDeleteJobsRequest::getGroupId() const {
+  return groupId_;
 }
 
-void BatchDeleteJobsRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void BatchDeleteJobsRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::vector<long> BatchDeleteJobsRequest::getJobIdList()const
-{
-	return jobIdList_;
+std::vector<long> BatchDeleteJobsRequest::getJobIdList() const {
+  return jobIdList_;
 }
 
-void BatchDeleteJobsRequest::setJobIdList(const std::vector<long>& jobIdList)
-{
-	jobIdList_ = jobIdList;
-	for(int dep1 = 0; dep1!= jobIdList.size(); dep1++) {
-		setBodyParameter("JobIdList."+ std::to_string(dep1), std::to_string(jobIdList.at(dep1)));
-	}
+void BatchDeleteJobsRequest::setJobIdList(const std::vector<long> &jobIdList) {
+  jobIdList_ = jobIdList;
 }
 
-std::string BatchDeleteJobsRequest::getRegionId()const
-{
-	return regionId_;
+std::string BatchDeleteJobsRequest::getRegionId() const {
+  return regionId_;
 }
 
-void BatchDeleteJobsRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void BatchDeleteJobsRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-std::string BatchDeleteJobsRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string BatchDeleteJobsRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void BatchDeleteJobsRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void BatchDeleteJobsRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 

+ 40 - 55
schedulerx2/src/model/BatchDisableJobsRequest.cc

@@ -1,86 +1,71 @@
 /*
  * 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 <alibabacloud/schedulerx2/model/BatchDisableJobsRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::BatchDisableJobsRequest;
-
-BatchDisableJobsRequest::BatchDisableJobsRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "BatchDisableJobs")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-BatchDisableJobsRequest::~BatchDisableJobsRequest()
-{}
-
-std::string BatchDisableJobsRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+ */
+
+#include <alibabacloud/schedulerx2/model/BatchDisableJobsRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::BatchDisableJobsRequest;
+
+BatchDisableJobsRequest::BatchDisableJobsRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "BatchDisableJobs") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+BatchDisableJobsRequest::~BatchDisableJobsRequest() {}
+
+std::string BatchDisableJobsRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void BatchDisableJobsRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void BatchDisableJobsRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string BatchDisableJobsRequest::getRegionId()const
-{
-	return regionId_;
+std::string BatchDisableJobsRequest::getRegionId() const {
+  return regionId_;
 }
 
-void BatchDisableJobsRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void BatchDisableJobsRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-std::string BatchDisableJobsRequest::getGroupId()const
-{
-	return groupId_;
+std::string BatchDisableJobsRequest::getGroupId() const {
+  return groupId_;
 }
 
-void BatchDisableJobsRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void BatchDisableJobsRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string BatchDisableJobsRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string BatchDisableJobsRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void BatchDisableJobsRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void BatchDisableJobsRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 
-std::vector<long> BatchDisableJobsRequest::getJobIdList()const
-{
-	return jobIdList_;
+std::vector<long> BatchDisableJobsRequest::getJobIdList() const {
+  return jobIdList_;
 }
 
-void BatchDisableJobsRequest::setJobIdList(const std::vector<long>& jobIdList)
-{
-	jobIdList_ = jobIdList;
-	for(int dep1 = 0; dep1!= jobIdList.size(); dep1++) {
-		setBodyParameter("JobIdList."+ std::to_string(dep1), std::to_string(jobIdList.at(dep1)));
-	}
+void BatchDisableJobsRequest::setJobIdList(const std::vector<long> &jobIdList) {
+  jobIdList_ = jobIdList;
 }
 

+ 2 - 2
schedulerx2/src/model/BatchDisableJobsResult.cc

@@ -41,10 +41,10 @@ void BatchDisableJobsResult::parse(const std::string &payload)
 	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["Success"].isNull())
+		success_ = value["Success"].asString() == "true";
 
 }
 

+ 40 - 55
schedulerx2/src/model/BatchEnableJobsRequest.cc

@@ -1,86 +1,71 @@
 /*
  * 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 <alibabacloud/schedulerx2/model/BatchEnableJobsRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::BatchEnableJobsRequest;
-
-BatchEnableJobsRequest::BatchEnableJobsRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "BatchEnableJobs")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-BatchEnableJobsRequest::~BatchEnableJobsRequest()
-{}
-
-std::string BatchEnableJobsRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+ */
+
+#include <alibabacloud/schedulerx2/model/BatchEnableJobsRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::BatchEnableJobsRequest;
+
+BatchEnableJobsRequest::BatchEnableJobsRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "BatchEnableJobs") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+BatchEnableJobsRequest::~BatchEnableJobsRequest() {}
+
+std::string BatchEnableJobsRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void BatchEnableJobsRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void BatchEnableJobsRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string BatchEnableJobsRequest::getRegionId()const
-{
-	return regionId_;
+std::string BatchEnableJobsRequest::getRegionId() const {
+  return regionId_;
 }
 
-void BatchEnableJobsRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void BatchEnableJobsRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-std::string BatchEnableJobsRequest::getGroupId()const
-{
-	return groupId_;
+std::string BatchEnableJobsRequest::getGroupId() const {
+  return groupId_;
 }
 
-void BatchEnableJobsRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void BatchEnableJobsRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string BatchEnableJobsRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string BatchEnableJobsRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void BatchEnableJobsRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void BatchEnableJobsRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 
-std::vector<long> BatchEnableJobsRequest::getJobIdList()const
-{
-	return jobIdList_;
+std::vector<long> BatchEnableJobsRequest::getJobIdList() const {
+  return jobIdList_;
 }
 
-void BatchEnableJobsRequest::setJobIdList(const std::vector<long>& jobIdList)
-{
-	jobIdList_ = jobIdList;
-	for(int dep1 = 0; dep1!= jobIdList.size(); dep1++) {
-		setBodyParameter("JobIdList."+ std::to_string(dep1), std::to_string(jobIdList.at(dep1)));
-	}
+void BatchEnableJobsRequest::setJobIdList(const std::vector<long> &jobIdList) {
+  jobIdList_ = jobIdList;
 }
 

+ 2 - 2
schedulerx2/src/model/BatchEnableJobsResult.cc

@@ -41,10 +41,10 @@ void BatchEnableJobsResult::parse(const std::string &payload)
 	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["Success"].isNull())
+		success_ = value["Success"].asString() == "true";
 
 }
 

+ 66 - 88
schedulerx2/src/model/CreateAppGroupRequest.cc

@@ -1,139 +1,117 @@
 /*
  * 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 <alibabacloud/schedulerx2/model/CreateAppGroupRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::CreateAppGroupRequest;
-
-CreateAppGroupRequest::CreateAppGroupRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "CreateAppGroup")
-{
-	setMethod(HttpRequest::Method::Get);
-}
-
-CreateAppGroupRequest::~CreateAppGroupRequest()
-{}
-
-int CreateAppGroupRequest::getMaxJobs()const
-{
-	return maxJobs_;
+ */
+
+#include <alibabacloud/schedulerx2/model/CreateAppGroupRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::CreateAppGroupRequest;
+
+CreateAppGroupRequest::CreateAppGroupRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "CreateAppGroup") {
+  setMethod(HttpRequest::Method::Get);
+}
+
+CreateAppGroupRequest::~CreateAppGroupRequest() {}
+
+int CreateAppGroupRequest::getMaxJobs() const {
+  return maxJobs_;
 }
 
-void CreateAppGroupRequest::setMaxJobs(int maxJobs)
-{
-	maxJobs_ = maxJobs;
-	setParameter("MaxJobs", std::to_string(maxJobs));
+void CreateAppGroupRequest::setMaxJobs(int maxJobs) {
+  maxJobs_ = maxJobs;
+  setParameter(std::string("MaxJobs"), std::to_string(maxJobs));
 }
 
-std::string CreateAppGroupRequest::getNamespaceName()const
-{
-	return namespaceName_;
+std::string CreateAppGroupRequest::getNamespaceName() const {
+  return namespaceName_;
 }
 
-void CreateAppGroupRequest::setNamespaceName(const std::string& namespaceName)
-{
-	namespaceName_ = namespaceName;
-	setParameter("NamespaceName", namespaceName);
+void CreateAppGroupRequest::setNamespaceName(const std::string &namespaceName) {
+  namespaceName_ = namespaceName;
+  setParameter(std::string("NamespaceName"), namespaceName);
 }
 
-std::string CreateAppGroupRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+std::string CreateAppGroupRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void CreateAppGroupRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void CreateAppGroupRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string CreateAppGroupRequest::getMetricsThresholdJson()const
-{
-	return metricsThresholdJson_;
+std::string CreateAppGroupRequest::getMetricsThresholdJson() const {
+  return metricsThresholdJson_;
 }
 
-void CreateAppGroupRequest::setMetricsThresholdJson(const std::string& metricsThresholdJson)
-{
-	metricsThresholdJson_ = metricsThresholdJson;
-	setParameter("MetricsThresholdJson", metricsThresholdJson);
+void CreateAppGroupRequest::setMetricsThresholdJson(const std::string &metricsThresholdJson) {
+  metricsThresholdJson_ = metricsThresholdJson;
+  setParameter(std::string("MetricsThresholdJson"), metricsThresholdJson);
 }
 
-std::string CreateAppGroupRequest::getGroupId()const
-{
-	return groupId_;
+std::string CreateAppGroupRequest::getGroupId() const {
+  return groupId_;
 }
 
-void CreateAppGroupRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void CreateAppGroupRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string CreateAppGroupRequest::getDescription()const
-{
-	return description_;
+std::string CreateAppGroupRequest::getDescription() const {
+  return description_;
 }
 
-void CreateAppGroupRequest::setDescription(const std::string& description)
-{
-	description_ = description;
-	setParameter("Description", description);
+void CreateAppGroupRequest::setDescription(const std::string &description) {
+  description_ = description;
+  setParameter(std::string("Description"), description);
 }
 
-std::string CreateAppGroupRequest::getAppName()const
-{
-	return appName_;
+std::string CreateAppGroupRequest::getAppName() const {
+  return appName_;
 }
 
-void CreateAppGroupRequest::setAppName(const std::string& appName)
-{
-	appName_ = appName;
-	setParameter("AppName", appName);
+void CreateAppGroupRequest::setAppName(const std::string &appName) {
+  appName_ = appName;
+  setParameter(std::string("AppName"), appName);
 }
 
-std::string CreateAppGroupRequest::getRegionId()const
-{
-	return regionId_;
+std::string CreateAppGroupRequest::getRegionId() const {
+  return regionId_;
 }
 
-void CreateAppGroupRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void CreateAppGroupRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-std::string CreateAppGroupRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string CreateAppGroupRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void CreateAppGroupRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void CreateAppGroupRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 
-std::string CreateAppGroupRequest::getAlarmJson()const
-{
-	return alarmJson_;
+std::string CreateAppGroupRequest::getAlarmJson() const {
+  return alarmJson_;
 }
 
-void CreateAppGroupRequest::setAlarmJson(const std::string& alarmJson)
-{
-	alarmJson_ = alarmJson;
-	setParameter("AlarmJson", alarmJson);
+void CreateAppGroupRequest::setAlarmJson(const std::string &alarmJson) {
+  alarmJson_ = alarmJson;
+  setParameter(std::string("AlarmJson"), alarmJson);
 }
 

+ 2 - 2
schedulerx2/src/model/CreateAppGroupResult.cc

@@ -44,10 +44,10 @@ void CreateAppGroupResult::parse(const std::string &payload)
 		data_.appGroupId = std::stol(dataNode["AppGroupId"].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["Success"].isNull())
+		success_ = value["Success"].asString() == "true";
 
 }
 

+ 176 - 240
schedulerx2/src/model/CreateJobRequest.cc

@@ -1,375 +1,311 @@
 /*
  * 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 <alibabacloud/schedulerx2/model/CreateJobRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::CreateJobRequest;
-
-CreateJobRequest::CreateJobRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "CreateJob")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-CreateJobRequest::~CreateJobRequest()
-{}
-
-std::string CreateJobRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+ */
+
+#include <alibabacloud/schedulerx2/model/CreateJobRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::CreateJobRequest;
+
+CreateJobRequest::CreateJobRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "CreateJob") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+CreateJobRequest::~CreateJobRequest() {}
+
+std::string CreateJobRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void CreateJobRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setBodyParameter("NamespaceSource", namespaceSource);
+void CreateJobRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setBodyParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string CreateJobRequest::getDescription()const
-{
-	return description_;
+std::string CreateJobRequest::getDescription() const {
+  return description_;
 }
 
-void CreateJobRequest::setDescription(const std::string& description)
-{
-	description_ = description;
-	setBodyParameter("Description", description);
+void CreateJobRequest::setDescription(const std::string &description) {
+  description_ = description;
+  setBodyParameter(std::string("Description"), description);
 }
 
-int CreateJobRequest::getAttemptInterval()const
-{
-	return attemptInterval_;
+int CreateJobRequest::getAttemptInterval() const {
+  return attemptInterval_;
 }
 
-void CreateJobRequest::setAttemptInterval(int attemptInterval)
-{
-	attemptInterval_ = attemptInterval;
-	setBodyParameter("AttemptInterval", std::to_string(attemptInterval));
+void CreateJobRequest::setAttemptInterval(int attemptInterval) {
+  attemptInterval_ = attemptInterval;
+  setBodyParameter(std::string("AttemptInterval"), std::to_string(attemptInterval));
 }
 
-std::string CreateJobRequest::getContent()const
-{
-	return content_;
+std::string CreateJobRequest::getContent() const {
+  return content_;
 }
 
-void CreateJobRequest::setContent(const std::string& content)
-{
-	content_ = content;
-	setBodyParameter("Content", content);
+void CreateJobRequest::setContent(const std::string &content) {
+  content_ = content;
+  setBodyParameter(std::string("Content"), content);
 }
 
-long CreateJobRequest::getTimeout()const
-{
-	return timeout_;
+long CreateJobRequest::getTimeout() const {
+  return timeout_;
 }
 
-void CreateJobRequest::setTimeout(long timeout)
-{
-	timeout_ = timeout;
-	setBodyParameter("Timeout", std::to_string(timeout));
+void CreateJobRequest::setTimeout(long timeout) {
+  timeout_ = timeout;
+  setBodyParameter(std::string("Timeout"), std::to_string(timeout));
 }
 
-bool CreateJobRequest::getTimeoutKillEnable()const
-{
-	return timeoutKillEnable_;
+bool CreateJobRequest::getTimeoutKillEnable() const {
+  return timeoutKillEnable_;
 }
 
-void CreateJobRequest::setTimeoutKillEnable(bool timeoutKillEnable)
-{
-	timeoutKillEnable_ = timeoutKillEnable;
-	setBodyParameter("TimeoutKillEnable", timeoutKillEnable ? "true" : "false");
+void CreateJobRequest::setTimeoutKillEnable(bool timeoutKillEnable) {
+  timeoutKillEnable_ = timeoutKillEnable;
+  setBodyParameter(std::string("TimeoutKillEnable"), timeoutKillEnable ? "true" : "false");
 }
 
-std::string CreateJobRequest::getRegionId()const
-{
-	return regionId_;
+std::string CreateJobRequest::getRegionId() const {
+  return regionId_;
 }
 
-void CreateJobRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void CreateJobRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-int CreateJobRequest::getPageSize()const
-{
-	return pageSize_;
+int CreateJobRequest::getPageSize() const {
+  return pageSize_;
 }
 
-void CreateJobRequest::setPageSize(int pageSize)
-{
-	pageSize_ = pageSize;
-	setBodyParameter("PageSize", std::to_string(pageSize));
+void CreateJobRequest::setPageSize(int pageSize) {
+  pageSize_ = pageSize;
+  setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
 }
 
-int CreateJobRequest::getConsumerSize()const
-{
-	return consumerSize_;
+int CreateJobRequest::getConsumerSize() const {
+  return consumerSize_;
 }
 
-void CreateJobRequest::setConsumerSize(int consumerSize)
-{
-	consumerSize_ = consumerSize;
-	setBodyParameter("ConsumerSize", std::to_string(consumerSize));
+void CreateJobRequest::setConsumerSize(int consumerSize) {
+  consumerSize_ = consumerSize;
+  setBodyParameter(std::string("ConsumerSize"), std::to_string(consumerSize));
 }
 
-std::string CreateJobRequest::getJarUrl()const
-{
-	return jarUrl_;
+std::string CreateJobRequest::getJarUrl() const {
+  return jarUrl_;
 }
 
-void CreateJobRequest::setJarUrl(const std::string& jarUrl)
-{
-	jarUrl_ = jarUrl;
-	setBodyParameter("JarUrl", jarUrl);
+void CreateJobRequest::setJarUrl(const std::string &jarUrl) {
+  jarUrl_ = jarUrl;
+  setBodyParameter(std::string("JarUrl"), jarUrl);
 }
 
-std::string CreateJobRequest::getCalendar()const
-{
-	return calendar_;
+std::string CreateJobRequest::getCalendar() const {
+  return calendar_;
 }
 
-void CreateJobRequest::setCalendar(const std::string& calendar)
-{
-	calendar_ = calendar;
-	setBodyParameter("Calendar", calendar);
+void CreateJobRequest::setCalendar(const std::string &calendar) {
+  calendar_ = calendar;
+  setBodyParameter(std::string("Calendar"), calendar);
 }
 
-bool CreateJobRequest::getFailEnable()const
-{
-	return failEnable_;
+bool CreateJobRequest::getFailEnable() const {
+  return failEnable_;
 }
 
-void CreateJobRequest::setFailEnable(bool failEnable)
-{
-	failEnable_ = failEnable;
-	setBodyParameter("FailEnable", failEnable ? "true" : "false");
+void CreateJobRequest::setFailEnable(bool failEnable) {
+  failEnable_ = failEnable;
+  setBodyParameter(std::string("FailEnable"), failEnable ? "true" : "false");
 }
 
-std::string CreateJobRequest::getSendChannel()const
-{
-	return sendChannel_;
+std::string CreateJobRequest::getSendChannel() const {
+  return sendChannel_;
 }
 
-void CreateJobRequest::setSendChannel(const std::string& sendChannel)
-{
-	sendChannel_ = sendChannel;
-	setBodyParameter("SendChannel", sendChannel);
+void CreateJobRequest::setSendChannel(const std::string &sendChannel) {
+  sendChannel_ = sendChannel;
+  setBodyParameter(std::string("SendChannel"), sendChannel);
 }
 
-int CreateJobRequest::getDataOffset()const
-{
-	return dataOffset_;
+int CreateJobRequest::getDataOffset() const {
+  return dataOffset_;
 }
 
-void CreateJobRequest::setDataOffset(int dataOffset)
-{
-	dataOffset_ = dataOffset;
-	setBodyParameter("DataOffset", std::to_string(dataOffset));
+void CreateJobRequest::setDataOffset(int dataOffset) {
+  dataOffset_ = dataOffset;
+  setBodyParameter(std::string("DataOffset"), std::to_string(dataOffset));
 }
 
-std::string CreateJobRequest::getGroupId()const
-{
-	return groupId_;
+std::string CreateJobRequest::getGroupId() const {
+  return groupId_;
 }
 
-void CreateJobRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setBodyParameter("GroupId", groupId);
+void CreateJobRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setBodyParameter(std::string("GroupId"), groupId);
 }
 
-int CreateJobRequest::getTaskMaxAttempt()const
-{
-	return taskMaxAttempt_;
+int CreateJobRequest::getTaskMaxAttempt() const {
+  return taskMaxAttempt_;
 }
 
-void CreateJobRequest::setTaskMaxAttempt(int taskMaxAttempt)
-{
-	taskMaxAttempt_ = taskMaxAttempt;
-	setBodyParameter("TaskMaxAttempt", std::to_string(taskMaxAttempt));
+void CreateJobRequest::setTaskMaxAttempt(int taskMaxAttempt) {
+  taskMaxAttempt_ = taskMaxAttempt;
+  setBodyParameter(std::string("TaskMaxAttempt"), std::to_string(taskMaxAttempt));
 }
 
-int CreateJobRequest::getMaxAttempt()const
-{
-	return maxAttempt_;
+int CreateJobRequest::getMaxAttempt() const {
+  return maxAttempt_;
 }
 
-void CreateJobRequest::setMaxAttempt(int maxAttempt)
-{
-	maxAttempt_ = maxAttempt;
-	setBodyParameter("MaxAttempt", std::to_string(maxAttempt));
+void CreateJobRequest::setMaxAttempt(int maxAttempt) {
+  maxAttempt_ = maxAttempt;
+  setBodyParameter(std::string("MaxAttempt"), std::to_string(maxAttempt));
 }
 
-int CreateJobRequest::getDispatcherSize()const
-{
-	return dispatcherSize_;
+int CreateJobRequest::getDispatcherSize() const {
+  return dispatcherSize_;
 }
 
-void CreateJobRequest::setDispatcherSize(int dispatcherSize)
-{
-	dispatcherSize_ = dispatcherSize;
-	setBodyParameter("DispatcherSize", std::to_string(dispatcherSize));
+void CreateJobRequest::setDispatcherSize(int dispatcherSize) {
+  dispatcherSize_ = dispatcherSize;
+  setBodyParameter(std::string("DispatcherSize"), std::to_string(dispatcherSize));
 }
 
-std::string CreateJobRequest::getJobType()const
-{
-	return jobType_;
+std::string CreateJobRequest::getJobType() const {
+  return jobType_;
 }
 
-void CreateJobRequest::setJobType(const std::string& jobType)
-{
-	jobType_ = jobType;
-	setBodyParameter("JobType", jobType);
+void CreateJobRequest::setJobType(const std::string &jobType) {
+  jobType_ = jobType;
+  setBodyParameter(std::string("JobType"), jobType);
 }
 
-int CreateJobRequest::getTaskAttemptInterval()const
-{
-	return taskAttemptInterval_;
+int CreateJobRequest::getTaskAttemptInterval() const {
+  return taskAttemptInterval_;
 }
 
-void CreateJobRequest::setTaskAttemptInterval(int taskAttemptInterval)
-{
-	taskAttemptInterval_ = taskAttemptInterval;
-	setBodyParameter("TaskAttemptInterval", std::to_string(taskAttemptInterval));
+void CreateJobRequest::setTaskAttemptInterval(int taskAttemptInterval) {
+  taskAttemptInterval_ = taskAttemptInterval;
+  setBodyParameter(std::string("TaskAttemptInterval"), std::to_string(taskAttemptInterval));
 }
 
-std::string CreateJobRequest::getExecuteMode()const
-{
-	return executeMode_;
+std::string CreateJobRequest::getExecuteMode() const {
+  return executeMode_;
 }
 
-void CreateJobRequest::setExecuteMode(const std::string& executeMode)
-{
-	executeMode_ = executeMode;
-	setBodyParameter("ExecuteMode", executeMode);
+void CreateJobRequest::setExecuteMode(const std::string &executeMode) {
+  executeMode_ = executeMode;
+  setBodyParameter(std::string("ExecuteMode"), executeMode);
 }
 
-int CreateJobRequest::getQueueSize()const
-{
-	return queueSize_;
+int CreateJobRequest::getQueueSize() const {
+  return queueSize_;
 }
 
-void CreateJobRequest::setQueueSize(int queueSize)
-{
-	queueSize_ = queueSize;
-	setBodyParameter("QueueSize", std::to_string(queueSize));
+void CreateJobRequest::setQueueSize(int queueSize) {
+  queueSize_ = queueSize;
+  setBodyParameter(std::string("QueueSize"), std::to_string(queueSize));
 }
 
-std::string CreateJobRequest::getTimeExpression()const
-{
-	return timeExpression_;
+std::string CreateJobRequest::getTimeExpression() const {
+  return timeExpression_;
 }
 
-void CreateJobRequest::setTimeExpression(const std::string& timeExpression)
-{
-	timeExpression_ = timeExpression;
-	setBodyParameter("TimeExpression", timeExpression);
+void CreateJobRequest::setTimeExpression(const std::string &timeExpression) {
+  timeExpression_ = timeExpression;
+  setBodyParameter(std::string("TimeExpression"), timeExpression);
 }
 
-std::string CreateJobRequest::getClassName()const
-{
-	return className_;
+std::string CreateJobRequest::getClassName() const {
+  return className_;
 }
 
-void CreateJobRequest::setClassName(const std::string& className)
-{
-	className_ = className;
-	setBodyParameter("ClassName", className);
+void CreateJobRequest::setClassName(const std::string &className) {
+  className_ = className;
+  setBodyParameter(std::string("ClassName"), className);
 }
 
-bool CreateJobRequest::getTimeoutEnable()const
-{
-	return timeoutEnable_;
+bool CreateJobRequest::getTimeoutEnable() const {
+  return timeoutEnable_;
 }
 
-void CreateJobRequest::setTimeoutEnable(bool timeoutEnable)
-{
-	timeoutEnable_ = timeoutEnable;
-	setBodyParameter("TimeoutEnable", timeoutEnable ? "true" : "false");
+void CreateJobRequest::setTimeoutEnable(bool timeoutEnable) {
+  timeoutEnable_ = timeoutEnable;
+  setBodyParameter(std::string("TimeoutEnable"), timeoutEnable ? "true" : "false");
 }
 
-std::vector<CreateJobRequest::ContactInfo> CreateJobRequest::getContactInfo()const
-{
-	return contactInfo_;
+std::vector<CreateJobRequest::ContactInfo> CreateJobRequest::getContactInfo() const {
+  return contactInfo_;
 }
 
-void CreateJobRequest::setContactInfo(const std::vector<ContactInfo>& contactInfo)
-{
-	contactInfo_ = contactInfo;
-	for(int dep1 = 0; dep1!= contactInfo.size(); dep1++) {
-		auto contactInfoObj = contactInfo.at(dep1);
-		std::string contactInfoObjStr = "ContactInfo." + std::to_string(dep1 + 1);
-		setParameter(contactInfoObjStr + ".UserPhone", contactInfoObj.userPhone);
-		setParameter(contactInfoObjStr + ".UserName", contactInfoObj.userName);
-	}
+void CreateJobRequest::setContactInfo(const std::vector<CreateJobRequest::ContactInfo> &contactInfo) {
+  contactInfo_ = contactInfo;
+  for(int dep1 = 0; dep1 != contactInfo.size(); dep1++) {
+  auto contactInfoObj = contactInfo.at(dep1);
+  std::string contactInfoObjStr = std::string("ContactInfo") + "." + std::to_string(dep1 + 1);
+    setBodyParameter(contactInfoObjStr + ".UserPhone", contactInfoObj.userPhone);
+    setBodyParameter(contactInfoObjStr + ".UserName", contactInfoObj.userName);
+  }
 }
 
-std::string CreateJobRequest::getName()const
-{
-	return name_;
+std::string CreateJobRequest::getName() const {
+  return name_;
 }
 
-void CreateJobRequest::setName(const std::string& name)
-{
-	name_ = name;
-	setBodyParameter("Name", name);
+void CreateJobRequest::setName(const std::string &name) {
+  name_ = name;
+  setBodyParameter(std::string("Name"), name);
 }
 
-std::string CreateJobRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string CreateJobRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void CreateJobRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setBodyParameter("_Namespace", _namespace);
+void CreateJobRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setBodyParameter(std::string("Namespace"), _namespace);
 }
 
-int CreateJobRequest::getMaxConcurrency()const
-{
-	return maxConcurrency_;
+int CreateJobRequest::getMaxConcurrency() const {
+  return maxConcurrency_;
 }
 
-void CreateJobRequest::setMaxConcurrency(int maxConcurrency)
-{
-	maxConcurrency_ = maxConcurrency;
-	setBodyParameter("MaxConcurrency", std::to_string(maxConcurrency));
+void CreateJobRequest::setMaxConcurrency(int maxConcurrency) {
+  maxConcurrency_ = maxConcurrency;
+  setBodyParameter(std::string("MaxConcurrency"), std::to_string(maxConcurrency));
 }
 
-int CreateJobRequest::getTimeType()const
-{
-	return timeType_;
+int CreateJobRequest::getTimeType() const {
+  return timeType_;
 }
 
-void CreateJobRequest::setTimeType(int timeType)
-{
-	timeType_ = timeType;
-	setBodyParameter("TimeType", std::to_string(timeType));
+void CreateJobRequest::setTimeType(int timeType) {
+  timeType_ = timeType;
+  setBodyParameter(std::string("TimeType"), std::to_string(timeType));
 }
 
-std::string CreateJobRequest::getParameters()const
-{
-	return parameters_;
+std::string CreateJobRequest::getParameters() const {
+  return parameters_;
 }
 
-void CreateJobRequest::setParameters(const std::string& parameters)
-{
-	parameters_ = parameters;
-	setBodyParameter("Parameters", parameters);
+void CreateJobRequest::setParameters(const std::string &parameters) {
+  parameters_ = parameters;
+  setBodyParameter(std::string("Parameters"), parameters);
 }
 

+ 2 - 2
schedulerx2/src/model/CreateJobResult.cc

@@ -44,10 +44,10 @@ void CreateJobResult::parse(const std::string &payload)
 		data_.jobId = std::stol(dataNode["JobId"].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["Success"].isNull())
+		success_ = value["Success"].asString() == "true";
 
 }
 

+ 41 - 53
schedulerx2/src/model/DeleteJobRequest.cc

@@ -1,84 +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 <alibabacloud/schedulerx2/model/DeleteJobRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::DeleteJobRequest;
-
-DeleteJobRequest::DeleteJobRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "DeleteJob")
-{
-	setMethod(HttpRequest::Method::Get);
-}
-
-DeleteJobRequest::~DeleteJobRequest()
-{}
-
-std::string DeleteJobRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+ */
+
+#include <alibabacloud/schedulerx2/model/DeleteJobRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::DeleteJobRequest;
+
+DeleteJobRequest::DeleteJobRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "DeleteJob") {
+  setMethod(HttpRequest::Method::Get);
+}
+
+DeleteJobRequest::~DeleteJobRequest() {}
+
+std::string DeleteJobRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void DeleteJobRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void DeleteJobRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string DeleteJobRequest::getGroupId()const
-{
-	return groupId_;
+std::string DeleteJobRequest::getGroupId() const {
+  return groupId_;
 }
 
-void DeleteJobRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void DeleteJobRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-long DeleteJobRequest::getJobId()const
-{
-	return jobId_;
+long DeleteJobRequest::getJobId() const {
+  return jobId_;
 }
 
-void DeleteJobRequest::setJobId(long jobId)
-{
-	jobId_ = jobId;
-	setParameter("JobId", std::to_string(jobId));
+void DeleteJobRequest::setJobId(long jobId) {
+  jobId_ = jobId;
+  setParameter(std::string("JobId"), std::to_string(jobId));
 }
 
-std::string DeleteJobRequest::getRegionId()const
-{
-	return regionId_;
+std::string DeleteJobRequest::getRegionId() const {
+  return regionId_;
 }
 
-void DeleteJobRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void DeleteJobRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-std::string DeleteJobRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string DeleteJobRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void DeleteJobRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void DeleteJobRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 

+ 41 - 53
schedulerx2/src/model/DeleteWorkflowRequest.cc

@@ -1,84 +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 <alibabacloud/schedulerx2/model/DeleteWorkflowRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::DeleteWorkflowRequest;
-
-DeleteWorkflowRequest::DeleteWorkflowRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "DeleteWorkflow")
-{
-	setMethod(HttpRequest::Method::Get);
-}
-
-DeleteWorkflowRequest::~DeleteWorkflowRequest()
-{}
-
-std::string DeleteWorkflowRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+ */
+
+#include <alibabacloud/schedulerx2/model/DeleteWorkflowRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::DeleteWorkflowRequest;
+
+DeleteWorkflowRequest::DeleteWorkflowRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "DeleteWorkflow") {
+  setMethod(HttpRequest::Method::Get);
+}
+
+DeleteWorkflowRequest::~DeleteWorkflowRequest() {}
+
+std::string DeleteWorkflowRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void DeleteWorkflowRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void DeleteWorkflowRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string DeleteWorkflowRequest::getRegionId()const
-{
-	return regionId_;
+std::string DeleteWorkflowRequest::getRegionId() const {
+  return regionId_;
 }
 
-void DeleteWorkflowRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void DeleteWorkflowRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-std::string DeleteWorkflowRequest::getGroupId()const
-{
-	return groupId_;
+std::string DeleteWorkflowRequest::getGroupId() const {
+  return groupId_;
 }
 
-void DeleteWorkflowRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void DeleteWorkflowRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string DeleteWorkflowRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string DeleteWorkflowRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void DeleteWorkflowRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void DeleteWorkflowRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 
-long DeleteWorkflowRequest::getWorkflowId()const
-{
-	return workflowId_;
+long DeleteWorkflowRequest::getWorkflowId() const {
+  return workflowId_;
 }
 
-void DeleteWorkflowRequest::setWorkflowId(long workflowId)
-{
-	workflowId_ = workflowId;
-	setParameter("WorkflowId", std::to_string(workflowId));
+void DeleteWorkflowRequest::setWorkflowId(long workflowId) {
+  workflowId_ = workflowId;
+  setParameter(std::string("WorkflowId"), std::to_string(workflowId));
 }
 

+ 2 - 2
schedulerx2/src/model/DeleteWorkflowResult.cc

@@ -41,10 +41,10 @@ void DeleteWorkflowResult::parse(const std::string &payload)
 	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["Success"].isNull())
+		success_ = value["Success"].asString() == "true";
 
 }
 

+ 16 - 18
schedulerx2/src/model/DescribeRegionsRequest.cc

@@ -1,29 +1,27 @@
 /*
  * 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 <alibabacloud/schedulerx2/model/DescribeRegionsRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::DescribeRegionsRequest;
-
-DescribeRegionsRequest::DescribeRegionsRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "DescribeRegions")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-DescribeRegionsRequest::~DescribeRegionsRequest()
-{}
-
+ */
+
+#include <alibabacloud/schedulerx2/model/DescribeRegionsRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::DescribeRegionsRequest;
+
+DescribeRegionsRequest::DescribeRegionsRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "DescribeRegions") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+DescribeRegionsRequest::~DescribeRegionsRequest() {}
+

+ 4 - 4
schedulerx2/src/model/DescribeRegionsResult.cc

@@ -43,12 +43,12 @@ void DescribeRegionsResult::parse(const std::string &payload)
 	for (auto valueRegionsRegion : allRegionsNode)
 	{
 		Region regionsObject;
-		if(!valueRegionsRegion["RegionId"].isNull())
-			regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
-		if(!valueRegionsRegion["LocalName"].isNull())
-			regionsObject.localName = valueRegionsRegion["LocalName"].asString();
 		if(!valueRegionsRegion["RegionEndpoint"].isNull())
 			regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
+		if(!valueRegionsRegion["LocalName"].isNull())
+			regionsObject.localName = valueRegionsRegion["LocalName"].asString();
+		if(!valueRegionsRegion["RegionId"].isNull())
+			regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
 		regions_.push_back(regionsObject);
 	}
 	if(!value["Code"].isNull())

+ 108 - 0
schedulerx2/src/model/DesignateWorkersRequest.cc

@@ -0,0 +1,108 @@
+/*
+ * 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 <alibabacloud/schedulerx2/model/DesignateWorkersRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::DesignateWorkersRequest;
+
+DesignateWorkersRequest::DesignateWorkersRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "DesignateWorkers") {
+  setMethod(HttpRequest::Method::Get);
+}
+
+DesignateWorkersRequest::~DesignateWorkersRequest() {}
+
+std::string DesignateWorkersRequest::getNamespaceSource() const {
+  return namespaceSource_;
+}
+
+void DesignateWorkersRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
+}
+
+std::string DesignateWorkersRequest::getGroupId() const {
+  return groupId_;
+}
+
+void DesignateWorkersRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
+}
+
+bool DesignateWorkersRequest::getTransferable() const {
+  return transferable_;
+}
+
+void DesignateWorkersRequest::setTransferable(bool transferable) {
+  transferable_ = transferable;
+  setParameter(std::string("Transferable"), transferable ? "true" : "false");
+}
+
+std::string DesignateWorkersRequest::getLabels() const {
+  return labels_;
+}
+
+void DesignateWorkersRequest::setLabels(const std::string &labels) {
+  labels_ = labels;
+  setParameter(std::string("Labels"), labels);
+}
+
+int DesignateWorkersRequest::getDesignateType() const {
+  return designateType_;
+}
+
+void DesignateWorkersRequest::setDesignateType(int designateType) {
+  designateType_ = designateType;
+  setParameter(std::string("DesignateType"), std::to_string(designateType));
+}
+
+long DesignateWorkersRequest::getJobId() const {
+  return jobId_;
+}
+
+void DesignateWorkersRequest::setJobId(long jobId) {
+  jobId_ = jobId;
+  setParameter(std::string("JobId"), std::to_string(jobId));
+}
+
+std::string DesignateWorkersRequest::getRegionId() const {
+  return regionId_;
+}
+
+void DesignateWorkersRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
+}
+
+std::string DesignateWorkersRequest::get_Namespace() const {
+  return _namespace_;
+}
+
+void DesignateWorkersRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
+}
+
+std::string DesignateWorkersRequest::getWorkers() const {
+  return workers_;
+}
+
+void DesignateWorkersRequest::setWorkers(const std::string &workers) {
+  workers_ = workers;
+  setParameter(std::string("Workers"), workers);
+}
+

+ 65 - 0
schedulerx2/src/model/DesignateWorkersResult.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 <alibabacloud/schedulerx2/model/DesignateWorkersResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Schedulerx2;
+using namespace AlibabaCloud::Schedulerx2::Model;
+
+DesignateWorkersResult::DesignateWorkersResult() :
+	ServiceResult()
+{}
+
+DesignateWorkersResult::DesignateWorkersResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+DesignateWorkersResult::~DesignateWorkersResult()
+{}
+
+void DesignateWorkersResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	if(!value["Message"].isNull())
+		message_ = value["Message"].asString();
+	if(!value["Code"].isNull())
+		code_ = std::stoi(value["Code"].asString());
+	if(!value["Success"].isNull())
+		success_ = value["Success"].asString() == "true";
+
+}
+
+std::string DesignateWorkersResult::getMessage()const
+{
+	return message_;
+}
+
+int DesignateWorkersResult::getCode()const
+{
+	return code_;
+}
+
+bool DesignateWorkersResult::getSuccess()const
+{
+	return success_;
+}
+

+ 41 - 53
schedulerx2/src/model/DisableJobRequest.cc

@@ -1,84 +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 <alibabacloud/schedulerx2/model/DisableJobRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::DisableJobRequest;
-
-DisableJobRequest::DisableJobRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "DisableJob")
-{
-	setMethod(HttpRequest::Method::Get);
-}
-
-DisableJobRequest::~DisableJobRequest()
-{}
-
-long DisableJobRequest::getJobId()const
-{
-	return jobId_;
+ */
+
+#include <alibabacloud/schedulerx2/model/DisableJobRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::DisableJobRequest;
+
+DisableJobRequest::DisableJobRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "DisableJob") {
+  setMethod(HttpRequest::Method::Get);
+}
+
+DisableJobRequest::~DisableJobRequest() {}
+
+long DisableJobRequest::getJobId() const {
+  return jobId_;
 }
 
-void DisableJobRequest::setJobId(long jobId)
-{
-	jobId_ = jobId;
-	setParameter("JobId", std::to_string(jobId));
+void DisableJobRequest::setJobId(long jobId) {
+  jobId_ = jobId;
+  setParameter(std::string("JobId"), std::to_string(jobId));
 }
 
-std::string DisableJobRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+std::string DisableJobRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void DisableJobRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void DisableJobRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string DisableJobRequest::getRegionId()const
-{
-	return regionId_;
+std::string DisableJobRequest::getRegionId() const {
+  return regionId_;
 }
 
-void DisableJobRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void DisableJobRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-std::string DisableJobRequest::getGroupId()const
-{
-	return groupId_;
+std::string DisableJobRequest::getGroupId() const {
+  return groupId_;
 }
 
-void DisableJobRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void DisableJobRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string DisableJobRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string DisableJobRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void DisableJobRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void DisableJobRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 

+ 2 - 2
schedulerx2/src/model/DisableJobResult.cc

@@ -41,10 +41,10 @@ void DisableJobResult::parse(const std::string &payload)
 	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["Success"].isNull())
+		success_ = value["Success"].asString() == "true";
 
 }
 

+ 41 - 53
schedulerx2/src/model/DisableWorkflowRequest.cc

@@ -1,84 +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 <alibabacloud/schedulerx2/model/DisableWorkflowRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::DisableWorkflowRequest;
-
-DisableWorkflowRequest::DisableWorkflowRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "DisableWorkflow")
-{
-	setMethod(HttpRequest::Method::Get);
-}
-
-DisableWorkflowRequest::~DisableWorkflowRequest()
-{}
-
-std::string DisableWorkflowRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+ */
+
+#include <alibabacloud/schedulerx2/model/DisableWorkflowRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::DisableWorkflowRequest;
+
+DisableWorkflowRequest::DisableWorkflowRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "DisableWorkflow") {
+  setMethod(HttpRequest::Method::Get);
+}
+
+DisableWorkflowRequest::~DisableWorkflowRequest() {}
+
+std::string DisableWorkflowRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void DisableWorkflowRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void DisableWorkflowRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string DisableWorkflowRequest::getRegionId()const
-{
-	return regionId_;
+std::string DisableWorkflowRequest::getRegionId() const {
+  return regionId_;
 }
 
-void DisableWorkflowRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void DisableWorkflowRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-std::string DisableWorkflowRequest::getGroupId()const
-{
-	return groupId_;
+std::string DisableWorkflowRequest::getGroupId() const {
+  return groupId_;
 }
 
-void DisableWorkflowRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void DisableWorkflowRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string DisableWorkflowRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string DisableWorkflowRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void DisableWorkflowRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void DisableWorkflowRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 
-long DisableWorkflowRequest::getWorkflowId()const
-{
-	return workflowId_;
+long DisableWorkflowRequest::getWorkflowId() const {
+  return workflowId_;
 }
 
-void DisableWorkflowRequest::setWorkflowId(long workflowId)
-{
-	workflowId_ = workflowId;
-	setParameter("WorkflowId", std::to_string(workflowId));
+void DisableWorkflowRequest::setWorkflowId(long workflowId) {
+  workflowId_ = workflowId;
+  setParameter(std::string("WorkflowId"), std::to_string(workflowId));
 }
 

+ 2 - 2
schedulerx2/src/model/DisableWorkflowResult.cc

@@ -41,10 +41,10 @@ void DisableWorkflowResult::parse(const std::string &payload)
 	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["Success"].isNull())
+		success_ = value["Success"].asString() == "true";
 
 }
 

+ 41 - 53
schedulerx2/src/model/EnableJobRequest.cc

@@ -1,84 +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 <alibabacloud/schedulerx2/model/EnableJobRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::EnableJobRequest;
-
-EnableJobRequest::EnableJobRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "EnableJob")
-{
-	setMethod(HttpRequest::Method::Get);
-}
-
-EnableJobRequest::~EnableJobRequest()
-{}
-
-long EnableJobRequest::getJobId()const
-{
-	return jobId_;
+ */
+
+#include <alibabacloud/schedulerx2/model/EnableJobRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::EnableJobRequest;
+
+EnableJobRequest::EnableJobRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "EnableJob") {
+  setMethod(HttpRequest::Method::Get);
+}
+
+EnableJobRequest::~EnableJobRequest() {}
+
+long EnableJobRequest::getJobId() const {
+  return jobId_;
 }
 
-void EnableJobRequest::setJobId(long jobId)
-{
-	jobId_ = jobId;
-	setParameter("JobId", std::to_string(jobId));
+void EnableJobRequest::setJobId(long jobId) {
+  jobId_ = jobId;
+  setParameter(std::string("JobId"), std::to_string(jobId));
 }
 
-std::string EnableJobRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+std::string EnableJobRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void EnableJobRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void EnableJobRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string EnableJobRequest::getRegionId()const
-{
-	return regionId_;
+std::string EnableJobRequest::getRegionId() const {
+  return regionId_;
 }
 
-void EnableJobRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void EnableJobRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-std::string EnableJobRequest::getGroupId()const
-{
-	return groupId_;
+std::string EnableJobRequest::getGroupId() const {
+  return groupId_;
 }
 
-void EnableJobRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void EnableJobRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string EnableJobRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string EnableJobRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void EnableJobRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void EnableJobRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 

+ 2 - 2
schedulerx2/src/model/EnableJobResult.cc

@@ -41,10 +41,10 @@ void EnableJobResult::parse(const std::string &payload)
 	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["Success"].isNull())
+		success_ = value["Success"].asString() == "true";
 
 }
 

+ 41 - 53
schedulerx2/src/model/EnableWorkflowRequest.cc

@@ -1,84 +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 <alibabacloud/schedulerx2/model/EnableWorkflowRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::EnableWorkflowRequest;
-
-EnableWorkflowRequest::EnableWorkflowRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "EnableWorkflow")
-{
-	setMethod(HttpRequest::Method::Get);
-}
-
-EnableWorkflowRequest::~EnableWorkflowRequest()
-{}
-
-std::string EnableWorkflowRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+ */
+
+#include <alibabacloud/schedulerx2/model/EnableWorkflowRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::EnableWorkflowRequest;
+
+EnableWorkflowRequest::EnableWorkflowRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "EnableWorkflow") {
+  setMethod(HttpRequest::Method::Get);
+}
+
+EnableWorkflowRequest::~EnableWorkflowRequest() {}
+
+std::string EnableWorkflowRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void EnableWorkflowRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void EnableWorkflowRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string EnableWorkflowRequest::getRegionId()const
-{
-	return regionId_;
+std::string EnableWorkflowRequest::getRegionId() const {
+  return regionId_;
 }
 
-void EnableWorkflowRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void EnableWorkflowRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-std::string EnableWorkflowRequest::getGroupId()const
-{
-	return groupId_;
+std::string EnableWorkflowRequest::getGroupId() const {
+  return groupId_;
 }
 
-void EnableWorkflowRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void EnableWorkflowRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string EnableWorkflowRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string EnableWorkflowRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void EnableWorkflowRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void EnableWorkflowRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 
-long EnableWorkflowRequest::getWorkflowId()const
-{
-	return workflowId_;
+long EnableWorkflowRequest::getWorkflowId() const {
+  return workflowId_;
 }
 
-void EnableWorkflowRequest::setWorkflowId(long workflowId)
-{
-	workflowId_ = workflowId;
-	setParameter("WorkflowId", std::to_string(workflowId));
+void EnableWorkflowRequest::setWorkflowId(long workflowId) {
+  workflowId_ = workflowId;
+  setParameter(std::string("WorkflowId"), std::to_string(workflowId));
 }
 

+ 2 - 2
schedulerx2/src/model/EnableWorkflowResult.cc

@@ -41,10 +41,10 @@ void EnableWorkflowResult::parse(const std::string &payload)
 	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["Success"].isNull())
+		success_ = value["Success"].asString() == "true";
 
 }
 

+ 55 - 60
schedulerx2/src/model/ExecuteJobRequest.cc

@@ -1,95 +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 <alibabacloud/schedulerx2/model/ExecuteJobRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::ExecuteJobRequest;
-
-ExecuteJobRequest::ExecuteJobRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "ExecuteJob")
-{
-	setMethod(HttpRequest::Method::Get);
-}
-
-ExecuteJobRequest::~ExecuteJobRequest()
-{}
-
-long ExecuteJobRequest::getJobId()const
-{
-	return jobId_;
+ */
+
+#include <alibabacloud/schedulerx2/model/ExecuteJobRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::ExecuteJobRequest;
+
+ExecuteJobRequest::ExecuteJobRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "ExecuteJob") {
+  setMethod(HttpRequest::Method::Get);
+}
+
+ExecuteJobRequest::~ExecuteJobRequest() {}
+
+std::string ExecuteJobRequest::getNamespaceSource() const {
+  return namespaceSource_;
+}
+
+void ExecuteJobRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
+}
+
+bool ExecuteJobRequest::getCheckJobStatus() const {
+  return checkJobStatus_;
 }
 
-void ExecuteJobRequest::setJobId(long jobId)
-{
-	jobId_ = jobId;
-	setParameter("JobId", std::to_string(jobId));
+void ExecuteJobRequest::setCheckJobStatus(bool checkJobStatus) {
+  checkJobStatus_ = checkJobStatus;
+  setParameter(std::string("CheckJobStatus"), checkJobStatus ? "true" : "false");
 }
 
-std::string ExecuteJobRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+std::string ExecuteJobRequest::getGroupId() const {
+  return groupId_;
 }
 
-void ExecuteJobRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void ExecuteJobRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string ExecuteJobRequest::getRegionId()const
-{
-	return regionId_;
+long ExecuteJobRequest::getJobId() const {
+  return jobId_;
 }
 
-void ExecuteJobRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void ExecuteJobRequest::setJobId(long jobId) {
+  jobId_ = jobId;
+  setParameter(std::string("JobId"), std::to_string(jobId));
 }
 
-std::string ExecuteJobRequest::getGroupId()const
-{
-	return groupId_;
+std::string ExecuteJobRequest::getRegionId() const {
+  return regionId_;
 }
 
-void ExecuteJobRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void ExecuteJobRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-std::string ExecuteJobRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string ExecuteJobRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void ExecuteJobRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void ExecuteJobRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 
-std::string ExecuteJobRequest::getInstanceParameters()const
-{
-	return instanceParameters_;
+std::string ExecuteJobRequest::getInstanceParameters() const {
+  return instanceParameters_;
 }
 
-void ExecuteJobRequest::setInstanceParameters(const std::string& instanceParameters)
-{
-	instanceParameters_ = instanceParameters;
-	setParameter("InstanceParameters", instanceParameters);
+void ExecuteJobRequest::setInstanceParameters(const std::string &instanceParameters) {
+  instanceParameters_ = instanceParameters;
+  setParameter(std::string("InstanceParameters"), instanceParameters);
 }
 

+ 41 - 53
schedulerx2/src/model/ExecuteWorkflowRequest.cc

@@ -1,84 +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 <alibabacloud/schedulerx2/model/ExecuteWorkflowRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::ExecuteWorkflowRequest;
-
-ExecuteWorkflowRequest::ExecuteWorkflowRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "ExecuteWorkflow")
-{
-	setMethod(HttpRequest::Method::Get);
-}
-
-ExecuteWorkflowRequest::~ExecuteWorkflowRequest()
-{}
-
-std::string ExecuteWorkflowRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+ */
+
+#include <alibabacloud/schedulerx2/model/ExecuteWorkflowRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::ExecuteWorkflowRequest;
+
+ExecuteWorkflowRequest::ExecuteWorkflowRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "ExecuteWorkflow") {
+  setMethod(HttpRequest::Method::Get);
+}
+
+ExecuteWorkflowRequest::~ExecuteWorkflowRequest() {}
+
+std::string ExecuteWorkflowRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void ExecuteWorkflowRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void ExecuteWorkflowRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string ExecuteWorkflowRequest::getGroupId()const
-{
-	return groupId_;
+std::string ExecuteWorkflowRequest::getGroupId() const {
+  return groupId_;
 }
 
-void ExecuteWorkflowRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void ExecuteWorkflowRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string ExecuteWorkflowRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string ExecuteWorkflowRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void ExecuteWorkflowRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void ExecuteWorkflowRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 
-long ExecuteWorkflowRequest::getWorkflowId()const
-{
-	return workflowId_;
+long ExecuteWorkflowRequest::getWorkflowId() const {
+  return workflowId_;
 }
 
-void ExecuteWorkflowRequest::setWorkflowId(long workflowId)
-{
-	workflowId_ = workflowId;
-	setParameter("WorkflowId", std::to_string(workflowId));
+void ExecuteWorkflowRequest::setWorkflowId(long workflowId) {
+  workflowId_ = workflowId;
+  setParameter(std::string("WorkflowId"), std::to_string(workflowId));
 }
 
-std::string ExecuteWorkflowRequest::getInstanceParameters()const
-{
-	return instanceParameters_;
+std::string ExecuteWorkflowRequest::getInstanceParameters() const {
+  return instanceParameters_;
 }
 
-void ExecuteWorkflowRequest::setInstanceParameters(const std::string& instanceParameters)
-{
-	instanceParameters_ = instanceParameters;
-	setParameter("InstanceParameters", instanceParameters);
+void ExecuteWorkflowRequest::setInstanceParameters(const std::string &instanceParameters) {
+  instanceParameters_ = instanceParameters;
+  setParameter(std::string("InstanceParameters"), instanceParameters);
 }
 

+ 41 - 53
schedulerx2/src/model/GetJobInfoRequest.cc

@@ -1,84 +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 <alibabacloud/schedulerx2/model/GetJobInfoRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::GetJobInfoRequest;
-
-GetJobInfoRequest::GetJobInfoRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "GetJobInfo")
-{
-	setMethod(HttpRequest::Method::Get);
-}
-
-GetJobInfoRequest::~GetJobInfoRequest()
-{}
-
-long GetJobInfoRequest::getJobId()const
-{
-	return jobId_;
+ */
+
+#include <alibabacloud/schedulerx2/model/GetJobInfoRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::GetJobInfoRequest;
+
+GetJobInfoRequest::GetJobInfoRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "GetJobInfo") {
+  setMethod(HttpRequest::Method::Get);
+}
+
+GetJobInfoRequest::~GetJobInfoRequest() {}
+
+long GetJobInfoRequest::getJobId() const {
+  return jobId_;
 }
 
-void GetJobInfoRequest::setJobId(long jobId)
-{
-	jobId_ = jobId;
-	setParameter("JobId", std::to_string(jobId));
+void GetJobInfoRequest::setJobId(long jobId) {
+  jobId_ = jobId;
+  setParameter(std::string("JobId"), std::to_string(jobId));
 }
 
-std::string GetJobInfoRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+std::string GetJobInfoRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void GetJobInfoRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void GetJobInfoRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string GetJobInfoRequest::getRegionId()const
-{
-	return regionId_;
+std::string GetJobInfoRequest::getRegionId() const {
+  return regionId_;
 }
 
-void GetJobInfoRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void GetJobInfoRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-std::string GetJobInfoRequest::getGroupId()const
-{
-	return groupId_;
+std::string GetJobInfoRequest::getGroupId() const {
+  return groupId_;
 }
 
-void GetJobInfoRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void GetJobInfoRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string GetJobInfoRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string GetJobInfoRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void GetJobInfoRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void GetJobInfoRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 

+ 28 - 28
schedulerx2/src/model/GetJobInfoResult.cc

@@ -41,72 +41,72 @@ void GetJobInfoResult::parse(const std::string &payload)
 	setRequestId(value["RequestId"].asString());
 	auto dataNode = value["Data"];
 	auto jobConfigInfoNode = dataNode["JobConfigInfo"];
-	if(!jobConfigInfoNode["ClassName"].isNull())
-		data_.jobConfigInfo.className = jobConfigInfoNode["ClassName"].asString();
-	if(!jobConfigInfoNode["JarUrl"].isNull())
-		data_.jobConfigInfo.jarUrl = jobConfigInfoNode["JarUrl"].asString();
-	if(!jobConfigInfoNode["Content"].isNull())
-		data_.jobConfigInfo.content = jobConfigInfoNode["Content"].asString();
-	if(!jobConfigInfoNode["Name"].isNull())
-		data_.jobConfigInfo.name = jobConfigInfoNode["Name"].asString();
-	if(!jobConfigInfoNode["Description"].isNull())
-		data_.jobConfigInfo.description = jobConfigInfoNode["Description"].asString();
 	if(!jobConfigInfoNode["Status"].isNull())
 		data_.jobConfigInfo.status = std::stoi(jobConfigInfoNode["Status"].asString());
-	if(!jobConfigInfoNode["ExecuteMode"].isNull())
-		data_.jobConfigInfo.executeMode = jobConfigInfoNode["ExecuteMode"].asString();
 	if(!jobConfigInfoNode["Parameters"].isNull())
 		data_.jobConfigInfo.parameters = jobConfigInfoNode["Parameters"].asString();
+	if(!jobConfigInfoNode["Description"].isNull())
+		data_.jobConfigInfo.description = jobConfigInfoNode["Description"].asString();
+	if(!jobConfigInfoNode["ExecuteMode"].isNull())
+		data_.jobConfigInfo.executeMode = jobConfigInfoNode["ExecuteMode"].asString();
 	if(!jobConfigInfoNode["MaxConcurrency"].isNull())
 		data_.jobConfigInfo.maxConcurrency = jobConfigInfoNode["MaxConcurrency"].asString();
+	if(!jobConfigInfoNode["Name"].isNull())
+		data_.jobConfigInfo.name = jobConfigInfoNode["Name"].asString();
 	if(!jobConfigInfoNode["MaxAttempt"].isNull())
 		data_.jobConfigInfo.maxAttempt = std::stoi(jobConfigInfoNode["MaxAttempt"].asString());
+	if(!jobConfigInfoNode["Content"].isNull())
+		data_.jobConfigInfo.content = jobConfigInfoNode["Content"].asString();
+	if(!jobConfigInfoNode["JarUrl"].isNull())
+		data_.jobConfigInfo.jarUrl = jobConfigInfoNode["JarUrl"].asString();
+	if(!jobConfigInfoNode["ClassName"].isNull())
+		data_.jobConfigInfo.className = jobConfigInfoNode["ClassName"].asString();
 	if(!jobConfigInfoNode["AttemptInterval"].isNull())
 		data_.jobConfigInfo.attemptInterval = std::stoi(jobConfigInfoNode["AttemptInterval"].asString());
 	auto mapTaskXAttrsNode = jobConfigInfoNode["MapTaskXAttrs"];
-	if(!mapTaskXAttrsNode["PageSize"].isNull())
-		data_.jobConfigInfo.mapTaskXAttrs.pageSize = std::stoi(mapTaskXAttrsNode["PageSize"].asString());
+	if(!mapTaskXAttrsNode["TaskMaxAttempt"].isNull())
+		data_.jobConfigInfo.mapTaskXAttrs.taskMaxAttempt = std::stoi(mapTaskXAttrsNode["TaskMaxAttempt"].asString());
+	if(!mapTaskXAttrsNode["TaskAttemptInterval"].isNull())
+		data_.jobConfigInfo.mapTaskXAttrs.taskAttemptInterval = std::stoi(mapTaskXAttrsNode["TaskAttemptInterval"].asString());
 	if(!mapTaskXAttrsNode["ConsumerSize"].isNull())
 		data_.jobConfigInfo.mapTaskXAttrs.consumerSize = std::stoi(mapTaskXAttrsNode["ConsumerSize"].asString());
 	if(!mapTaskXAttrsNode["QueueSize"].isNull())
 		data_.jobConfigInfo.mapTaskXAttrs.queueSize = std::stoi(mapTaskXAttrsNode["QueueSize"].asString());
 	if(!mapTaskXAttrsNode["DispatcherSize"].isNull())
 		data_.jobConfigInfo.mapTaskXAttrs.dispatcherSize = std::stoi(mapTaskXAttrsNode["DispatcherSize"].asString());
-	if(!mapTaskXAttrsNode["TaskMaxAttempt"].isNull())
-		data_.jobConfigInfo.mapTaskXAttrs.taskMaxAttempt = std::stoi(mapTaskXAttrsNode["TaskMaxAttempt"].asString());
-	if(!mapTaskXAttrsNode["TaskAttemptInterval"].isNull())
-		data_.jobConfigInfo.mapTaskXAttrs.taskAttemptInterval = std::stoi(mapTaskXAttrsNode["TaskAttemptInterval"].asString());
+	if(!mapTaskXAttrsNode["PageSize"].isNull())
+		data_.jobConfigInfo.mapTaskXAttrs.pageSize = std::stoi(mapTaskXAttrsNode["PageSize"].asString());
 	auto timeConfigNode = jobConfigInfoNode["TimeConfig"];
-	if(!timeConfigNode["TimeType"].isNull())
-		data_.jobConfigInfo.timeConfig.timeType = std::stoi(timeConfigNode["TimeType"].asString());
-	if(!timeConfigNode["TimeExpression"].isNull())
-		data_.jobConfigInfo.timeConfig.timeExpression = timeConfigNode["TimeExpression"].asString();
 	if(!timeConfigNode["Calendar"].isNull())
 		data_.jobConfigInfo.timeConfig.calendar = timeConfigNode["Calendar"].asString();
+	if(!timeConfigNode["TimeType"].isNull())
+		data_.jobConfigInfo.timeConfig.timeType = std::stoi(timeConfigNode["TimeType"].asString());
 	if(!timeConfigNode["DataOffset"].isNull())
 		data_.jobConfigInfo.timeConfig.dataOffset = std::stoi(timeConfigNode["DataOffset"].asString());
+	if(!timeConfigNode["TimeExpression"].isNull())
+		data_.jobConfigInfo.timeConfig.timeExpression = timeConfigNode["TimeExpression"].asString();
 	auto jobMonitorInfoNode = jobConfigInfoNode["JobMonitorInfo"];
 	auto allContactInfoNode = jobMonitorInfoNode["ContactInfo"]["ContactInfoItem"];
 	for (auto jobMonitorInfoNodeContactInfoContactInfoItem : allContactInfoNode)
 	{
 		Data::JobConfigInfo::JobMonitorInfo::ContactInfoItem contactInfoItemObject;
-		if(!jobMonitorInfoNodeContactInfoContactInfoItem["UserName"].isNull())
-			contactInfoItemObject.userName = jobMonitorInfoNodeContactInfoContactInfoItem["UserName"].asString();
 		if(!jobMonitorInfoNodeContactInfoContactInfoItem["UserPhone"].isNull())
 			contactInfoItemObject.userPhone = jobMonitorInfoNodeContactInfoContactInfoItem["UserPhone"].asString();
+		if(!jobMonitorInfoNodeContactInfoContactInfoItem["UserName"].isNull())
+			contactInfoItemObject.userName = jobMonitorInfoNodeContactInfoContactInfoItem["UserName"].asString();
 		data_.jobConfigInfo.jobMonitorInfo.contactInfo.push_back(contactInfoItemObject);
 	}
 	auto monitorConfigNode = jobMonitorInfoNode["MonitorConfig"];
-	if(!monitorConfigNode["TimeoutEnable"].isNull())
-		data_.jobConfigInfo.jobMonitorInfo.monitorConfig.timeoutEnable = monitorConfigNode["TimeoutEnable"].asString() == "true";
 	if(!monitorConfigNode["Timeout"].isNull())
 		data_.jobConfigInfo.jobMonitorInfo.monitorConfig.timeout = std::stol(monitorConfigNode["Timeout"].asString());
+	if(!monitorConfigNode["SendChannel"].isNull())
+		data_.jobConfigInfo.jobMonitorInfo.monitorConfig.sendChannel = monitorConfigNode["SendChannel"].asString();
 	if(!monitorConfigNode["TimeoutKillEnable"].isNull())
 		data_.jobConfigInfo.jobMonitorInfo.monitorConfig.timeoutKillEnable = monitorConfigNode["TimeoutKillEnable"].asString() == "true";
+	if(!monitorConfigNode["TimeoutEnable"].isNull())
+		data_.jobConfigInfo.jobMonitorInfo.monitorConfig.timeoutEnable = monitorConfigNode["TimeoutEnable"].asString() == "true";
 	if(!monitorConfigNode["FailEnable"].isNull())
 		data_.jobConfigInfo.jobMonitorInfo.monitorConfig.failEnable = monitorConfigNode["FailEnable"].asString() == "true";
-	if(!monitorConfigNode["SendChannel"].isNull())
-		data_.jobConfigInfo.jobMonitorInfo.monitorConfig.sendChannel = monitorConfigNode["SendChannel"].asString();
 	if(!value["Code"].isNull())
 		code_ = std::stoi(value["Code"].asString());
 	if(!value["Message"].isNull())

+ 41 - 53
schedulerx2/src/model/GetJobInstanceListRequest.cc

@@ -1,84 +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 <alibabacloud/schedulerx2/model/GetJobInstanceListRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::GetJobInstanceListRequest;
-
-GetJobInstanceListRequest::GetJobInstanceListRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "GetJobInstanceList")
-{
-	setMethod(HttpRequest::Method::Get);
-}
-
-GetJobInstanceListRequest::~GetJobInstanceListRequest()
-{}
-
-long GetJobInstanceListRequest::getJobId()const
-{
-	return jobId_;
+ */
+
+#include <alibabacloud/schedulerx2/model/GetJobInstanceListRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::GetJobInstanceListRequest;
+
+GetJobInstanceListRequest::GetJobInstanceListRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "GetJobInstanceList") {
+  setMethod(HttpRequest::Method::Get);
+}
+
+GetJobInstanceListRequest::~GetJobInstanceListRequest() {}
+
+long GetJobInstanceListRequest::getJobId() const {
+  return jobId_;
 }
 
-void GetJobInstanceListRequest::setJobId(long jobId)
-{
-	jobId_ = jobId;
-	setParameter("JobId", std::to_string(jobId));
+void GetJobInstanceListRequest::setJobId(long jobId) {
+  jobId_ = jobId;
+  setParameter(std::string("JobId"), std::to_string(jobId));
 }
 
-std::string GetJobInstanceListRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+std::string GetJobInstanceListRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void GetJobInstanceListRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void GetJobInstanceListRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string GetJobInstanceListRequest::getRegionId()const
-{
-	return regionId_;
+std::string GetJobInstanceListRequest::getRegionId() const {
+  return regionId_;
 }
 
-void GetJobInstanceListRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void GetJobInstanceListRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-std::string GetJobInstanceListRequest::getGroupId()const
-{
-	return groupId_;
+std::string GetJobInstanceListRequest::getGroupId() const {
+  return groupId_;
 }
 
-void GetJobInstanceListRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void GetJobInstanceListRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string GetJobInstanceListRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string GetJobInstanceListRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void GetJobInstanceListRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void GetJobInstanceListRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 

+ 16 - 16
schedulerx2/src/model/GetJobInstanceListResult.cc

@@ -44,32 +44,32 @@ void GetJobInstanceListResult::parse(const std::string &payload)
 	for (auto dataNodeJobInstanceDetailsJobInstanceDetailsItem : allJobInstanceDetailsNode)
 	{
 		Data::JobInstanceDetailsItem jobInstanceDetailsItemObject;
-		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["InstanceId"].isNull())
-			jobInstanceDetailsItemObject.instanceId = std::stol(dataNodeJobInstanceDetailsJobInstanceDetailsItem["InstanceId"].asString());
-		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["JobId"].isNull())
-			jobInstanceDetailsItemObject.jobId = std::stol(dataNodeJobInstanceDetailsJobInstanceDetailsItem["JobId"].asString());
 		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["Status"].isNull())
 			jobInstanceDetailsItemObject.status = std::stoi(dataNodeJobInstanceDetailsJobInstanceDetailsItem["Status"].asString());
-		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["StartTime"].isNull())
-			jobInstanceDetailsItemObject.startTime = dataNodeJobInstanceDetailsJobInstanceDetailsItem["StartTime"].asString();
+		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["Progress"].isNull())
+			jobInstanceDetailsItemObject.progress = dataNodeJobInstanceDetailsJobInstanceDetailsItem["Progress"].asString();
+		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["Result"].isNull())
+			jobInstanceDetailsItemObject.result = dataNodeJobInstanceDetailsJobInstanceDetailsItem["Result"].asString();
+		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["InstanceId"].isNull())
+			jobInstanceDetailsItemObject.instanceId = std::stol(dataNodeJobInstanceDetailsJobInstanceDetailsItem["InstanceId"].asString());
+		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["TimeType"].isNull())
+			jobInstanceDetailsItemObject.timeType = std::stoi(dataNodeJobInstanceDetailsJobInstanceDetailsItem["TimeType"].asString());
+		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["TriggerType"].isNull())
+			jobInstanceDetailsItemObject.triggerType = std::stoi(dataNodeJobInstanceDetailsJobInstanceDetailsItem["TriggerType"].asString());
 		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["EndTime"].isNull())
 			jobInstanceDetailsItemObject.endTime = dataNodeJobInstanceDetailsJobInstanceDetailsItem["EndTime"].asString();
+		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["StartTime"].isNull())
+			jobInstanceDetailsItemObject.startTime = dataNodeJobInstanceDetailsJobInstanceDetailsItem["StartTime"].asString();
+		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["Executor"].isNull())
+			jobInstanceDetailsItemObject.executor = dataNodeJobInstanceDetailsJobInstanceDetailsItem["Executor"].asString();
+		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["JobId"].isNull())
+			jobInstanceDetailsItemObject.jobId = std::stol(dataNodeJobInstanceDetailsJobInstanceDetailsItem["JobId"].asString());
 		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["ScheduleTime"].isNull())
 			jobInstanceDetailsItemObject.scheduleTime = dataNodeJobInstanceDetailsJobInstanceDetailsItem["ScheduleTime"].asString();
 		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["DataTime"].isNull())
 			jobInstanceDetailsItemObject.dataTime = dataNodeJobInstanceDetailsJobInstanceDetailsItem["DataTime"].asString();
-		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["Executor"].isNull())
-			jobInstanceDetailsItemObject.executor = dataNodeJobInstanceDetailsJobInstanceDetailsItem["Executor"].asString();
 		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["WorkAddr"].isNull())
 			jobInstanceDetailsItemObject.workAddr = dataNodeJobInstanceDetailsJobInstanceDetailsItem["WorkAddr"].asString();
-		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["Result"].isNull())
-			jobInstanceDetailsItemObject.result = dataNodeJobInstanceDetailsJobInstanceDetailsItem["Result"].asString();
-		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["Progress"].isNull())
-			jobInstanceDetailsItemObject.progress = dataNodeJobInstanceDetailsJobInstanceDetailsItem["Progress"].asString();
-		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["TimeType"].isNull())
-			jobInstanceDetailsItemObject.timeType = std::stoi(dataNodeJobInstanceDetailsJobInstanceDetailsItem["TimeType"].asString());
-		if(!dataNodeJobInstanceDetailsJobInstanceDetailsItem["TriggerType"].isNull())
-			jobInstanceDetailsItemObject.triggerType = std::stoi(dataNodeJobInstanceDetailsJobInstanceDetailsItem["TriggerType"].asString());
 		data_.jobInstanceDetails.push_back(jobInstanceDetailsItemObject);
 	}
 	if(!value["Code"].isNull())

+ 41 - 53
schedulerx2/src/model/GetJobInstanceRequest.cc

@@ -1,84 +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 <alibabacloud/schedulerx2/model/GetJobInstanceRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::GetJobInstanceRequest;
-
-GetJobInstanceRequest::GetJobInstanceRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "GetJobInstance")
-{
-	setMethod(HttpRequest::Method::Get);
-}
-
-GetJobInstanceRequest::~GetJobInstanceRequest()
-{}
-
-long GetJobInstanceRequest::getJobId()const
-{
-	return jobId_;
+ */
+
+#include <alibabacloud/schedulerx2/model/GetJobInstanceRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::GetJobInstanceRequest;
+
+GetJobInstanceRequest::GetJobInstanceRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "GetJobInstance") {
+  setMethod(HttpRequest::Method::Get);
+}
+
+GetJobInstanceRequest::~GetJobInstanceRequest() {}
+
+long GetJobInstanceRequest::getJobId() const {
+  return jobId_;
 }
 
-void GetJobInstanceRequest::setJobId(long jobId)
-{
-	jobId_ = jobId;
-	setParameter("JobId", std::to_string(jobId));
+void GetJobInstanceRequest::setJobId(long jobId) {
+  jobId_ = jobId;
+  setParameter(std::string("JobId"), std::to_string(jobId));
 }
 
-std::string GetJobInstanceRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+std::string GetJobInstanceRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void GetJobInstanceRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void GetJobInstanceRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string GetJobInstanceRequest::getGroupId()const
-{
-	return groupId_;
+std::string GetJobInstanceRequest::getGroupId() const {
+  return groupId_;
 }
 
-void GetJobInstanceRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void GetJobInstanceRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string GetJobInstanceRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string GetJobInstanceRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void GetJobInstanceRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void GetJobInstanceRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 
-long GetJobInstanceRequest::getJobInstanceId()const
-{
-	return jobInstanceId_;
+long GetJobInstanceRequest::getJobInstanceId() const {
+  return jobInstanceId_;
 }
 
-void GetJobInstanceRequest::setJobInstanceId(long jobInstanceId)
-{
-	jobInstanceId_ = jobInstanceId;
-	setParameter("JobInstanceId", std::to_string(jobInstanceId));
+void GetJobInstanceRequest::setJobInstanceId(long jobInstanceId) {
+  jobInstanceId_ = jobInstanceId;
+  setParameter(std::string("JobInstanceId"), std::to_string(jobInstanceId));
 }
 

+ 16 - 16
schedulerx2/src/model/GetJobInstanceResult.cc

@@ -41,32 +41,32 @@ void GetJobInstanceResult::parse(const std::string &payload)
 	setRequestId(value["RequestId"].asString());
 	auto dataNode = value["Data"];
 	auto jobInstanceDetailNode = dataNode["JobInstanceDetail"];
-	if(!jobInstanceDetailNode["InstanceId"].isNull())
-		data_.jobInstanceDetail.instanceId = std::stol(jobInstanceDetailNode["InstanceId"].asString());
-	if(!jobInstanceDetailNode["JobId"].isNull())
-		data_.jobInstanceDetail.jobId = std::stol(jobInstanceDetailNode["JobId"].asString());
 	if(!jobInstanceDetailNode["Status"].isNull())
 		data_.jobInstanceDetail.status = std::stoi(jobInstanceDetailNode["Status"].asString());
-	if(!jobInstanceDetailNode["StartTime"].isNull())
-		data_.jobInstanceDetail.startTime = jobInstanceDetailNode["StartTime"].asString();
+	if(!jobInstanceDetailNode["Progress"].isNull())
+		data_.jobInstanceDetail.progress = jobInstanceDetailNode["Progress"].asString();
+	if(!jobInstanceDetailNode["Result"].isNull())
+		data_.jobInstanceDetail.result = jobInstanceDetailNode["Result"].asString();
+	if(!jobInstanceDetailNode["InstanceId"].isNull())
+		data_.jobInstanceDetail.instanceId = std::stol(jobInstanceDetailNode["InstanceId"].asString());
+	if(!jobInstanceDetailNode["TimeType"].isNull())
+		data_.jobInstanceDetail.timeType = std::stoi(jobInstanceDetailNode["TimeType"].asString());
+	if(!jobInstanceDetailNode["TriggerType"].isNull())
+		data_.jobInstanceDetail.triggerType = std::stoi(jobInstanceDetailNode["TriggerType"].asString());
 	if(!jobInstanceDetailNode["EndTime"].isNull())
 		data_.jobInstanceDetail.endTime = jobInstanceDetailNode["EndTime"].asString();
+	if(!jobInstanceDetailNode["StartTime"].isNull())
+		data_.jobInstanceDetail.startTime = jobInstanceDetailNode["StartTime"].asString();
+	if(!jobInstanceDetailNode["Executor"].isNull())
+		data_.jobInstanceDetail.executor = jobInstanceDetailNode["Executor"].asString();
+	if(!jobInstanceDetailNode["JobId"].isNull())
+		data_.jobInstanceDetail.jobId = std::stol(jobInstanceDetailNode["JobId"].asString());
 	if(!jobInstanceDetailNode["ScheduleTime"].isNull())
 		data_.jobInstanceDetail.scheduleTime = jobInstanceDetailNode["ScheduleTime"].asString();
 	if(!jobInstanceDetailNode["DataTime"].isNull())
 		data_.jobInstanceDetail.dataTime = jobInstanceDetailNode["DataTime"].asString();
-	if(!jobInstanceDetailNode["Executor"].isNull())
-		data_.jobInstanceDetail.executor = jobInstanceDetailNode["Executor"].asString();
 	if(!jobInstanceDetailNode["WorkAddr"].isNull())
 		data_.jobInstanceDetail.workAddr = jobInstanceDetailNode["WorkAddr"].asString();
-	if(!jobInstanceDetailNode["Result"].isNull())
-		data_.jobInstanceDetail.result = jobInstanceDetailNode["Result"].asString();
-	if(!jobInstanceDetailNode["Progress"].isNull())
-		data_.jobInstanceDetail.progress = jobInstanceDetailNode["Progress"].asString();
-	if(!jobInstanceDetailNode["TimeType"].isNull())
-		data_.jobInstanceDetail.timeType = std::stoi(jobInstanceDetailNode["TimeType"].asString());
-	if(!jobInstanceDetailNode["TriggerType"].isNull())
-		data_.jobInstanceDetail.triggerType = std::stoi(jobInstanceDetailNode["TriggerType"].asString());
 	if(!value["Code"].isNull())
 		code_ = std::stoi(value["Code"].asString());
 	if(!value["Message"].isNull())

+ 72 - 0
schedulerx2/src/model/GetWorkFlowRequest.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 <alibabacloud/schedulerx2/model/GetWorkFlowRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::GetWorkFlowRequest;
+
+GetWorkFlowRequest::GetWorkFlowRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "GetWorkFlow") {
+  setMethod(HttpRequest::Method::Get);
+}
+
+GetWorkFlowRequest::~GetWorkFlowRequest() {}
+
+std::string GetWorkFlowRequest::getNamespaceSource() const {
+  return namespaceSource_;
+}
+
+void GetWorkFlowRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
+}
+
+std::string GetWorkFlowRequest::getGroupId() const {
+  return groupId_;
+}
+
+void GetWorkFlowRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
+}
+
+std::string GetWorkFlowRequest::getRegionId() const {
+  return regionId_;
+}
+
+void GetWorkFlowRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
+}
+
+std::string GetWorkFlowRequest::get_Namespace() const {
+  return _namespace_;
+}
+
+void GetWorkFlowRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
+}
+
+long GetWorkFlowRequest::getWorkflowId() const {
+  return workflowId_;
+}
+
+void GetWorkFlowRequest::setWorkflowId(long workflowId) {
+  workflowId_ = workflowId;
+  setParameter(std::string("WorkflowId"), std::to_string(workflowId));
+}
+

+ 107 - 0
schedulerx2/src/model/GetWorkFlowResult.cc

@@ -0,0 +1,107 @@
+/*
+ * 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 <alibabacloud/schedulerx2/model/GetWorkFlowResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Schedulerx2;
+using namespace AlibabaCloud::Schedulerx2::Model;
+
+GetWorkFlowResult::GetWorkFlowResult() :
+	ServiceResult()
+{}
+
+GetWorkFlowResult::GetWorkFlowResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+GetWorkFlowResult::~GetWorkFlowResult()
+{}
+
+void GetWorkFlowResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	auto dataNode = value["Data"];
+	auto workFlowInfoNode = dataNode["WorkFlowInfo"];
+	if(!workFlowInfoNode["WorkflowId"].isNull())
+		data_.workFlowInfo.workflowId = std::stol(workFlowInfoNode["WorkflowId"].asString());
+	if(!workFlowInfoNode["Name"].isNull())
+		data_.workFlowInfo.name = workFlowInfoNode["Name"].asString();
+	if(!workFlowInfoNode["Description"].isNull())
+		data_.workFlowInfo.description = workFlowInfoNode["Description"].asString();
+	if(!workFlowInfoNode["Status"].isNull())
+		data_.workFlowInfo.status = workFlowInfoNode["Status"].asString();
+	if(!workFlowInfoNode["TimeType"].isNull())
+		data_.workFlowInfo.timeType = workFlowInfoNode["TimeType"].asString();
+	if(!workFlowInfoNode["TimeExpression"].isNull())
+		data_.workFlowInfo.timeExpression = workFlowInfoNode["TimeExpression"].asString();
+	auto workFlowNodeInfoNode = dataNode["WorkFlowNodeInfo"];
+	auto allNodesNode = workFlowNodeInfoNode["Nodes"]["Node"];
+	for (auto workFlowNodeInfoNodeNodesNode : allNodesNode)
+	{
+		Data::WorkFlowNodeInfo::Node nodeObject;
+		if(!workFlowNodeInfoNodeNodesNode["Id"].isNull())
+			nodeObject.id = std::stol(workFlowNodeInfoNodeNodesNode["Id"].asString());
+		if(!workFlowNodeInfoNodeNodesNode["Label"].isNull())
+			nodeObject.label = workFlowNodeInfoNodeNodesNode["Label"].asString();
+		if(!workFlowNodeInfoNodeNodesNode["Status"].isNull())
+			nodeObject.status = std::stoi(workFlowNodeInfoNodeNodesNode["Status"].asString());
+		data_.workFlowNodeInfo.nodes.push_back(nodeObject);
+	}
+	auto allEdgesNode = workFlowNodeInfoNode["Edges"]["Edge"];
+	for (auto workFlowNodeInfoNodeEdgesEdge : allEdgesNode)
+	{
+		Data::WorkFlowNodeInfo::Edge edgeObject;
+		if(!workFlowNodeInfoNodeEdgesEdge["Source"].isNull())
+			edgeObject.source = std::stol(workFlowNodeInfoNodeEdgesEdge["Source"].asString());
+		if(!workFlowNodeInfoNodeEdgesEdge["Target"].isNull())
+			edgeObject.target = std::stol(workFlowNodeInfoNodeEdgesEdge["Target"].asString());
+		data_.workFlowNodeInfo.edges.push_back(edgeObject);
+	}
+	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 GetWorkFlowResult::getMessage()const
+{
+	return message_;
+}
+
+GetWorkFlowResult::Data GetWorkFlowResult::getData()const
+{
+	return data_;
+}
+
+int GetWorkFlowResult::getCode()const
+{
+	return code_;
+}
+
+bool GetWorkFlowResult::getSuccess()const
+{
+	return success_;
+}
+

+ 51 - 67
schedulerx2/src/model/GrantPermissionRequest.cc

@@ -1,106 +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 <alibabacloud/schedulerx2/model/GrantPermissionRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::GrantPermissionRequest;
-
-GrantPermissionRequest::GrantPermissionRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "GrantPermission")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-GrantPermissionRequest::~GrantPermissionRequest()
-{}
-
-std::string GrantPermissionRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+ */
+
+#include <alibabacloud/schedulerx2/model/GrantPermissionRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::GrantPermissionRequest;
+
+GrantPermissionRequest::GrantPermissionRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "GrantPermission") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+GrantPermissionRequest::~GrantPermissionRequest() {}
+
+std::string GrantPermissionRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void GrantPermissionRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void GrantPermissionRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string GrantPermissionRequest::getGroupId()const
-{
-	return groupId_;
+std::string GrantPermissionRequest::getGroupId() const {
+  return groupId_;
 }
 
-void GrantPermissionRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void GrantPermissionRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string GrantPermissionRequest::getUserId()const
-{
-	return userId_;
+std::string GrantPermissionRequest::getUserId() const {
+  return userId_;
 }
 
-void GrantPermissionRequest::setUserId(const std::string& userId)
-{
-	userId_ = userId;
-	setParameter("UserId", userId);
+void GrantPermissionRequest::setUserId(const std::string &userId) {
+  userId_ = userId;
+  setParameter(std::string("UserId"), userId);
 }
 
-bool GrantPermissionRequest::getGrantOption()const
-{
-	return grantOption_;
+bool GrantPermissionRequest::getGrantOption() const {
+  return grantOption_;
 }
 
-void GrantPermissionRequest::setGrantOption(bool grantOption)
-{
-	grantOption_ = grantOption;
-	setParameter("GrantOption", grantOption ? "true" : "false");
+void GrantPermissionRequest::setGrantOption(bool grantOption) {
+  grantOption_ = grantOption;
+  setParameter(std::string("GrantOption"), grantOption ? "true" : "false");
 }
 
-std::string GrantPermissionRequest::getRegionId()const
-{
-	return regionId_;
+std::string GrantPermissionRequest::getRegionId() const {
+  return regionId_;
 }
 
-void GrantPermissionRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void GrantPermissionRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-std::string GrantPermissionRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string GrantPermissionRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void GrantPermissionRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void GrantPermissionRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 
-std::string GrantPermissionRequest::getUserName()const
-{
-	return userName_;
+std::string GrantPermissionRequest::getUserName() const {
+  return userName_;
 }
 
-void GrantPermissionRequest::setUserName(const std::string& userName)
-{
-	userName_ = userName;
-	setParameter("UserName", userName);
+void GrantPermissionRequest::setUserName(const std::string &userName) {
+  userName_ = userName;
+  setParameter(std::string("UserName"), userName);
 }
 

+ 2 - 2
schedulerx2/src/model/GrantPermissionResult.cc

@@ -41,10 +41,10 @@ void GrantPermissionResult::parse(const std::string &payload)
 	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["Success"].isNull())
+		success_ = value["Success"].asString() == "true";
 
 }
 

+ 31 - 39
schedulerx2/src/model/ListGroupsRequest.cc

@@ -1,62 +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 <alibabacloud/schedulerx2/model/ListGroupsRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::ListGroupsRequest;
-
-ListGroupsRequest::ListGroupsRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "ListGroups")
-{
-	setMethod(HttpRequest::Method::Get);
-}
-
-ListGroupsRequest::~ListGroupsRequest()
-{}
-
-std::string ListGroupsRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+ */
+
+#include <alibabacloud/schedulerx2/model/ListGroupsRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::ListGroupsRequest;
+
+ListGroupsRequest::ListGroupsRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "ListGroups") {
+  setMethod(HttpRequest::Method::Get);
+}
+
+ListGroupsRequest::~ListGroupsRequest() {}
+
+std::string ListGroupsRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void ListGroupsRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void ListGroupsRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string ListGroupsRequest::getRegionId()const
-{
-	return regionId_;
+std::string ListGroupsRequest::getRegionId() const {
+  return regionId_;
 }
 
-void ListGroupsRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void ListGroupsRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-std::string ListGroupsRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string ListGroupsRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void ListGroupsRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void ListGroupsRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 

+ 2 - 2
schedulerx2/src/model/ListGroupsResult.cc

@@ -46,12 +46,12 @@ void ListGroupsResult::parse(const std::string &payload)
 		Data::AppGroup appGroupObject;
 		if(!dataNodeAppGroupsAppGroup["AppName"].isNull())
 			appGroupObject.appName = dataNodeAppGroupsAppGroup["AppName"].asString();
-		if(!dataNodeAppGroupsAppGroup["GroupId"].isNull())
-			appGroupObject.groupId = dataNodeAppGroupsAppGroup["GroupId"].asString();
 		if(!dataNodeAppGroupsAppGroup["AppKey"].isNull())
 			appGroupObject.appKey = dataNodeAppGroupsAppGroup["AppKey"].asString();
 		if(!dataNodeAppGroupsAppGroup["Description"].isNull())
 			appGroupObject.description = dataNodeAppGroupsAppGroup["Description"].asString();
+		if(!dataNodeAppGroupsAppGroup["GroupId"].isNull())
+			appGroupObject.groupId = dataNodeAppGroupsAppGroup["GroupId"].asString();
 		data_.appGroups.push_back(appGroupObject);
 	}
 	if(!value["Code"].isNull())

+ 46 - 60
schedulerx2/src/model/ListJobsRequest.cc

@@ -1,95 +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 <alibabacloud/schedulerx2/model/ListJobsRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::ListJobsRequest;
-
-ListJobsRequest::ListJobsRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "ListJobs")
-{
-	setMethod(HttpRequest::Method::Get);
-}
-
-ListJobsRequest::~ListJobsRequest()
-{}
-
-std::string ListJobsRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+ */
+
+#include <alibabacloud/schedulerx2/model/ListJobsRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::ListJobsRequest;
+
+ListJobsRequest::ListJobsRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "ListJobs") {
+  setMethod(HttpRequest::Method::Get);
+}
+
+ListJobsRequest::~ListJobsRequest() {}
+
+std::string ListJobsRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void ListJobsRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void ListJobsRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string ListJobsRequest::getRegionId()const
-{
-	return regionId_;
+std::string ListJobsRequest::getRegionId() const {
+  return regionId_;
 }
 
-void ListJobsRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void ListJobsRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-std::string ListJobsRequest::getGroupId()const
-{
-	return groupId_;
+std::string ListJobsRequest::getGroupId() const {
+  return groupId_;
 }
 
-void ListJobsRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void ListJobsRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string ListJobsRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string ListJobsRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void ListJobsRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void ListJobsRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 
-std::string ListJobsRequest::getJobName()const
-{
-	return jobName_;
+std::string ListJobsRequest::getJobName() const {
+  return jobName_;
 }
 
-void ListJobsRequest::setJobName(const std::string& jobName)
-{
-	jobName_ = jobName;
-	setParameter("JobName", jobName);
+void ListJobsRequest::setJobName(const std::string &jobName) {
+  jobName_ = jobName;
+  setParameter(std::string("JobName"), jobName);
 }
 
-std::string ListJobsRequest::getStatus()const
-{
-	return status_;
+std::string ListJobsRequest::getStatus() const {
+  return status_;
 }
 
-void ListJobsRequest::setStatus(const std::string& status)
-{
-	status_ = status;
-	setParameter("Status", status);
+void ListJobsRequest::setStatus(const std::string &status) {
+  status_ = status;
+  setParameter(std::string("Status"), status);
 }
 

+ 30 - 30
schedulerx2/src/model/ListJobsResult.cc

@@ -44,74 +44,74 @@ void ListJobsResult::parse(const std::string &payload)
 	for (auto dataNodeJobsJob : allJobsNode)
 	{
 		Data::Job jobObject;
-		if(!dataNodeJobsJob["ClassName"].isNull())
-			jobObject.className = dataNodeJobsJob["ClassName"].asString();
+		if(!dataNodeJobsJob["Status"].isNull())
+			jobObject.status = std::stoi(dataNodeJobsJob["Status"].asString());
 		if(!dataNodeJobsJob["JarUrl"].isNull())
 			jobObject.jarUrl = dataNodeJobsJob["JarUrl"].asString();
-		if(!dataNodeJobsJob["Content"].isNull())
-			jobObject.content = dataNodeJobsJob["Content"].asString();
-		if(!dataNodeJobsJob["Name"].isNull())
-			jobObject.name = dataNodeJobsJob["Name"].asString();
+		if(!dataNodeJobsJob["MaxAttempt"].isNull())
+			jobObject.maxAttempt = std::stoi(dataNodeJobsJob["MaxAttempt"].asString());
+		if(!dataNodeJobsJob["Parameters"].isNull())
+			jobObject.parameters = dataNodeJobsJob["Parameters"].asString();
 		if(!dataNodeJobsJob["Description"].isNull())
 			jobObject.description = dataNodeJobsJob["Description"].asString();
-		if(!dataNodeJobsJob["Status"].isNull())
-			jobObject.status = std::stoi(dataNodeJobsJob["Status"].asString());
+		if(!dataNodeJobsJob["JobId"].isNull())
+			jobObject.jobId = std::stol(dataNodeJobsJob["JobId"].asString());
 		if(!dataNodeJobsJob["ExecuteMode"].isNull())
 			jobObject.executeMode = dataNodeJobsJob["ExecuteMode"].asString();
-		if(!dataNodeJobsJob["Parameters"].isNull())
-			jobObject.parameters = dataNodeJobsJob["Parameters"].asString();
 		if(!dataNodeJobsJob["MaxConcurrency"].isNull())
 			jobObject.maxConcurrency = dataNodeJobsJob["MaxConcurrency"].asString();
-		if(!dataNodeJobsJob["MaxAttempt"].isNull())
-			jobObject.maxAttempt = std::stoi(dataNodeJobsJob["MaxAttempt"].asString());
+		if(!dataNodeJobsJob["Name"].isNull())
+			jobObject.name = dataNodeJobsJob["Name"].asString();
+		if(!dataNodeJobsJob["ClassName"].isNull())
+			jobObject.className = dataNodeJobsJob["ClassName"].asString();
+		if(!dataNodeJobsJob["Content"].isNull())
+			jobObject.content = dataNodeJobsJob["Content"].asString();
 		if(!dataNodeJobsJob["AttemptInterval"].isNull())
 			jobObject.attemptInterval = std::stoi(dataNodeJobsJob["AttemptInterval"].asString());
-		if(!dataNodeJobsJob["JobId"].isNull())
-			jobObject.jobId = std::stol(dataNodeJobsJob["JobId"].asString());
 		auto mapTaskXAttrsNode = value["MapTaskXAttrs"];
-		if(!mapTaskXAttrsNode["PageSize"].isNull())
-			jobObject.mapTaskXAttrs.pageSize = std::stoi(mapTaskXAttrsNode["PageSize"].asString());
+		if(!mapTaskXAttrsNode["TaskMaxAttempt"].isNull())
+			jobObject.mapTaskXAttrs.taskMaxAttempt = std::stoi(mapTaskXAttrsNode["TaskMaxAttempt"].asString());
+		if(!mapTaskXAttrsNode["TaskAttemptInterval"].isNull())
+			jobObject.mapTaskXAttrs.taskAttemptInterval = std::stoi(mapTaskXAttrsNode["TaskAttemptInterval"].asString());
 		if(!mapTaskXAttrsNode["ConsumerSize"].isNull())
 			jobObject.mapTaskXAttrs.consumerSize = std::stoi(mapTaskXAttrsNode["ConsumerSize"].asString());
 		if(!mapTaskXAttrsNode["QueueSize"].isNull())
 			jobObject.mapTaskXAttrs.queueSize = std::stoi(mapTaskXAttrsNode["QueueSize"].asString());
 		if(!mapTaskXAttrsNode["DispatcherSize"].isNull())
 			jobObject.mapTaskXAttrs.dispatcherSize = std::stoi(mapTaskXAttrsNode["DispatcherSize"].asString());
-		if(!mapTaskXAttrsNode["TaskMaxAttempt"].isNull())
-			jobObject.mapTaskXAttrs.taskMaxAttempt = std::stoi(mapTaskXAttrsNode["TaskMaxAttempt"].asString());
-		if(!mapTaskXAttrsNode["TaskAttemptInterval"].isNull())
-			jobObject.mapTaskXAttrs.taskAttemptInterval = std::stoi(mapTaskXAttrsNode["TaskAttemptInterval"].asString());
+		if(!mapTaskXAttrsNode["PageSize"].isNull())
+			jobObject.mapTaskXAttrs.pageSize = std::stoi(mapTaskXAttrsNode["PageSize"].asString());
 		auto timeConfigNode = value["TimeConfig"];
-		if(!timeConfigNode["TimeType"].isNull())
-			jobObject.timeConfig.timeType = std::stoi(timeConfigNode["TimeType"].asString());
-		if(!timeConfigNode["TimeExpression"].isNull())
-			jobObject.timeConfig.timeExpression = timeConfigNode["TimeExpression"].asString();
 		if(!timeConfigNode["Calendar"].isNull())
 			jobObject.timeConfig.calendar = timeConfigNode["Calendar"].asString();
+		if(!timeConfigNode["TimeType"].isNull())
+			jobObject.timeConfig.timeType = std::stoi(timeConfigNode["TimeType"].asString());
 		if(!timeConfigNode["DataOffset"].isNull())
 			jobObject.timeConfig.dataOffset = std::stoi(timeConfigNode["DataOffset"].asString());
+		if(!timeConfigNode["TimeExpression"].isNull())
+			jobObject.timeConfig.timeExpression = timeConfigNode["TimeExpression"].asString();
 		auto jobMonitorInfoNode = value["JobMonitorInfo"];
 		auto allContactInfoNode = jobMonitorInfoNode["ContactInfo"]["ContactInfoItem"];
 		for (auto jobMonitorInfoNodeContactInfoContactInfoItem : allContactInfoNode)
 		{
 			Data::Job::JobMonitorInfo::ContactInfoItem contactInfoItemObject;
-			if(!jobMonitorInfoNodeContactInfoContactInfoItem["UserName"].isNull())
-				contactInfoItemObject.userName = jobMonitorInfoNodeContactInfoContactInfoItem["UserName"].asString();
 			if(!jobMonitorInfoNodeContactInfoContactInfoItem["UserPhone"].isNull())
 				contactInfoItemObject.userPhone = jobMonitorInfoNodeContactInfoContactInfoItem["UserPhone"].asString();
+			if(!jobMonitorInfoNodeContactInfoContactInfoItem["UserName"].isNull())
+				contactInfoItemObject.userName = jobMonitorInfoNodeContactInfoContactInfoItem["UserName"].asString();
 			jobObject.jobMonitorInfo.contactInfo.push_back(contactInfoItemObject);
 		}
 		auto monitorConfigNode = jobMonitorInfoNode["MonitorConfig"];
-		if(!monitorConfigNode["TimeoutEnable"].isNull())
-			jobObject.jobMonitorInfo.monitorConfig.timeoutEnable = monitorConfigNode["TimeoutEnable"].asString() == "true";
 		if(!monitorConfigNode["Timeout"].isNull())
 			jobObject.jobMonitorInfo.monitorConfig.timeout = std::stol(monitorConfigNode["Timeout"].asString());
+		if(!monitorConfigNode["SendChannel"].isNull())
+			jobObject.jobMonitorInfo.monitorConfig.sendChannel = monitorConfigNode["SendChannel"].asString();
 		if(!monitorConfigNode["TimeoutKillEnable"].isNull())
 			jobObject.jobMonitorInfo.monitorConfig.timeoutKillEnable = monitorConfigNode["TimeoutKillEnable"].asString() == "true";
+		if(!monitorConfigNode["TimeoutEnable"].isNull())
+			jobObject.jobMonitorInfo.monitorConfig.timeoutEnable = monitorConfigNode["TimeoutEnable"].asString() == "true";
 		if(!monitorConfigNode["FailEnable"].isNull())
 			jobObject.jobMonitorInfo.monitorConfig.failEnable = monitorConfigNode["FailEnable"].asString() == "true";
-		if(!monitorConfigNode["SendChannel"].isNull())
-			jobObject.jobMonitorInfo.monitorConfig.sendChannel = monitorConfigNode["SendChannel"].asString();
 		data_.jobs.push_back(jobObject);
 	}
 	if(!value["Code"].isNull())

+ 21 - 25
schedulerx2/src/model/ListNamespacesRequest.cc

@@ -1,40 +1,36 @@
 /*
  * 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 <alibabacloud/schedulerx2/model/ListNamespacesRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::ListNamespacesRequest;
-
-ListNamespacesRequest::ListNamespacesRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "ListNamespaces")
-{
-	setMethod(HttpRequest::Method::Get);
-}
-
-ListNamespacesRequest::~ListNamespacesRequest()
-{}
-
-std::string ListNamespacesRequest::getRegionId()const
-{
-	return regionId_;
+ */
+
+#include <alibabacloud/schedulerx2/model/ListNamespacesRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::ListNamespacesRequest;
+
+ListNamespacesRequest::ListNamespacesRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "ListNamespaces") {
+  setMethod(HttpRequest::Method::Get);
+}
+
+ListNamespacesRequest::~ListNamespacesRequest() {}
+
+std::string ListNamespacesRequest::getRegionId() const {
+  return regionId_;
 }
 
-void ListNamespacesRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void ListNamespacesRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 

+ 4 - 4
schedulerx2/src/model/ListNamespacesResult.cc

@@ -46,18 +46,18 @@ void ListNamespacesResult::parse(const std::string &payload)
 		Data::_Namespace _namespaceObject;
 		if(!dataNodeNamespacesNamespace["Name"].isNull())
 			_namespaceObject.name = dataNodeNamespacesNamespace["Name"].asString();
-		if(!dataNodeNamespacesNamespace["UId"].isNull())
-			_namespaceObject.uId = dataNodeNamespacesNamespace["UId"].asString();
 		if(!dataNodeNamespacesNamespace["Description"].isNull())
 			_namespaceObject.description = dataNodeNamespacesNamespace["Description"].asString();
+		if(!dataNodeNamespacesNamespace["UId"].isNull())
+			_namespaceObject.uId = dataNodeNamespacesNamespace["UId"].asString();
 		data_.namespaces.push_back(_namespaceObject);
 	}
 	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["Success"].isNull())
+		success_ = value["Success"].asString() == "true";
 
 }
 

+ 41 - 53
schedulerx2/src/model/RevokePermissionRequest.cc

@@ -1,84 +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 <alibabacloud/schedulerx2/model/RevokePermissionRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::RevokePermissionRequest;
-
-RevokePermissionRequest::RevokePermissionRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "RevokePermission")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-RevokePermissionRequest::~RevokePermissionRequest()
-{}
-
-std::string RevokePermissionRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+ */
+
+#include <alibabacloud/schedulerx2/model/RevokePermissionRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::RevokePermissionRequest;
+
+RevokePermissionRequest::RevokePermissionRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "RevokePermission") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+RevokePermissionRequest::~RevokePermissionRequest() {}
+
+std::string RevokePermissionRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void RevokePermissionRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void RevokePermissionRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string RevokePermissionRequest::getRegionId()const
-{
-	return regionId_;
+std::string RevokePermissionRequest::getRegionId() const {
+  return regionId_;
 }
 
-void RevokePermissionRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void RevokePermissionRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-std::string RevokePermissionRequest::getGroupId()const
-{
-	return groupId_;
+std::string RevokePermissionRequest::getGroupId() const {
+  return groupId_;
 }
 
-void RevokePermissionRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void RevokePermissionRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string RevokePermissionRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string RevokePermissionRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void RevokePermissionRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void RevokePermissionRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 
-std::string RevokePermissionRequest::getUserId()const
-{
-	return userId_;
+std::string RevokePermissionRequest::getUserId() const {
+  return userId_;
 }
 
-void RevokePermissionRequest::setUserId(const std::string& userId)
-{
-	userId_ = userId;
-	setParameter("UserId", userId);
+void RevokePermissionRequest::setUserId(const std::string &userId) {
+  userId_ = userId;
+  setParameter(std::string("UserId"), userId);
 }
 

+ 2 - 2
schedulerx2/src/model/RevokePermissionResult.cc

@@ -41,10 +41,10 @@ void RevokePermissionResult::parse(const std::string &payload)
 	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["Success"].isNull())
+		success_ = value["Success"].asString() == "true";
 
 }
 

+ 46 - 60
schedulerx2/src/model/StopInstanceRequest.cc

@@ -1,95 +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 <alibabacloud/schedulerx2/model/StopInstanceRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::StopInstanceRequest;
-
-StopInstanceRequest::StopInstanceRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "StopInstance")
-{
-	setMethod(HttpRequest::Method::Get);
-}
-
-StopInstanceRequest::~StopInstanceRequest()
-{}
-
-long StopInstanceRequest::getJobId()const
-{
-	return jobId_;
+ */
+
+#include <alibabacloud/schedulerx2/model/StopInstanceRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::StopInstanceRequest;
+
+StopInstanceRequest::StopInstanceRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "StopInstance") {
+  setMethod(HttpRequest::Method::Get);
+}
+
+StopInstanceRequest::~StopInstanceRequest() {}
+
+long StopInstanceRequest::getJobId() const {
+  return jobId_;
 }
 
-void StopInstanceRequest::setJobId(long jobId)
-{
-	jobId_ = jobId;
-	setParameter("JobId", std::to_string(jobId));
+void StopInstanceRequest::setJobId(long jobId) {
+  jobId_ = jobId;
+  setParameter(std::string("JobId"), std::to_string(jobId));
 }
 
-std::string StopInstanceRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+std::string StopInstanceRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void StopInstanceRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setParameter("NamespaceSource", namespaceSource);
+void StopInstanceRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-long StopInstanceRequest::getInstanceId()const
-{
-	return instanceId_;
+long StopInstanceRequest::getInstanceId() const {
+  return instanceId_;
 }
 
-void StopInstanceRequest::setInstanceId(long instanceId)
-{
-	instanceId_ = instanceId;
-	setParameter("InstanceId", std::to_string(instanceId));
+void StopInstanceRequest::setInstanceId(long instanceId) {
+  instanceId_ = instanceId;
+  setParameter(std::string("InstanceId"), std::to_string(instanceId));
 }
 
-std::string StopInstanceRequest::getRegionId()const
-{
-	return regionId_;
+std::string StopInstanceRequest::getRegionId() const {
+  return regionId_;
 }
 
-void StopInstanceRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void StopInstanceRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-std::string StopInstanceRequest::getGroupId()const
-{
-	return groupId_;
+std::string StopInstanceRequest::getGroupId() const {
+  return groupId_;
 }
 
-void StopInstanceRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setParameter("GroupId", groupId);
+void StopInstanceRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setParameter(std::string("GroupId"), groupId);
 }
 
-std::string StopInstanceRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string StopInstanceRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void StopInstanceRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setParameter("_Namespace", _namespace);
+void StopInstanceRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setParameter(std::string("Namespace"), _namespace);
 }
 

+ 176 - 240
schedulerx2/src/model/UpdateJobRequest.cc

@@ -1,375 +1,311 @@
 /*
  * 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 <alibabacloud/schedulerx2/model/UpdateJobRequest.h>
-
-using AlibabaCloud::Schedulerx2::Model::UpdateJobRequest;
-
-UpdateJobRequest::UpdateJobRequest() :
-	RpcServiceRequest("schedulerx2", "2019-04-30", "UpdateJob")
-{
-	setMethod(HttpRequest::Method::Post);
-}
-
-UpdateJobRequest::~UpdateJobRequest()
-{}
-
-std::string UpdateJobRequest::getNamespaceSource()const
-{
-	return namespaceSource_;
+ */
+
+#include <alibabacloud/schedulerx2/model/UpdateJobRequest.h>
+
+using AlibabaCloud::Schedulerx2::Model::UpdateJobRequest;
+
+UpdateJobRequest::UpdateJobRequest()
+    : RpcServiceRequest("schedulerx2", "2019-04-30", "UpdateJob") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+UpdateJobRequest::~UpdateJobRequest() {}
+
+std::string UpdateJobRequest::getNamespaceSource() const {
+  return namespaceSource_;
 }
 
-void UpdateJobRequest::setNamespaceSource(const std::string& namespaceSource)
-{
-	namespaceSource_ = namespaceSource;
-	setBodyParameter("NamespaceSource", namespaceSource);
+void UpdateJobRequest::setNamespaceSource(const std::string &namespaceSource) {
+  namespaceSource_ = namespaceSource;
+  setBodyParameter(std::string("NamespaceSource"), namespaceSource);
 }
 
-std::string UpdateJobRequest::getDescription()const
-{
-	return description_;
+std::string UpdateJobRequest::getDescription() const {
+  return description_;
 }
 
-void UpdateJobRequest::setDescription(const std::string& description)
-{
-	description_ = description;
-	setBodyParameter("Description", description);
+void UpdateJobRequest::setDescription(const std::string &description) {
+  description_ = description;
+  setBodyParameter(std::string("Description"), description);
 }
 
-int UpdateJobRequest::getAttemptInterval()const
-{
-	return attemptInterval_;
+int UpdateJobRequest::getAttemptInterval() const {
+  return attemptInterval_;
 }
 
-void UpdateJobRequest::setAttemptInterval(int attemptInterval)
-{
-	attemptInterval_ = attemptInterval;
-	setBodyParameter("AttemptInterval", std::to_string(attemptInterval));
+void UpdateJobRequest::setAttemptInterval(int attemptInterval) {
+  attemptInterval_ = attemptInterval;
+  setBodyParameter(std::string("AttemptInterval"), std::to_string(attemptInterval));
 }
 
-std::string UpdateJobRequest::getContent()const
-{
-	return content_;
+std::string UpdateJobRequest::getContent() const {
+  return content_;
 }
 
-void UpdateJobRequest::setContent(const std::string& content)
-{
-	content_ = content;
-	setBodyParameter("Content", content);
+void UpdateJobRequest::setContent(const std::string &content) {
+  content_ = content;
+  setBodyParameter(std::string("Content"), content);
 }
 
-long UpdateJobRequest::getTimeout()const
-{
-	return timeout_;
+long UpdateJobRequest::getTimeout() const {
+  return timeout_;
 }
 
-void UpdateJobRequest::setTimeout(long timeout)
-{
-	timeout_ = timeout;
-	setBodyParameter("Timeout", std::to_string(timeout));
+void UpdateJobRequest::setTimeout(long timeout) {
+  timeout_ = timeout;
+  setBodyParameter(std::string("Timeout"), std::to_string(timeout));
 }
 
-bool UpdateJobRequest::getTimeoutKillEnable()const
-{
-	return timeoutKillEnable_;
+bool UpdateJobRequest::getTimeoutKillEnable() const {
+  return timeoutKillEnable_;
 }
 
-void UpdateJobRequest::setTimeoutKillEnable(bool timeoutKillEnable)
-{
-	timeoutKillEnable_ = timeoutKillEnable;
-	setBodyParameter("TimeoutKillEnable", timeoutKillEnable ? "true" : "false");
+void UpdateJobRequest::setTimeoutKillEnable(bool timeoutKillEnable) {
+  timeoutKillEnable_ = timeoutKillEnable;
+  setBodyParameter(std::string("TimeoutKillEnable"), timeoutKillEnable ? "true" : "false");
 }
 
-long UpdateJobRequest::getJobId()const
-{
-	return jobId_;
+long UpdateJobRequest::getJobId() const {
+  return jobId_;
 }
 
-void UpdateJobRequest::setJobId(long jobId)
-{
-	jobId_ = jobId;
-	setBodyParameter("JobId", std::to_string(jobId));
+void UpdateJobRequest::setJobId(long jobId) {
+  jobId_ = jobId;
+  setBodyParameter(std::string("JobId"), std::to_string(jobId));
 }
 
-std::string UpdateJobRequest::getRegionId()const
-{
-	return regionId_;
+std::string UpdateJobRequest::getRegionId() const {
+  return regionId_;
 }
 
-void UpdateJobRequest::setRegionId(const std::string& regionId)
-{
-	regionId_ = regionId;
-	setParameter("RegionId", regionId);
+void UpdateJobRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
 }
 
-int UpdateJobRequest::getPageSize()const
-{
-	return pageSize_;
+int UpdateJobRequest::getPageSize() const {
+  return pageSize_;
 }
 
-void UpdateJobRequest::setPageSize(int pageSize)
-{
-	pageSize_ = pageSize;
-	setBodyParameter("PageSize", std::to_string(pageSize));
+void UpdateJobRequest::setPageSize(int pageSize) {
+  pageSize_ = pageSize;
+  setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
 }
 
-int UpdateJobRequest::getConsumerSize()const
-{
-	return consumerSize_;
+int UpdateJobRequest::getConsumerSize() const {
+  return consumerSize_;
 }
 
-void UpdateJobRequest::setConsumerSize(int consumerSize)
-{
-	consumerSize_ = consumerSize;
-	setBodyParameter("ConsumerSize", std::to_string(consumerSize));
+void UpdateJobRequest::setConsumerSize(int consumerSize) {
+  consumerSize_ = consumerSize;
+  setBodyParameter(std::string("ConsumerSize"), std::to_string(consumerSize));
 }
 
-std::string UpdateJobRequest::getJarUrl()const
-{
-	return jarUrl_;
+std::string UpdateJobRequest::getJarUrl() const {
+  return jarUrl_;
 }
 
-void UpdateJobRequest::setJarUrl(const std::string& jarUrl)
-{
-	jarUrl_ = jarUrl;
-	setBodyParameter("JarUrl", jarUrl);
+void UpdateJobRequest::setJarUrl(const std::string &jarUrl) {
+  jarUrl_ = jarUrl;
+  setBodyParameter(std::string("JarUrl"), jarUrl);
 }
 
-std::string UpdateJobRequest::getCalendar()const
-{
-	return calendar_;
+std::string UpdateJobRequest::getCalendar() const {
+  return calendar_;
 }
 
-void UpdateJobRequest::setCalendar(const std::string& calendar)
-{
-	calendar_ = calendar;
-	setBodyParameter("Calendar", calendar);
+void UpdateJobRequest::setCalendar(const std::string &calendar) {
+  calendar_ = calendar;
+  setBodyParameter(std::string("Calendar"), calendar);
 }
 
-bool UpdateJobRequest::getFailEnable()const
-{
-	return failEnable_;
+bool UpdateJobRequest::getFailEnable() const {
+  return failEnable_;
 }
 
-void UpdateJobRequest::setFailEnable(bool failEnable)
-{
-	failEnable_ = failEnable;
-	setBodyParameter("FailEnable", failEnable ? "true" : "false");
+void UpdateJobRequest::setFailEnable(bool failEnable) {
+  failEnable_ = failEnable;
+  setBodyParameter(std::string("FailEnable"), failEnable ? "true" : "false");
 }
 
-std::string UpdateJobRequest::getSendChannel()const
-{
-	return sendChannel_;
+std::string UpdateJobRequest::getSendChannel() const {
+  return sendChannel_;
 }
 
-void UpdateJobRequest::setSendChannel(const std::string& sendChannel)
-{
-	sendChannel_ = sendChannel;
-	setBodyParameter("SendChannel", sendChannel);
+void UpdateJobRequest::setSendChannel(const std::string &sendChannel) {
+  sendChannel_ = sendChannel;
+  setBodyParameter(std::string("SendChannel"), sendChannel);
 }
 
-int UpdateJobRequest::getDataOffset()const
-{
-	return dataOffset_;
+int UpdateJobRequest::getDataOffset() const {
+  return dataOffset_;
 }
 
-void UpdateJobRequest::setDataOffset(int dataOffset)
-{
-	dataOffset_ = dataOffset;
-	setBodyParameter("DataOffset", std::to_string(dataOffset));
+void UpdateJobRequest::setDataOffset(int dataOffset) {
+  dataOffset_ = dataOffset;
+  setBodyParameter(std::string("DataOffset"), std::to_string(dataOffset));
 }
 
-std::string UpdateJobRequest::getGroupId()const
-{
-	return groupId_;
+std::string UpdateJobRequest::getGroupId() const {
+  return groupId_;
 }
 
-void UpdateJobRequest::setGroupId(const std::string& groupId)
-{
-	groupId_ = groupId;
-	setBodyParameter("GroupId", groupId);
+void UpdateJobRequest::setGroupId(const std::string &groupId) {
+  groupId_ = groupId;
+  setBodyParameter(std::string("GroupId"), groupId);
 }
 
-int UpdateJobRequest::getTaskMaxAttempt()const
-{
-	return taskMaxAttempt_;
+int UpdateJobRequest::getTaskMaxAttempt() const {
+  return taskMaxAttempt_;
 }
 
-void UpdateJobRequest::setTaskMaxAttempt(int taskMaxAttempt)
-{
-	taskMaxAttempt_ = taskMaxAttempt;
-	setBodyParameter("TaskMaxAttempt", std::to_string(taskMaxAttempt));
+void UpdateJobRequest::setTaskMaxAttempt(int taskMaxAttempt) {
+  taskMaxAttempt_ = taskMaxAttempt;
+  setBodyParameter(std::string("TaskMaxAttempt"), std::to_string(taskMaxAttempt));
 }
 
-int UpdateJobRequest::getMaxAttempt()const
-{
-	return maxAttempt_;
+int UpdateJobRequest::getMaxAttempt() const {
+  return maxAttempt_;
 }
 
-void UpdateJobRequest::setMaxAttempt(int maxAttempt)
-{
-	maxAttempt_ = maxAttempt;
-	setBodyParameter("MaxAttempt", std::to_string(maxAttempt));
+void UpdateJobRequest::setMaxAttempt(int maxAttempt) {
+  maxAttempt_ = maxAttempt;
+  setBodyParameter(std::string("MaxAttempt"), std::to_string(maxAttempt));
 }
 
-int UpdateJobRequest::getDispatcherSize()const
-{
-	return dispatcherSize_;
+int UpdateJobRequest::getDispatcherSize() const {
+  return dispatcherSize_;
 }
 
-void UpdateJobRequest::setDispatcherSize(int dispatcherSize)
-{
-	dispatcherSize_ = dispatcherSize;
-	setBodyParameter("DispatcherSize", std::to_string(dispatcherSize));
+void UpdateJobRequest::setDispatcherSize(int dispatcherSize) {
+  dispatcherSize_ = dispatcherSize;
+  setBodyParameter(std::string("DispatcherSize"), std::to_string(dispatcherSize));
 }
 
-int UpdateJobRequest::getTaskAttemptInterval()const
-{
-	return taskAttemptInterval_;
+int UpdateJobRequest::getTaskAttemptInterval() const {
+  return taskAttemptInterval_;
 }
 
-void UpdateJobRequest::setTaskAttemptInterval(int taskAttemptInterval)
-{
-	taskAttemptInterval_ = taskAttemptInterval;
-	setBodyParameter("TaskAttemptInterval", std::to_string(taskAttemptInterval));
+void UpdateJobRequest::setTaskAttemptInterval(int taskAttemptInterval) {
+  taskAttemptInterval_ = taskAttemptInterval;
+  setBodyParameter(std::string("TaskAttemptInterval"), std::to_string(taskAttemptInterval));
 }
 
-std::string UpdateJobRequest::getExecuteMode()const
-{
-	return executeMode_;
+std::string UpdateJobRequest::getExecuteMode() const {
+  return executeMode_;
 }
 
-void UpdateJobRequest::setExecuteMode(const std::string& executeMode)
-{
-	executeMode_ = executeMode;
-	setBodyParameter("ExecuteMode", executeMode);
+void UpdateJobRequest::setExecuteMode(const std::string &executeMode) {
+  executeMode_ = executeMode;
+  setBodyParameter(std::string("ExecuteMode"), executeMode);
 }
 
-int UpdateJobRequest::getQueueSize()const
-{
-	return queueSize_;
+int UpdateJobRequest::getQueueSize() const {
+  return queueSize_;
 }
 
-void UpdateJobRequest::setQueueSize(int queueSize)
-{
-	queueSize_ = queueSize;
-	setBodyParameter("QueueSize", std::to_string(queueSize));
+void UpdateJobRequest::setQueueSize(int queueSize) {
+  queueSize_ = queueSize;
+  setBodyParameter(std::string("QueueSize"), std::to_string(queueSize));
 }
 
-std::string UpdateJobRequest::getTimeExpression()const
-{
-	return timeExpression_;
+std::string UpdateJobRequest::getTimeExpression() const {
+  return timeExpression_;
 }
 
-void UpdateJobRequest::setTimeExpression(const std::string& timeExpression)
-{
-	timeExpression_ = timeExpression;
-	setBodyParameter("TimeExpression", timeExpression);
+void UpdateJobRequest::setTimeExpression(const std::string &timeExpression) {
+  timeExpression_ = timeExpression;
+  setBodyParameter(std::string("TimeExpression"), timeExpression);
 }
 
-std::string UpdateJobRequest::getClassName()const
-{
-	return className_;
+std::string UpdateJobRequest::getClassName() const {
+  return className_;
 }
 
-void UpdateJobRequest::setClassName(const std::string& className)
-{
-	className_ = className;
-	setBodyParameter("ClassName", className);
+void UpdateJobRequest::setClassName(const std::string &className) {
+  className_ = className;
+  setBodyParameter(std::string("ClassName"), className);
 }
 
-bool UpdateJobRequest::getTimeoutEnable()const
-{
-	return timeoutEnable_;
+bool UpdateJobRequest::getTimeoutEnable() const {
+  return timeoutEnable_;
 }
 
-void UpdateJobRequest::setTimeoutEnable(bool timeoutEnable)
-{
-	timeoutEnable_ = timeoutEnable;
-	setBodyParameter("TimeoutEnable", timeoutEnable ? "true" : "false");
+void UpdateJobRequest::setTimeoutEnable(bool timeoutEnable) {
+  timeoutEnable_ = timeoutEnable;
+  setBodyParameter(std::string("TimeoutEnable"), timeoutEnable ? "true" : "false");
 }
 
-std::vector<UpdateJobRequest::ContactInfo> UpdateJobRequest::getContactInfo()const
-{
-	return contactInfo_;
+std::vector<UpdateJobRequest::ContactInfo> UpdateJobRequest::getContactInfo() const {
+  return contactInfo_;
 }
 
-void UpdateJobRequest::setContactInfo(const std::vector<ContactInfo>& contactInfo)
-{
-	contactInfo_ = contactInfo;
-	for(int dep1 = 0; dep1!= contactInfo.size(); dep1++) {
-		auto contactInfoObj = contactInfo.at(dep1);
-		std::string contactInfoObjStr = "ContactInfo." + std::to_string(dep1 + 1);
-		setParameter(contactInfoObjStr + ".UserPhone", contactInfoObj.userPhone);
-		setParameter(contactInfoObjStr + ".UserName", contactInfoObj.userName);
-	}
+void UpdateJobRequest::setContactInfo(const std::vector<UpdateJobRequest::ContactInfo> &contactInfo) {
+  contactInfo_ = contactInfo;
+  for(int dep1 = 0; dep1 != contactInfo.size(); dep1++) {
+  auto contactInfoObj = contactInfo.at(dep1);
+  std::string contactInfoObjStr = std::string("ContactInfo") + "." + std::to_string(dep1 + 1);
+    setBodyParameter(contactInfoObjStr + ".UserPhone", contactInfoObj.userPhone);
+    setBodyParameter(contactInfoObjStr + ".UserName", contactInfoObj.userName);
+  }
 }
 
-std::string UpdateJobRequest::getName()const
-{
-	return name_;
+std::string UpdateJobRequest::getName() const {
+  return name_;
 }
 
-void UpdateJobRequest::setName(const std::string& name)
-{
-	name_ = name;
-	setBodyParameter("Name", name);
+void UpdateJobRequest::setName(const std::string &name) {
+  name_ = name;
+  setBodyParameter(std::string("Name"), name);
 }
 
-std::string UpdateJobRequest::get_Namespace()const
-{
-	return _namespace_;
+std::string UpdateJobRequest::get_Namespace() const {
+  return _namespace_;
 }
 
-void UpdateJobRequest::set_Namespace(const std::string& _namespace)
-{
-	_namespace_ = _namespace;
-	setBodyParameter("_Namespace", _namespace);
+void UpdateJobRequest::set_Namespace(const std::string &_namespace) {
+  _namespace_ = _namespace;
+  setBodyParameter(std::string("Namespace"), _namespace);
 }
 
-int UpdateJobRequest::getMaxConcurrency()const
-{
-	return maxConcurrency_;
+int UpdateJobRequest::getMaxConcurrency() const {
+  return maxConcurrency_;
 }
 
-void UpdateJobRequest::setMaxConcurrency(int maxConcurrency)
-{
-	maxConcurrency_ = maxConcurrency;
-	setBodyParameter("MaxConcurrency", std::to_string(maxConcurrency));
+void UpdateJobRequest::setMaxConcurrency(int maxConcurrency) {
+  maxConcurrency_ = maxConcurrency;
+  setBodyParameter(std::string("MaxConcurrency"), std::to_string(maxConcurrency));
 }
 
-int UpdateJobRequest::getTimeType()const
-{
-	return timeType_;
+int UpdateJobRequest::getTimeType() const {
+  return timeType_;
 }
 
-void UpdateJobRequest::setTimeType(int timeType)
-{
-	timeType_ = timeType;
-	setBodyParameter("TimeType", std::to_string(timeType));
+void UpdateJobRequest::setTimeType(int timeType) {
+  timeType_ = timeType;
+  setBodyParameter(std::string("TimeType"), std::to_string(timeType));
 }
 
-std::string UpdateJobRequest::getParameters()const
-{
-	return parameters_;
+std::string UpdateJobRequest::getParameters() const {
+  return parameters_;
 }
 
-void UpdateJobRequest::setParameters(const std::string& parameters)
-{
-	parameters_ = parameters;
-	setBodyParameter("Parameters", parameters);
+void UpdateJobRequest::setParameters(const std::string &parameters) {
+  parameters_ = parameters;
+  setBodyParameter(std::string("Parameters"), parameters);
 }
 

+ 2 - 2
schedulerx2/src/model/UpdateJobResult.cc

@@ -41,10 +41,10 @@ void UpdateJobResult::parse(const std::string &payload)
 	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["Success"].isNull())
+		success_ = value["Success"].asString() == "true";
 
 }