diff --git a/VERSION b/VERSION index 4a88fb624..e1e495312 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2034 \ No newline at end of file +1.36.2035 \ No newline at end of file diff --git a/schedulerx3/CMakeLists.txt b/schedulerx3/CMakeLists.txt new file mode 100644 index 000000000..a008b4caf --- /dev/null +++ b/schedulerx3/CMakeLists.txt @@ -0,0 +1,226 @@ +# +# 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. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(schedulerx3_public_header + include/alibabacloud/schedulerx3/SchedulerX3Client.h + include/alibabacloud/schedulerx3/SchedulerX3Export.h ) + +set(schedulerx3_public_header_model + include/alibabacloud/schedulerx3/model/CreateAppRequest.h + include/alibabacloud/schedulerx3/model/CreateAppResult.h + include/alibabacloud/schedulerx3/model/CreateClusterRequest.h + include/alibabacloud/schedulerx3/model/CreateClusterResult.h + include/alibabacloud/schedulerx3/model/CreateJobRequest.h + include/alibabacloud/schedulerx3/model/CreateJobResult.h + include/alibabacloud/schedulerx3/model/DeleteAppRequest.h + include/alibabacloud/schedulerx3/model/DeleteAppResult.h + include/alibabacloud/schedulerx3/model/DeleteClusterRequest.h + include/alibabacloud/schedulerx3/model/DeleteClusterResult.h + include/alibabacloud/schedulerx3/model/DeleteJobsRequest.h + include/alibabacloud/schedulerx3/model/DeleteJobsResult.h + include/alibabacloud/schedulerx3/model/ExportJobsRequest.h + include/alibabacloud/schedulerx3/model/ExportJobsResult.h + include/alibabacloud/schedulerx3/model/GetClusterRequest.h + include/alibabacloud/schedulerx3/model/GetClusterResult.h + include/alibabacloud/schedulerx3/model/GetDesigateInfoRequest.h + include/alibabacloud/schedulerx3/model/GetDesigateInfoResult.h + include/alibabacloud/schedulerx3/model/GetJobExecutionProgressRequest.h + include/alibabacloud/schedulerx3/model/GetJobExecutionProgressResult.h + include/alibabacloud/schedulerx3/model/GetLogRequest.h + include/alibabacloud/schedulerx3/model/GetLogResult.h + include/alibabacloud/schedulerx3/model/ImportCalendarRequest.h + include/alibabacloud/schedulerx3/model/ImportCalendarResult.h + include/alibabacloud/schedulerx3/model/ImportJobsRequest.h + include/alibabacloud/schedulerx3/model/ImportJobsResult.h + include/alibabacloud/schedulerx3/model/ListAlarmEventRequest.h + include/alibabacloud/schedulerx3/model/ListAlarmEventResult.h + include/alibabacloud/schedulerx3/model/ListAppNamesRequest.h + include/alibabacloud/schedulerx3/model/ListAppNamesResult.h + include/alibabacloud/schedulerx3/model/ListAppsRequest.h + include/alibabacloud/schedulerx3/model/ListAppsResult.h + include/alibabacloud/schedulerx3/model/ListCalendarNamesRequest.h + include/alibabacloud/schedulerx3/model/ListCalendarNamesResult.h + include/alibabacloud/schedulerx3/model/ListClustersRequest.h + include/alibabacloud/schedulerx3/model/ListClustersResult.h + include/alibabacloud/schedulerx3/model/ListExecutorsRequest.h + include/alibabacloud/schedulerx3/model/ListExecutorsResult.h + include/alibabacloud/schedulerx3/model/ListJobExecutionsRequest.h + include/alibabacloud/schedulerx3/model/ListJobExecutionsResult.h + include/alibabacloud/schedulerx3/model/ListJobsRequest.h + include/alibabacloud/schedulerx3/model/ListJobsResult.h + include/alibabacloud/schedulerx3/model/ListLablesRequest.h + include/alibabacloud/schedulerx3/model/ListLablesResult.h + include/alibabacloud/schedulerx3/model/ListRegionZoneRequest.h + include/alibabacloud/schedulerx3/model/ListRegionZoneResult.h + include/alibabacloud/schedulerx3/model/ListRegionsRequest.h + include/alibabacloud/schedulerx3/model/ListRegionsResult.h + include/alibabacloud/schedulerx3/model/ListScheduleEventRequest.h + include/alibabacloud/schedulerx3/model/ListScheduleEventResult.h + include/alibabacloud/schedulerx3/model/ListScheduleTimesRequest.h + include/alibabacloud/schedulerx3/model/ListScheduleTimesResult.h + include/alibabacloud/schedulerx3/model/OperateDesignateExecutorsRequest.h + include/alibabacloud/schedulerx3/model/OperateDesignateExecutorsResult.h + include/alibabacloud/schedulerx3/model/OperateDisableJobsRequest.h + include/alibabacloud/schedulerx3/model/OperateDisableJobsResult.h + include/alibabacloud/schedulerx3/model/OperateEnableJobsRequest.h + include/alibabacloud/schedulerx3/model/OperateEnableJobsResult.h + include/alibabacloud/schedulerx3/model/OperateExecuteJobRequest.h + include/alibabacloud/schedulerx3/model/OperateExecuteJobResult.h + include/alibabacloud/schedulerx3/model/OperateRerunJobRequest.h + include/alibabacloud/schedulerx3/model/OperateRerunJobResult.h + include/alibabacloud/schedulerx3/model/OperateRetryJobExecutionRequest.h + include/alibabacloud/schedulerx3/model/OperateRetryJobExecutionResult.h + include/alibabacloud/schedulerx3/model/OperateStopJobExecutionRequest.h + include/alibabacloud/schedulerx3/model/OperateStopJobExecutionResult.h + include/alibabacloud/schedulerx3/model/UpdateAppRequest.h + include/alibabacloud/schedulerx3/model/UpdateAppResult.h + include/alibabacloud/schedulerx3/model/UpdateClusterRequest.h + include/alibabacloud/schedulerx3/model/UpdateClusterResult.h + include/alibabacloud/schedulerx3/model/UpdateJobRequest.h + include/alibabacloud/schedulerx3/model/UpdateJobResult.h ) + +set(schedulerx3_src + src/SchedulerX3Client.cc + src/model/CreateAppRequest.cc + src/model/CreateAppResult.cc + src/model/CreateClusterRequest.cc + src/model/CreateClusterResult.cc + src/model/CreateJobRequest.cc + src/model/CreateJobResult.cc + src/model/DeleteAppRequest.cc + src/model/DeleteAppResult.cc + src/model/DeleteClusterRequest.cc + src/model/DeleteClusterResult.cc + src/model/DeleteJobsRequest.cc + src/model/DeleteJobsResult.cc + src/model/ExportJobsRequest.cc + src/model/ExportJobsResult.cc + src/model/GetClusterRequest.cc + src/model/GetClusterResult.cc + src/model/GetDesigateInfoRequest.cc + src/model/GetDesigateInfoResult.cc + src/model/GetJobExecutionProgressRequest.cc + src/model/GetJobExecutionProgressResult.cc + src/model/GetLogRequest.cc + src/model/GetLogResult.cc + src/model/ImportCalendarRequest.cc + src/model/ImportCalendarResult.cc + src/model/ImportJobsRequest.cc + src/model/ImportJobsResult.cc + src/model/ListAlarmEventRequest.cc + src/model/ListAlarmEventResult.cc + src/model/ListAppNamesRequest.cc + src/model/ListAppNamesResult.cc + src/model/ListAppsRequest.cc + src/model/ListAppsResult.cc + src/model/ListCalendarNamesRequest.cc + src/model/ListCalendarNamesResult.cc + src/model/ListClustersRequest.cc + src/model/ListClustersResult.cc + src/model/ListExecutorsRequest.cc + src/model/ListExecutorsResult.cc + src/model/ListJobExecutionsRequest.cc + src/model/ListJobExecutionsResult.cc + src/model/ListJobsRequest.cc + src/model/ListJobsResult.cc + src/model/ListLablesRequest.cc + src/model/ListLablesResult.cc + src/model/ListRegionZoneRequest.cc + src/model/ListRegionZoneResult.cc + src/model/ListRegionsRequest.cc + src/model/ListRegionsResult.cc + src/model/ListScheduleEventRequest.cc + src/model/ListScheduleEventResult.cc + src/model/ListScheduleTimesRequest.cc + src/model/ListScheduleTimesResult.cc + src/model/OperateDesignateExecutorsRequest.cc + src/model/OperateDesignateExecutorsResult.cc + src/model/OperateDisableJobsRequest.cc + src/model/OperateDisableJobsResult.cc + src/model/OperateEnableJobsRequest.cc + src/model/OperateEnableJobsResult.cc + src/model/OperateExecuteJobRequest.cc + src/model/OperateExecuteJobResult.cc + src/model/OperateRerunJobRequest.cc + src/model/OperateRerunJobResult.cc + src/model/OperateRetryJobExecutionRequest.cc + src/model/OperateRetryJobExecutionResult.cc + src/model/OperateStopJobExecutionRequest.cc + src/model/OperateStopJobExecutionResult.cc + src/model/UpdateAppRequest.cc + src/model/UpdateAppResult.cc + src/model/UpdateClusterRequest.cc + src/model/UpdateClusterResult.cc + src/model/UpdateJobRequest.cc + src/model/UpdateJobResult.cc ) + +add_library(schedulerx3 ${LIB_TYPE} + ${schedulerx3_public_header} + ${schedulerx3_public_header_model} + ${schedulerx3_src}) + +set_target_properties(schedulerx3 + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}schedulerx3 + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(schedulerx3 + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_SCHEDULERX3_LIBRARY) +endif() + +target_include_directories(schedulerx3 + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(schedulerx3 + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(schedulerx3 + jsoncpp) + target_include_directories(schedulerx3 + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(schedulerx3 + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(schedulerx3 + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(schedulerx3 + PRIVATE /usr/include/jsoncpp) + target_link_libraries(schedulerx3 + jsoncpp) +endif() + +install(FILES ${schedulerx3_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/schedulerx3) +install(FILES ${schedulerx3_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/schedulerx3/model) +install(TARGETS schedulerx3 + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/SchedulerX3Client.h b/schedulerx3/include/alibabacloud/schedulerx3/SchedulerX3Client.h new file mode 100644 index 000000000..6cd0491a2 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/SchedulerX3Client.h @@ -0,0 +1,334 @@ +/* + * 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_SCHEDULERX3_SCHEDULERX3CLIENT_H_ +#define ALIBABACLOUD_SCHEDULERX3_SCHEDULERX3CLIENT_H_ + +#include +#include +#include +#include +#include "SchedulerX3Export.h" +#include "model/CreateAppRequest.h" +#include "model/CreateAppResult.h" +#include "model/CreateClusterRequest.h" +#include "model/CreateClusterResult.h" +#include "model/CreateJobRequest.h" +#include "model/CreateJobResult.h" +#include "model/DeleteAppRequest.h" +#include "model/DeleteAppResult.h" +#include "model/DeleteClusterRequest.h" +#include "model/DeleteClusterResult.h" +#include "model/DeleteJobsRequest.h" +#include "model/DeleteJobsResult.h" +#include "model/ExportJobsRequest.h" +#include "model/ExportJobsResult.h" +#include "model/GetClusterRequest.h" +#include "model/GetClusterResult.h" +#include "model/GetDesigateInfoRequest.h" +#include "model/GetDesigateInfoResult.h" +#include "model/GetJobExecutionProgressRequest.h" +#include "model/GetJobExecutionProgressResult.h" +#include "model/GetLogRequest.h" +#include "model/GetLogResult.h" +#include "model/ImportCalendarRequest.h" +#include "model/ImportCalendarResult.h" +#include "model/ImportJobsRequest.h" +#include "model/ImportJobsResult.h" +#include "model/ListAlarmEventRequest.h" +#include "model/ListAlarmEventResult.h" +#include "model/ListAppNamesRequest.h" +#include "model/ListAppNamesResult.h" +#include "model/ListAppsRequest.h" +#include "model/ListAppsResult.h" +#include "model/ListCalendarNamesRequest.h" +#include "model/ListCalendarNamesResult.h" +#include "model/ListClustersRequest.h" +#include "model/ListClustersResult.h" +#include "model/ListExecutorsRequest.h" +#include "model/ListExecutorsResult.h" +#include "model/ListJobExecutionsRequest.h" +#include "model/ListJobExecutionsResult.h" +#include "model/ListJobsRequest.h" +#include "model/ListJobsResult.h" +#include "model/ListLablesRequest.h" +#include "model/ListLablesResult.h" +#include "model/ListRegionZoneRequest.h" +#include "model/ListRegionZoneResult.h" +#include "model/ListRegionsRequest.h" +#include "model/ListRegionsResult.h" +#include "model/ListScheduleEventRequest.h" +#include "model/ListScheduleEventResult.h" +#include "model/ListScheduleTimesRequest.h" +#include "model/ListScheduleTimesResult.h" +#include "model/OperateDesignateExecutorsRequest.h" +#include "model/OperateDesignateExecutorsResult.h" +#include "model/OperateDisableJobsRequest.h" +#include "model/OperateDisableJobsResult.h" +#include "model/OperateEnableJobsRequest.h" +#include "model/OperateEnableJobsResult.h" +#include "model/OperateExecuteJobRequest.h" +#include "model/OperateExecuteJobResult.h" +#include "model/OperateRerunJobRequest.h" +#include "model/OperateRerunJobResult.h" +#include "model/OperateRetryJobExecutionRequest.h" +#include "model/OperateRetryJobExecutionResult.h" +#include "model/OperateStopJobExecutionRequest.h" +#include "model/OperateStopJobExecutionResult.h" +#include "model/UpdateAppRequest.h" +#include "model/UpdateAppResult.h" +#include "model/UpdateClusterRequest.h" +#include "model/UpdateClusterResult.h" +#include "model/UpdateJobRequest.h" +#include "model/UpdateJobResult.h" + + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT SchedulerX3Client : public RpcServiceClient + { + public: + typedef Outcome CreateAppOutcome; + typedef std::future CreateAppOutcomeCallable; + typedef std::function&)> CreateAppAsyncHandler; + typedef Outcome CreateClusterOutcome; + typedef std::future CreateClusterOutcomeCallable; + typedef std::function&)> CreateClusterAsyncHandler; + typedef Outcome CreateJobOutcome; + typedef std::future CreateJobOutcomeCallable; + typedef std::function&)> CreateJobAsyncHandler; + typedef Outcome DeleteAppOutcome; + typedef std::future DeleteAppOutcomeCallable; + typedef std::function&)> DeleteAppAsyncHandler; + typedef Outcome DeleteClusterOutcome; + typedef std::future DeleteClusterOutcomeCallable; + typedef std::function&)> DeleteClusterAsyncHandler; + typedef Outcome DeleteJobsOutcome; + typedef std::future DeleteJobsOutcomeCallable; + typedef std::function&)> DeleteJobsAsyncHandler; + typedef Outcome ExportJobsOutcome; + typedef std::future ExportJobsOutcomeCallable; + typedef std::function&)> ExportJobsAsyncHandler; + typedef Outcome GetClusterOutcome; + typedef std::future GetClusterOutcomeCallable; + typedef std::function&)> GetClusterAsyncHandler; + typedef Outcome GetDesigateInfoOutcome; + typedef std::future GetDesigateInfoOutcomeCallable; + typedef std::function&)> GetDesigateInfoAsyncHandler; + typedef Outcome GetJobExecutionProgressOutcome; + typedef std::future GetJobExecutionProgressOutcomeCallable; + typedef std::function&)> GetJobExecutionProgressAsyncHandler; + typedef Outcome GetLogOutcome; + typedef std::future GetLogOutcomeCallable; + typedef std::function&)> GetLogAsyncHandler; + typedef Outcome ImportCalendarOutcome; + typedef std::future ImportCalendarOutcomeCallable; + typedef std::function&)> ImportCalendarAsyncHandler; + typedef Outcome ImportJobsOutcome; + typedef std::future ImportJobsOutcomeCallable; + typedef std::function&)> ImportJobsAsyncHandler; + typedef Outcome ListAlarmEventOutcome; + typedef std::future ListAlarmEventOutcomeCallable; + typedef std::function&)> ListAlarmEventAsyncHandler; + typedef Outcome ListAppNamesOutcome; + typedef std::future ListAppNamesOutcomeCallable; + typedef std::function&)> ListAppNamesAsyncHandler; + typedef Outcome ListAppsOutcome; + typedef std::future ListAppsOutcomeCallable; + typedef std::function&)> ListAppsAsyncHandler; + typedef Outcome ListCalendarNamesOutcome; + typedef std::future ListCalendarNamesOutcomeCallable; + typedef std::function&)> ListCalendarNamesAsyncHandler; + typedef Outcome ListClustersOutcome; + typedef std::future ListClustersOutcomeCallable; + typedef std::function&)> ListClustersAsyncHandler; + typedef Outcome ListExecutorsOutcome; + typedef std::future ListExecutorsOutcomeCallable; + typedef std::function&)> ListExecutorsAsyncHandler; + typedef Outcome ListJobExecutionsOutcome; + typedef std::future ListJobExecutionsOutcomeCallable; + typedef std::function&)> ListJobExecutionsAsyncHandler; + typedef Outcome ListJobsOutcome; + typedef std::future ListJobsOutcomeCallable; + typedef std::function&)> ListJobsAsyncHandler; + typedef Outcome ListLablesOutcome; + typedef std::future ListLablesOutcomeCallable; + typedef std::function&)> ListLablesAsyncHandler; + typedef Outcome ListRegionZoneOutcome; + typedef std::future ListRegionZoneOutcomeCallable; + typedef std::function&)> ListRegionZoneAsyncHandler; + typedef Outcome ListRegionsOutcome; + typedef std::future ListRegionsOutcomeCallable; + typedef std::function&)> ListRegionsAsyncHandler; + typedef Outcome ListScheduleEventOutcome; + typedef std::future ListScheduleEventOutcomeCallable; + typedef std::function&)> ListScheduleEventAsyncHandler; + typedef Outcome ListScheduleTimesOutcome; + typedef std::future ListScheduleTimesOutcomeCallable; + typedef std::function&)> ListScheduleTimesAsyncHandler; + typedef Outcome OperateDesignateExecutorsOutcome; + typedef std::future OperateDesignateExecutorsOutcomeCallable; + typedef std::function&)> OperateDesignateExecutorsAsyncHandler; + typedef Outcome OperateDisableJobsOutcome; + typedef std::future OperateDisableJobsOutcomeCallable; + typedef std::function&)> OperateDisableJobsAsyncHandler; + typedef Outcome OperateEnableJobsOutcome; + typedef std::future OperateEnableJobsOutcomeCallable; + typedef std::function&)> OperateEnableJobsAsyncHandler; + typedef Outcome OperateExecuteJobOutcome; + typedef std::future OperateExecuteJobOutcomeCallable; + typedef std::function&)> OperateExecuteJobAsyncHandler; + typedef Outcome OperateRerunJobOutcome; + typedef std::future OperateRerunJobOutcomeCallable; + typedef std::function&)> OperateRerunJobAsyncHandler; + typedef Outcome OperateRetryJobExecutionOutcome; + typedef std::future OperateRetryJobExecutionOutcomeCallable; + typedef std::function&)> OperateRetryJobExecutionAsyncHandler; + typedef Outcome OperateStopJobExecutionOutcome; + typedef std::future OperateStopJobExecutionOutcomeCallable; + typedef std::function&)> OperateStopJobExecutionAsyncHandler; + typedef Outcome UpdateAppOutcome; + typedef std::future UpdateAppOutcomeCallable; + typedef std::function&)> UpdateAppAsyncHandler; + typedef Outcome UpdateClusterOutcome; + typedef std::future UpdateClusterOutcomeCallable; + typedef std::function&)> UpdateClusterAsyncHandler; + typedef Outcome UpdateJobOutcome; + typedef std::future UpdateJobOutcomeCallable; + typedef std::function&)> UpdateJobAsyncHandler; + + SchedulerX3Client(const Credentials &credentials, const ClientConfiguration &configuration); + SchedulerX3Client(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + SchedulerX3Client(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~SchedulerX3Client(); + CreateAppOutcome createApp(const Model::CreateAppRequest &request)const; + void createAppAsync(const Model::CreateAppRequest& request, const CreateAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAppOutcomeCallable createAppCallable(const Model::CreateAppRequest& request) const; + CreateClusterOutcome createCluster(const Model::CreateClusterRequest &request)const; + void createClusterAsync(const Model::CreateClusterRequest& request, const CreateClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateClusterOutcomeCallable createClusterCallable(const Model::CreateClusterRequest& request) const; + CreateJobOutcome createJob(const Model::CreateJobRequest &request)const; + void createJobAsync(const Model::CreateJobRequest& request, const CreateJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateJobOutcomeCallable createJobCallable(const Model::CreateJobRequest& request) const; + DeleteAppOutcome deleteApp(const Model::DeleteAppRequest &request)const; + void deleteAppAsync(const Model::DeleteAppRequest& request, const DeleteAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAppOutcomeCallable deleteAppCallable(const Model::DeleteAppRequest& request) const; + DeleteClusterOutcome deleteCluster(const Model::DeleteClusterRequest &request)const; + void deleteClusterAsync(const Model::DeleteClusterRequest& request, const DeleteClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteClusterOutcomeCallable deleteClusterCallable(const Model::DeleteClusterRequest& request) const; + DeleteJobsOutcome deleteJobs(const Model::DeleteJobsRequest &request)const; + void deleteJobsAsync(const Model::DeleteJobsRequest& request, const DeleteJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteJobsOutcomeCallable deleteJobsCallable(const Model::DeleteJobsRequest& request) const; + ExportJobsOutcome exportJobs(const Model::ExportJobsRequest &request)const; + void exportJobsAsync(const Model::ExportJobsRequest& request, const ExportJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExportJobsOutcomeCallable exportJobsCallable(const Model::ExportJobsRequest& request) const; + GetClusterOutcome getCluster(const Model::GetClusterRequest &request)const; + void getClusterAsync(const Model::GetClusterRequest& request, const GetClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetClusterOutcomeCallable getClusterCallable(const Model::GetClusterRequest& request) const; + GetDesigateInfoOutcome getDesigateInfo(const Model::GetDesigateInfoRequest &request)const; + void getDesigateInfoAsync(const Model::GetDesigateInfoRequest& request, const GetDesigateInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDesigateInfoOutcomeCallable getDesigateInfoCallable(const Model::GetDesigateInfoRequest& request) const; + GetJobExecutionProgressOutcome getJobExecutionProgress(const Model::GetJobExecutionProgressRequest &request)const; + void getJobExecutionProgressAsync(const Model::GetJobExecutionProgressRequest& request, const GetJobExecutionProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetJobExecutionProgressOutcomeCallable getJobExecutionProgressCallable(const Model::GetJobExecutionProgressRequest& request) const; + GetLogOutcome getLog(const Model::GetLogRequest &request)const; + void getLogAsync(const Model::GetLogRequest& request, const GetLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetLogOutcomeCallable getLogCallable(const Model::GetLogRequest& request) const; + ImportCalendarOutcome importCalendar(const Model::ImportCalendarRequest &request)const; + void importCalendarAsync(const Model::ImportCalendarRequest& request, const ImportCalendarAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ImportCalendarOutcomeCallable importCalendarCallable(const Model::ImportCalendarRequest& request) const; + ImportJobsOutcome importJobs(const Model::ImportJobsRequest &request)const; + void importJobsAsync(const Model::ImportJobsRequest& request, const ImportJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ImportJobsOutcomeCallable importJobsCallable(const Model::ImportJobsRequest& request) const; + ListAlarmEventOutcome listAlarmEvent(const Model::ListAlarmEventRequest &request)const; + void listAlarmEventAsync(const Model::ListAlarmEventRequest& request, const ListAlarmEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAlarmEventOutcomeCallable listAlarmEventCallable(const Model::ListAlarmEventRequest& request) const; + ListAppNamesOutcome listAppNames(const Model::ListAppNamesRequest &request)const; + void listAppNamesAsync(const Model::ListAppNamesRequest& request, const ListAppNamesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAppNamesOutcomeCallable listAppNamesCallable(const Model::ListAppNamesRequest& request) const; + ListAppsOutcome listApps(const Model::ListAppsRequest &request)const; + void listAppsAsync(const Model::ListAppsRequest& request, const ListAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAppsOutcomeCallable listAppsCallable(const Model::ListAppsRequest& request) const; + ListCalendarNamesOutcome listCalendarNames(const Model::ListCalendarNamesRequest &request)const; + void listCalendarNamesAsync(const Model::ListCalendarNamesRequest& request, const ListCalendarNamesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCalendarNamesOutcomeCallable listCalendarNamesCallable(const Model::ListCalendarNamesRequest& request) const; + ListClustersOutcome listClusters(const Model::ListClustersRequest &request)const; + void listClustersAsync(const Model::ListClustersRequest& request, const ListClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClustersOutcomeCallable listClustersCallable(const Model::ListClustersRequest& request) const; + ListExecutorsOutcome listExecutors(const Model::ListExecutorsRequest &request)const; + void listExecutorsAsync(const Model::ListExecutorsRequest& request, const ListExecutorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListExecutorsOutcomeCallable listExecutorsCallable(const Model::ListExecutorsRequest& request) const; + ListJobExecutionsOutcome listJobExecutions(const Model::ListJobExecutionsRequest &request)const; + void listJobExecutionsAsync(const Model::ListJobExecutionsRequest& request, const ListJobExecutionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobExecutionsOutcomeCallable listJobExecutionsCallable(const Model::ListJobExecutionsRequest& request) const; + ListJobsOutcome listJobs(const Model::ListJobsRequest &request)const; + void listJobsAsync(const Model::ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobsOutcomeCallable listJobsCallable(const Model::ListJobsRequest& request) const; + ListLablesOutcome listLables(const Model::ListLablesRequest &request)const; + void listLablesAsync(const Model::ListLablesRequest& request, const ListLablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListLablesOutcomeCallable listLablesCallable(const Model::ListLablesRequest& request) const; + ListRegionZoneOutcome listRegionZone(const Model::ListRegionZoneRequest &request)const; + void listRegionZoneAsync(const Model::ListRegionZoneRequest& request, const ListRegionZoneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRegionZoneOutcomeCallable listRegionZoneCallable(const Model::ListRegionZoneRequest& request) const; + ListRegionsOutcome listRegions(const Model::ListRegionsRequest &request)const; + void listRegionsAsync(const Model::ListRegionsRequest& request, const ListRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRegionsOutcomeCallable listRegionsCallable(const Model::ListRegionsRequest& request) const; + ListScheduleEventOutcome listScheduleEvent(const Model::ListScheduleEventRequest &request)const; + void listScheduleEventAsync(const Model::ListScheduleEventRequest& request, const ListScheduleEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListScheduleEventOutcomeCallable listScheduleEventCallable(const Model::ListScheduleEventRequest& request) const; + ListScheduleTimesOutcome listScheduleTimes(const Model::ListScheduleTimesRequest &request)const; + void listScheduleTimesAsync(const Model::ListScheduleTimesRequest& request, const ListScheduleTimesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListScheduleTimesOutcomeCallable listScheduleTimesCallable(const Model::ListScheduleTimesRequest& request) const; + OperateDesignateExecutorsOutcome operateDesignateExecutors(const Model::OperateDesignateExecutorsRequest &request)const; + void operateDesignateExecutorsAsync(const Model::OperateDesignateExecutorsRequest& request, const OperateDesignateExecutorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OperateDesignateExecutorsOutcomeCallable operateDesignateExecutorsCallable(const Model::OperateDesignateExecutorsRequest& request) const; + OperateDisableJobsOutcome operateDisableJobs(const Model::OperateDisableJobsRequest &request)const; + void operateDisableJobsAsync(const Model::OperateDisableJobsRequest& request, const OperateDisableJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OperateDisableJobsOutcomeCallable operateDisableJobsCallable(const Model::OperateDisableJobsRequest& request) const; + OperateEnableJobsOutcome operateEnableJobs(const Model::OperateEnableJobsRequest &request)const; + void operateEnableJobsAsync(const Model::OperateEnableJobsRequest& request, const OperateEnableJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OperateEnableJobsOutcomeCallable operateEnableJobsCallable(const Model::OperateEnableJobsRequest& request) const; + OperateExecuteJobOutcome operateExecuteJob(const Model::OperateExecuteJobRequest &request)const; + void operateExecuteJobAsync(const Model::OperateExecuteJobRequest& request, const OperateExecuteJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OperateExecuteJobOutcomeCallable operateExecuteJobCallable(const Model::OperateExecuteJobRequest& request) const; + OperateRerunJobOutcome operateRerunJob(const Model::OperateRerunJobRequest &request)const; + void operateRerunJobAsync(const Model::OperateRerunJobRequest& request, const OperateRerunJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OperateRerunJobOutcomeCallable operateRerunJobCallable(const Model::OperateRerunJobRequest& request) const; + OperateRetryJobExecutionOutcome operateRetryJobExecution(const Model::OperateRetryJobExecutionRequest &request)const; + void operateRetryJobExecutionAsync(const Model::OperateRetryJobExecutionRequest& request, const OperateRetryJobExecutionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OperateRetryJobExecutionOutcomeCallable operateRetryJobExecutionCallable(const Model::OperateRetryJobExecutionRequest& request) const; + OperateStopJobExecutionOutcome operateStopJobExecution(const Model::OperateStopJobExecutionRequest &request)const; + void operateStopJobExecutionAsync(const Model::OperateStopJobExecutionRequest& request, const OperateStopJobExecutionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OperateStopJobExecutionOutcomeCallable operateStopJobExecutionCallable(const Model::OperateStopJobExecutionRequest& request) const; + UpdateAppOutcome updateApp(const Model::UpdateAppRequest &request)const; + void updateAppAsync(const Model::UpdateAppRequest& request, const UpdateAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAppOutcomeCallable updateAppCallable(const Model::UpdateAppRequest& request) const; + UpdateClusterOutcome updateCluster(const Model::UpdateClusterRequest &request)const; + void updateClusterAsync(const Model::UpdateClusterRequest& request, const UpdateClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateClusterOutcomeCallable updateClusterCallable(const Model::UpdateClusterRequest& request) const; + UpdateJobOutcome updateJob(const Model::UpdateJobRequest &request)const; + void updateJobAsync(const Model::UpdateJobRequest& request, const UpdateJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateJobOutcomeCallable updateJobCallable(const Model::UpdateJobRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_SCHEDULERX3_SCHEDULERX3CLIENT_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/SchedulerX3Export.h b/schedulerx3/include/alibabacloud/schedulerx3/SchedulerX3Export.h new file mode 100644 index 000000000..0063cb4fa --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/SchedulerX3Export.h @@ -0,0 +1,32 @@ +/* + * 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_SCHEDULERX3_SCHEDULERX3EXPORT_H_ +#define ALIBABACLOUD_SCHEDULERX3_SCHEDULERX3EXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_SCHEDULERX3_LIBRARY) +# define ALIBABACLOUD_SCHEDULERX3_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_SCHEDULERX3_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_SCHEDULERX3_EXPORT +#endif + +#endif // !ALIBABACLOUD_SCHEDULERX3_SCHEDULERX3EXPORT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/CreateAppRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/CreateAppRequest.h new file mode 100644 index 000000000..76086f080 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/CreateAppRequest.h @@ -0,0 +1,84 @@ +/* + * 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_SCHEDULERX3_MODEL_CREATEAPPREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_CREATEAPPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT CreateAppRequest : public RpcServiceRequest { +public: + struct NoticeContacts { + std::string webhook; + std::string mail; + std::string phone; + std::string smsCode; + std::string mailCode; + std::string userName; + }; + struct NoticeConfig { + bool webhookIsAtAll; + std::string noticeChannel; + }; + CreateAppRequest(); + ~CreateAppRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getTitle() const; + void setTitle(const std::string &title); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::vector getNoticeContacts() const; + void setNoticeContacts(const std::vector ¬iceContacts); + NoticeConfig getNoticeConfig() const; + void setNoticeConfig(const NoticeConfig ¬iceConfig); + int getMaxJobs() const; + void setMaxJobs(int maxJobs); + std::string getCalender() const; + void setCalender(const std::string &calender); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + bool getEnableLog() const; + void setEnableLog(bool enableLog); + int getMaxConcurrency() const; + void setMaxConcurrency(int maxConcurrency); + +private: + std::string mseSessionId_; + std::string accessToken_; + std::string title_; + std::string appName_; + std::vector noticeContacts_; + NoticeConfig noticeConfig_; + int maxJobs_; + std::string calender_; + std::string clusterId_; + bool enableLog_; + int maxConcurrency_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_CREATEAPPREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/CreateAppResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/CreateAppResult.h new file mode 100644 index 000000000..10d017c56 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/CreateAppResult.h @@ -0,0 +1,62 @@ +/* + * 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_SCHEDULERX3_MODEL_CREATEAPPRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_CREATEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT CreateAppResult : public ServiceResult + { + public: + struct Data + { + long appGroupId; + std::string accessToken; + }; + + + CreateAppResult(); + explicit CreateAppResult(const std::string &payload); + ~CreateAppResult(); + 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_SCHEDULERX3_MODEL_CREATEAPPRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/CreateClusterRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/CreateClusterRequest.h new file mode 100644 index 000000000..fd8222027 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/CreateClusterRequest.h @@ -0,0 +1,64 @@ +/* + * 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_SCHEDULERX3_MODEL_CREATECLUSTERREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_CREATECLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT CreateClusterRequest : public RpcServiceRequest { +public: + struct VSwitches { + std::string vSwitchId; + std::string zoneId; + }; + CreateClusterRequest(); + ~CreateClusterRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getClusterName() const; + void setClusterName(const std::string &clusterName); + int getProductType() const; + void setProductType(int productType); + std::string getEngineType() const; + void setEngineType(const std::string &engineType); + std::vector getVSwitches() const; + void setVSwitches(const std::vector &vSwitches); + std::string getClusterSpec() const; + void setClusterSpec(const std::string &clusterSpec); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + std::string mseSessionId_; + std::string clusterName_; + int productType_; + std::string engineType_; + std::vector vSwitches_; + std::string clusterSpec_; + std::string vpcId_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_CREATECLUSTERREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/CreateClusterResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/CreateClusterResult.h new file mode 100644 index 000000000..5a9adf366 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/CreateClusterResult.h @@ -0,0 +1,64 @@ +/* + * 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_SCHEDULERX3_MODEL_CREATECLUSTERRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_CREATECLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT CreateClusterResult : public ServiceResult + { + public: + struct Data + { + std::string clusterId; + long orderId; + }; + + + CreateClusterResult(); + explicit CreateClusterResult(const std::string &payload); + ~CreateClusterResult(); + std::string getMessage()const; + Data getData()const; + std::string getErrorCode()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string errorCode_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_CREATECLUSTERRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/CreateJobRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/CreateJobRequest.h new file mode 100644 index 000000000..04d6b4132 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/CreateJobRequest.h @@ -0,0 +1,130 @@ +/* + * 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_SCHEDULERX3_MODEL_CREATEJOBREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_CREATEJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT CreateJobRequest : public RpcServiceRequest { +public: + struct NoticeContacts { + int contactType; + std::string name; + }; + struct NoticeConfig { + bool timeoutKillEnable; + bool failEnable; + bool webhookIsAtAll; + bool successNotice; + int failLimitTimes; + std::string sendChannel; + std::string noticeChannel; + bool timeoutEnable; + bool missWorkerEnable; + long timeout; + }; + CreateJobRequest(); + ~CreateJobRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + int getExecutorBlockStrategy() const; + void setExecutorBlockStrategy(int executorBlockStrategy); + std::string getTimezone() const; + void setTimezone(const std::string &timezone); + int getRouteStrategy() const; + void setRouteStrategy(int routeStrategy); + std::string getDescription() const; + void setDescription(const std::string &description); + int getAttemptInterval() const; + void setAttemptInterval(int attemptInterval); + long getStartTime() const; + void setStartTime(long startTime); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::vector getNoticeContacts() const; + void setNoticeContacts(const std::vector ¬iceContacts); + NoticeConfig getNoticeConfig() const; + void setNoticeConfig(const NoticeConfig ¬iceConfig); + std::string getCalendar() const; + void setCalendar(const std::string &calendar); + int getDataOffset() const; + void setDataOffset(int dataOffset); + int getMaxAttempt() const; + void setMaxAttempt(int maxAttempt); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getPriority() const; + void setPriority(int priority); + std::string getJobType() const; + void setJobType(const std::string &jobType); + std::string getTimeExpression() const; + void setTimeExpression(const std::string &timeExpression); + std::string getName() const; + void setName(const std::string &name); + std::string getXAttrs() const; + void setXAttrs(const std::string &xAttrs); + int getMaxConcurrency() const; + void setMaxConcurrency(int maxConcurrency); + int getTimeType() const; + void setTimeType(int timeType); + std::string getParameters() const; + void setParameters(const std::string ¶meters); + std::string getJobHandler() const; + void setJobHandler(const std::string &jobHandler); + std::string getCleanMode() const; + void setCleanMode(const std::string &cleanMode); + int getStatus() const; + void setStatus(int status); + +private: + std::string mseSessionId_; + int executorBlockStrategy_; + std::string timezone_; + int routeStrategy_; + std::string description_; + int attemptInterval_; + long startTime_; + std::string appName_; + std::vector noticeContacts_; + NoticeConfig noticeConfig_; + std::string calendar_; + int dataOffset_; + int maxAttempt_; + std::string clusterId_; + int priority_; + std::string jobType_; + std::string timeExpression_; + std::string name_; + std::string xAttrs_; + int maxConcurrency_; + int timeType_; + std::string parameters_; + std::string jobHandler_; + std::string cleanMode_; + int status_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_CREATEJOBREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/CreateJobResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/CreateJobResult.h new file mode 100644 index 000000000..aa1108be5 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/CreateJobResult.h @@ -0,0 +1,61 @@ +/* + * 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_SCHEDULERX3_MODEL_CREATEJOBRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_CREATEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT CreateJobResult : public ServiceResult + { + public: + struct Data + { + long jobId; + }; + + + CreateJobResult(); + explicit CreateJobResult(const std::string &payload); + ~CreateJobResult(); + 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_SCHEDULERX3_MODEL_CREATEJOBRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/DeleteAppRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/DeleteAppRequest.h new file mode 100644 index 000000000..ee6457704 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/DeleteAppRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX3_MODEL_DELETEAPPREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_DELETEAPPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT DeleteAppRequest : public RpcServiceRequest { +public: + DeleteAppRequest(); + ~DeleteAppRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAppName() const; + void setAppName(const std::string &appName); + +private: + std::string mseSessionId_; + std::string clusterId_; + std::string appName_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_DELETEAPPREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/DeleteAppResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/DeleteAppResult.h new file mode 100644 index 000000000..1572b5a4f --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/DeleteAppResult.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_SCHEDULERX3_MODEL_DELETEAPPRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_DELETEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT DeleteAppResult : public ServiceResult + { + public: + + + DeleteAppResult(); + explicit DeleteAppResult(const std::string &payload); + ~DeleteAppResult(); + 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_SCHEDULERX3_MODEL_DELETEAPPRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/DeleteClusterRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/DeleteClusterRequest.h new file mode 100644 index 000000000..2704aee46 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/DeleteClusterRequest.h @@ -0,0 +1,45 @@ +/* + * 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_SCHEDULERX3_MODEL_DELETECLUSTERREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_DELETECLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT DeleteClusterRequest : public RpcServiceRequest { +public: + DeleteClusterRequest(); + ~DeleteClusterRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + +private: + std::string mseSessionId_; + std::string clusterId_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_DELETECLUSTERREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/DeleteClusterResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/DeleteClusterResult.h new file mode 100644 index 000000000..89b1c8055 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/DeleteClusterResult.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_SCHEDULERX3_MODEL_DELETECLUSTERRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_DELETECLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT DeleteClusterResult : public ServiceResult + { + public: + + + DeleteClusterResult(); + explicit DeleteClusterResult(const std::string &payload); + ~DeleteClusterResult(); + 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_SCHEDULERX3_MODEL_DELETECLUSTERRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/DeleteJobsRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/DeleteJobsRequest.h new file mode 100644 index 000000000..8e46f9e80 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/DeleteJobsRequest.h @@ -0,0 +1,51 @@ +/* + * 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_SCHEDULERX3_MODEL_DELETEJOBSREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_DELETEJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT DeleteJobsRequest : public RpcServiceRequest { +public: + DeleteJobsRequest(); + ~DeleteJobsRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::vector getJobIds() const; + void setJobIds(const std::vector &jobIds); + +private: + std::string mseSessionId_; + std::string clusterId_; + std::string appName_; + std::vector jobIds_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_DELETEJOBSREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/DeleteJobsResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/DeleteJobsResult.h new file mode 100644 index 000000000..848e49ccd --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/DeleteJobsResult.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_SCHEDULERX3_MODEL_DELETEJOBSRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_DELETEJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT DeleteJobsResult : public ServiceResult + { + public: + + + DeleteJobsResult(); + explicit DeleteJobsResult(const std::string &payload); + ~DeleteJobsResult(); + 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_SCHEDULERX3_MODEL_DELETEJOBSRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ExportJobsRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ExportJobsRequest.h new file mode 100644 index 000000000..c60748f75 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ExportJobsRequest.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_SCHEDULERX3_MODEL_EXPORTJOBSREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_EXPORTJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT ExportJobsRequest : public RpcServiceRequest { +public: + ExportJobsRequest(); + ~ExportJobsRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::vector getJobIds() const; + void setJobIds(const std::vector &jobIds); + int getExportJobType() const; + void setExportJobType(int exportJobType); + +private: + std::string mseSessionId_; + std::string appName_; + std::string clusterId_; + std::vector jobIds_; + int exportJobType_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_EXPORTJOBSREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ExportJobsResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ExportJobsResult.h new file mode 100644 index 000000000..9de6626cd --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ExportJobsResult.h @@ -0,0 +1,49 @@ +/* + * 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_SCHEDULERX3_MODEL_EXPORTJOBSRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_EXPORTJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT ExportJobsResult : public ServiceResult + { + public: + + + ExportJobsResult(); + explicit ExportJobsResult(const std::string &payload); + ~ExportJobsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_EXPORTJOBSRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/GetClusterRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/GetClusterRequest.h new file mode 100644 index 000000000..4882ed634 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/GetClusterRequest.h @@ -0,0 +1,45 @@ +/* + * 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_SCHEDULERX3_MODEL_GETCLUSTERREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_GETCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT GetClusterRequest : public RpcServiceRequest { +public: + GetClusterRequest(); + ~GetClusterRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + +private: + std::string mseSessionId_; + std::string clusterId_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_GETCLUSTERREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/GetClusterResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/GetClusterResult.h new file mode 100644 index 000000000..fe15a130c --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/GetClusterResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX3_MODEL_GETCLUSTERRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_GETCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT GetClusterResult : public ServiceResult + { + public: + struct Data + { + struct VswitchesItem + { + std::string zoneId; + std::string vSwitchId; + }; + int status; + std::string engineVersion; + std::string endTime; + std::string clusterId; + std::string internetDomain; + std::string createTime; + int productType; + std::string clusterSpec; + int workerNum; + int maxJobNum; + std::vector zones; + int spm; + std::string vpcId; + std::string chargeType; + std::string kubeConfig; + std::string clusterName; + int jobNum; + std::vector vSwitches; + std::string engineType; + std::string intranetDomain; + }; + + + GetClusterResult(); + explicit GetClusterResult(const std::string &payload); + ~GetClusterResult(); + 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_SCHEDULERX3_MODEL_GETCLUSTERRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/GetDesigateInfoRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/GetDesigateInfoRequest.h new file mode 100644 index 000000000..c6a9185bf --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/GetDesigateInfoRequest.h @@ -0,0 +1,51 @@ +/* + * 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_SCHEDULERX3_MODEL_GETDESIGATEINFOREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_GETDESIGATEINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT GetDesigateInfoRequest : public RpcServiceRequest { +public: + GetDesigateInfoRequest(); + ~GetDesigateInfoRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + long getJobId() const; + void setJobId(long jobId); + std::string getAppName() const; + void setAppName(const std::string &appName); + +private: + std::string mseSessionId_; + std::string clusterId_; + long jobId_; + std::string appName_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_GETDESIGATEINFOREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/GetDesigateInfoResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/GetDesigateInfoResult.h new file mode 100644 index 000000000..9d4d67a10 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/GetDesigateInfoResult.h @@ -0,0 +1,62 @@ +/* + * 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_SCHEDULERX3_MODEL_GETDESIGATEINFORESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_GETDESIGATEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT GetDesigateInfoResult : public ServiceResult + { + public: + struct Data + { + int designateType; + bool transferable; + }; + + + GetDesigateInfoResult(); + explicit GetDesigateInfoResult(const std::string &payload); + ~GetDesigateInfoResult(); + 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_SCHEDULERX3_MODEL_GETDESIGATEINFORESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/GetJobExecutionProgressRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/GetJobExecutionProgressRequest.h new file mode 100644 index 000000000..84686e5f4 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/GetJobExecutionProgressRequest.h @@ -0,0 +1,51 @@ +/* + * 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_SCHEDULERX3_MODEL_GETJOBEXECUTIONPROGRESSREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_GETJOBEXECUTIONPROGRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT GetJobExecutionProgressRequest : public RpcServiceRequest { +public: + GetJobExecutionProgressRequest(); + ~GetJobExecutionProgressRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getJobExecutionId() const; + void setJobExecutionId(const std::string &jobExecutionId); + +private: + std::string mseSessionId_; + std::string clusterId_; + std::string appName_; + std::string jobExecutionId_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_GETJOBEXECUTIONPROGRESSREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/GetJobExecutionProgressResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/GetJobExecutionProgressResult.h new file mode 100644 index 000000000..3fa17f713 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/GetJobExecutionProgressResult.h @@ -0,0 +1,113 @@ +/* + * 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_SCHEDULERX3_MODEL_GETJOBEXECUTIONPROGRESSRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_GETJOBEXECUTIONPROGRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT GetJobExecutionProgressResult : public ServiceResult + { + public: + struct Data + { + struct TotalProgress + { + long finished; + long total; + }; + struct RootProgress + { + long finished; + long total; + }; + struct TaskProgressItem + { + int pulled; + int failed; + int total; + int running; + int queue; + int success; + std::string name; + }; + struct ShardingProgressItem + { + struct StatusType + { + std::string code; + std::string name; + std::string tips; + }; + int status; + StatusType statusType; + long id; + std::string workerAddr; + std::string jobExecutionId; + std::string result; + }; + struct WorkerProgressItem + { + int pulled; + int failed; + int total; + int running; + std::string traceId; + int queue; + std::string workerAddr; + int success; + }; + std::string jobDescription; + TotalProgress totalProgress; + RootProgress rootProgress; + std::string statisticDetail; + std::vector workerProgress; + std::vector shardingProgress; + std::vector taskProgress; + }; + + + GetJobExecutionProgressResult(); + explicit GetJobExecutionProgressResult(const std::string &payload); + ~GetJobExecutionProgressResult(); + 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_SCHEDULERX3_MODEL_GETJOBEXECUTIONPROGRESSRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/GetLogRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/GetLogRequest.h new file mode 100644 index 000000000..c4e51aedd --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/GetLogRequest.h @@ -0,0 +1,75 @@ +/* + * 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_SCHEDULERX3_MODEL_GETLOGREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_GETLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT GetLogRequest : public RpcServiceRequest { +public: + GetLogRequest(); + ~GetLogRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + long getStartTime() const; + void setStartTime(long startTime); + std::string getAppName() const; + void setAppName(const std::string &appName); + int getLineNum() const; + void setLineNum(int lineNum); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getJobExecutionId() const; + void setJobExecutionId(const std::string &jobExecutionId); + int getOffset() const; + void setOffset(int offset); + std::string getLevel() const; + void setLevel(const std::string &level); + long getEndTime() const; + void setEndTime(long endTime); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + bool getReverse() const; + void setReverse(bool reverse); + long getLogId() const; + void setLogId(long logId); + +private: + std::string mseSessionId_; + long startTime_; + std::string appName_; + int lineNum_; + std::string keyword_; + std::string jobExecutionId_; + int offset_; + std::string level_; + long endTime_; + std::string clusterId_; + bool reverse_; + long logId_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_GETLOGREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/GetLogResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/GetLogResult.h new file mode 100644 index 000000000..125085217 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/GetLogResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX3_MODEL_GETLOGRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_GETLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT GetLogResult : public ServiceResult + { + public: + + + GetLogResult(); + explicit GetLogResult(const std::string &payload); + ~GetLogResult(); + std::string getMessage()const; + std::vector getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_GETLOGRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ImportCalendarRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ImportCalendarRequest.h new file mode 100644 index 000000000..c721c83f7 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ImportCalendarRequest.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_SCHEDULERX3_MODEL_IMPORTCALENDARREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_IMPORTCALENDARREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT ImportCalendarRequest : public RpcServiceRequest { +public: + ImportCalendarRequest(); + ~ImportCalendarRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + int getYear() const; + void setYear(int year); + std::string getMonths() const; + void setMonths(const std::string &months); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string mseSessionId_; + int year_; + std::string months_; + std::string clusterId_; + std::string name_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_IMPORTCALENDARREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ImportCalendarResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ImportCalendarResult.h new file mode 100644 index 000000000..5d18d3984 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ImportCalendarResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX3_MODEL_IMPORTCALENDARRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_IMPORTCALENDARRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT ImportCalendarResult : public ServiceResult + { + public: + + + ImportCalendarResult(); + explicit ImportCalendarResult(const std::string &payload); + ~ImportCalendarResult(); + std::string getMessage()const; + std::vector getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_IMPORTCALENDARRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ImportJobsRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ImportJobsRequest.h new file mode 100644 index 000000000..79bb74c21 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ImportJobsRequest.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_SCHEDULERX3_MODEL_IMPORTJOBSREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_IMPORTJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT ImportJobsRequest : public RpcServiceRequest { +public: + ImportJobsRequest(); + ~ImportJobsRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getContent() const; + void setContent(const std::string &content); + bool getOverwrite() const; + void setOverwrite(bool overwrite); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + bool getAutoCreateApp() const; + void setAutoCreateApp(bool autoCreateApp); + +private: + std::string mseSessionId_; + std::string content_; + bool overwrite_; + std::string clusterId_; + bool autoCreateApp_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_IMPORTJOBSREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ImportJobsResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ImportJobsResult.h new file mode 100644 index 000000000..c3bca4218 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ImportJobsResult.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_SCHEDULERX3_MODEL_IMPORTJOBSRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_IMPORTJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT ImportJobsResult : public ServiceResult + { + public: + + + ImportJobsResult(); + explicit ImportJobsResult(const std::string &payload); + ~ImportJobsResult(); + 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_SCHEDULERX3_MODEL_IMPORTJOBSRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListAlarmEventRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListAlarmEventRequest.h new file mode 100644 index 000000000..8310e8e34 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListAlarmEventRequest.h @@ -0,0 +1,75 @@ +/* + * 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_SCHEDULERX3_MODEL_LISTALARMEVENTREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTALARMEVENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT ListAlarmEventRequest : public RpcServiceRequest { +public: + ListAlarmEventRequest(); + ~ListAlarmEventRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + long getStartTime() const; + void setStartTime(long startTime); + std::string getPageNum() const; + void setPageNum(const std::string &pageNum); + std::string getAlarmChannel() const; + void setAlarmChannel(const std::string &alarmChannel); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getJobName() const; + void setJobName(const std::string &jobName); + std::string getAlarmType() const; + void setAlarmType(const std::string &alarmType); + long getEndTime() const; + void setEndTime(long endTime); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + bool getReverse() const; + void setReverse(bool reverse); + std::string getAlarmStatus() const; + void setAlarmStatus(const std::string &alarmStatus); + +private: + std::string mseSessionId_; + long startTime_; + std::string pageNum_; + std::string alarmChannel_; + std::string appName_; + std::string pageSize_; + std::string jobName_; + std::string alarmType_; + long endTime_; + std::string clusterId_; + bool reverse_; + std::string alarmStatus_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTALARMEVENTREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListAlarmEventResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListAlarmEventResult.h new file mode 100644 index 000000000..f4f991b3e --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListAlarmEventResult.h @@ -0,0 +1,75 @@ +/* + * 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_SCHEDULERX3_MODEL_LISTALARMEVENTRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTALARMEVENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT ListAlarmEventResult : public ServiceResult + { + public: + struct Data + { + struct Record + { + std::string alarmMessage; + std::string alarmChannel; + std::string alarmType; + std::string jobName; + std::string alarmStatus; + std::string alarmContacts; + std::string time; + std::string appName; + }; + int pageSize; + int pageNumber; + long total; + std::vector records; + }; + + + ListAlarmEventResult(); + explicit ListAlarmEventResult(const std::string &payload); + ~ListAlarmEventResult(); + 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_SCHEDULERX3_MODEL_LISTALARMEVENTRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListAppNamesRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListAppNamesRequest.h new file mode 100644 index 000000000..01057ffea --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListAppNamesRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX3_MODEL_LISTAPPNAMESREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTAPPNAMESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT ListAppNamesRequest : public RpcServiceRequest { +public: + ListAppNamesRequest(); + ~ListAppNamesRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAppName() const; + void setAppName(const std::string &appName); + +private: + std::string mseSessionId_; + std::string clusterId_; + std::string appName_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTAPPNAMESREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListAppNamesResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListAppNamesResult.h new file mode 100644 index 000000000..988425fce --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListAppNamesResult.h @@ -0,0 +1,64 @@ +/* + * 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_SCHEDULERX3_MODEL_LISTAPPNAMESRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTAPPNAMESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT ListAppNamesResult : public ServiceResult + { + public: + struct DataItem + { + std::string appGroupId; + std::string title; + long id; + std::string appName; + }; + + + ListAppNamesResult(); + explicit ListAppNamesResult(const std::string &payload); + ~ListAppNamesResult(); + std::string getMessage()const; + std::vector getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTAPPNAMESRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListAppsRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListAppsRequest.h new file mode 100644 index 000000000..26a905d98 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListAppsRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX3_MODEL_LISTAPPSREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTAPPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT ListAppsRequest : public RpcServiceRequest { +public: + ListAppsRequest(); + ~ListAppsRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getTitle() const; + void setTitle(const std::string &title); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getAppName() const; + void setAppName(const std::string &appName); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + +private: + std::string mseSessionId_; + std::string title_; + int pageNum_; + std::string appName_; + int pageSize_; + std::string clusterId_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTAPPSREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListAppsResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListAppsResult.h new file mode 100644 index 000000000..9ea1ed268 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListAppsResult.h @@ -0,0 +1,82 @@ +/* + * 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_SCHEDULERX3_MODEL_LISTAPPSRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTAPPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT ListAppsResult : public ServiceResult + { + public: + struct Data + { + struct Record + { + std::string leader; + std::string calendar; + int maxConcurrency; + std::string title; + std::string noticeConfig; + bool enableLog; + std::string creator; + std::string appName; + long executorNum; + std::string accessToken; + std::string updater; + std::string noticeContacts; + int jobNum; + long id; + int maxJobs; + }; + int pageSize; + int pageNumber; + int total; + std::vector records; + }; + + + ListAppsResult(); + explicit ListAppsResult(const std::string &payload); + ~ListAppsResult(); + 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_SCHEDULERX3_MODEL_LISTAPPSRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListCalendarNamesRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListCalendarNamesRequest.h new file mode 100644 index 000000000..0b10ecbaa --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListCalendarNamesRequest.h @@ -0,0 +1,45 @@ +/* + * 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_SCHEDULERX3_MODEL_LISTCALENDARNAMESREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTCALENDARNAMESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT ListCalendarNamesRequest : public RpcServiceRequest { +public: + ListCalendarNamesRequest(); + ~ListCalendarNamesRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + +private: + std::string mseSessionId_; + std::string clusterId_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTCALENDARNAMESREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListCalendarNamesResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListCalendarNamesResult.h new file mode 100644 index 000000000..0ead371e8 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListCalendarNamesResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX3_MODEL_LISTCALENDARNAMESRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTCALENDARNAMESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT ListCalendarNamesResult : public ServiceResult + { + public: + + + ListCalendarNamesResult(); + explicit ListCalendarNamesResult(const std::string &payload); + ~ListCalendarNamesResult(); + std::string getMessage()const; + std::vector getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTCALENDARNAMESRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListClustersRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListClustersRequest.h new file mode 100644 index 000000000..e68471af6 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListClustersRequest.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_SCHEDULERX3_MODEL_LISTCLUSTERSREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTCLUSTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT ListClustersRequest : public RpcServiceRequest { +public: + ListClustersRequest(); + ~ListClustersRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getClusterName() const; + void setClusterName(const std::string &clusterName); + int getPageNum() const; + void setPageNum(int pageNum); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + +private: + std::string mseSessionId_; + std::string clusterName_; + int pageNum_; + int pageSize_; + std::string clusterId_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTCLUSTERSREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListClustersResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListClustersResult.h new file mode 100644 index 000000000..4daa16114 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListClustersResult.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_SCHEDULERX3_MODEL_LISTCLUSTERSRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTCLUSTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT ListClustersResult : public ServiceResult + { + public: + struct Data + { + struct Record + { + struct VswitchesItem + { + std::string zoneId; + std::string vSwitchId; + }; + int status; + std::string engineVersion; + std::string endTime; + std::string clusterId; + std::string internetDomain; + std::string createTime; + int productType; + std::string clusterSpec; + std::string spInstanceId; + std::string vpcId; + std::string chargeType; + std::string clusterName; + std::vector vSwitches; + std::string engineType; + std::string intranetDomain; + }; + int pageSize; + int pageNumber; + int total; + std::vector records; + }; + + + ListClustersResult(); + explicit ListClustersResult(const std::string &payload); + ~ListClustersResult(); + 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_SCHEDULERX3_MODEL_LISTCLUSTERSRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListExecutorsRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListExecutorsRequest.h new file mode 100644 index 000000000..829e3c2f4 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListExecutorsRequest.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_SCHEDULERX3_MODEL_LISTEXECUTORSREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTEXECUTORSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT ListExecutorsRequest : public RpcServiceRequest { +public: + ListExecutorsRequest(); + ~ListExecutorsRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + long getJobId() const; + void setJobId(long jobId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getLabel() const; + void setLabel(const std::string &label); + +private: + std::string mseSessionId_; + long jobId_; + std::string appName_; + std::string clusterId_; + std::string label_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTEXECUTORSREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListExecutorsResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListExecutorsResult.h new file mode 100644 index 000000000..58f69a38a --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListExecutorsResult.h @@ -0,0 +1,67 @@ +/* + * 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_SCHEDULERX3_MODEL_LISTEXECUTORSRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTEXECUTORSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT ListExecutorsResult : public ServiceResult + { + public: + struct DataItem + { + bool isDesignated; + std::string address; + std::string version; + std::string ip; + int port; + std::string label; + bool online; + }; + + + ListExecutorsResult(); + explicit ListExecutorsResult(const std::string &payload); + ~ListExecutorsResult(); + std::string getMessage()const; + std::vector getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTEXECUTORSRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListJobExecutionsRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListJobExecutionsRequest.h new file mode 100644 index 000000000..8613b647e --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListJobExecutionsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX3_MODEL_LISTJOBEXECUTIONSREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTJOBEXECUTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT ListJobExecutionsRequest : public RpcServiceRequest { +public: + ListJobExecutionsRequest(); + ~ListJobExecutionsRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getPageNum() const; + void setPageNum(int pageNum); + long getJobId() const; + void setJobId(long jobId); + std::string getAppName() const; + void setAppName(const std::string &appName); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getJobName() const; + void setJobName(const std::string &jobName); + std::string getJobExecutionId() const; + void setJobExecutionId(const std::string &jobExecutionId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getStatus() const; + void setStatus(int status); + +private: + std::string mseSessionId_; + std::string startTime_; + int pageNum_; + long jobId_; + std::string appName_; + int pageSize_; + std::string jobName_; + std::string jobExecutionId_; + std::string endTime_; + std::string clusterId_; + int status_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTJOBEXECUTIONSREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListJobExecutionsResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListJobExecutionsResult.h new file mode 100644 index 000000000..9a65950c4 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListJobExecutionsResult.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_SCHEDULERX3_MODEL_LISTJOBEXECUTIONSRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTJOBEXECUTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT ListJobExecutionsResult : public ServiceResult + { + public: + struct Data + { + struct Record + { + int status; + int triggerType; + std::string parameters; + std::string endTime; + std::string workAddr; + std::string serverIp; + std::string jobName; + std::string startTime; + int routeStrategy; + std::string dataTime; + long duration; + std::string jobExecutionId; + std::string result; + int timeType; + std::string appName; + std::string jobType; + std::string executor; + std::string scheduleTime; + int attempt; + long jobId; + }; + int pageSize; + int pageNumber; + int total; + std::vector records; + }; + + + ListJobExecutionsResult(); + explicit ListJobExecutionsResult(const std::string &payload); + ~ListJobExecutionsResult(); + 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_SCHEDULERX3_MODEL_LISTJOBEXECUTIONSRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListJobsRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListJobsRequest.h new file mode 100644 index 000000000..0336d958f --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListJobsRequest.h @@ -0,0 +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_SCHEDULERX3_MODEL_LISTJOBSREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT ListJobsRequest : public RpcServiceRequest { +public: + ListJobsRequest(); + ~ListJobsRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getDescription() const; + void setDescription(const std::string &description); + int getPageNum() const; + void setPageNum(int pageNum); + long getJobId() const; + void setJobId(long jobId); + std::string getAppName() const; + void setAppName(const std::string &appName); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getJobName() const; + void setJobName(const std::string &jobName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getJobHandler() const; + void setJobHandler(const std::string &jobHandler); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string mseSessionId_; + std::string description_; + int pageNum_; + long jobId_; + std::string appName_; + int pageSize_; + std::string jobName_; + std::string clusterId_; + std::string jobHandler_; + std::string status_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTJOBSREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListJobsResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListJobsResult.h new file mode 100644 index 000000000..70e06cdb9 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListJobsResult.h @@ -0,0 +1,97 @@ +/* + * 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_SCHEDULERX3_MODEL_LISTJOBSRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT ListJobsResult : public ServiceResult + { + public: + struct Data + { + struct Record + { + std::string timezone; + std::string description; + std::string executorBlockStrategy; + std::string lastExecuteEndTime; + int routeStrategy; + std::string timeExpression; + std::string creator; + std::string name; + int timeType; + std::string appName; + std::string updater; + int currentExecuteStatus; + int attemptInterval; + std::string cleanMode; + long jobId; + int status; + int lastExecuteStatus; + int maxAttempt; + std::string parameters; + int priority; + std::string calendar; + int maxConcurrency; + long startTime; + std::string noticeConfig; + int dataOffset; + std::string jobHandler; + std::string timeZone; + std::string jobType; + std::string noticeContacts; + std::string xattrs; + }; + int pageSize; + int pageNumber; + int total; + std::vector records; + }; + + + ListJobsResult(); + explicit ListJobsResult(const std::string &payload); + ~ListJobsResult(); + 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_SCHEDULERX3_MODEL_LISTJOBSRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListLablesRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListLablesRequest.h new file mode 100644 index 000000000..dd3b7a92c --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListLablesRequest.h @@ -0,0 +1,51 @@ +/* + * 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_SCHEDULERX3_MODEL_LISTLABLESREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTLABLESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT ListLablesRequest : public RpcServiceRequest { +public: + ListLablesRequest(); + ~ListLablesRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + long getJobId() const; + void setJobId(long jobId); + std::string getAppName() const; + void setAppName(const std::string &appName); + +private: + std::string mseSessionId_; + std::string clusterId_; + long jobId_; + std::string appName_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTLABLESREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListLablesResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListLablesResult.h new file mode 100644 index 000000000..0578e40a0 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListLablesResult.h @@ -0,0 +1,64 @@ +/* + * 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_SCHEDULERX3_MODEL_LISTLABLESRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTLABLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT ListLablesResult : public ServiceResult + { + public: + struct DataItem + { + bool isDesignated; + int size; + std::string label; + bool online; + }; + + + ListLablesResult(); + explicit ListLablesResult(const std::string &payload); + ~ListLablesResult(); + std::string getMessage()const; + std::vector getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTLABLESRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListRegionZoneRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListRegionZoneRequest.h new file mode 100644 index 000000000..ab46ceeff --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListRegionZoneRequest.h @@ -0,0 +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_SCHEDULERX3_MODEL_LISTREGIONZONEREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTREGIONZONEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT ListRegionZoneRequest : public RpcServiceRequest { +public: + ListRegionZoneRequest(); + ~ListRegionZoneRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + +private: + std::string mseSessionId_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTREGIONZONEREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListRegionZoneResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListRegionZoneResult.h new file mode 100644 index 000000000..7edc1595f --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListRegionZoneResult.h @@ -0,0 +1,64 @@ +/* + * 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_SCHEDULERX3_MODEL_LISTREGIONZONERESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTREGIONZONERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT ListRegionZoneResult : public ServiceResult + { + public: + struct DataItem + { + std::string zoneId; + std::string localName; + }; + + + ListRegionZoneResult(); + explicit ListRegionZoneResult(const std::string &payload); + ~ListRegionZoneResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getErrorCode()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string errorCode_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTREGIONZONERESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListRegionsRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListRegionsRequest.h new file mode 100644 index 000000000..83e0936f9 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListRegionsRequest.h @@ -0,0 +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_SCHEDULERX3_MODEL_LISTREGIONSREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT ListRegionsRequest : public RpcServiceRequest { +public: + ListRegionsRequest(); + ~ListRegionsRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + +private: + std::string mseSessionId_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTREGIONSREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListRegionsResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListRegionsResult.h new file mode 100644 index 000000000..5d66326ee --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListRegionsResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX3_MODEL_LISTREGIONSRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT ListRegionsResult : public ServiceResult + { + public: + struct Region + { + std::string regionId; + std::string regionEndpoint; + std::string localName; + }; + + + ListRegionsResult(); + explicit ListRegionsResult(const std::string &payload); + ~ListRegionsResult(); + std::string getMessage()const; + std::vector getRegions()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector regions_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTREGIONSRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListScheduleEventRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListScheduleEventRequest.h new file mode 100644 index 000000000..8379b0b2c --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListScheduleEventRequest.h @@ -0,0 +1,75 @@ +/* + * 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_SCHEDULERX3_MODEL_LISTSCHEDULEEVENTREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTSCHEDULEEVENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT ListScheduleEventRequest : public RpcServiceRequest { +public: + ListScheduleEventRequest(); + ~ListScheduleEventRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + long getStartTime() const; + void setStartTime(long startTime); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getAppName() const; + void setAppName(const std::string &appName); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getEvent() const; + void setEvent(const std::string &event); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getJobName() const; + void setJobName(const std::string &jobName); + std::string getJobExecutionId() const; + void setJobExecutionId(const std::string &jobExecutionId); + long getEndTime() const; + void setEndTime(long endTime); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + bool getReverse() const; + void setReverse(bool reverse); + +private: + std::string mseSessionId_; + long startTime_; + int pageNum_; + std::string appName_; + int pageSize_; + std::string event_; + std::string keyword_; + std::string jobName_; + std::string jobExecutionId_; + long endTime_; + std::string clusterId_; + bool reverse_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTSCHEDULEEVENTREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListScheduleEventResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListScheduleEventResult.h new file mode 100644 index 000000000..f315ae996 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListScheduleEventResult.h @@ -0,0 +1,74 @@ +/* + * 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_SCHEDULERX3_MODEL_LISTSCHEDULEEVENTRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTSCHEDULEEVENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT ListScheduleEventResult : public ServiceResult + { + public: + struct Data + { + struct Record + { + std::string content; + std::string jobName; + std::string event; + std::string time; + std::string workerAddr; + std::string appName; + std::string jobExecutionId; + }; + int pageSize; + int pageNumber; + long total; + std::vector records; + }; + + + ListScheduleEventResult(); + explicit ListScheduleEventResult(const std::string &payload); + ~ListScheduleEventResult(); + 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_SCHEDULERX3_MODEL_LISTSCHEDULEEVENTRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListScheduleTimesRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListScheduleTimesRequest.h new file mode 100644 index 000000000..d2c51b588 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListScheduleTimesRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX3_MODEL_LISTSCHEDULETIMESREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTSCHEDULETIMESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT ListScheduleTimesRequest : public RpcServiceRequest { +public: + ListScheduleTimesRequest(); + ~ListScheduleTimesRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getTimeZone() const; + void setTimeZone(const std::string &timeZone); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getCalendar() const; + void setCalendar(const std::string &calendar); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getTimeExpression() const; + void setTimeExpression(const std::string &timeExpression); + int getTimeType() const; + void setTimeType(int timeType); + +private: + std::string mseSessionId_; + std::string timeZone_; + std::string appName_; + std::string calendar_; + std::string clusterId_; + std::string timeExpression_; + int timeType_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTSCHEDULETIMESREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/ListScheduleTimesResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/ListScheduleTimesResult.h new file mode 100644 index 000000000..ad2b6972e --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/ListScheduleTimesResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX3_MODEL_LISTSCHEDULETIMESRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_LISTSCHEDULETIMESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT ListScheduleTimesResult : public ServiceResult + { + public: + + + ListScheduleTimesResult(); + explicit ListScheduleTimesResult(const std::string &payload); + ~ListScheduleTimesResult(); + std::string getMessage()const; + std::vector getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTSCHEDULETIMESRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/OperateDesignateExecutorsRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateDesignateExecutorsRequest.h new file mode 100644 index 000000000..928137e0a --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateDesignateExecutorsRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATEDESIGNATEEXECUTORSREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATEDESIGNATEEXECUTORSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT OperateDesignateExecutorsRequest : public RpcServiceRequest { +public: + OperateDesignateExecutorsRequest(); + ~OperateDesignateExecutorsRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + bool getTransferable() const; + void setTransferable(bool transferable); + int getDesignateType() const; + void setDesignateType(int designateType); + long getJobId() const; + void setJobId(long jobId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::vector getAddressList() const; + void setAddressList(const std::vector &addressList); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + +private: + std::string mseSessionId_; + bool transferable_; + int designateType_; + long jobId_; + std::string appName_; + std::vector addressList_; + std::string clusterId_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATEDESIGNATEEXECUTORSREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/OperateDesignateExecutorsResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateDesignateExecutorsResult.h new file mode 100644 index 000000000..ea5e49ca4 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateDesignateExecutorsResult.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_SCHEDULERX3_MODEL_OPERATEDESIGNATEEXECUTORSRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATEDESIGNATEEXECUTORSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT OperateDesignateExecutorsResult : public ServiceResult + { + public: + + + OperateDesignateExecutorsResult(); + explicit OperateDesignateExecutorsResult(const std::string &payload); + ~OperateDesignateExecutorsResult(); + 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_SCHEDULERX3_MODEL_OPERATEDESIGNATEEXECUTORSRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/OperateDisableJobsRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateDisableJobsRequest.h new file mode 100644 index 000000000..5077d16a8 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateDisableJobsRequest.h @@ -0,0 +1,51 @@ +/* + * 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_SCHEDULERX3_MODEL_OPERATEDISABLEJOBSREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATEDISABLEJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT OperateDisableJobsRequest : public RpcServiceRequest { +public: + OperateDisableJobsRequest(); + ~OperateDisableJobsRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::vector getJobIds() const; + void setJobIds(const std::vector &jobIds); + +private: + std::string mseSessionId_; + std::string clusterId_; + std::string appName_; + std::vector jobIds_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATEDISABLEJOBSREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/OperateDisableJobsResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateDisableJobsResult.h new file mode 100644 index 000000000..de5e3d16f --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateDisableJobsResult.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_SCHEDULERX3_MODEL_OPERATEDISABLEJOBSRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATEDISABLEJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT OperateDisableJobsResult : public ServiceResult + { + public: + + + OperateDisableJobsResult(); + explicit OperateDisableJobsResult(const std::string &payload); + ~OperateDisableJobsResult(); + 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_SCHEDULERX3_MODEL_OPERATEDISABLEJOBSRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/OperateEnableJobsRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateEnableJobsRequest.h new file mode 100644 index 000000000..9352bcdf1 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateEnableJobsRequest.h @@ -0,0 +1,51 @@ +/* + * 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_SCHEDULERX3_MODEL_OPERATEENABLEJOBSREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATEENABLEJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT OperateEnableJobsRequest : public RpcServiceRequest { +public: + OperateEnableJobsRequest(); + ~OperateEnableJobsRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::vector getJobIds() const; + void setJobIds(const std::vector &jobIds); + +private: + std::string mseSessionId_; + std::string clusterId_; + std::string appName_; + std::vector jobIds_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATEENABLEJOBSREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/OperateEnableJobsResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateEnableJobsResult.h new file mode 100644 index 000000000..6e5f05cb5 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateEnableJobsResult.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_SCHEDULERX3_MODEL_OPERATEENABLEJOBSRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATEENABLEJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT OperateEnableJobsResult : public ServiceResult + { + public: + + + OperateEnableJobsResult(); + explicit OperateEnableJobsResult(const std::string &payload); + ~OperateEnableJobsResult(); + 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_SCHEDULERX3_MODEL_OPERATEENABLEJOBSRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/OperateExecuteJobRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateExecuteJobRequest.h new file mode 100644 index 000000000..248dafe64 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateExecuteJobRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATEEXECUTEJOBREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATEEXECUTEJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT OperateExecuteJobRequest : public RpcServiceRequest { +public: + OperateExecuteJobRequest(); + ~OperateExecuteJobRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + long getJobId() const; + void setJobId(long jobId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getWorker() const; + void setWorker(const std::string &worker); + std::string getInstanceParameters() const; + void setInstanceParameters(const std::string &instanceParameters); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getLabel() const; + void setLabel(const std::string &label); + +private: + std::string mseSessionId_; + long jobId_; + std::string appName_; + std::string worker_; + std::string instanceParameters_; + std::string clusterId_; + std::string label_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATEEXECUTEJOBREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/OperateExecuteJobResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateExecuteJobResult.h new file mode 100644 index 000000000..c0ac763e3 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateExecuteJobResult.h @@ -0,0 +1,61 @@ +/* + * 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_SCHEDULERX3_MODEL_OPERATEEXECUTEJOBRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATEEXECUTEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT OperateExecuteJobResult : public ServiceResult + { + public: + struct Data + { + std::string jobExecutionId; + }; + + + OperateExecuteJobResult(); + explicit OperateExecuteJobResult(const std::string &payload); + ~OperateExecuteJobResult(); + 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_SCHEDULERX3_MODEL_OPERATEEXECUTEJOBRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/OperateRerunJobRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateRerunJobRequest.h new file mode 100644 index 000000000..3dde0e215 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateRerunJobRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATERERUNJOBREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATERERUNJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT OperateRerunJobRequest : public RpcServiceRequest { +public: + OperateRerunJobRequest(); + ~OperateRerunJobRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getDataTime() const; + void setDataTime(const std::string &dataTime); + long getStartDate() const; + void setStartDate(long startDate); + long getJobId() const; + void setJobId(long jobId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + long getEndDate() const; + void setEndDate(long endDate); + +private: + std::string mseSessionId_; + std::string dataTime_; + long startDate_; + long jobId_; + std::string appName_; + std::string clusterId_; + long endDate_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATERERUNJOBREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/OperateRerunJobResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateRerunJobResult.h new file mode 100644 index 000000000..4ab9a84ea --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateRerunJobResult.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_SCHEDULERX3_MODEL_OPERATERERUNJOBRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATERERUNJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT OperateRerunJobResult : public ServiceResult + { + public: + + + OperateRerunJobResult(); + explicit OperateRerunJobResult(const std::string &payload); + ~OperateRerunJobResult(); + 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_SCHEDULERX3_MODEL_OPERATERERUNJOBRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/OperateRetryJobExecutionRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateRetryJobExecutionRequest.h new file mode 100644 index 000000000..376ec67dd --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateRetryJobExecutionRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATERETRYJOBEXECUTIONREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATERETRYJOBEXECUTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT OperateRetryJobExecutionRequest : public RpcServiceRequest { +public: + OperateRetryJobExecutionRequest(); + ~OperateRetryJobExecutionRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + long getJobId() const; + void setJobId(long jobId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getJobExecutionId() const; + void setJobExecutionId(const std::string &jobExecutionId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::vector getTaskList() const; + void setTaskList(const std::vector &taskList); + +private: + std::string mseSessionId_; + long jobId_; + std::string appName_; + std::string jobExecutionId_; + std::string clusterId_; + std::vector taskList_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATERETRYJOBEXECUTIONREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/OperateRetryJobExecutionResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateRetryJobExecutionResult.h new file mode 100644 index 000000000..8832218ad --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateRetryJobExecutionResult.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_SCHEDULERX3_MODEL_OPERATERETRYJOBEXECUTIONRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATERETRYJOBEXECUTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT OperateRetryJobExecutionResult : public ServiceResult + { + public: + + + OperateRetryJobExecutionResult(); + explicit OperateRetryJobExecutionResult(const std::string &payload); + ~OperateRetryJobExecutionResult(); + 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_SCHEDULERX3_MODEL_OPERATERETRYJOBEXECUTIONRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/OperateStopJobExecutionRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateStopJobExecutionRequest.h new file mode 100644 index 000000000..fa5d55c72 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateStopJobExecutionRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATESTOPJOBEXECUTIONREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATESTOPJOBEXECUTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT OperateStopJobExecutionRequest : public RpcServiceRequest { +public: + OperateStopJobExecutionRequest(); + ~OperateStopJobExecutionRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + long getJobId() const; + void setJobId(long jobId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getJobExecutionId() const; + void setJobExecutionId(const std::string &jobExecutionId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::vector getTaskList() const; + void setTaskList(const std::vector &taskList); + +private: + std::string mseSessionId_; + long jobId_; + std::string appName_; + std::string jobExecutionId_; + std::string clusterId_; + std::vector taskList_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATESTOPJOBEXECUTIONREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/OperateStopJobExecutionResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateStopJobExecutionResult.h new file mode 100644 index 000000000..da481159e --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/OperateStopJobExecutionResult.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_SCHEDULERX3_MODEL_OPERATESTOPJOBEXECUTIONRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATESTOPJOBEXECUTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT OperateStopJobExecutionResult : public ServiceResult + { + public: + + + OperateStopJobExecutionResult(); + explicit OperateStopJobExecutionResult(const std::string &payload); + ~OperateStopJobExecutionResult(); + 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_SCHEDULERX3_MODEL_OPERATESTOPJOBEXECUTIONRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/UpdateAppRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/UpdateAppRequest.h new file mode 100644 index 000000000..6a17d8051 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/UpdateAppRequest.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX3_MODEL_UPDATEAPPREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_UPDATEAPPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT UpdateAppRequest : public RpcServiceRequest { +public: + struct NoticeContacts { + std::string webhook; + std::string mail; + std::string phone; + std::string smsCode; + std::string mailCode; + std::string userName; + }; + struct NoticeConfig { + bool webhookIsAtAll; + std::string noticeChannel; + bool enable; + }; + UpdateAppRequest(); + ~UpdateAppRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getTitle() const; + void setTitle(const std::string &title); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::vector getNoticeContacts() const; + void setNoticeContacts(const std::vector ¬iceContacts); + NoticeConfig getNoticeConfig() const; + void setNoticeConfig(const NoticeConfig ¬iceConfig); + int getMaxJobs() const; + void setMaxJobs(int maxJobs); + std::string getCalendar() const; + void setCalendar(const std::string &calendar); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + bool getEnableLog() const; + void setEnableLog(bool enableLog); + int getMaxConcurrency() const; + void setMaxConcurrency(int maxConcurrency); + +private: + std::string mseSessionId_; + std::string accessToken_; + std::string title_; + std::string appName_; + std::vector noticeContacts_; + NoticeConfig noticeConfig_; + int maxJobs_; + std::string calendar_; + std::string clusterId_; + bool enableLog_; + int maxConcurrency_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_UPDATEAPPREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/UpdateAppResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/UpdateAppResult.h new file mode 100644 index 000000000..1f940f08e --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/UpdateAppResult.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_SCHEDULERX3_MODEL_UPDATEAPPRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_UPDATEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT UpdateAppResult : public ServiceResult + { + public: + + + UpdateAppResult(); + explicit UpdateAppResult(const std::string &payload); + ~UpdateAppResult(); + 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_SCHEDULERX3_MODEL_UPDATEAPPRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/UpdateClusterRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/UpdateClusterRequest.h new file mode 100644 index 000000000..25ff46b32 --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/UpdateClusterRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCHEDULERX3_MODEL_UPDATECLUSTERREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_UPDATECLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT UpdateClusterRequest : public RpcServiceRequest { +public: + UpdateClusterRequest(); + ~UpdateClusterRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + std::string getClusterName() const; + void setClusterName(const std::string &clusterName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + +private: + std::string mseSessionId_; + std::string clusterName_; + std::string clusterId_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_UPDATECLUSTERREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/UpdateClusterResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/UpdateClusterResult.h new file mode 100644 index 000000000..0428e5bae --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/UpdateClusterResult.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_SCHEDULERX3_MODEL_UPDATECLUSTERRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_UPDATECLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT UpdateClusterResult : public ServiceResult + { + public: + + + UpdateClusterResult(); + explicit UpdateClusterResult(const std::string &payload); + ~UpdateClusterResult(); + 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_SCHEDULERX3_MODEL_UPDATECLUSTERRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/UpdateJobRequest.h b/schedulerx3/include/alibabacloud/schedulerx3/model/UpdateJobRequest.h new file mode 100644 index 000000000..c8e3bdc1b --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/UpdateJobRequest.h @@ -0,0 +1,126 @@ +/* + * 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_SCHEDULERX3_MODEL_UPDATEJOBREQUEST_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_UPDATEJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SchedulerX3 { +namespace Model { +class ALIBABACLOUD_SCHEDULERX3_EXPORT UpdateJobRequest : public RpcServiceRequest { +public: + struct NoticeContacts { + int contactType; + std::string name; + }; + struct NoticeConfig { + bool timeoutKillEnable; + bool failEnable; + bool webhookIsAtAll; + bool successNotice; + int failLimitTimes; + std::string sendChannel; + bool timeoutEnable; + bool missWorkerEnable; + long timeout; + }; + UpdateJobRequest(); + ~UpdateJobRequest(); + std::string getMseSessionId() const; + void setMseSessionId(const std::string &mseSessionId); + int getExecutorBlockStrategy() const; + void setExecutorBlockStrategy(int executorBlockStrategy); + std::string getTimezone() const; + void setTimezone(const std::string &timezone); + int getRouteStrategy() const; + void setRouteStrategy(int routeStrategy); + std::string getDescription() const; + void setDescription(const std::string &description); + int getAttemptInterval() const; + void setAttemptInterval(int attemptInterval); + long getStartTime() const; + void setStartTime(long startTime); + long getJobId() const; + void setJobId(long jobId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::vector getNoticeContacts() const; + void setNoticeContacts(const std::vector ¬iceContacts); + NoticeConfig getNoticeConfig() const; + void setNoticeConfig(const NoticeConfig ¬iceConfig); + std::string getCalendar() const; + void setCalendar(const std::string &calendar); + int getDataOffset() const; + void setDataOffset(int dataOffset); + int getMaxAttempt() const; + void setMaxAttempt(int maxAttempt); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getPriority() const; + void setPriority(int priority); + std::string getTimeExpression() const; + void setTimeExpression(const std::string &timeExpression); + std::string getName() const; + void setName(const std::string &name); + std::string getXAttrs() const; + void setXAttrs(const std::string &xAttrs); + int getMaxConcurrency() const; + void setMaxConcurrency(int maxConcurrency); + int getTimeType() const; + void setTimeType(int timeType); + std::string getParameters() const; + void setParameters(const std::string ¶meters); + std::string getJobHandler() const; + void setJobHandler(const std::string &jobHandler); + std::string getCleanMode() const; + void setCleanMode(const std::string &cleanMode); + +private: + std::string mseSessionId_; + int executorBlockStrategy_; + std::string timezone_; + int routeStrategy_; + std::string description_; + int attemptInterval_; + long startTime_; + long jobId_; + std::string appName_; + std::vector noticeContacts_; + NoticeConfig noticeConfig_; + std::string calendar_; + int dataOffset_; + int maxAttempt_; + std::string clusterId_; + int priority_; + std::string timeExpression_; + std::string name_; + std::string xAttrs_; + int maxConcurrency_; + int timeType_; + std::string parameters_; + std::string jobHandler_; + std::string cleanMode_; +}; +} // namespace Model +} // namespace SchedulerX3 +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_UPDATEJOBREQUEST_H_ diff --git a/schedulerx3/include/alibabacloud/schedulerx3/model/UpdateJobResult.h b/schedulerx3/include/alibabacloud/schedulerx3/model/UpdateJobResult.h new file mode 100644 index 000000000..1b4e82a4d --- /dev/null +++ b/schedulerx3/include/alibabacloud/schedulerx3/model/UpdateJobResult.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_SCHEDULERX3_MODEL_UPDATEJOBRESULT_H_ +#define ALIBABACLOUD_SCHEDULERX3_MODEL_UPDATEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SchedulerX3 + { + namespace Model + { + class ALIBABACLOUD_SCHEDULERX3_EXPORT UpdateJobResult : public ServiceResult + { + public: + + + UpdateJobResult(); + explicit UpdateJobResult(const std::string &payload); + ~UpdateJobResult(); + 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_SCHEDULERX3_MODEL_UPDATEJOBRESULT_H_ \ No newline at end of file diff --git a/schedulerx3/src/SchedulerX3Client.cc b/schedulerx3/src/SchedulerX3Client.cc new file mode 100644 index 000000000..b7d84918f --- /dev/null +++ b/schedulerx3/src/SchedulerX3Client.cc @@ -0,0 +1,1349 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +namespace +{ + const std::string SERVICE_NAME = "SchedulerX3"; +} + +SchedulerX3Client::SchedulerX3Client(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +SchedulerX3Client::SchedulerX3Client(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +SchedulerX3Client::SchedulerX3Client(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +SchedulerX3Client::~SchedulerX3Client() +{} + +SchedulerX3Client::CreateAppOutcome SchedulerX3Client::createApp(const CreateAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAppOutcome(CreateAppResult(outcome.result())); + else + return CreateAppOutcome(outcome.error()); +} + +void SchedulerX3Client::createAppAsync(const CreateAppRequest& request, const CreateAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::CreateAppOutcomeCallable SchedulerX3Client::createAppCallable(const CreateAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::CreateClusterOutcome SchedulerX3Client::createCluster(const CreateClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateClusterOutcome(CreateClusterResult(outcome.result())); + else + return CreateClusterOutcome(outcome.error()); +} + +void SchedulerX3Client::createClusterAsync(const CreateClusterRequest& request, const CreateClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::CreateClusterOutcomeCallable SchedulerX3Client::createClusterCallable(const CreateClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::CreateJobOutcome SchedulerX3Client::createJob(const CreateJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateJobOutcome(CreateJobResult(outcome.result())); + else + return CreateJobOutcome(outcome.error()); +} + +void SchedulerX3Client::createJobAsync(const CreateJobRequest& request, const CreateJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::CreateJobOutcomeCallable SchedulerX3Client::createJobCallable(const CreateJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::DeleteAppOutcome SchedulerX3Client::deleteApp(const DeleteAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAppOutcome(DeleteAppResult(outcome.result())); + else + return DeleteAppOutcome(outcome.error()); +} + +void SchedulerX3Client::deleteAppAsync(const DeleteAppRequest& request, const DeleteAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::DeleteAppOutcomeCallable SchedulerX3Client::deleteAppCallable(const DeleteAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::DeleteClusterOutcome SchedulerX3Client::deleteCluster(const DeleteClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteClusterOutcome(DeleteClusterResult(outcome.result())); + else + return DeleteClusterOutcome(outcome.error()); +} + +void SchedulerX3Client::deleteClusterAsync(const DeleteClusterRequest& request, const DeleteClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::DeleteClusterOutcomeCallable SchedulerX3Client::deleteClusterCallable(const DeleteClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::DeleteJobsOutcome SchedulerX3Client::deleteJobs(const DeleteJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteJobsOutcome(DeleteJobsResult(outcome.result())); + else + return DeleteJobsOutcome(outcome.error()); +} + +void SchedulerX3Client::deleteJobsAsync(const DeleteJobsRequest& request, const DeleteJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::DeleteJobsOutcomeCallable SchedulerX3Client::deleteJobsCallable(const DeleteJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::ExportJobsOutcome SchedulerX3Client::exportJobs(const ExportJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExportJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExportJobsOutcome(ExportJobsResult(outcome.result())); + else + return ExportJobsOutcome(outcome.error()); +} + +void SchedulerX3Client::exportJobsAsync(const ExportJobsRequest& request, const ExportJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, exportJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::ExportJobsOutcomeCallable SchedulerX3Client::exportJobsCallable(const ExportJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->exportJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::GetClusterOutcome SchedulerX3Client::getCluster(const GetClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetClusterOutcome(GetClusterResult(outcome.result())); + else + return GetClusterOutcome(outcome.error()); +} + +void SchedulerX3Client::getClusterAsync(const GetClusterRequest& request, const GetClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::GetClusterOutcomeCallable SchedulerX3Client::getClusterCallable(const GetClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::GetDesigateInfoOutcome SchedulerX3Client::getDesigateInfo(const GetDesigateInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDesigateInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDesigateInfoOutcome(GetDesigateInfoResult(outcome.result())); + else + return GetDesigateInfoOutcome(outcome.error()); +} + +void SchedulerX3Client::getDesigateInfoAsync(const GetDesigateInfoRequest& request, const GetDesigateInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDesigateInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::GetDesigateInfoOutcomeCallable SchedulerX3Client::getDesigateInfoCallable(const GetDesigateInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDesigateInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::GetJobExecutionProgressOutcome SchedulerX3Client::getJobExecutionProgress(const GetJobExecutionProgressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetJobExecutionProgressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetJobExecutionProgressOutcome(GetJobExecutionProgressResult(outcome.result())); + else + return GetJobExecutionProgressOutcome(outcome.error()); +} + +void SchedulerX3Client::getJobExecutionProgressAsync(const GetJobExecutionProgressRequest& request, const GetJobExecutionProgressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getJobExecutionProgress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::GetJobExecutionProgressOutcomeCallable SchedulerX3Client::getJobExecutionProgressCallable(const GetJobExecutionProgressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getJobExecutionProgress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::GetLogOutcome SchedulerX3Client::getLog(const GetLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetLogOutcome(GetLogResult(outcome.result())); + else + return GetLogOutcome(outcome.error()); +} + +void SchedulerX3Client::getLogAsync(const GetLogRequest& request, const GetLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::GetLogOutcomeCallable SchedulerX3Client::getLogCallable(const GetLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::ImportCalendarOutcome SchedulerX3Client::importCalendar(const ImportCalendarRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ImportCalendarOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ImportCalendarOutcome(ImportCalendarResult(outcome.result())); + else + return ImportCalendarOutcome(outcome.error()); +} + +void SchedulerX3Client::importCalendarAsync(const ImportCalendarRequest& request, const ImportCalendarAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, importCalendar(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::ImportCalendarOutcomeCallable SchedulerX3Client::importCalendarCallable(const ImportCalendarRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->importCalendar(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::ImportJobsOutcome SchedulerX3Client::importJobs(const ImportJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ImportJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ImportJobsOutcome(ImportJobsResult(outcome.result())); + else + return ImportJobsOutcome(outcome.error()); +} + +void SchedulerX3Client::importJobsAsync(const ImportJobsRequest& request, const ImportJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, importJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::ImportJobsOutcomeCallable SchedulerX3Client::importJobsCallable(const ImportJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->importJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::ListAlarmEventOutcome SchedulerX3Client::listAlarmEvent(const ListAlarmEventRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAlarmEventOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAlarmEventOutcome(ListAlarmEventResult(outcome.result())); + else + return ListAlarmEventOutcome(outcome.error()); +} + +void SchedulerX3Client::listAlarmEventAsync(const ListAlarmEventRequest& request, const ListAlarmEventAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAlarmEvent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::ListAlarmEventOutcomeCallable SchedulerX3Client::listAlarmEventCallable(const ListAlarmEventRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAlarmEvent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::ListAppNamesOutcome SchedulerX3Client::listAppNames(const ListAppNamesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAppNamesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAppNamesOutcome(ListAppNamesResult(outcome.result())); + else + return ListAppNamesOutcome(outcome.error()); +} + +void SchedulerX3Client::listAppNamesAsync(const ListAppNamesRequest& request, const ListAppNamesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAppNames(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::ListAppNamesOutcomeCallable SchedulerX3Client::listAppNamesCallable(const ListAppNamesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAppNames(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::ListAppsOutcome SchedulerX3Client::listApps(const ListAppsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAppsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAppsOutcome(ListAppsResult(outcome.result())); + else + return ListAppsOutcome(outcome.error()); +} + +void SchedulerX3Client::listAppsAsync(const ListAppsRequest& request, const ListAppsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::ListAppsOutcomeCallable SchedulerX3Client::listAppsCallable(const ListAppsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::ListCalendarNamesOutcome SchedulerX3Client::listCalendarNames(const ListCalendarNamesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCalendarNamesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCalendarNamesOutcome(ListCalendarNamesResult(outcome.result())); + else + return ListCalendarNamesOutcome(outcome.error()); +} + +void SchedulerX3Client::listCalendarNamesAsync(const ListCalendarNamesRequest& request, const ListCalendarNamesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCalendarNames(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::ListCalendarNamesOutcomeCallable SchedulerX3Client::listCalendarNamesCallable(const ListCalendarNamesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCalendarNames(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::ListClustersOutcome SchedulerX3Client::listClusters(const ListClustersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClustersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClustersOutcome(ListClustersResult(outcome.result())); + else + return ListClustersOutcome(outcome.error()); +} + +void SchedulerX3Client::listClustersAsync(const ListClustersRequest& request, const ListClustersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::ListClustersOutcomeCallable SchedulerX3Client::listClustersCallable(const ListClustersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::ListExecutorsOutcome SchedulerX3Client::listExecutors(const ListExecutorsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListExecutorsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListExecutorsOutcome(ListExecutorsResult(outcome.result())); + else + return ListExecutorsOutcome(outcome.error()); +} + +void SchedulerX3Client::listExecutorsAsync(const ListExecutorsRequest& request, const ListExecutorsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listExecutors(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::ListExecutorsOutcomeCallable SchedulerX3Client::listExecutorsCallable(const ListExecutorsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listExecutors(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::ListJobExecutionsOutcome SchedulerX3Client::listJobExecutions(const ListJobExecutionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListJobExecutionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListJobExecutionsOutcome(ListJobExecutionsResult(outcome.result())); + else + return ListJobExecutionsOutcome(outcome.error()); +} + +void SchedulerX3Client::listJobExecutionsAsync(const ListJobExecutionsRequest& request, const ListJobExecutionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listJobExecutions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::ListJobExecutionsOutcomeCallable SchedulerX3Client::listJobExecutionsCallable(const ListJobExecutionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listJobExecutions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::ListJobsOutcome SchedulerX3Client::listJobs(const ListJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListJobsOutcome(ListJobsResult(outcome.result())); + else + return ListJobsOutcome(outcome.error()); +} + +void SchedulerX3Client::listJobsAsync(const ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::ListJobsOutcomeCallable SchedulerX3Client::listJobsCallable(const ListJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::ListLablesOutcome SchedulerX3Client::listLables(const ListLablesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListLablesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListLablesOutcome(ListLablesResult(outcome.result())); + else + return ListLablesOutcome(outcome.error()); +} + +void SchedulerX3Client::listLablesAsync(const ListLablesRequest& request, const ListLablesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listLables(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::ListLablesOutcomeCallable SchedulerX3Client::listLablesCallable(const ListLablesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listLables(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::ListRegionZoneOutcome SchedulerX3Client::listRegionZone(const ListRegionZoneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRegionZoneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRegionZoneOutcome(ListRegionZoneResult(outcome.result())); + else + return ListRegionZoneOutcome(outcome.error()); +} + +void SchedulerX3Client::listRegionZoneAsync(const ListRegionZoneRequest& request, const ListRegionZoneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRegionZone(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::ListRegionZoneOutcomeCallable SchedulerX3Client::listRegionZoneCallable(const ListRegionZoneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRegionZone(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::ListRegionsOutcome SchedulerX3Client::listRegions(const ListRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRegionsOutcome(ListRegionsResult(outcome.result())); + else + return ListRegionsOutcome(outcome.error()); +} + +void SchedulerX3Client::listRegionsAsync(const ListRegionsRequest& request, const ListRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::ListRegionsOutcomeCallable SchedulerX3Client::listRegionsCallable(const ListRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::ListScheduleEventOutcome SchedulerX3Client::listScheduleEvent(const ListScheduleEventRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListScheduleEventOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListScheduleEventOutcome(ListScheduleEventResult(outcome.result())); + else + return ListScheduleEventOutcome(outcome.error()); +} + +void SchedulerX3Client::listScheduleEventAsync(const ListScheduleEventRequest& request, const ListScheduleEventAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listScheduleEvent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::ListScheduleEventOutcomeCallable SchedulerX3Client::listScheduleEventCallable(const ListScheduleEventRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listScheduleEvent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::ListScheduleTimesOutcome SchedulerX3Client::listScheduleTimes(const ListScheduleTimesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListScheduleTimesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListScheduleTimesOutcome(ListScheduleTimesResult(outcome.result())); + else + return ListScheduleTimesOutcome(outcome.error()); +} + +void SchedulerX3Client::listScheduleTimesAsync(const ListScheduleTimesRequest& request, const ListScheduleTimesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listScheduleTimes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::ListScheduleTimesOutcomeCallable SchedulerX3Client::listScheduleTimesCallable(const ListScheduleTimesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listScheduleTimes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::OperateDesignateExecutorsOutcome SchedulerX3Client::operateDesignateExecutors(const OperateDesignateExecutorsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OperateDesignateExecutorsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OperateDesignateExecutorsOutcome(OperateDesignateExecutorsResult(outcome.result())); + else + return OperateDesignateExecutorsOutcome(outcome.error()); +} + +void SchedulerX3Client::operateDesignateExecutorsAsync(const OperateDesignateExecutorsRequest& request, const OperateDesignateExecutorsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, operateDesignateExecutors(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::OperateDesignateExecutorsOutcomeCallable SchedulerX3Client::operateDesignateExecutorsCallable(const OperateDesignateExecutorsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->operateDesignateExecutors(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::OperateDisableJobsOutcome SchedulerX3Client::operateDisableJobs(const OperateDisableJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OperateDisableJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OperateDisableJobsOutcome(OperateDisableJobsResult(outcome.result())); + else + return OperateDisableJobsOutcome(outcome.error()); +} + +void SchedulerX3Client::operateDisableJobsAsync(const OperateDisableJobsRequest& request, const OperateDisableJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, operateDisableJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::OperateDisableJobsOutcomeCallable SchedulerX3Client::operateDisableJobsCallable(const OperateDisableJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->operateDisableJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::OperateEnableJobsOutcome SchedulerX3Client::operateEnableJobs(const OperateEnableJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OperateEnableJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OperateEnableJobsOutcome(OperateEnableJobsResult(outcome.result())); + else + return OperateEnableJobsOutcome(outcome.error()); +} + +void SchedulerX3Client::operateEnableJobsAsync(const OperateEnableJobsRequest& request, const OperateEnableJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, operateEnableJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::OperateEnableJobsOutcomeCallable SchedulerX3Client::operateEnableJobsCallable(const OperateEnableJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->operateEnableJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::OperateExecuteJobOutcome SchedulerX3Client::operateExecuteJob(const OperateExecuteJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OperateExecuteJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OperateExecuteJobOutcome(OperateExecuteJobResult(outcome.result())); + else + return OperateExecuteJobOutcome(outcome.error()); +} + +void SchedulerX3Client::operateExecuteJobAsync(const OperateExecuteJobRequest& request, const OperateExecuteJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, operateExecuteJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::OperateExecuteJobOutcomeCallable SchedulerX3Client::operateExecuteJobCallable(const OperateExecuteJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->operateExecuteJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::OperateRerunJobOutcome SchedulerX3Client::operateRerunJob(const OperateRerunJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OperateRerunJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OperateRerunJobOutcome(OperateRerunJobResult(outcome.result())); + else + return OperateRerunJobOutcome(outcome.error()); +} + +void SchedulerX3Client::operateRerunJobAsync(const OperateRerunJobRequest& request, const OperateRerunJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, operateRerunJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::OperateRerunJobOutcomeCallable SchedulerX3Client::operateRerunJobCallable(const OperateRerunJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->operateRerunJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::OperateRetryJobExecutionOutcome SchedulerX3Client::operateRetryJobExecution(const OperateRetryJobExecutionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OperateRetryJobExecutionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OperateRetryJobExecutionOutcome(OperateRetryJobExecutionResult(outcome.result())); + else + return OperateRetryJobExecutionOutcome(outcome.error()); +} + +void SchedulerX3Client::operateRetryJobExecutionAsync(const OperateRetryJobExecutionRequest& request, const OperateRetryJobExecutionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, operateRetryJobExecution(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::OperateRetryJobExecutionOutcomeCallable SchedulerX3Client::operateRetryJobExecutionCallable(const OperateRetryJobExecutionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->operateRetryJobExecution(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::OperateStopJobExecutionOutcome SchedulerX3Client::operateStopJobExecution(const OperateStopJobExecutionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OperateStopJobExecutionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OperateStopJobExecutionOutcome(OperateStopJobExecutionResult(outcome.result())); + else + return OperateStopJobExecutionOutcome(outcome.error()); +} + +void SchedulerX3Client::operateStopJobExecutionAsync(const OperateStopJobExecutionRequest& request, const OperateStopJobExecutionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, operateStopJobExecution(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::OperateStopJobExecutionOutcomeCallable SchedulerX3Client::operateStopJobExecutionCallable(const OperateStopJobExecutionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->operateStopJobExecution(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::UpdateAppOutcome SchedulerX3Client::updateApp(const UpdateAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAppOutcome(UpdateAppResult(outcome.result())); + else + return UpdateAppOutcome(outcome.error()); +} + +void SchedulerX3Client::updateAppAsync(const UpdateAppRequest& request, const UpdateAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::UpdateAppOutcomeCallable SchedulerX3Client::updateAppCallable(const UpdateAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::UpdateClusterOutcome SchedulerX3Client::updateCluster(const UpdateClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateClusterOutcome(UpdateClusterResult(outcome.result())); + else + return UpdateClusterOutcome(outcome.error()); +} + +void SchedulerX3Client::updateClusterAsync(const UpdateClusterRequest& request, const UpdateClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::UpdateClusterOutcomeCallable SchedulerX3Client::updateClusterCallable(const UpdateClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SchedulerX3Client::UpdateJobOutcome SchedulerX3Client::updateJob(const UpdateJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateJobOutcome(UpdateJobResult(outcome.result())); + else + return UpdateJobOutcome(outcome.error()); +} + +void SchedulerX3Client::updateJobAsync(const UpdateJobRequest& request, const UpdateJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SchedulerX3Client::UpdateJobOutcomeCallable SchedulerX3Client::updateJobCallable(const UpdateJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/schedulerx3/src/model/CreateAppRequest.cc b/schedulerx3/src/model/CreateAppRequest.cc new file mode 100644 index 000000000..1548a672e --- /dev/null +++ b/schedulerx3/src/model/CreateAppRequest.cc @@ -0,0 +1,134 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::CreateAppRequest; + +CreateAppRequest::CreateAppRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "CreateApp") { + setMethod(HttpRequest::Method::Post); +} + +CreateAppRequest::~CreateAppRequest() {} + +std::string CreateAppRequest::getMseSessionId() const { + return mseSessionId_; +} + +void CreateAppRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string CreateAppRequest::getAccessToken() const { + return accessToken_; +} + +void CreateAppRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setBodyParameter(std::string("AccessToken"), accessToken); +} + +std::string CreateAppRequest::getTitle() const { + return title_; +} + +void CreateAppRequest::setTitle(const std::string &title) { + title_ = title; + setBodyParameter(std::string("Title"), title); +} + +std::string CreateAppRequest::getAppName() const { + return appName_; +} + +void CreateAppRequest::setAppName(const std::string &appName) { + appName_ = appName; + setBodyParameter(std::string("AppName"), appName); +} + +std::vector CreateAppRequest::getNoticeContacts() const { + return noticeContacts_; +} + +void CreateAppRequest::setNoticeContacts(const std::vector ¬iceContacts) { + noticeContacts_ = noticeContacts; + for(int dep1 = 0; dep1 != noticeContacts.size(); dep1++) { + setBodyParameter(std::string("NoticeContacts") + "." + std::to_string(dep1 + 1) + ".Webhook", noticeContacts[dep1].webhook); + setBodyParameter(std::string("NoticeContacts") + "." + std::to_string(dep1 + 1) + ".Mail", noticeContacts[dep1].mail); + setBodyParameter(std::string("NoticeContacts") + "." + std::to_string(dep1 + 1) + ".Phone", noticeContacts[dep1].phone); + setBodyParameter(std::string("NoticeContacts") + "." + std::to_string(dep1 + 1) + ".SmsCode", noticeContacts[dep1].smsCode); + setBodyParameter(std::string("NoticeContacts") + "." + std::to_string(dep1 + 1) + ".MailCode", noticeContacts[dep1].mailCode); + setBodyParameter(std::string("NoticeContacts") + "." + std::to_string(dep1 + 1) + ".UserName", noticeContacts[dep1].userName); + } +} + +CreateAppRequest::NoticeConfig CreateAppRequest::getNoticeConfig() const { + return noticeConfig_; +} + +void CreateAppRequest::setNoticeConfig(const CreateAppRequest::NoticeConfig ¬iceConfig) { + noticeConfig_ = noticeConfig; + setBodyParameter(std::string("NoticeConfig") + ".WebhookIsAtAll", noticeConfig.webhookIsAtAll ? "true" : "false"); + setBodyParameter(std::string("NoticeConfig") + ".NoticeChannel", noticeConfig.noticeChannel); +} + +int CreateAppRequest::getMaxJobs() const { + return maxJobs_; +} + +void CreateAppRequest::setMaxJobs(int maxJobs) { + maxJobs_ = maxJobs; + setBodyParameter(std::string("MaxJobs"), std::to_string(maxJobs)); +} + +std::string CreateAppRequest::getCalender() const { + return calender_; +} + +void CreateAppRequest::setCalender(const std::string &calender) { + calender_ = calender; + setBodyParameter(std::string("Calender"), calender); +} + +std::string CreateAppRequest::getClusterId() const { + return clusterId_; +} + +void CreateAppRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setBodyParameter(std::string("ClusterId"), clusterId); +} + +bool CreateAppRequest::getEnableLog() const { + return enableLog_; +} + +void CreateAppRequest::setEnableLog(bool enableLog) { + enableLog_ = enableLog; + setBodyParameter(std::string("EnableLog"), enableLog ? "true" : "false"); +} + +int CreateAppRequest::getMaxConcurrency() const { + return maxConcurrency_; +} + +void CreateAppRequest::setMaxConcurrency(int maxConcurrency) { + maxConcurrency_ = maxConcurrency; + setBodyParameter(std::string("MaxConcurrency"), std::to_string(maxConcurrency)); +} + diff --git a/schedulerx3/src/model/CreateAppResult.cc b/schedulerx3/src/model/CreateAppResult.cc new file mode 100644 index 000000000..b61c9c843 --- /dev/null +++ b/schedulerx3/src/model/CreateAppResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +CreateAppResult::CreateAppResult() : + ServiceResult() +{} + +CreateAppResult::CreateAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAppResult::~CreateAppResult() +{} + +void CreateAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AppGroupId"].isNull()) + data_.appGroupId = std::stol(dataNode["AppGroupId"].asString()); + if(!dataNode["AccessToken"].isNull()) + data_.accessToken = dataNode["AccessToken"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateAppResult::getMessage()const +{ + return message_; +} + +CreateAppResult::Data CreateAppResult::getData()const +{ + return data_; +} + +int CreateAppResult::getCode()const +{ + return code_; +} + +bool CreateAppResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/CreateClusterRequest.cc b/schedulerx3/src/model/CreateClusterRequest.cc new file mode 100644 index 000000000..0b5f38ae3 --- /dev/null +++ b/schedulerx3/src/model/CreateClusterRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::CreateClusterRequest; + +CreateClusterRequest::CreateClusterRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "CreateCluster") { + setMethod(HttpRequest::Method::Post); +} + +CreateClusterRequest::~CreateClusterRequest() {} + +std::string CreateClusterRequest::getMseSessionId() const { + return mseSessionId_; +} + +void CreateClusterRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string CreateClusterRequest::getClusterName() const { + return clusterName_; +} + +void CreateClusterRequest::setClusterName(const std::string &clusterName) { + clusterName_ = clusterName; + setBodyParameter(std::string("ClusterName"), clusterName); +} + +int CreateClusterRequest::getProductType() const { + return productType_; +} + +void CreateClusterRequest::setProductType(int productType) { + productType_ = productType; + setBodyParameter(std::string("ProductType"), std::to_string(productType)); +} + +std::string CreateClusterRequest::getEngineType() const { + return engineType_; +} + +void CreateClusterRequest::setEngineType(const std::string &engineType) { + engineType_ = engineType; + setBodyParameter(std::string("EngineType"), engineType); +} + +std::vector CreateClusterRequest::getVSwitches() const { + return vSwitches_; +} + +void CreateClusterRequest::setVSwitches(const std::vector &vSwitches) { + vSwitches_ = vSwitches; + for(int dep1 = 0; dep1 != vSwitches.size(); dep1++) { + setBodyParameter(std::string("VSwitches") + "." + std::to_string(dep1 + 1) + ".VSwitchId", vSwitches[dep1].vSwitchId); + setBodyParameter(std::string("VSwitches") + "." + std::to_string(dep1 + 1) + ".ZoneId", vSwitches[dep1].zoneId); + } +} + +std::string CreateClusterRequest::getClusterSpec() const { + return clusterSpec_; +} + +void CreateClusterRequest::setClusterSpec(const std::string &clusterSpec) { + clusterSpec_ = clusterSpec; + setBodyParameter(std::string("ClusterSpec"), clusterSpec); +} + +std::string CreateClusterRequest::getVpcId() const { + return vpcId_; +} + +void CreateClusterRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setBodyParameter(std::string("VpcId"), vpcId); +} + diff --git a/schedulerx3/src/model/CreateClusterResult.cc b/schedulerx3/src/model/CreateClusterResult.cc new file mode 100644 index 000000000..56ff2ba75 --- /dev/null +++ b/schedulerx3/src/model/CreateClusterResult.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +CreateClusterResult::CreateClusterResult() : + ServiceResult() +{} + +CreateClusterResult::CreateClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateClusterResult::~CreateClusterResult() +{} + +void CreateClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["OrderId"].isNull()) + data_.orderId = std::stol(dataNode["OrderId"].asString()); + if(!dataNode["ClusterId"].isNull()) + data_.clusterId = dataNode["ClusterId"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateClusterResult::getMessage()const +{ + return message_; +} + +CreateClusterResult::Data CreateClusterResult::getData()const +{ + return data_; +} + +std::string CreateClusterResult::getErrorCode()const +{ + return errorCode_; +} + +int CreateClusterResult::getCode()const +{ + return code_; +} + +bool CreateClusterResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/CreateJobRequest.cc b/schedulerx3/src/model/CreateJobRequest.cc new file mode 100644 index 000000000..f6a48149f --- /dev/null +++ b/schedulerx3/src/model/CreateJobRequest.cc @@ -0,0 +1,264 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::CreateJobRequest; + +CreateJobRequest::CreateJobRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "CreateJob") { + setMethod(HttpRequest::Method::Post); +} + +CreateJobRequest::~CreateJobRequest() {} + +std::string CreateJobRequest::getMseSessionId() const { + return mseSessionId_; +} + +void CreateJobRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +int CreateJobRequest::getExecutorBlockStrategy() const { + return executorBlockStrategy_; +} + +void CreateJobRequest::setExecutorBlockStrategy(int executorBlockStrategy) { + executorBlockStrategy_ = executorBlockStrategy; + setBodyParameter(std::string("ExecutorBlockStrategy"), std::to_string(executorBlockStrategy)); +} + +std::string CreateJobRequest::getTimezone() const { + return timezone_; +} + +void CreateJobRequest::setTimezone(const std::string &timezone) { + timezone_ = timezone; + setBodyParameter(std::string("Timezone"), timezone); +} + +int CreateJobRequest::getRouteStrategy() const { + return routeStrategy_; +} + +void CreateJobRequest::setRouteStrategy(int routeStrategy) { + routeStrategy_ = routeStrategy; + setBodyParameter(std::string("RouteStrategy"), std::to_string(routeStrategy)); +} + +std::string CreateJobRequest::getDescription() const { + return description_; +} + +void CreateJobRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +int CreateJobRequest::getAttemptInterval() const { + return attemptInterval_; +} + +void CreateJobRequest::setAttemptInterval(int attemptInterval) { + attemptInterval_ = attemptInterval; + setBodyParameter(std::string("AttemptInterval"), std::to_string(attemptInterval)); +} + +long CreateJobRequest::getStartTime() const { + return startTime_; +} + +void CreateJobRequest::setStartTime(long startTime) { + startTime_ = startTime; + setBodyParameter(std::string("StartTime"), std::to_string(startTime)); +} + +std::string CreateJobRequest::getAppName() const { + return appName_; +} + +void CreateJobRequest::setAppName(const std::string &appName) { + appName_ = appName; + setBodyParameter(std::string("AppName"), appName); +} + +std::vector CreateJobRequest::getNoticeContacts() const { + return noticeContacts_; +} + +void CreateJobRequest::setNoticeContacts(const std::vector ¬iceContacts) { + noticeContacts_ = noticeContacts; + for(int dep1 = 0; dep1 != noticeContacts.size(); dep1++) { + setBodyParameter(std::string("NoticeContacts") + "." + std::to_string(dep1 + 1) + ".ContactType", std::to_string(noticeContacts[dep1].contactType)); + setBodyParameter(std::string("NoticeContacts") + "." + std::to_string(dep1 + 1) + ".Name", noticeContacts[dep1].name); + } +} + +CreateJobRequest::NoticeConfig CreateJobRequest::getNoticeConfig() const { + return noticeConfig_; +} + +void CreateJobRequest::setNoticeConfig(const CreateJobRequest::NoticeConfig ¬iceConfig) { + noticeConfig_ = noticeConfig; + setBodyParameter(std::string("NoticeConfig") + ".TimeoutKillEnable", noticeConfig.timeoutKillEnable ? "true" : "false"); + setBodyParameter(std::string("NoticeConfig") + ".FailEnable", noticeConfig.failEnable ? "true" : "false"); + setBodyParameter(std::string("NoticeConfig") + ".WebhookIsAtAll", noticeConfig.webhookIsAtAll ? "true" : "false"); + setBodyParameter(std::string("NoticeConfig") + ".SuccessNotice", noticeConfig.successNotice ? "true" : "false"); + setBodyParameter(std::string("NoticeConfig") + ".FailLimitTimes", std::to_string(noticeConfig.failLimitTimes)); + setBodyParameter(std::string("NoticeConfig") + ".SendChannel", noticeConfig.sendChannel); + setBodyParameter(std::string("NoticeConfig") + ".NoticeChannel", noticeConfig.noticeChannel); + setBodyParameter(std::string("NoticeConfig") + ".TimeoutEnable", noticeConfig.timeoutEnable ? "true" : "false"); + setBodyParameter(std::string("NoticeConfig") + ".MissWorkerEnable", noticeConfig.missWorkerEnable ? "true" : "false"); + setBodyParameter(std::string("NoticeConfig") + ".Timeout", std::to_string(noticeConfig.timeout)); +} + +std::string CreateJobRequest::getCalendar() const { + return calendar_; +} + +void CreateJobRequest::setCalendar(const std::string &calendar) { + calendar_ = calendar; + setBodyParameter(std::string("Calendar"), calendar); +} + +int CreateJobRequest::getDataOffset() const { + return dataOffset_; +} + +void CreateJobRequest::setDataOffset(int dataOffset) { + dataOffset_ = dataOffset; + setBodyParameter(std::string("DataOffset"), std::to_string(dataOffset)); +} + +int CreateJobRequest::getMaxAttempt() const { + return maxAttempt_; +} + +void CreateJobRequest::setMaxAttempt(int maxAttempt) { + maxAttempt_ = maxAttempt; + setBodyParameter(std::string("MaxAttempt"), std::to_string(maxAttempt)); +} + +std::string CreateJobRequest::getClusterId() const { + return clusterId_; +} + +void CreateJobRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setBodyParameter(std::string("ClusterId"), clusterId); +} + +int CreateJobRequest::getPriority() const { + return priority_; +} + +void CreateJobRequest::setPriority(int priority) { + priority_ = priority; + setBodyParameter(std::string("Priority"), std::to_string(priority)); +} + +std::string CreateJobRequest::getJobType() const { + return jobType_; +} + +void CreateJobRequest::setJobType(const std::string &jobType) { + jobType_ = jobType; + setBodyParameter(std::string("JobType"), jobType); +} + +std::string CreateJobRequest::getTimeExpression() const { + return timeExpression_; +} + +void CreateJobRequest::setTimeExpression(const std::string &timeExpression) { + timeExpression_ = timeExpression; + setBodyParameter(std::string("TimeExpression"), timeExpression); +} + +std::string CreateJobRequest::getName() const { + return name_; +} + +void CreateJobRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + +std::string CreateJobRequest::getXAttrs() const { + return xAttrs_; +} + +void CreateJobRequest::setXAttrs(const std::string &xAttrs) { + xAttrs_ = xAttrs; + setBodyParameter(std::string("XAttrs"), xAttrs); +} + +int CreateJobRequest::getMaxConcurrency() const { + return maxConcurrency_; +} + +void CreateJobRequest::setMaxConcurrency(int maxConcurrency) { + maxConcurrency_ = maxConcurrency; + setBodyParameter(std::string("MaxConcurrency"), std::to_string(maxConcurrency)); +} + +int CreateJobRequest::getTimeType() const { + return timeType_; +} + +void CreateJobRequest::setTimeType(int timeType) { + timeType_ = timeType; + setBodyParameter(std::string("TimeType"), std::to_string(timeType)); +} + +std::string CreateJobRequest::getParameters() const { + return parameters_; +} + +void CreateJobRequest::setParameters(const std::string ¶meters) { + parameters_ = parameters; + setBodyParameter(std::string("Parameters"), parameters); +} + +std::string CreateJobRequest::getJobHandler() const { + return jobHandler_; +} + +void CreateJobRequest::setJobHandler(const std::string &jobHandler) { + jobHandler_ = jobHandler; + setBodyParameter(std::string("JobHandler"), jobHandler); +} + +std::string CreateJobRequest::getCleanMode() const { + return cleanMode_; +} + +void CreateJobRequest::setCleanMode(const std::string &cleanMode) { + cleanMode_ = cleanMode; + setBodyParameter(std::string("CleanMode"), cleanMode); +} + +int CreateJobRequest::getStatus() const { + return status_; +} + +void CreateJobRequest::setStatus(int status) { + status_ = status; + setBodyParameter(std::string("Status"), std::to_string(status)); +} + diff --git a/schedulerx3/src/model/CreateJobResult.cc b/schedulerx3/src/model/CreateJobResult.cc new file mode 100644 index 000000000..41c4118ab --- /dev/null +++ b/schedulerx3/src/model/CreateJobResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +CreateJobResult::CreateJobResult() : + ServiceResult() +{} + +CreateJobResult::CreateJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateJobResult::~CreateJobResult() +{} + +void CreateJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["JobId"].isNull()) + data_.jobId = std::stol(dataNode["JobId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateJobResult::getMessage()const +{ + return message_; +} + +CreateJobResult::Data CreateJobResult::getData()const +{ + return data_; +} + +int CreateJobResult::getCode()const +{ + return code_; +} + +bool CreateJobResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/DeleteAppRequest.cc b/schedulerx3/src/model/DeleteAppRequest.cc new file mode 100644 index 000000000..628e37201 --- /dev/null +++ b/schedulerx3/src/model/DeleteAppRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::DeleteAppRequest; + +DeleteAppRequest::DeleteAppRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "DeleteApp") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAppRequest::~DeleteAppRequest() {} + +std::string DeleteAppRequest::getMseSessionId() const { + return mseSessionId_; +} + +void DeleteAppRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string DeleteAppRequest::getClusterId() const { + return clusterId_; +} + +void DeleteAppRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setBodyParameter(std::string("ClusterId"), clusterId); +} + +std::string DeleteAppRequest::getAppName() const { + return appName_; +} + +void DeleteAppRequest::setAppName(const std::string &appName) { + appName_ = appName; + setBodyParameter(std::string("AppName"), appName); +} + diff --git a/schedulerx3/src/model/DeleteAppResult.cc b/schedulerx3/src/model/DeleteAppResult.cc new file mode 100644 index 000000000..e5e431e52 --- /dev/null +++ b/schedulerx3/src/model/DeleteAppResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +DeleteAppResult::DeleteAppResult() : + ServiceResult() +{} + +DeleteAppResult::DeleteAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAppResult::~DeleteAppResult() +{} + +void DeleteAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteAppResult::getMessage()const +{ + return message_; +} + +int DeleteAppResult::getCode()const +{ + return code_; +} + +bool DeleteAppResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/DeleteClusterRequest.cc b/schedulerx3/src/model/DeleteClusterRequest.cc new file mode 100644 index 000000000..2f2dfc513 --- /dev/null +++ b/schedulerx3/src/model/DeleteClusterRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::DeleteClusterRequest; + +DeleteClusterRequest::DeleteClusterRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "DeleteCluster") { + setMethod(HttpRequest::Method::Post); +} + +DeleteClusterRequest::~DeleteClusterRequest() {} + +std::string DeleteClusterRequest::getMseSessionId() const { + return mseSessionId_; +} + +void DeleteClusterRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string DeleteClusterRequest::getClusterId() const { + return clusterId_; +} + +void DeleteClusterRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + diff --git a/schedulerx3/src/model/DeleteClusterResult.cc b/schedulerx3/src/model/DeleteClusterResult.cc new file mode 100644 index 000000000..a681c2c8f --- /dev/null +++ b/schedulerx3/src/model/DeleteClusterResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +DeleteClusterResult::DeleteClusterResult() : + ServiceResult() +{} + +DeleteClusterResult::DeleteClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteClusterResult::~DeleteClusterResult() +{} + +void DeleteClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteClusterResult::getMessage()const +{ + return message_; +} + +int DeleteClusterResult::getCode()const +{ + return code_; +} + +bool DeleteClusterResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/DeleteJobsRequest.cc b/schedulerx3/src/model/DeleteJobsRequest.cc new file mode 100644 index 000000000..dc4bc3c08 --- /dev/null +++ b/schedulerx3/src/model/DeleteJobsRequest.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 + +using AlibabaCloud::SchedulerX3::Model::DeleteJobsRequest; + +DeleteJobsRequest::DeleteJobsRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "DeleteJobs") { + setMethod(HttpRequest::Method::Post); +} + +DeleteJobsRequest::~DeleteJobsRequest() {} + +std::string DeleteJobsRequest::getMseSessionId() const { + return mseSessionId_; +} + +void DeleteJobsRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string DeleteJobsRequest::getClusterId() const { + return clusterId_; +} + +void DeleteJobsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setBodyParameter(std::string("ClusterId"), clusterId); +} + +std::string DeleteJobsRequest::getAppName() const { + return appName_; +} + +void DeleteJobsRequest::setAppName(const std::string &appName) { + appName_ = appName; + setBodyParameter(std::string("AppName"), appName); +} + +std::vector DeleteJobsRequest::getJobIds() const { + return jobIds_; +} + +void DeleteJobsRequest::setJobIds(const std::vector &jobIds) { + jobIds_ = jobIds; + for(int dep1 = 0; dep1 != jobIds.size(); dep1++) { + setBodyParameter(std::string("JobIds") + "." + std::to_string(dep1 + 1), std::to_string(jobIds[dep1])); + } +} + diff --git a/schedulerx3/src/model/DeleteJobsResult.cc b/schedulerx3/src/model/DeleteJobsResult.cc new file mode 100644 index 000000000..6001ebdd0 --- /dev/null +++ b/schedulerx3/src/model/DeleteJobsResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +DeleteJobsResult::DeleteJobsResult() : + ServiceResult() +{} + +DeleteJobsResult::DeleteJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteJobsResult::~DeleteJobsResult() +{} + +void DeleteJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteJobsResult::getMessage()const +{ + return message_; +} + +int DeleteJobsResult::getCode()const +{ + return code_; +} + +bool DeleteJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/ExportJobsRequest.cc b/schedulerx3/src/model/ExportJobsRequest.cc new file mode 100644 index 000000000..842a514cb --- /dev/null +++ b/schedulerx3/src/model/ExportJobsRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::ExportJobsRequest; + +ExportJobsRequest::ExportJobsRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "ExportJobs") { + setMethod(HttpRequest::Method::Post); +} + +ExportJobsRequest::~ExportJobsRequest() {} + +std::string ExportJobsRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ExportJobsRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string ExportJobsRequest::getAppName() const { + return appName_; +} + +void ExportJobsRequest::setAppName(const std::string &appName) { + appName_ = appName; + setBodyParameter(std::string("AppName"), appName); +} + +std::string ExportJobsRequest::getClusterId() const { + return clusterId_; +} + +void ExportJobsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setBodyParameter(std::string("ClusterId"), clusterId); +} + +std::vector ExportJobsRequest::getJobIds() const { + return jobIds_; +} + +void ExportJobsRequest::setJobIds(const std::vector &jobIds) { + jobIds_ = jobIds; + for(int dep1 = 0; dep1 != jobIds.size(); dep1++) { + setBodyParameter(std::string("JobIds") + "." + std::to_string(dep1 + 1), std::to_string(jobIds[dep1])); + } +} + +int ExportJobsRequest::getExportJobType() const { + return exportJobType_; +} + +void ExportJobsRequest::setExportJobType(int exportJobType) { + exportJobType_ = exportJobType; + setBodyParameter(std::string("ExportJobType"), std::to_string(exportJobType)); +} + diff --git a/schedulerx3/src/model/ExportJobsResult.cc b/schedulerx3/src/model/ExportJobsResult.cc new file mode 100644 index 000000000..4316d7746 --- /dev/null +++ b/schedulerx3/src/model/ExportJobsResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +ExportJobsResult::ExportJobsResult() : + ServiceResult() +{} + +ExportJobsResult::ExportJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExportJobsResult::~ExportJobsResult() +{} + +void ExportJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/schedulerx3/src/model/GetClusterRequest.cc b/schedulerx3/src/model/GetClusterRequest.cc new file mode 100644 index 000000000..8c07472b7 --- /dev/null +++ b/schedulerx3/src/model/GetClusterRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::GetClusterRequest; + +GetClusterRequest::GetClusterRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "GetCluster") { + setMethod(HttpRequest::Method::Get); +} + +GetClusterRequest::~GetClusterRequest() {} + +std::string GetClusterRequest::getMseSessionId() const { + return mseSessionId_; +} + +void GetClusterRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string GetClusterRequest::getClusterId() const { + return clusterId_; +} + +void GetClusterRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + diff --git a/schedulerx3/src/model/GetClusterResult.cc b/schedulerx3/src/model/GetClusterResult.cc new file mode 100644 index 000000000..e81aff6ec --- /dev/null +++ b/schedulerx3/src/model/GetClusterResult.cc @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +GetClusterResult::GetClusterResult() : + ServiceResult() +{} + +GetClusterResult::GetClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetClusterResult::~GetClusterResult() +{} + +void GetClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ClusterId"].isNull()) + data_.clusterId = dataNode["ClusterId"].asString(); + if(!dataNode["ClusterName"].isNull()) + data_.clusterName = dataNode["ClusterName"].asString(); + if(!dataNode["ClusterSpec"].isNull()) + data_.clusterSpec = dataNode["ClusterSpec"].asString(); + if(!dataNode["ProductType"].isNull()) + data_.productType = std::stoi(dataNode["ProductType"].asString()); + if(!dataNode["EngineType"].isNull()) + data_.engineType = dataNode["EngineType"].asString(); + if(!dataNode["EngineVersion"].isNull()) + data_.engineVersion = dataNode["EngineVersion"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = std::stoi(dataNode["Status"].asString()); + if(!dataNode["CreateTime"].isNull()) + data_.createTime = dataNode["CreateTime"].asString(); + if(!dataNode["EndTime"].isNull()) + data_.endTime = dataNode["EndTime"].asString(); + if(!dataNode["IntranetDomain"].isNull()) + data_.intranetDomain = dataNode["IntranetDomain"].asString(); + if(!dataNode["InternetDomain"].isNull()) + data_.internetDomain = dataNode["InternetDomain"].asString(); + if(!dataNode["ChargeType"].isNull()) + data_.chargeType = dataNode["ChargeType"].asString(); + if(!dataNode["KubeConfig"].isNull()) + data_.kubeConfig = dataNode["KubeConfig"].asString(); + if(!dataNode["JobNum"].isNull()) + data_.jobNum = std::stoi(dataNode["JobNum"].asString()); + if(!dataNode["WorkerNum"].isNull()) + data_.workerNum = std::stoi(dataNode["WorkerNum"].asString()); + if(!dataNode["VpcId"].isNull()) + data_.vpcId = dataNode["VpcId"].asString(); + if(!dataNode["MaxJobNum"].isNull()) + data_.maxJobNum = std::stoi(dataNode["MaxJobNum"].asString()); + if(!dataNode["Spm"].isNull()) + data_.spm = std::stoi(dataNode["Spm"].asString()); + auto allVSwitchesNode = dataNode["VSwitches"]["vswitchesItem"]; + for (auto dataNodeVSwitchesvswitchesItem : allVSwitchesNode) + { + Data::VswitchesItem vswitchesItemObject; + if(!dataNodeVSwitchesvswitchesItem["ZoneId"].isNull()) + vswitchesItemObject.zoneId = dataNodeVSwitchesvswitchesItem["ZoneId"].asString(); + if(!dataNodeVSwitchesvswitchesItem["VSwitchId"].isNull()) + vswitchesItemObject.vSwitchId = dataNodeVSwitchesvswitchesItem["VSwitchId"].asString(); + data_.vSwitches.push_back(vswitchesItemObject); + } + auto allZones = dataNode["Zones"]["zones"]; + for (auto value : allZones) + data_.zones.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetClusterResult::getMessage()const +{ + return message_; +} + +GetClusterResult::Data GetClusterResult::getData()const +{ + return data_; +} + +int GetClusterResult::getCode()const +{ + return code_; +} + +bool GetClusterResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/GetDesigateInfoRequest.cc b/schedulerx3/src/model/GetDesigateInfoRequest.cc new file mode 100644 index 000000000..067b092e2 --- /dev/null +++ b/schedulerx3/src/model/GetDesigateInfoRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::GetDesigateInfoRequest; + +GetDesigateInfoRequest::GetDesigateInfoRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "GetDesigateInfo") { + setMethod(HttpRequest::Method::Get); +} + +GetDesigateInfoRequest::~GetDesigateInfoRequest() {} + +std::string GetDesigateInfoRequest::getMseSessionId() const { + return mseSessionId_; +} + +void GetDesigateInfoRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string GetDesigateInfoRequest::getClusterId() const { + return clusterId_; +} + +void GetDesigateInfoRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +long GetDesigateInfoRequest::getJobId() const { + return jobId_; +} + +void GetDesigateInfoRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +std::string GetDesigateInfoRequest::getAppName() const { + return appName_; +} + +void GetDesigateInfoRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + diff --git a/schedulerx3/src/model/GetDesigateInfoResult.cc b/schedulerx3/src/model/GetDesigateInfoResult.cc new file mode 100644 index 000000000..ebadd8338 --- /dev/null +++ b/schedulerx3/src/model/GetDesigateInfoResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +GetDesigateInfoResult::GetDesigateInfoResult() : + ServiceResult() +{} + +GetDesigateInfoResult::GetDesigateInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDesigateInfoResult::~GetDesigateInfoResult() +{} + +void GetDesigateInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["DesignateType"].isNull()) + data_.designateType = std::stoi(dataNode["DesignateType"].asString()); + if(!dataNode["Transferable"].isNull()) + data_.transferable = dataNode["Transferable"].asString() == "true"; + 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 GetDesigateInfoResult::getMessage()const +{ + return message_; +} + +GetDesigateInfoResult::Data GetDesigateInfoResult::getData()const +{ + return data_; +} + +int GetDesigateInfoResult::getCode()const +{ + return code_; +} + +bool GetDesigateInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/GetJobExecutionProgressRequest.cc b/schedulerx3/src/model/GetJobExecutionProgressRequest.cc new file mode 100644 index 000000000..1dfbf7f44 --- /dev/null +++ b/schedulerx3/src/model/GetJobExecutionProgressRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::GetJobExecutionProgressRequest; + +GetJobExecutionProgressRequest::GetJobExecutionProgressRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "GetJobExecutionProgress") { + setMethod(HttpRequest::Method::Get); +} + +GetJobExecutionProgressRequest::~GetJobExecutionProgressRequest() {} + +std::string GetJobExecutionProgressRequest::getMseSessionId() const { + return mseSessionId_; +} + +void GetJobExecutionProgressRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string GetJobExecutionProgressRequest::getClusterId() const { + return clusterId_; +} + +void GetJobExecutionProgressRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string GetJobExecutionProgressRequest::getAppName() const { + return appName_; +} + +void GetJobExecutionProgressRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string GetJobExecutionProgressRequest::getJobExecutionId() const { + return jobExecutionId_; +} + +void GetJobExecutionProgressRequest::setJobExecutionId(const std::string &jobExecutionId) { + jobExecutionId_ = jobExecutionId; + setParameter(std::string("JobExecutionId"), jobExecutionId); +} + diff --git a/schedulerx3/src/model/GetJobExecutionProgressResult.cc b/schedulerx3/src/model/GetJobExecutionProgressResult.cc new file mode 100644 index 000000000..e5789f83d --- /dev/null +++ b/schedulerx3/src/model/GetJobExecutionProgressResult.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +GetJobExecutionProgressResult::GetJobExecutionProgressResult() : + ServiceResult() +{} + +GetJobExecutionProgressResult::GetJobExecutionProgressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetJobExecutionProgressResult::~GetJobExecutionProgressResult() +{} + +void GetJobExecutionProgressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["JobDescription"].isNull()) + data_.jobDescription = dataNode["JobDescription"].asString(); + if(!dataNode["StatisticDetail"].isNull()) + data_.statisticDetail = dataNode["StatisticDetail"].asString(); + auto allTaskProgressNode = dataNode["TaskProgress"]["taskProgressItem"]; + for (auto dataNodeTaskProgresstaskProgressItem : allTaskProgressNode) + { + Data::TaskProgressItem taskProgressItemObject; + if(!dataNodeTaskProgresstaskProgressItem["Name"].isNull()) + taskProgressItemObject.name = dataNodeTaskProgresstaskProgressItem["Name"].asString(); + if(!dataNodeTaskProgresstaskProgressItem["Total"].isNull()) + taskProgressItemObject.total = std::stoi(dataNodeTaskProgresstaskProgressItem["Total"].asString()); + if(!dataNodeTaskProgresstaskProgressItem["Pulled"].isNull()) + taskProgressItemObject.pulled = std::stoi(dataNodeTaskProgresstaskProgressItem["Pulled"].asString()); + if(!dataNodeTaskProgresstaskProgressItem["Queue"].isNull()) + taskProgressItemObject.queue = std::stoi(dataNodeTaskProgresstaskProgressItem["Queue"].asString()); + if(!dataNodeTaskProgresstaskProgressItem["Running"].isNull()) + taskProgressItemObject.running = std::stoi(dataNodeTaskProgresstaskProgressItem["Running"].asString()); + if(!dataNodeTaskProgresstaskProgressItem["Success"].isNull()) + taskProgressItemObject.success = std::stoi(dataNodeTaskProgresstaskProgressItem["Success"].asString()); + if(!dataNodeTaskProgresstaskProgressItem["Failed"].isNull()) + taskProgressItemObject.failed = std::stoi(dataNodeTaskProgresstaskProgressItem["Failed"].asString()); + data_.taskProgress.push_back(taskProgressItemObject); + } + auto allShardingProgressNode = dataNode["ShardingProgress"]["shardingProgressItem"]; + for (auto dataNodeShardingProgressshardingProgressItem : allShardingProgressNode) + { + Data::ShardingProgressItem shardingProgressItemObject; + if(!dataNodeShardingProgressshardingProgressItem["Id"].isNull()) + shardingProgressItemObject.id = std::stol(dataNodeShardingProgressshardingProgressItem["Id"].asString()); + if(!dataNodeShardingProgressshardingProgressItem["WorkerAddr"].isNull()) + shardingProgressItemObject.workerAddr = dataNodeShardingProgressshardingProgressItem["WorkerAddr"].asString(); + if(!dataNodeShardingProgressshardingProgressItem["Status"].isNull()) + shardingProgressItemObject.status = std::stoi(dataNodeShardingProgressshardingProgressItem["Status"].asString()); + if(!dataNodeShardingProgressshardingProgressItem["JobExecutionId"].isNull()) + shardingProgressItemObject.jobExecutionId = dataNodeShardingProgressshardingProgressItem["JobExecutionId"].asString(); + if(!dataNodeShardingProgressshardingProgressItem["Result"].isNull()) + shardingProgressItemObject.result = dataNodeShardingProgressshardingProgressItem["Result"].asString(); + auto statusTypeNode = value["StatusType"]; + if(!statusTypeNode["Code"].isNull()) + shardingProgressItemObject.statusType.code = statusTypeNode["Code"].asString(); + if(!statusTypeNode["Name"].isNull()) + shardingProgressItemObject.statusType.name = statusTypeNode["Name"].asString(); + if(!statusTypeNode["Tips"].isNull()) + shardingProgressItemObject.statusType.tips = statusTypeNode["Tips"].asString(); + data_.shardingProgress.push_back(shardingProgressItemObject); + } + auto allWorkerProgressNode = dataNode["WorkerProgress"]["workerProgressItem"]; + for (auto dataNodeWorkerProgressworkerProgressItem : allWorkerProgressNode) + { + Data::WorkerProgressItem workerProgressItemObject; + if(!dataNodeWorkerProgressworkerProgressItem["WorkerAddr"].isNull()) + workerProgressItemObject.workerAddr = dataNodeWorkerProgressworkerProgressItem["WorkerAddr"].asString(); + if(!dataNodeWorkerProgressworkerProgressItem["Total"].isNull()) + workerProgressItemObject.total = std::stoi(dataNodeWorkerProgressworkerProgressItem["Total"].asString()); + if(!dataNodeWorkerProgressworkerProgressItem["Pulled"].isNull()) + workerProgressItemObject.pulled = std::stoi(dataNodeWorkerProgressworkerProgressItem["Pulled"].asString()); + if(!dataNodeWorkerProgressworkerProgressItem["Queue"].isNull()) + workerProgressItemObject.queue = std::stoi(dataNodeWorkerProgressworkerProgressItem["Queue"].asString()); + if(!dataNodeWorkerProgressworkerProgressItem["Running"].isNull()) + workerProgressItemObject.running = std::stoi(dataNodeWorkerProgressworkerProgressItem["Running"].asString()); + if(!dataNodeWorkerProgressworkerProgressItem["Success"].isNull()) + workerProgressItemObject.success = std::stoi(dataNodeWorkerProgressworkerProgressItem["Success"].asString()); + if(!dataNodeWorkerProgressworkerProgressItem["Failed"].isNull()) + workerProgressItemObject.failed = std::stoi(dataNodeWorkerProgressworkerProgressItem["Failed"].asString()); + if(!dataNodeWorkerProgressworkerProgressItem["TraceId"].isNull()) + workerProgressItemObject.traceId = dataNodeWorkerProgressworkerProgressItem["TraceId"].asString(); + data_.workerProgress.push_back(workerProgressItemObject); + } + auto totalProgressNode = dataNode["TotalProgress"]; + if(!totalProgressNode["Total"].isNull()) + data_.totalProgress.total = std::stol(totalProgressNode["Total"].asString()); + if(!totalProgressNode["Finished"].isNull()) + data_.totalProgress.finished = std::stol(totalProgressNode["Finished"].asString()); + auto rootProgressNode = dataNode["RootProgress"]; + if(!rootProgressNode["Total"].isNull()) + data_.rootProgress.total = std::stol(rootProgressNode["Total"].asString()); + if(!rootProgressNode["Finished"].isNull()) + data_.rootProgress.finished = std::stol(rootProgressNode["Finished"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetJobExecutionProgressResult::getMessage()const +{ + return message_; +} + +GetJobExecutionProgressResult::Data GetJobExecutionProgressResult::getData()const +{ + return data_; +} + +int GetJobExecutionProgressResult::getCode()const +{ + return code_; +} + +bool GetJobExecutionProgressResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/GetLogRequest.cc b/schedulerx3/src/model/GetLogRequest.cc new file mode 100644 index 000000000..03d45051a --- /dev/null +++ b/schedulerx3/src/model/GetLogRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::GetLogRequest; + +GetLogRequest::GetLogRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "GetLog") { + setMethod(HttpRequest::Method::Get); +} + +GetLogRequest::~GetLogRequest() {} + +std::string GetLogRequest::getMseSessionId() const { + return mseSessionId_; +} + +void GetLogRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +long GetLogRequest::getStartTime() const { + return startTime_; +} + +void GetLogRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +std::string GetLogRequest::getAppName() const { + return appName_; +} + +void GetLogRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +int GetLogRequest::getLineNum() const { + return lineNum_; +} + +void GetLogRequest::setLineNum(int lineNum) { + lineNum_ = lineNum; + setParameter(std::string("LineNum"), std::to_string(lineNum)); +} + +std::string GetLogRequest::getKeyword() const { + return keyword_; +} + +void GetLogRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); +} + +std::string GetLogRequest::getJobExecutionId() const { + return jobExecutionId_; +} + +void GetLogRequest::setJobExecutionId(const std::string &jobExecutionId) { + jobExecutionId_ = jobExecutionId; + setParameter(std::string("JobExecutionId"), jobExecutionId); +} + +int GetLogRequest::getOffset() const { + return offset_; +} + +void GetLogRequest::setOffset(int offset) { + offset_ = offset; + setParameter(std::string("Offset"), std::to_string(offset)); +} + +std::string GetLogRequest::getLevel() const { + return level_; +} + +void GetLogRequest::setLevel(const std::string &level) { + level_ = level; + setParameter(std::string("Level"), level); +} + +long GetLogRequest::getEndTime() const { + return endTime_; +} + +void GetLogRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +std::string GetLogRequest::getClusterId() const { + return clusterId_; +} + +void GetLogRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +bool GetLogRequest::getReverse() const { + return reverse_; +} + +void GetLogRequest::setReverse(bool reverse) { + reverse_ = reverse; + setParameter(std::string("Reverse"), reverse ? "true" : "false"); +} + +long GetLogRequest::getLogId() const { + return logId_; +} + +void GetLogRequest::setLogId(long logId) { + logId_ = logId; + setParameter(std::string("LogId"), std::to_string(logId)); +} + diff --git a/schedulerx3/src/model/GetLogResult.cc b/schedulerx3/src/model/GetLogResult.cc new file mode 100644 index 000000000..a5147b179 --- /dev/null +++ b/schedulerx3/src/model/GetLogResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +GetLogResult::GetLogResult() : + ServiceResult() +{} + +GetLogResult::GetLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetLogResult::~GetLogResult() +{} + +void GetLogResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["lines"]; + for (const auto &item : allData) + data_.push_back(item.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(); + +} + +std::string GetLogResult::getMessage()const +{ + return message_; +} + +std::vector GetLogResult::getData()const +{ + return data_; +} + +int GetLogResult::getCode()const +{ + return code_; +} + +bool GetLogResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/ImportCalendarRequest.cc b/schedulerx3/src/model/ImportCalendarRequest.cc new file mode 100644 index 000000000..307c9522f --- /dev/null +++ b/schedulerx3/src/model/ImportCalendarRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::ImportCalendarRequest; + +ImportCalendarRequest::ImportCalendarRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "ImportCalendar") { + setMethod(HttpRequest::Method::Post); +} + +ImportCalendarRequest::~ImportCalendarRequest() {} + +std::string ImportCalendarRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ImportCalendarRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +int ImportCalendarRequest::getYear() const { + return year_; +} + +void ImportCalendarRequest::setYear(int year) { + year_ = year; + setBodyParameter(std::string("Year"), std::to_string(year)); +} + +std::string ImportCalendarRequest::getMonths() const { + return months_; +} + +void ImportCalendarRequest::setMonths(const std::string &months) { + months_ = months; + setBodyParameter(std::string("Months"), months); +} + +std::string ImportCalendarRequest::getClusterId() const { + return clusterId_; +} + +void ImportCalendarRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setBodyParameter(std::string("ClusterId"), clusterId); +} + +std::string ImportCalendarRequest::getName() const { + return name_; +} + +void ImportCalendarRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + diff --git a/schedulerx3/src/model/ImportCalendarResult.cc b/schedulerx3/src/model/ImportCalendarResult.cc new file mode 100644 index 000000000..547a34e07 --- /dev/null +++ b/schedulerx3/src/model/ImportCalendarResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +ImportCalendarResult::ImportCalendarResult() : + ServiceResult() +{} + +ImportCalendarResult::ImportCalendarResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImportCalendarResult::~ImportCalendarResult() +{} + +void ImportCalendarResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["data"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ImportCalendarResult::getMessage()const +{ + return message_; +} + +std::vector ImportCalendarResult::getData()const +{ + return data_; +} + +int ImportCalendarResult::getCode()const +{ + return code_; +} + +bool ImportCalendarResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/ImportJobsRequest.cc b/schedulerx3/src/model/ImportJobsRequest.cc new file mode 100644 index 000000000..78a35b2d0 --- /dev/null +++ b/schedulerx3/src/model/ImportJobsRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::ImportJobsRequest; + +ImportJobsRequest::ImportJobsRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "ImportJobs") { + setMethod(HttpRequest::Method::Post); +} + +ImportJobsRequest::~ImportJobsRequest() {} + +std::string ImportJobsRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ImportJobsRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string ImportJobsRequest::getContent() const { + return content_; +} + +void ImportJobsRequest::setContent(const std::string &content) { + content_ = content; + setBodyParameter(std::string("Content"), content); +} + +bool ImportJobsRequest::getOverwrite() const { + return overwrite_; +} + +void ImportJobsRequest::setOverwrite(bool overwrite) { + overwrite_ = overwrite; + setBodyParameter(std::string("Overwrite"), overwrite ? "true" : "false"); +} + +std::string ImportJobsRequest::getClusterId() const { + return clusterId_; +} + +void ImportJobsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setBodyParameter(std::string("ClusterId"), clusterId); +} + +bool ImportJobsRequest::getAutoCreateApp() const { + return autoCreateApp_; +} + +void ImportJobsRequest::setAutoCreateApp(bool autoCreateApp) { + autoCreateApp_ = autoCreateApp; + setBodyParameter(std::string("AutoCreateApp"), autoCreateApp ? "true" : "false"); +} + diff --git a/schedulerx3/src/model/ImportJobsResult.cc b/schedulerx3/src/model/ImportJobsResult.cc new file mode 100644 index 000000000..32aecd08d --- /dev/null +++ b/schedulerx3/src/model/ImportJobsResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +ImportJobsResult::ImportJobsResult() : + ServiceResult() +{} + +ImportJobsResult::ImportJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImportJobsResult::~ImportJobsResult() +{} + +void ImportJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ImportJobsResult::getMessage()const +{ + return message_; +} + +int ImportJobsResult::getCode()const +{ + return code_; +} + +bool ImportJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/ListAlarmEventRequest.cc b/schedulerx3/src/model/ListAlarmEventRequest.cc new file mode 100644 index 000000000..db7e49f10 --- /dev/null +++ b/schedulerx3/src/model/ListAlarmEventRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::ListAlarmEventRequest; + +ListAlarmEventRequest::ListAlarmEventRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "ListAlarmEvent") { + setMethod(HttpRequest::Method::Get); +} + +ListAlarmEventRequest::~ListAlarmEventRequest() {} + +std::string ListAlarmEventRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListAlarmEventRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +long ListAlarmEventRequest::getStartTime() const { + return startTime_; +} + +void ListAlarmEventRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +std::string ListAlarmEventRequest::getPageNum() const { + return pageNum_; +} + +void ListAlarmEventRequest::setPageNum(const std::string &pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), pageNum); +} + +std::string ListAlarmEventRequest::getAlarmChannel() const { + return alarmChannel_; +} + +void ListAlarmEventRequest::setAlarmChannel(const std::string &alarmChannel) { + alarmChannel_ = alarmChannel; + setParameter(std::string("AlarmChannel"), alarmChannel); +} + +std::string ListAlarmEventRequest::getAppName() const { + return appName_; +} + +void ListAlarmEventRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string ListAlarmEventRequest::getPageSize() const { + return pageSize_; +} + +void ListAlarmEventRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string ListAlarmEventRequest::getJobName() const { + return jobName_; +} + +void ListAlarmEventRequest::setJobName(const std::string &jobName) { + jobName_ = jobName; + setParameter(std::string("JobName"), jobName); +} + +std::string ListAlarmEventRequest::getAlarmType() const { + return alarmType_; +} + +void ListAlarmEventRequest::setAlarmType(const std::string &alarmType) { + alarmType_ = alarmType; + setParameter(std::string("AlarmType"), alarmType); +} + +long ListAlarmEventRequest::getEndTime() const { + return endTime_; +} + +void ListAlarmEventRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +std::string ListAlarmEventRequest::getClusterId() const { + return clusterId_; +} + +void ListAlarmEventRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +bool ListAlarmEventRequest::getReverse() const { + return reverse_; +} + +void ListAlarmEventRequest::setReverse(bool reverse) { + reverse_ = reverse; + setParameter(std::string("Reverse"), reverse ? "true" : "false"); +} + +std::string ListAlarmEventRequest::getAlarmStatus() const { + return alarmStatus_; +} + +void ListAlarmEventRequest::setAlarmStatus(const std::string &alarmStatus) { + alarmStatus_ = alarmStatus; + setParameter(std::string("AlarmStatus"), alarmStatus); +} + diff --git a/schedulerx3/src/model/ListAlarmEventResult.cc b/schedulerx3/src/model/ListAlarmEventResult.cc new file mode 100644 index 000000000..1cb5af45b --- /dev/null +++ b/schedulerx3/src/model/ListAlarmEventResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +ListAlarmEventResult::ListAlarmEventResult() : + ServiceResult() +{} + +ListAlarmEventResult::ListAlarmEventResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAlarmEventResult::~ListAlarmEventResult() +{} + +void ListAlarmEventResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["Total"].isNull()) + data_.total = std::stol(dataNode["Total"].asString()); + auto allRecordsNode = dataNode["Records"]["record"]; + for (auto dataNodeRecordsrecord : allRecordsNode) + { + Data::Record recordObject; + if(!dataNodeRecordsrecord["AppName"].isNull()) + recordObject.appName = dataNodeRecordsrecord["AppName"].asString(); + if(!dataNodeRecordsrecord["JobName"].isNull()) + recordObject.jobName = dataNodeRecordsrecord["JobName"].asString(); + if(!dataNodeRecordsrecord["AlarmType"].isNull()) + recordObject.alarmType = dataNodeRecordsrecord["AlarmType"].asString(); + if(!dataNodeRecordsrecord["AlarmChannel"].isNull()) + recordObject.alarmChannel = dataNodeRecordsrecord["AlarmChannel"].asString(); + if(!dataNodeRecordsrecord["AlarmContacts"].isNull()) + recordObject.alarmContacts = dataNodeRecordsrecord["AlarmContacts"].asString(); + if(!dataNodeRecordsrecord["AlarmStatus"].isNull()) + recordObject.alarmStatus = dataNodeRecordsrecord["AlarmStatus"].asString(); + if(!dataNodeRecordsrecord["AlarmMessage"].isNull()) + recordObject.alarmMessage = dataNodeRecordsrecord["AlarmMessage"].asString(); + if(!dataNodeRecordsrecord["Time"].isNull()) + recordObject.time = dataNodeRecordsrecord["Time"].asString(); + data_.records.push_back(recordObject); + } + 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 ListAlarmEventResult::getMessage()const +{ + return message_; +} + +ListAlarmEventResult::Data ListAlarmEventResult::getData()const +{ + return data_; +} + +int ListAlarmEventResult::getCode()const +{ + return code_; +} + +bool ListAlarmEventResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/ListAppNamesRequest.cc b/schedulerx3/src/model/ListAppNamesRequest.cc new file mode 100644 index 000000000..2337bcfdf --- /dev/null +++ b/schedulerx3/src/model/ListAppNamesRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::ListAppNamesRequest; + +ListAppNamesRequest::ListAppNamesRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "ListAppNames") { + setMethod(HttpRequest::Method::Get); +} + +ListAppNamesRequest::~ListAppNamesRequest() {} + +std::string ListAppNamesRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListAppNamesRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string ListAppNamesRequest::getClusterId() const { + return clusterId_; +} + +void ListAppNamesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ListAppNamesRequest::getAppName() const { + return appName_; +} + +void ListAppNamesRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + diff --git a/schedulerx3/src/model/ListAppNamesResult.cc b/schedulerx3/src/model/ListAppNamesResult.cc new file mode 100644 index 000000000..afc1802b9 --- /dev/null +++ b/schedulerx3/src/model/ListAppNamesResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +ListAppNamesResult::ListAppNamesResult() : + ServiceResult() +{} + +ListAppNamesResult::ListAppNamesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAppNamesResult::~ListAppNamesResult() +{} + +void ListAppNamesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["dataItem"]; + for (auto valueDatadataItem : allDataNode) + { + DataItem dataObject; + if(!valueDatadataItem["Id"].isNull()) + dataObject.id = std::stol(valueDatadataItem["Id"].asString()); + if(!valueDatadataItem["AppName"].isNull()) + dataObject.appName = valueDatadataItem["AppName"].asString(); + if(!valueDatadataItem["Title"].isNull()) + dataObject.title = valueDatadataItem["Title"].asString(); + if(!valueDatadataItem["AppGroupId"].isNull()) + dataObject.appGroupId = valueDatadataItem["AppGroupId"].asString(); + data_.push_back(dataObject); + } + 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 ListAppNamesResult::getMessage()const +{ + return message_; +} + +std::vector ListAppNamesResult::getData()const +{ + return data_; +} + +int ListAppNamesResult::getCode()const +{ + return code_; +} + +bool ListAppNamesResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/ListAppsRequest.cc b/schedulerx3/src/model/ListAppsRequest.cc new file mode 100644 index 000000000..652cfaed3 --- /dev/null +++ b/schedulerx3/src/model/ListAppsRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::ListAppsRequest; + +ListAppsRequest::ListAppsRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "ListApps") { + setMethod(HttpRequest::Method::Get); +} + +ListAppsRequest::~ListAppsRequest() {} + +std::string ListAppsRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListAppsRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string ListAppsRequest::getTitle() const { + return title_; +} + +void ListAppsRequest::setTitle(const std::string &title) { + title_ = title; + setParameter(std::string("Title"), title); +} + +int ListAppsRequest::getPageNum() const { + return pageNum_; +} + +void ListAppsRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); +} + +std::string ListAppsRequest::getAppName() const { + return appName_; +} + +void ListAppsRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +int ListAppsRequest::getPageSize() const { + return pageSize_; +} + +void ListAppsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListAppsRequest::getClusterId() const { + return clusterId_; +} + +void ListAppsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + diff --git a/schedulerx3/src/model/ListAppsResult.cc b/schedulerx3/src/model/ListAppsResult.cc new file mode 100644 index 000000000..afecf87be --- /dev/null +++ b/schedulerx3/src/model/ListAppsResult.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +ListAppsResult::ListAppsResult() : + ServiceResult() +{} + +ListAppsResult::ListAppsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAppsResult::~ListAppsResult() +{} + +void ListAppsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + auto allRecordsNode = dataNode["Records"]["Record"]; + for (auto dataNodeRecordsRecord : allRecordsNode) + { + Data::Record recordObject; + if(!dataNodeRecordsRecord["Id"].isNull()) + recordObject.id = std::stol(dataNodeRecordsRecord["Id"].asString()); + if(!dataNodeRecordsRecord["AppName"].isNull()) + recordObject.appName = dataNodeRecordsRecord["AppName"].asString(); + if(!dataNodeRecordsRecord["AccessToken"].isNull()) + recordObject.accessToken = dataNodeRecordsRecord["AccessToken"].asString(); + if(!dataNodeRecordsRecord["Title"].isNull()) + recordObject.title = dataNodeRecordsRecord["Title"].asString(); + if(!dataNodeRecordsRecord["Creator"].isNull()) + recordObject.creator = dataNodeRecordsRecord["Creator"].asString(); + if(!dataNodeRecordsRecord["Updater"].isNull()) + recordObject.updater = dataNodeRecordsRecord["Updater"].asString(); + if(!dataNodeRecordsRecord["Leader"].isNull()) + recordObject.leader = dataNodeRecordsRecord["Leader"].asString(); + if(!dataNodeRecordsRecord["Calendar"].isNull()) + recordObject.calendar = dataNodeRecordsRecord["Calendar"].asString(); + if(!dataNodeRecordsRecord["MaxJobs"].isNull()) + recordObject.maxJobs = std::stoi(dataNodeRecordsRecord["MaxJobs"].asString()); + if(!dataNodeRecordsRecord["MaxConcurrency"].isNull()) + recordObject.maxConcurrency = std::stoi(dataNodeRecordsRecord["MaxConcurrency"].asString()); + if(!dataNodeRecordsRecord["NoticeConfig"].isNull()) + recordObject.noticeConfig = dataNodeRecordsRecord["NoticeConfig"].asString(); + if(!dataNodeRecordsRecord["NoticeContacts"].isNull()) + recordObject.noticeContacts = dataNodeRecordsRecord["NoticeContacts"].asString(); + if(!dataNodeRecordsRecord["JobNum"].isNull()) + recordObject.jobNum = std::stoi(dataNodeRecordsRecord["JobNum"].asString()); + if(!dataNodeRecordsRecord["ExecutorNum"].isNull()) + recordObject.executorNum = std::stol(dataNodeRecordsRecord["ExecutorNum"].asString()); + if(!dataNodeRecordsRecord["EnableLog"].isNull()) + recordObject.enableLog = dataNodeRecordsRecord["EnableLog"].asString() == "true"; + data_.records.push_back(recordObject); + } + 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 ListAppsResult::getMessage()const +{ + return message_; +} + +ListAppsResult::Data ListAppsResult::getData()const +{ + return data_; +} + +int ListAppsResult::getCode()const +{ + return code_; +} + +bool ListAppsResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/ListCalendarNamesRequest.cc b/schedulerx3/src/model/ListCalendarNamesRequest.cc new file mode 100644 index 000000000..c7d0759a0 --- /dev/null +++ b/schedulerx3/src/model/ListCalendarNamesRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::ListCalendarNamesRequest; + +ListCalendarNamesRequest::ListCalendarNamesRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "ListCalendarNames") { + setMethod(HttpRequest::Method::Get); +} + +ListCalendarNamesRequest::~ListCalendarNamesRequest() {} + +std::string ListCalendarNamesRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListCalendarNamesRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string ListCalendarNamesRequest::getClusterId() const { + return clusterId_; +} + +void ListCalendarNamesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + diff --git a/schedulerx3/src/model/ListCalendarNamesResult.cc b/schedulerx3/src/model/ListCalendarNamesResult.cc new file mode 100644 index 000000000..cddfa510e --- /dev/null +++ b/schedulerx3/src/model/ListCalendarNamesResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +ListCalendarNamesResult::ListCalendarNamesResult() : + ServiceResult() +{} + +ListCalendarNamesResult::ListCalendarNamesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCalendarNamesResult::~ListCalendarNamesResult() +{} + +void ListCalendarNamesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["data"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListCalendarNamesResult::getMessage()const +{ + return message_; +} + +std::vector ListCalendarNamesResult::getData()const +{ + return data_; +} + +int ListCalendarNamesResult::getCode()const +{ + return code_; +} + +bool ListCalendarNamesResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/ListClustersRequest.cc b/schedulerx3/src/model/ListClustersRequest.cc new file mode 100644 index 000000000..7e062d067 --- /dev/null +++ b/schedulerx3/src/model/ListClustersRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::ListClustersRequest; + +ListClustersRequest::ListClustersRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "ListClusters") { + setMethod(HttpRequest::Method::Get); +} + +ListClustersRequest::~ListClustersRequest() {} + +std::string ListClustersRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListClustersRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string ListClustersRequest::getClusterName() const { + return clusterName_; +} + +void ListClustersRequest::setClusterName(const std::string &clusterName) { + clusterName_ = clusterName; + setParameter(std::string("ClusterName"), clusterName); +} + +int ListClustersRequest::getPageNum() const { + return pageNum_; +} + +void ListClustersRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); +} + +int ListClustersRequest::getPageSize() const { + return pageSize_; +} + +void ListClustersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListClustersRequest::getClusterId() const { + return clusterId_; +} + +void ListClustersRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + diff --git a/schedulerx3/src/model/ListClustersResult.cc b/schedulerx3/src/model/ListClustersResult.cc new file mode 100644 index 000000000..4ece3b49f --- /dev/null +++ b/schedulerx3/src/model/ListClustersResult.cc @@ -0,0 +1,121 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +ListClustersResult::ListClustersResult() : + ServiceResult() +{} + +ListClustersResult::ListClustersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListClustersResult::~ListClustersResult() +{} + +void ListClustersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + auto allRecordsNode = dataNode["Records"]["record"]; + for (auto dataNodeRecordsrecord : allRecordsNode) + { + Data::Record recordObject; + if(!dataNodeRecordsrecord["ClusterId"].isNull()) + recordObject.clusterId = dataNodeRecordsrecord["ClusterId"].asString(); + if(!dataNodeRecordsrecord["ClusterName"].isNull()) + recordObject.clusterName = dataNodeRecordsrecord["ClusterName"].asString(); + if(!dataNodeRecordsrecord["ClusterSpec"].isNull()) + recordObject.clusterSpec = dataNodeRecordsrecord["ClusterSpec"].asString(); + if(!dataNodeRecordsrecord["ProductType"].isNull()) + recordObject.productType = std::stoi(dataNodeRecordsrecord["ProductType"].asString()); + if(!dataNodeRecordsrecord["EngineType"].isNull()) + recordObject.engineType = dataNodeRecordsrecord["EngineType"].asString(); + if(!dataNodeRecordsrecord["EngineVersion"].isNull()) + recordObject.engineVersion = dataNodeRecordsrecord["EngineVersion"].asString(); + if(!dataNodeRecordsrecord["Status"].isNull()) + recordObject.status = std::stoi(dataNodeRecordsrecord["Status"].asString()); + if(!dataNodeRecordsrecord["CreateTime"].isNull()) + recordObject.createTime = dataNodeRecordsrecord["CreateTime"].asString(); + if(!dataNodeRecordsrecord["EndTime"].isNull()) + recordObject.endTime = dataNodeRecordsrecord["EndTime"].asString(); + if(!dataNodeRecordsrecord["IntranetDomain"].isNull()) + recordObject.intranetDomain = dataNodeRecordsrecord["IntranetDomain"].asString(); + if(!dataNodeRecordsrecord["InternetDomain"].isNull()) + recordObject.internetDomain = dataNodeRecordsrecord["InternetDomain"].asString(); + if(!dataNodeRecordsrecord["ChargeType"].isNull()) + recordObject.chargeType = dataNodeRecordsrecord["ChargeType"].asString(); + if(!dataNodeRecordsrecord["VpcId"].isNull()) + recordObject.vpcId = dataNodeRecordsrecord["VpcId"].asString(); + if(!dataNodeRecordsrecord["SpInstanceId"].isNull()) + recordObject.spInstanceId = dataNodeRecordsrecord["SpInstanceId"].asString(); + auto allVSwitchesNode = dataNodeRecordsrecord["VSwitches"]["vswitchesItem"]; + for (auto dataNodeRecordsrecordVSwitchesvswitchesItem : allVSwitchesNode) + { + Data::Record::VswitchesItem vSwitchesObject; + if(!dataNodeRecordsrecordVSwitchesvswitchesItem["ZoneId"].isNull()) + vSwitchesObject.zoneId = dataNodeRecordsrecordVSwitchesvswitchesItem["ZoneId"].asString(); + if(!dataNodeRecordsrecordVSwitchesvswitchesItem["VSwitchId"].isNull()) + vSwitchesObject.vSwitchId = dataNodeRecordsrecordVSwitchesvswitchesItem["VSwitchId"].asString(); + recordObject.vSwitches.push_back(vSwitchesObject); + } + data_.records.push_back(recordObject); + } + 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 ListClustersResult::getMessage()const +{ + return message_; +} + +ListClustersResult::Data ListClustersResult::getData()const +{ + return data_; +} + +int ListClustersResult::getCode()const +{ + return code_; +} + +bool ListClustersResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/ListExecutorsRequest.cc b/schedulerx3/src/model/ListExecutorsRequest.cc new file mode 100644 index 000000000..1aa20fbc4 --- /dev/null +++ b/schedulerx3/src/model/ListExecutorsRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::ListExecutorsRequest; + +ListExecutorsRequest::ListExecutorsRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "ListExecutors") { + setMethod(HttpRequest::Method::Get); +} + +ListExecutorsRequest::~ListExecutorsRequest() {} + +std::string ListExecutorsRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListExecutorsRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +long ListExecutorsRequest::getJobId() const { + return jobId_; +} + +void ListExecutorsRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +std::string ListExecutorsRequest::getAppName() const { + return appName_; +} + +void ListExecutorsRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string ListExecutorsRequest::getClusterId() const { + return clusterId_; +} + +void ListExecutorsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ListExecutorsRequest::getLabel() const { + return label_; +} + +void ListExecutorsRequest::setLabel(const std::string &label) { + label_ = label; + setParameter(std::string("Label"), label); +} + diff --git a/schedulerx3/src/model/ListExecutorsResult.cc b/schedulerx3/src/model/ListExecutorsResult.cc new file mode 100644 index 000000000..f37e33061 --- /dev/null +++ b/schedulerx3/src/model/ListExecutorsResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +ListExecutorsResult::ListExecutorsResult() : + ServiceResult() +{} + +ListExecutorsResult::ListExecutorsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListExecutorsResult::~ListExecutorsResult() +{} + +void ListExecutorsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["dataItem"]; + for (auto valueDatadataItem : allDataNode) + { + DataItem dataObject; + if(!valueDatadataItem["Address"].isNull()) + dataObject.address = valueDatadataItem["Address"].asString(); + if(!valueDatadataItem["Ip"].isNull()) + dataObject.ip = valueDatadataItem["Ip"].asString(); + if(!valueDatadataItem["Port"].isNull()) + dataObject.port = std::stoi(valueDatadataItem["Port"].asString()); + if(!valueDatadataItem["Label"].isNull()) + dataObject.label = valueDatadataItem["Label"].asString(); + if(!valueDatadataItem["Version"].isNull()) + dataObject.version = valueDatadataItem["Version"].asString(); + if(!valueDatadataItem["Online"].isNull()) + dataObject.online = valueDatadataItem["Online"].asString() == "true"; + if(!valueDatadataItem["IsDesignated"].isNull()) + dataObject.isDesignated = valueDatadataItem["IsDesignated"].asString() == "true"; + data_.push_back(dataObject); + } + 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 ListExecutorsResult::getMessage()const +{ + return message_; +} + +std::vector ListExecutorsResult::getData()const +{ + return data_; +} + +int ListExecutorsResult::getCode()const +{ + return code_; +} + +bool ListExecutorsResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/ListJobExecutionsRequest.cc b/schedulerx3/src/model/ListJobExecutionsRequest.cc new file mode 100644 index 000000000..f41fd0f49 --- /dev/null +++ b/schedulerx3/src/model/ListJobExecutionsRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::ListJobExecutionsRequest; + +ListJobExecutionsRequest::ListJobExecutionsRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "ListJobExecutions") { + setMethod(HttpRequest::Method::Get); +} + +ListJobExecutionsRequest::~ListJobExecutionsRequest() {} + +std::string ListJobExecutionsRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListJobExecutionsRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string ListJobExecutionsRequest::getStartTime() const { + return startTime_; +} + +void ListJobExecutionsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +int ListJobExecutionsRequest::getPageNum() const { + return pageNum_; +} + +void ListJobExecutionsRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); +} + +long ListJobExecutionsRequest::getJobId() const { + return jobId_; +} + +void ListJobExecutionsRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +std::string ListJobExecutionsRequest::getAppName() const { + return appName_; +} + +void ListJobExecutionsRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +int ListJobExecutionsRequest::getPageSize() const { + return pageSize_; +} + +void ListJobExecutionsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListJobExecutionsRequest::getJobName() const { + return jobName_; +} + +void ListJobExecutionsRequest::setJobName(const std::string &jobName) { + jobName_ = jobName; + setParameter(std::string("JobName"), jobName); +} + +std::string ListJobExecutionsRequest::getJobExecutionId() const { + return jobExecutionId_; +} + +void ListJobExecutionsRequest::setJobExecutionId(const std::string &jobExecutionId) { + jobExecutionId_ = jobExecutionId; + setParameter(std::string("JobExecutionId"), jobExecutionId); +} + +std::string ListJobExecutionsRequest::getEndTime() const { + return endTime_; +} + +void ListJobExecutionsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string ListJobExecutionsRequest::getClusterId() const { + return clusterId_; +} + +void ListJobExecutionsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +int ListJobExecutionsRequest::getStatus() const { + return status_; +} + +void ListJobExecutionsRequest::setStatus(int status) { + status_ = status; + setParameter(std::string("Status"), std::to_string(status)); +} + diff --git a/schedulerx3/src/model/ListJobExecutionsResult.cc b/schedulerx3/src/model/ListJobExecutionsResult.cc new file mode 100644 index 000000000..f755c0a6a --- /dev/null +++ b/schedulerx3/src/model/ListJobExecutionsResult.cc @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +ListJobExecutionsResult::ListJobExecutionsResult() : + ServiceResult() +{} + +ListJobExecutionsResult::ListJobExecutionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListJobExecutionsResult::~ListJobExecutionsResult() +{} + +void ListJobExecutionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + auto allRecordsNode = dataNode["Records"]["record"]; + for (auto dataNodeRecordsrecord : allRecordsNode) + { + Data::Record recordObject; + if(!dataNodeRecordsrecord["JobExecutionId"].isNull()) + recordObject.jobExecutionId = dataNodeRecordsrecord["JobExecutionId"].asString(); + if(!dataNodeRecordsrecord["JobId"].isNull()) + recordObject.jobId = std::stol(dataNodeRecordsrecord["JobId"].asString()); + if(!dataNodeRecordsrecord["JobName"].isNull()) + recordObject.jobName = dataNodeRecordsrecord["JobName"].asString(); + if(!dataNodeRecordsrecord["JobType"].isNull()) + recordObject.jobType = dataNodeRecordsrecord["JobType"].asString(); + if(!dataNodeRecordsrecord["Parameters"].isNull()) + recordObject.parameters = dataNodeRecordsrecord["Parameters"].asString(); + if(!dataNodeRecordsrecord["ScheduleTime"].isNull()) + recordObject.scheduleTime = dataNodeRecordsrecord["ScheduleTime"].asString(); + if(!dataNodeRecordsrecord["DataTime"].isNull()) + recordObject.dataTime = dataNodeRecordsrecord["DataTime"].asString(); + if(!dataNodeRecordsrecord["StartTime"].isNull()) + recordObject.startTime = dataNodeRecordsrecord["StartTime"].asString(); + if(!dataNodeRecordsrecord["EndTime"].isNull()) + recordObject.endTime = dataNodeRecordsrecord["EndTime"].asString(); + if(!dataNodeRecordsrecord["Duration"].isNull()) + recordObject.duration = std::stol(dataNodeRecordsrecord["Duration"].asString()); + if(!dataNodeRecordsrecord["Executor"].isNull()) + recordObject.executor = dataNodeRecordsrecord["Executor"].asString(); + if(!dataNodeRecordsrecord["Result"].isNull()) + recordObject.result = dataNodeRecordsrecord["Result"].asString(); + if(!dataNodeRecordsrecord["Status"].isNull()) + recordObject.status = std::stoi(dataNodeRecordsrecord["Status"].asString()); + if(!dataNodeRecordsrecord["TimeType"].isNull()) + recordObject.timeType = std::stoi(dataNodeRecordsrecord["TimeType"].asString()); + if(!dataNodeRecordsrecord["Attempt"].isNull()) + recordObject.attempt = std::stoi(dataNodeRecordsrecord["Attempt"].asString()); + if(!dataNodeRecordsrecord["WorkAddr"].isNull()) + recordObject.workAddr = dataNodeRecordsrecord["WorkAddr"].asString(); + if(!dataNodeRecordsrecord["AppName"].isNull()) + recordObject.appName = dataNodeRecordsrecord["AppName"].asString(); + if(!dataNodeRecordsrecord["RouteStrategy"].isNull()) + recordObject.routeStrategy = std::stoi(dataNodeRecordsrecord["RouteStrategy"].asString()); + if(!dataNodeRecordsrecord["ServerIp"].isNull()) + recordObject.serverIp = dataNodeRecordsrecord["ServerIp"].asString(); + if(!dataNodeRecordsrecord["TriggerType"].isNull()) + recordObject.triggerType = std::stoi(dataNodeRecordsrecord["TriggerType"].asString()); + data_.records.push_back(recordObject); + } + 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 ListJobExecutionsResult::getMessage()const +{ + return message_; +} + +ListJobExecutionsResult::Data ListJobExecutionsResult::getData()const +{ + return data_; +} + +int ListJobExecutionsResult::getCode()const +{ + return code_; +} + +bool ListJobExecutionsResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/ListJobsRequest.cc b/schedulerx3/src/model/ListJobsRequest.cc new file mode 100644 index 000000000..4ee15f7c3 --- /dev/null +++ b/schedulerx3/src/model/ListJobsRequest.cc @@ -0,0 +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 + +using AlibabaCloud::SchedulerX3::Model::ListJobsRequest; + +ListJobsRequest::ListJobsRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "ListJobs") { + setMethod(HttpRequest::Method::Get); +} + +ListJobsRequest::~ListJobsRequest() {} + +std::string ListJobsRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListJobsRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string ListJobsRequest::getDescription() const { + return description_; +} + +void ListJobsRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +int ListJobsRequest::getPageNum() const { + return pageNum_; +} + +void ListJobsRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); +} + +long ListJobsRequest::getJobId() const { + return jobId_; +} + +void ListJobsRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +std::string ListJobsRequest::getAppName() const { + return appName_; +} + +void ListJobsRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +int ListJobsRequest::getPageSize() const { + return pageSize_; +} + +void ListJobsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListJobsRequest::getJobName() const { + return jobName_; +} + +void ListJobsRequest::setJobName(const std::string &jobName) { + jobName_ = jobName; + setParameter(std::string("JobName"), jobName); +} + +std::string ListJobsRequest::getClusterId() const { + return clusterId_; +} + +void ListJobsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ListJobsRequest::getJobHandler() const { + return jobHandler_; +} + +void ListJobsRequest::setJobHandler(const std::string &jobHandler) { + jobHandler_ = jobHandler; + setParameter(std::string("JobHandler"), jobHandler); +} + +std::string ListJobsRequest::getStatus() const { + return status_; +} + +void ListJobsRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/schedulerx3/src/model/ListJobsResult.cc b/schedulerx3/src/model/ListJobsResult.cc new file mode 100644 index 000000000..1e6399b03 --- /dev/null +++ b/schedulerx3/src/model/ListJobsResult.cc @@ -0,0 +1,143 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +ListJobsResult::ListJobsResult() : + ServiceResult() +{} + +ListJobsResult::ListJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListJobsResult::~ListJobsResult() +{} + +void ListJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + auto allRecordsNode = dataNode["Records"]["Record"]; + for (auto dataNodeRecordsRecord : allRecordsNode) + { + Data::Record recordObject; + if(!dataNodeRecordsRecord["JobId"].isNull()) + recordObject.jobId = std::stol(dataNodeRecordsRecord["JobId"].asString()); + if(!dataNodeRecordsRecord["Name"].isNull()) + recordObject.name = dataNodeRecordsRecord["Name"].asString(); + if(!dataNodeRecordsRecord["Description"].isNull()) + recordObject.description = dataNodeRecordsRecord["Description"].asString(); + if(!dataNodeRecordsRecord["JobType"].isNull()) + recordObject.jobType = dataNodeRecordsRecord["JobType"].asString(); + if(!dataNodeRecordsRecord["Status"].isNull()) + recordObject.status = std::stoi(dataNodeRecordsRecord["Status"].asString()); + if(!dataNodeRecordsRecord["Parameters"].isNull()) + recordObject.parameters = dataNodeRecordsRecord["Parameters"].asString(); + if(!dataNodeRecordsRecord["MaxConcurrency"].isNull()) + recordObject.maxConcurrency = std::stoi(dataNodeRecordsRecord["MaxConcurrency"].asString()); + if(!dataNodeRecordsRecord["MaxAttempt"].isNull()) + recordObject.maxAttempt = std::stoi(dataNodeRecordsRecord["MaxAttempt"].asString()); + if(!dataNodeRecordsRecord["AttemptInterval"].isNull()) + recordObject.attemptInterval = std::stoi(dataNodeRecordsRecord["AttemptInterval"].asString()); + if(!dataNodeRecordsRecord["JobHandler"].isNull()) + recordObject.jobHandler = dataNodeRecordsRecord["JobHandler"].asString(); + if(!dataNodeRecordsRecord["Priority"].isNull()) + recordObject.priority = std::stoi(dataNodeRecordsRecord["Priority"].asString()); + if(!dataNodeRecordsRecord["TimeType"].isNull()) + recordObject.timeType = std::stoi(dataNodeRecordsRecord["TimeType"].asString()); + if(!dataNodeRecordsRecord["TimeExpression"].isNull()) + recordObject.timeExpression = dataNodeRecordsRecord["TimeExpression"].asString(); + if(!dataNodeRecordsRecord["TimeZone"].isNull()) + recordObject.timeZone = dataNodeRecordsRecord["TimeZone"].asString(); + if(!dataNodeRecordsRecord["Calendar"].isNull()) + recordObject.calendar = dataNodeRecordsRecord["Calendar"].asString(); + if(!dataNodeRecordsRecord["DataOffset"].isNull()) + recordObject.dataOffset = std::stoi(dataNodeRecordsRecord["DataOffset"].asString()); + if(!dataNodeRecordsRecord["CleanMode"].isNull()) + recordObject.cleanMode = dataNodeRecordsRecord["CleanMode"].asString(); + if(!dataNodeRecordsRecord["Creator"].isNull()) + recordObject.creator = dataNodeRecordsRecord["Creator"].asString(); + if(!dataNodeRecordsRecord["Updater"].isNull()) + recordObject.updater = dataNodeRecordsRecord["Updater"].asString(); + if(!dataNodeRecordsRecord["Xattrs"].isNull()) + recordObject.xattrs = dataNodeRecordsRecord["Xattrs"].asString(); + if(!dataNodeRecordsRecord["NoticeConfig"].isNull()) + recordObject.noticeConfig = dataNodeRecordsRecord["NoticeConfig"].asString(); + if(!dataNodeRecordsRecord["NoticeContacts"].isNull()) + recordObject.noticeContacts = dataNodeRecordsRecord["NoticeContacts"].asString(); + if(!dataNodeRecordsRecord["RouteStrategy"].isNull()) + recordObject.routeStrategy = std::stoi(dataNodeRecordsRecord["RouteStrategy"].asString()); + if(!dataNodeRecordsRecord["AppName"].isNull()) + recordObject.appName = dataNodeRecordsRecord["AppName"].asString(); + if(!dataNodeRecordsRecord["StartTime"].isNull()) + recordObject.startTime = std::stol(dataNodeRecordsRecord["StartTime"].asString()); + if(!dataNodeRecordsRecord["Timezone"].isNull()) + recordObject.timezone = dataNodeRecordsRecord["Timezone"].asString(); + if(!dataNodeRecordsRecord["ExecutorBlockStrategy"].isNull()) + recordObject.executorBlockStrategy = dataNodeRecordsRecord["ExecutorBlockStrategy"].asString(); + if(!dataNodeRecordsRecord["LastExecuteEndTime"].isNull()) + recordObject.lastExecuteEndTime = dataNodeRecordsRecord["LastExecuteEndTime"].asString(); + if(!dataNodeRecordsRecord["LastExecuteStatus"].isNull()) + recordObject.lastExecuteStatus = std::stoi(dataNodeRecordsRecord["LastExecuteStatus"].asString()); + if(!dataNodeRecordsRecord["CurrentExecuteStatus"].isNull()) + recordObject.currentExecuteStatus = std::stoi(dataNodeRecordsRecord["CurrentExecuteStatus"].asString()); + data_.records.push_back(recordObject); + } + 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 ListJobsResult::getMessage()const +{ + return message_; +} + +ListJobsResult::Data ListJobsResult::getData()const +{ + return data_; +} + +int ListJobsResult::getCode()const +{ + return code_; +} + +bool ListJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/ListLablesRequest.cc b/schedulerx3/src/model/ListLablesRequest.cc new file mode 100644 index 000000000..c06f210e5 --- /dev/null +++ b/schedulerx3/src/model/ListLablesRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::ListLablesRequest; + +ListLablesRequest::ListLablesRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "ListLables") { + setMethod(HttpRequest::Method::Get); +} + +ListLablesRequest::~ListLablesRequest() {} + +std::string ListLablesRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListLablesRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string ListLablesRequest::getClusterId() const { + return clusterId_; +} + +void ListLablesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +long ListLablesRequest::getJobId() const { + return jobId_; +} + +void ListLablesRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +std::string ListLablesRequest::getAppName() const { + return appName_; +} + +void ListLablesRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + diff --git a/schedulerx3/src/model/ListLablesResult.cc b/schedulerx3/src/model/ListLablesResult.cc new file mode 100644 index 000000000..5dd56230a --- /dev/null +++ b/schedulerx3/src/model/ListLablesResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +ListLablesResult::ListLablesResult() : + ServiceResult() +{} + +ListLablesResult::ListLablesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListLablesResult::~ListLablesResult() +{} + +void ListLablesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["dataItem"]; + for (auto valueDatadataItem : allDataNode) + { + DataItem dataObject; + if(!valueDatadataItem["Label"].isNull()) + dataObject.label = valueDatadataItem["Label"].asString(); + if(!valueDatadataItem["Online"].isNull()) + dataObject.online = valueDatadataItem["Online"].asString() == "true"; + if(!valueDatadataItem["Size"].isNull()) + dataObject.size = std::stoi(valueDatadataItem["Size"].asString()); + if(!valueDatadataItem["IsDesignated"].isNull()) + dataObject.isDesignated = valueDatadataItem["IsDesignated"].asString() == "true"; + data_.push_back(dataObject); + } + 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 ListLablesResult::getMessage()const +{ + return message_; +} + +std::vector ListLablesResult::getData()const +{ + return data_; +} + +int ListLablesResult::getCode()const +{ + return code_; +} + +bool ListLablesResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/ListRegionZoneRequest.cc b/schedulerx3/src/model/ListRegionZoneRequest.cc new file mode 100644 index 000000000..a34da33e9 --- /dev/null +++ b/schedulerx3/src/model/ListRegionZoneRequest.cc @@ -0,0 +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 + +using AlibabaCloud::SchedulerX3::Model::ListRegionZoneRequest; + +ListRegionZoneRequest::ListRegionZoneRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "ListRegionZone") { + setMethod(HttpRequest::Method::Post); +} + +ListRegionZoneRequest::~ListRegionZoneRequest() {} + +std::string ListRegionZoneRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListRegionZoneRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + diff --git a/schedulerx3/src/model/ListRegionZoneResult.cc b/schedulerx3/src/model/ListRegionZoneResult.cc new file mode 100644 index 000000000..a7456cc35 --- /dev/null +++ b/schedulerx3/src/model/ListRegionZoneResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +ListRegionZoneResult::ListRegionZoneResult() : + ServiceResult() +{} + +ListRegionZoneResult::ListRegionZoneResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRegionZoneResult::~ListRegionZoneResult() +{} + +void ListRegionZoneResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["dataItem"]; + for (auto valueDatadataItem : allDataNode) + { + DataItem dataObject; + if(!valueDatadataItem["ZoneId"].isNull()) + dataObject.zoneId = valueDatadataItem["ZoneId"].asString(); + if(!valueDatadataItem["LocalName"].isNull()) + dataObject.localName = valueDatadataItem["LocalName"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListRegionZoneResult::getMessage()const +{ + return message_; +} + +std::vector ListRegionZoneResult::getData()const +{ + return data_; +} + +std::string ListRegionZoneResult::getErrorCode()const +{ + return errorCode_; +} + +int ListRegionZoneResult::getCode()const +{ + return code_; +} + +bool ListRegionZoneResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/ListRegionsRequest.cc b/schedulerx3/src/model/ListRegionsRequest.cc new file mode 100644 index 000000000..c56a73ba0 --- /dev/null +++ b/schedulerx3/src/model/ListRegionsRequest.cc @@ -0,0 +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 + +using AlibabaCloud::SchedulerX3::Model::ListRegionsRequest; + +ListRegionsRequest::ListRegionsRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "ListRegions") { + setMethod(HttpRequest::Method::Get); +} + +ListRegionsRequest::~ListRegionsRequest() {} + +std::string ListRegionsRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListRegionsRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + diff --git a/schedulerx3/src/model/ListRegionsResult.cc b/schedulerx3/src/model/ListRegionsResult.cc new file mode 100644 index 000000000..249568ff6 --- /dev/null +++ b/schedulerx3/src/model/ListRegionsResult.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +ListRegionsResult::ListRegionsResult() : + ServiceResult() +{} + +ListRegionsResult::ListRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRegionsResult::~ListRegionsResult() +{} + +void ListRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRegionsNode = value["Regions"]["Region"]; + for (auto valueRegionsRegion : allRegionsNode) + { + Region regionsObject; + 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()) + 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 ListRegionsResult::getMessage()const +{ + return message_; +} + +std::vector ListRegionsResult::getRegions()const +{ + return regions_; +} + +int ListRegionsResult::getCode()const +{ + return code_; +} + +bool ListRegionsResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/ListScheduleEventRequest.cc b/schedulerx3/src/model/ListScheduleEventRequest.cc new file mode 100644 index 000000000..e396cfc01 --- /dev/null +++ b/schedulerx3/src/model/ListScheduleEventRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::ListScheduleEventRequest; + +ListScheduleEventRequest::ListScheduleEventRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "ListScheduleEvent") { + setMethod(HttpRequest::Method::Get); +} + +ListScheduleEventRequest::~ListScheduleEventRequest() {} + +std::string ListScheduleEventRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListScheduleEventRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +long ListScheduleEventRequest::getStartTime() const { + return startTime_; +} + +void ListScheduleEventRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +int ListScheduleEventRequest::getPageNum() const { + return pageNum_; +} + +void ListScheduleEventRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); +} + +std::string ListScheduleEventRequest::getAppName() const { + return appName_; +} + +void ListScheduleEventRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +int ListScheduleEventRequest::getPageSize() const { + return pageSize_; +} + +void ListScheduleEventRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListScheduleEventRequest::getEvent() const { + return event_; +} + +void ListScheduleEventRequest::setEvent(const std::string &event) { + event_ = event; + setParameter(std::string("Event"), event); +} + +std::string ListScheduleEventRequest::getKeyword() const { + return keyword_; +} + +void ListScheduleEventRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); +} + +std::string ListScheduleEventRequest::getJobName() const { + return jobName_; +} + +void ListScheduleEventRequest::setJobName(const std::string &jobName) { + jobName_ = jobName; + setParameter(std::string("JobName"), jobName); +} + +std::string ListScheduleEventRequest::getJobExecutionId() const { + return jobExecutionId_; +} + +void ListScheduleEventRequest::setJobExecutionId(const std::string &jobExecutionId) { + jobExecutionId_ = jobExecutionId; + setParameter(std::string("JobExecutionId"), jobExecutionId); +} + +long ListScheduleEventRequest::getEndTime() const { + return endTime_; +} + +void ListScheduleEventRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +std::string ListScheduleEventRequest::getClusterId() const { + return clusterId_; +} + +void ListScheduleEventRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +bool ListScheduleEventRequest::getReverse() const { + return reverse_; +} + +void ListScheduleEventRequest::setReverse(bool reverse) { + reverse_ = reverse; + setParameter(std::string("Reverse"), reverse ? "true" : "false"); +} + diff --git a/schedulerx3/src/model/ListScheduleEventResult.cc b/schedulerx3/src/model/ListScheduleEventResult.cc new file mode 100644 index 000000000..c7fd6b380 --- /dev/null +++ b/schedulerx3/src/model/ListScheduleEventResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +ListScheduleEventResult::ListScheduleEventResult() : + ServiceResult() +{} + +ListScheduleEventResult::ListScheduleEventResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListScheduleEventResult::~ListScheduleEventResult() +{} + +void ListScheduleEventResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["Total"].isNull()) + data_.total = std::stol(dataNode["Total"].asString()); + auto allRecordsNode = dataNode["Records"]["record"]; + for (auto dataNodeRecordsrecord : allRecordsNode) + { + Data::Record recordObject; + if(!dataNodeRecordsrecord["AppName"].isNull()) + recordObject.appName = dataNodeRecordsrecord["AppName"].asString(); + if(!dataNodeRecordsrecord["JobName"].isNull()) + recordObject.jobName = dataNodeRecordsrecord["JobName"].asString(); + if(!dataNodeRecordsrecord["JobExecutionId"].isNull()) + recordObject.jobExecutionId = dataNodeRecordsrecord["JobExecutionId"].asString(); + if(!dataNodeRecordsrecord["Event"].isNull()) + recordObject.event = dataNodeRecordsrecord["Event"].asString(); + if(!dataNodeRecordsrecord["WorkerAddr"].isNull()) + recordObject.workerAddr = dataNodeRecordsrecord["WorkerAddr"].asString(); + if(!dataNodeRecordsrecord["Content"].isNull()) + recordObject.content = dataNodeRecordsrecord["Content"].asString(); + if(!dataNodeRecordsrecord["Time"].isNull()) + recordObject.time = dataNodeRecordsrecord["Time"].asString(); + data_.records.push_back(recordObject); + } + 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 ListScheduleEventResult::getMessage()const +{ + return message_; +} + +ListScheduleEventResult::Data ListScheduleEventResult::getData()const +{ + return data_; +} + +int ListScheduleEventResult::getCode()const +{ + return code_; +} + +bool ListScheduleEventResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/ListScheduleTimesRequest.cc b/schedulerx3/src/model/ListScheduleTimesRequest.cc new file mode 100644 index 000000000..51b846978 --- /dev/null +++ b/schedulerx3/src/model/ListScheduleTimesRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::ListScheduleTimesRequest; + +ListScheduleTimesRequest::ListScheduleTimesRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "ListScheduleTimes") { + setMethod(HttpRequest::Method::Get); +} + +ListScheduleTimesRequest::~ListScheduleTimesRequest() {} + +std::string ListScheduleTimesRequest::getMseSessionId() const { + return mseSessionId_; +} + +void ListScheduleTimesRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string ListScheduleTimesRequest::getTimeZone() const { + return timeZone_; +} + +void ListScheduleTimesRequest::setTimeZone(const std::string &timeZone) { + timeZone_ = timeZone; + setParameter(std::string("TimeZone"), timeZone); +} + +std::string ListScheduleTimesRequest::getAppName() const { + return appName_; +} + +void ListScheduleTimesRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string ListScheduleTimesRequest::getCalendar() const { + return calendar_; +} + +void ListScheduleTimesRequest::setCalendar(const std::string &calendar) { + calendar_ = calendar; + setParameter(std::string("Calendar"), calendar); +} + +std::string ListScheduleTimesRequest::getClusterId() const { + return clusterId_; +} + +void ListScheduleTimesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ListScheduleTimesRequest::getTimeExpression() const { + return timeExpression_; +} + +void ListScheduleTimesRequest::setTimeExpression(const std::string &timeExpression) { + timeExpression_ = timeExpression; + setParameter(std::string("TimeExpression"), timeExpression); +} + +int ListScheduleTimesRequest::getTimeType() const { + return timeType_; +} + +void ListScheduleTimesRequest::setTimeType(int timeType) { + timeType_ = timeType; + setParameter(std::string("TimeType"), std::to_string(timeType)); +} + diff --git a/schedulerx3/src/model/ListScheduleTimesResult.cc b/schedulerx3/src/model/ListScheduleTimesResult.cc new file mode 100644 index 000000000..4fecd160c --- /dev/null +++ b/schedulerx3/src/model/ListScheduleTimesResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +ListScheduleTimesResult::ListScheduleTimesResult() : + ServiceResult() +{} + +ListScheduleTimesResult::ListScheduleTimesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListScheduleTimesResult::~ListScheduleTimesResult() +{} + +void ListScheduleTimesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["data"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListScheduleTimesResult::getMessage()const +{ + return message_; +} + +std::vector ListScheduleTimesResult::getData()const +{ + return data_; +} + +int ListScheduleTimesResult::getCode()const +{ + return code_; +} + +bool ListScheduleTimesResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/OperateDesignateExecutorsRequest.cc b/schedulerx3/src/model/OperateDesignateExecutorsRequest.cc new file mode 100644 index 000000000..01896a7a4 --- /dev/null +++ b/schedulerx3/src/model/OperateDesignateExecutorsRequest.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::OperateDesignateExecutorsRequest; + +OperateDesignateExecutorsRequest::OperateDesignateExecutorsRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "OperateDesignateExecutors") { + setMethod(HttpRequest::Method::Post); +} + +OperateDesignateExecutorsRequest::~OperateDesignateExecutorsRequest() {} + +std::string OperateDesignateExecutorsRequest::getMseSessionId() const { + return mseSessionId_; +} + +void OperateDesignateExecutorsRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +bool OperateDesignateExecutorsRequest::getTransferable() const { + return transferable_; +} + +void OperateDesignateExecutorsRequest::setTransferable(bool transferable) { + transferable_ = transferable; + setBodyParameter(std::string("Transferable"), transferable ? "true" : "false"); +} + +int OperateDesignateExecutorsRequest::getDesignateType() const { + return designateType_; +} + +void OperateDesignateExecutorsRequest::setDesignateType(int designateType) { + designateType_ = designateType; + setBodyParameter(std::string("DesignateType"), std::to_string(designateType)); +} + +long OperateDesignateExecutorsRequest::getJobId() const { + return jobId_; +} + +void OperateDesignateExecutorsRequest::setJobId(long jobId) { + jobId_ = jobId; + setBodyParameter(std::string("JobId"), std::to_string(jobId)); +} + +std::string OperateDesignateExecutorsRequest::getAppName() const { + return appName_; +} + +void OperateDesignateExecutorsRequest::setAppName(const std::string &appName) { + appName_ = appName; + setBodyParameter(std::string("AppName"), appName); +} + +std::vector OperateDesignateExecutorsRequest::getAddressList() const { + return addressList_; +} + +void OperateDesignateExecutorsRequest::setAddressList(const std::vector &addressList) { + addressList_ = addressList; + for(int dep1 = 0; dep1 != addressList.size(); dep1++) { + setBodyParameter(std::string("AddressList") + "." + std::to_string(dep1 + 1), addressList[dep1]); + } +} + +std::string OperateDesignateExecutorsRequest::getClusterId() const { + return clusterId_; +} + +void OperateDesignateExecutorsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setBodyParameter(std::string("ClusterId"), clusterId); +} + diff --git a/schedulerx3/src/model/OperateDesignateExecutorsResult.cc b/schedulerx3/src/model/OperateDesignateExecutorsResult.cc new file mode 100644 index 000000000..4af1f6643 --- /dev/null +++ b/schedulerx3/src/model/OperateDesignateExecutorsResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +OperateDesignateExecutorsResult::OperateDesignateExecutorsResult() : + ServiceResult() +{} + +OperateDesignateExecutorsResult::OperateDesignateExecutorsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OperateDesignateExecutorsResult::~OperateDesignateExecutorsResult() +{} + +void OperateDesignateExecutorsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string OperateDesignateExecutorsResult::getMessage()const +{ + return message_; +} + +int OperateDesignateExecutorsResult::getCode()const +{ + return code_; +} + +bool OperateDesignateExecutorsResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/OperateDisableJobsRequest.cc b/schedulerx3/src/model/OperateDisableJobsRequest.cc new file mode 100644 index 000000000..fc31b092b --- /dev/null +++ b/schedulerx3/src/model/OperateDisableJobsRequest.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 + +using AlibabaCloud::SchedulerX3::Model::OperateDisableJobsRequest; + +OperateDisableJobsRequest::OperateDisableJobsRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "OperateDisableJobs") { + setMethod(HttpRequest::Method::Post); +} + +OperateDisableJobsRequest::~OperateDisableJobsRequest() {} + +std::string OperateDisableJobsRequest::getMseSessionId() const { + return mseSessionId_; +} + +void OperateDisableJobsRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string OperateDisableJobsRequest::getClusterId() const { + return clusterId_; +} + +void OperateDisableJobsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setBodyParameter(std::string("ClusterId"), clusterId); +} + +std::string OperateDisableJobsRequest::getAppName() const { + return appName_; +} + +void OperateDisableJobsRequest::setAppName(const std::string &appName) { + appName_ = appName; + setBodyParameter(std::string("AppName"), appName); +} + +std::vector OperateDisableJobsRequest::getJobIds() const { + return jobIds_; +} + +void OperateDisableJobsRequest::setJobIds(const std::vector &jobIds) { + jobIds_ = jobIds; + for(int dep1 = 0; dep1 != jobIds.size(); dep1++) { + setBodyParameter(std::string("JobIds") + "." + std::to_string(dep1 + 1), std::to_string(jobIds[dep1])); + } +} + diff --git a/schedulerx3/src/model/OperateDisableJobsResult.cc b/schedulerx3/src/model/OperateDisableJobsResult.cc new file mode 100644 index 000000000..9ba9efd2e --- /dev/null +++ b/schedulerx3/src/model/OperateDisableJobsResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +OperateDisableJobsResult::OperateDisableJobsResult() : + ServiceResult() +{} + +OperateDisableJobsResult::OperateDisableJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OperateDisableJobsResult::~OperateDisableJobsResult() +{} + +void OperateDisableJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string OperateDisableJobsResult::getMessage()const +{ + return message_; +} + +int OperateDisableJobsResult::getCode()const +{ + return code_; +} + +bool OperateDisableJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/OperateEnableJobsRequest.cc b/schedulerx3/src/model/OperateEnableJobsRequest.cc new file mode 100644 index 000000000..39cc98658 --- /dev/null +++ b/schedulerx3/src/model/OperateEnableJobsRequest.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 + +using AlibabaCloud::SchedulerX3::Model::OperateEnableJobsRequest; + +OperateEnableJobsRequest::OperateEnableJobsRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "OperateEnableJobs") { + setMethod(HttpRequest::Method::Post); +} + +OperateEnableJobsRequest::~OperateEnableJobsRequest() {} + +std::string OperateEnableJobsRequest::getMseSessionId() const { + return mseSessionId_; +} + +void OperateEnableJobsRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string OperateEnableJobsRequest::getClusterId() const { + return clusterId_; +} + +void OperateEnableJobsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setBodyParameter(std::string("ClusterId"), clusterId); +} + +std::string OperateEnableJobsRequest::getAppName() const { + return appName_; +} + +void OperateEnableJobsRequest::setAppName(const std::string &appName) { + appName_ = appName; + setBodyParameter(std::string("AppName"), appName); +} + +std::vector OperateEnableJobsRequest::getJobIds() const { + return jobIds_; +} + +void OperateEnableJobsRequest::setJobIds(const std::vector &jobIds) { + jobIds_ = jobIds; + for(int dep1 = 0; dep1 != jobIds.size(); dep1++) { + setBodyParameter(std::string("JobIds") + "." + std::to_string(dep1 + 1), std::to_string(jobIds[dep1])); + } +} + diff --git a/schedulerx3/src/model/OperateEnableJobsResult.cc b/schedulerx3/src/model/OperateEnableJobsResult.cc new file mode 100644 index 000000000..0dd9a9d36 --- /dev/null +++ b/schedulerx3/src/model/OperateEnableJobsResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +OperateEnableJobsResult::OperateEnableJobsResult() : + ServiceResult() +{} + +OperateEnableJobsResult::OperateEnableJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OperateEnableJobsResult::~OperateEnableJobsResult() +{} + +void OperateEnableJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string OperateEnableJobsResult::getMessage()const +{ + return message_; +} + +int OperateEnableJobsResult::getCode()const +{ + return code_; +} + +bool OperateEnableJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/OperateExecuteJobRequest.cc b/schedulerx3/src/model/OperateExecuteJobRequest.cc new file mode 100644 index 000000000..e5798a7e8 --- /dev/null +++ b/schedulerx3/src/model/OperateExecuteJobRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::OperateExecuteJobRequest; + +OperateExecuteJobRequest::OperateExecuteJobRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "OperateExecuteJob") { + setMethod(HttpRequest::Method::Post); +} + +OperateExecuteJobRequest::~OperateExecuteJobRequest() {} + +std::string OperateExecuteJobRequest::getMseSessionId() const { + return mseSessionId_; +} + +void OperateExecuteJobRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +long OperateExecuteJobRequest::getJobId() const { + return jobId_; +} + +void OperateExecuteJobRequest::setJobId(long jobId) { + jobId_ = jobId; + setBodyParameter(std::string("JobId"), std::to_string(jobId)); +} + +std::string OperateExecuteJobRequest::getAppName() const { + return appName_; +} + +void OperateExecuteJobRequest::setAppName(const std::string &appName) { + appName_ = appName; + setBodyParameter(std::string("AppName"), appName); +} + +std::string OperateExecuteJobRequest::getWorker() const { + return worker_; +} + +void OperateExecuteJobRequest::setWorker(const std::string &worker) { + worker_ = worker; + setBodyParameter(std::string("Worker"), worker); +} + +std::string OperateExecuteJobRequest::getInstanceParameters() const { + return instanceParameters_; +} + +void OperateExecuteJobRequest::setInstanceParameters(const std::string &instanceParameters) { + instanceParameters_ = instanceParameters; + setBodyParameter(std::string("InstanceParameters"), instanceParameters); +} + +std::string OperateExecuteJobRequest::getClusterId() const { + return clusterId_; +} + +void OperateExecuteJobRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setBodyParameter(std::string("ClusterId"), clusterId); +} + +std::string OperateExecuteJobRequest::getLabel() const { + return label_; +} + +void OperateExecuteJobRequest::setLabel(const std::string &label) { + label_ = label; + setBodyParameter(std::string("Label"), label); +} + diff --git a/schedulerx3/src/model/OperateExecuteJobResult.cc b/schedulerx3/src/model/OperateExecuteJobResult.cc new file mode 100644 index 000000000..38b7254c2 --- /dev/null +++ b/schedulerx3/src/model/OperateExecuteJobResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +OperateExecuteJobResult::OperateExecuteJobResult() : + ServiceResult() +{} + +OperateExecuteJobResult::OperateExecuteJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OperateExecuteJobResult::~OperateExecuteJobResult() +{} + +void OperateExecuteJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["JobExecutionId"].isNull()) + data_.jobExecutionId = dataNode["JobExecutionId"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string OperateExecuteJobResult::getMessage()const +{ + return message_; +} + +OperateExecuteJobResult::Data OperateExecuteJobResult::getData()const +{ + return data_; +} + +int OperateExecuteJobResult::getCode()const +{ + return code_; +} + +bool OperateExecuteJobResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/OperateRerunJobRequest.cc b/schedulerx3/src/model/OperateRerunJobRequest.cc new file mode 100644 index 000000000..f7a902d75 --- /dev/null +++ b/schedulerx3/src/model/OperateRerunJobRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::OperateRerunJobRequest; + +OperateRerunJobRequest::OperateRerunJobRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "OperateRerunJob") { + setMethod(HttpRequest::Method::Post); +} + +OperateRerunJobRequest::~OperateRerunJobRequest() {} + +std::string OperateRerunJobRequest::getMseSessionId() const { + return mseSessionId_; +} + +void OperateRerunJobRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string OperateRerunJobRequest::getDataTime() const { + return dataTime_; +} + +void OperateRerunJobRequest::setDataTime(const std::string &dataTime) { + dataTime_ = dataTime; + setParameter(std::string("DataTime"), dataTime); +} + +long OperateRerunJobRequest::getStartDate() const { + return startDate_; +} + +void OperateRerunJobRequest::setStartDate(long startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), std::to_string(startDate)); +} + +long OperateRerunJobRequest::getJobId() const { + return jobId_; +} + +void OperateRerunJobRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +std::string OperateRerunJobRequest::getAppName() const { + return appName_; +} + +void OperateRerunJobRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string OperateRerunJobRequest::getClusterId() const { + return clusterId_; +} + +void OperateRerunJobRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +long OperateRerunJobRequest::getEndDate() const { + return endDate_; +} + +void OperateRerunJobRequest::setEndDate(long endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), std::to_string(endDate)); +} + diff --git a/schedulerx3/src/model/OperateRerunJobResult.cc b/schedulerx3/src/model/OperateRerunJobResult.cc new file mode 100644 index 000000000..f371746b5 --- /dev/null +++ b/schedulerx3/src/model/OperateRerunJobResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +OperateRerunJobResult::OperateRerunJobResult() : + ServiceResult() +{} + +OperateRerunJobResult::OperateRerunJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OperateRerunJobResult::~OperateRerunJobResult() +{} + +void OperateRerunJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string OperateRerunJobResult::getMessage()const +{ + return message_; +} + +int OperateRerunJobResult::getCode()const +{ + return code_; +} + +bool OperateRerunJobResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/OperateRetryJobExecutionRequest.cc b/schedulerx3/src/model/OperateRetryJobExecutionRequest.cc new file mode 100644 index 000000000..84a35ba10 --- /dev/null +++ b/schedulerx3/src/model/OperateRetryJobExecutionRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::OperateRetryJobExecutionRequest; + +OperateRetryJobExecutionRequest::OperateRetryJobExecutionRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "OperateRetryJobExecution") { + setMethod(HttpRequest::Method::Post); +} + +OperateRetryJobExecutionRequest::~OperateRetryJobExecutionRequest() {} + +std::string OperateRetryJobExecutionRequest::getMseSessionId() const { + return mseSessionId_; +} + +void OperateRetryJobExecutionRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +long OperateRetryJobExecutionRequest::getJobId() const { + return jobId_; +} + +void OperateRetryJobExecutionRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +std::string OperateRetryJobExecutionRequest::getAppName() const { + return appName_; +} + +void OperateRetryJobExecutionRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string OperateRetryJobExecutionRequest::getJobExecutionId() const { + return jobExecutionId_; +} + +void OperateRetryJobExecutionRequest::setJobExecutionId(const std::string &jobExecutionId) { + jobExecutionId_ = jobExecutionId; + setParameter(std::string("JobExecutionId"), jobExecutionId); +} + +std::string OperateRetryJobExecutionRequest::getClusterId() const { + return clusterId_; +} + +void OperateRetryJobExecutionRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::vector OperateRetryJobExecutionRequest::getTaskList() const { + return taskList_; +} + +void OperateRetryJobExecutionRequest::setTaskList(const std::vector &taskList) { + taskList_ = taskList; + for(int dep1 = 0; dep1 != taskList.size(); dep1++) { + setParameter(std::string("TaskList") + "." + std::to_string(dep1 + 1), taskList[dep1]); + } +} + diff --git a/schedulerx3/src/model/OperateRetryJobExecutionResult.cc b/schedulerx3/src/model/OperateRetryJobExecutionResult.cc new file mode 100644 index 000000000..68b6ae1da --- /dev/null +++ b/schedulerx3/src/model/OperateRetryJobExecutionResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +OperateRetryJobExecutionResult::OperateRetryJobExecutionResult() : + ServiceResult() +{} + +OperateRetryJobExecutionResult::OperateRetryJobExecutionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OperateRetryJobExecutionResult::~OperateRetryJobExecutionResult() +{} + +void OperateRetryJobExecutionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string OperateRetryJobExecutionResult::getMessage()const +{ + return message_; +} + +int OperateRetryJobExecutionResult::getCode()const +{ + return code_; +} + +bool OperateRetryJobExecutionResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/OperateStopJobExecutionRequest.cc b/schedulerx3/src/model/OperateStopJobExecutionRequest.cc new file mode 100644 index 000000000..22eaea9bc --- /dev/null +++ b/schedulerx3/src/model/OperateStopJobExecutionRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::OperateStopJobExecutionRequest; + +OperateStopJobExecutionRequest::OperateStopJobExecutionRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "OperateStopJobExecution") { + setMethod(HttpRequest::Method::Post); +} + +OperateStopJobExecutionRequest::~OperateStopJobExecutionRequest() {} + +std::string OperateStopJobExecutionRequest::getMseSessionId() const { + return mseSessionId_; +} + +void OperateStopJobExecutionRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +long OperateStopJobExecutionRequest::getJobId() const { + return jobId_; +} + +void OperateStopJobExecutionRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +std::string OperateStopJobExecutionRequest::getAppName() const { + return appName_; +} + +void OperateStopJobExecutionRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string OperateStopJobExecutionRequest::getJobExecutionId() const { + return jobExecutionId_; +} + +void OperateStopJobExecutionRequest::setJobExecutionId(const std::string &jobExecutionId) { + jobExecutionId_ = jobExecutionId; + setParameter(std::string("JobExecutionId"), jobExecutionId); +} + +std::string OperateStopJobExecutionRequest::getClusterId() const { + return clusterId_; +} + +void OperateStopJobExecutionRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::vector OperateStopJobExecutionRequest::getTaskList() const { + return taskList_; +} + +void OperateStopJobExecutionRequest::setTaskList(const std::vector &taskList) { + taskList_ = taskList; + for(int dep1 = 0; dep1 != taskList.size(); dep1++) { + setParameter(std::string("TaskList") + "." + std::to_string(dep1 + 1), taskList[dep1]); + } +} + diff --git a/schedulerx3/src/model/OperateStopJobExecutionResult.cc b/schedulerx3/src/model/OperateStopJobExecutionResult.cc new file mode 100644 index 000000000..2a4f69553 --- /dev/null +++ b/schedulerx3/src/model/OperateStopJobExecutionResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +OperateStopJobExecutionResult::OperateStopJobExecutionResult() : + ServiceResult() +{} + +OperateStopJobExecutionResult::OperateStopJobExecutionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OperateStopJobExecutionResult::~OperateStopJobExecutionResult() +{} + +void OperateStopJobExecutionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string OperateStopJobExecutionResult::getMessage()const +{ + return message_; +} + +int OperateStopJobExecutionResult::getCode()const +{ + return code_; +} + +bool OperateStopJobExecutionResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/UpdateAppRequest.cc b/schedulerx3/src/model/UpdateAppRequest.cc new file mode 100644 index 000000000..348ff1579 --- /dev/null +++ b/schedulerx3/src/model/UpdateAppRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::UpdateAppRequest; + +UpdateAppRequest::UpdateAppRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "UpdateApp") { + setMethod(HttpRequest::Method::Post); +} + +UpdateAppRequest::~UpdateAppRequest() {} + +std::string UpdateAppRequest::getMseSessionId() const { + return mseSessionId_; +} + +void UpdateAppRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string UpdateAppRequest::getAccessToken() const { + return accessToken_; +} + +void UpdateAppRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setBodyParameter(std::string("AccessToken"), accessToken); +} + +std::string UpdateAppRequest::getTitle() const { + return title_; +} + +void UpdateAppRequest::setTitle(const std::string &title) { + title_ = title; + setBodyParameter(std::string("Title"), title); +} + +std::string UpdateAppRequest::getAppName() const { + return appName_; +} + +void UpdateAppRequest::setAppName(const std::string &appName) { + appName_ = appName; + setBodyParameter(std::string("AppName"), appName); +} + +std::vector UpdateAppRequest::getNoticeContacts() const { + return noticeContacts_; +} + +void UpdateAppRequest::setNoticeContacts(const std::vector ¬iceContacts) { + noticeContacts_ = noticeContacts; + for(int dep1 = 0; dep1 != noticeContacts.size(); dep1++) { + setBodyParameter(std::string("NoticeContacts") + "." + std::to_string(dep1 + 1) + ".Webhook", noticeContacts[dep1].webhook); + setBodyParameter(std::string("NoticeContacts") + "." + std::to_string(dep1 + 1) + ".Mail", noticeContacts[dep1].mail); + setBodyParameter(std::string("NoticeContacts") + "." + std::to_string(dep1 + 1) + ".Phone", noticeContacts[dep1].phone); + setBodyParameter(std::string("NoticeContacts") + "." + std::to_string(dep1 + 1) + ".SmsCode", noticeContacts[dep1].smsCode); + setBodyParameter(std::string("NoticeContacts") + "." + std::to_string(dep1 + 1) + ".MailCode", noticeContacts[dep1].mailCode); + setBodyParameter(std::string("NoticeContacts") + "." + std::to_string(dep1 + 1) + ".UserName", noticeContacts[dep1].userName); + } +} + +UpdateAppRequest::NoticeConfig UpdateAppRequest::getNoticeConfig() const { + return noticeConfig_; +} + +void UpdateAppRequest::setNoticeConfig(const UpdateAppRequest::NoticeConfig ¬iceConfig) { + noticeConfig_ = noticeConfig; + setBodyParameter(std::string("NoticeConfig") + ".WebhookIsAtAll", noticeConfig.webhookIsAtAll ? "true" : "false"); + setBodyParameter(std::string("NoticeConfig") + ".NoticeChannel", noticeConfig.noticeChannel); + setBodyParameter(std::string("NoticeConfig") + ".Enable", noticeConfig.enable ? "true" : "false"); +} + +int UpdateAppRequest::getMaxJobs() const { + return maxJobs_; +} + +void UpdateAppRequest::setMaxJobs(int maxJobs) { + maxJobs_ = maxJobs; + setBodyParameter(std::string("MaxJobs"), std::to_string(maxJobs)); +} + +std::string UpdateAppRequest::getCalendar() const { + return calendar_; +} + +void UpdateAppRequest::setCalendar(const std::string &calendar) { + calendar_ = calendar; + setBodyParameter(std::string("Calendar"), calendar); +} + +std::string UpdateAppRequest::getClusterId() const { + return clusterId_; +} + +void UpdateAppRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setBodyParameter(std::string("ClusterId"), clusterId); +} + +bool UpdateAppRequest::getEnableLog() const { + return enableLog_; +} + +void UpdateAppRequest::setEnableLog(bool enableLog) { + enableLog_ = enableLog; + setBodyParameter(std::string("EnableLog"), enableLog ? "true" : "false"); +} + +int UpdateAppRequest::getMaxConcurrency() const { + return maxConcurrency_; +} + +void UpdateAppRequest::setMaxConcurrency(int maxConcurrency) { + maxConcurrency_ = maxConcurrency; + setBodyParameter(std::string("MaxConcurrency"), std::to_string(maxConcurrency)); +} + diff --git a/schedulerx3/src/model/UpdateAppResult.cc b/schedulerx3/src/model/UpdateAppResult.cc new file mode 100644 index 000000000..2e669433e --- /dev/null +++ b/schedulerx3/src/model/UpdateAppResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +UpdateAppResult::UpdateAppResult() : + ServiceResult() +{} + +UpdateAppResult::UpdateAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAppResult::~UpdateAppResult() +{} + +void UpdateAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateAppResult::getMessage()const +{ + return message_; +} + +int UpdateAppResult::getCode()const +{ + return code_; +} + +bool UpdateAppResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/UpdateClusterRequest.cc b/schedulerx3/src/model/UpdateClusterRequest.cc new file mode 100644 index 000000000..00fe7d8d9 --- /dev/null +++ b/schedulerx3/src/model/UpdateClusterRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::UpdateClusterRequest; + +UpdateClusterRequest::UpdateClusterRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "UpdateCluster") { + setMethod(HttpRequest::Method::Post); +} + +UpdateClusterRequest::~UpdateClusterRequest() {} + +std::string UpdateClusterRequest::getMseSessionId() const { + return mseSessionId_; +} + +void UpdateClusterRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +std::string UpdateClusterRequest::getClusterName() const { + return clusterName_; +} + +void UpdateClusterRequest::setClusterName(const std::string &clusterName) { + clusterName_ = clusterName; + setParameter(std::string("ClusterName"), clusterName); +} + +std::string UpdateClusterRequest::getClusterId() const { + return clusterId_; +} + +void UpdateClusterRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + diff --git a/schedulerx3/src/model/UpdateClusterResult.cc b/schedulerx3/src/model/UpdateClusterResult.cc new file mode 100644 index 000000000..b78446b84 --- /dev/null +++ b/schedulerx3/src/model/UpdateClusterResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +UpdateClusterResult::UpdateClusterResult() : + ServiceResult() +{} + +UpdateClusterResult::UpdateClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateClusterResult::~UpdateClusterResult() +{} + +void UpdateClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateClusterResult::getMessage()const +{ + return message_; +} + +int UpdateClusterResult::getCode()const +{ + return code_; +} + +bool UpdateClusterResult::getSuccess()const +{ + return success_; +} + diff --git a/schedulerx3/src/model/UpdateJobRequest.cc b/schedulerx3/src/model/UpdateJobRequest.cc new file mode 100644 index 000000000..76fc4c59f --- /dev/null +++ b/schedulerx3/src/model/UpdateJobRequest.cc @@ -0,0 +1,254 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SchedulerX3::Model::UpdateJobRequest; + +UpdateJobRequest::UpdateJobRequest() + : RpcServiceRequest("schedulerx3", "2024-06-24", "UpdateJob") { + setMethod(HttpRequest::Method::Post); +} + +UpdateJobRequest::~UpdateJobRequest() {} + +std::string UpdateJobRequest::getMseSessionId() const { + return mseSessionId_; +} + +void UpdateJobRequest::setMseSessionId(const std::string &mseSessionId) { + mseSessionId_ = mseSessionId; + setParameter(std::string("MseSessionId"), mseSessionId); +} + +int UpdateJobRequest::getExecutorBlockStrategy() const { + return executorBlockStrategy_; +} + +void UpdateJobRequest::setExecutorBlockStrategy(int executorBlockStrategy) { + executorBlockStrategy_ = executorBlockStrategy; + setBodyParameter(std::string("ExecutorBlockStrategy"), std::to_string(executorBlockStrategy)); +} + +std::string UpdateJobRequest::getTimezone() const { + return timezone_; +} + +void UpdateJobRequest::setTimezone(const std::string &timezone) { + timezone_ = timezone; + setBodyParameter(std::string("Timezone"), timezone); +} + +int UpdateJobRequest::getRouteStrategy() const { + return routeStrategy_; +} + +void UpdateJobRequest::setRouteStrategy(int routeStrategy) { + routeStrategy_ = routeStrategy; + setBodyParameter(std::string("RouteStrategy"), std::to_string(routeStrategy)); +} + +std::string UpdateJobRequest::getDescription() const { + return description_; +} + +void UpdateJobRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +int UpdateJobRequest::getAttemptInterval() const { + return attemptInterval_; +} + +void UpdateJobRequest::setAttemptInterval(int attemptInterval) { + attemptInterval_ = attemptInterval; + setBodyParameter(std::string("AttemptInterval"), std::to_string(attemptInterval)); +} + +long UpdateJobRequest::getStartTime() const { + return startTime_; +} + +void UpdateJobRequest::setStartTime(long startTime) { + startTime_ = startTime; + setBodyParameter(std::string("StartTime"), std::to_string(startTime)); +} + +long UpdateJobRequest::getJobId() const { + return jobId_; +} + +void UpdateJobRequest::setJobId(long jobId) { + jobId_ = jobId; + setBodyParameter(std::string("JobId"), std::to_string(jobId)); +} + +std::string UpdateJobRequest::getAppName() const { + return appName_; +} + +void UpdateJobRequest::setAppName(const std::string &appName) { + appName_ = appName; + setBodyParameter(std::string("AppName"), appName); +} + +std::vector UpdateJobRequest::getNoticeContacts() const { + return noticeContacts_; +} + +void UpdateJobRequest::setNoticeContacts(const std::vector ¬iceContacts) { + noticeContacts_ = noticeContacts; + for(int dep1 = 0; dep1 != noticeContacts.size(); dep1++) { + setBodyParameter(std::string("NoticeContacts") + "." + std::to_string(dep1 + 1) + ".ContactType", std::to_string(noticeContacts[dep1].contactType)); + setBodyParameter(std::string("NoticeContacts") + "." + std::to_string(dep1 + 1) + ".Name", noticeContacts[dep1].name); + } +} + +UpdateJobRequest::NoticeConfig UpdateJobRequest::getNoticeConfig() const { + return noticeConfig_; +} + +void UpdateJobRequest::setNoticeConfig(const UpdateJobRequest::NoticeConfig ¬iceConfig) { + noticeConfig_ = noticeConfig; + setBodyParameter(std::string("NoticeConfig") + ".TimeoutKillEnable", noticeConfig.timeoutKillEnable ? "true" : "false"); + setBodyParameter(std::string("NoticeConfig") + ".FailEnable", noticeConfig.failEnable ? "true" : "false"); + setBodyParameter(std::string("NoticeConfig") + ".webhookIsAtAll", noticeConfig.webhookIsAtAll ? "true" : "false"); + setBodyParameter(std::string("NoticeConfig") + ".SuccessNotice", noticeConfig.successNotice ? "true" : "false"); + setBodyParameter(std::string("NoticeConfig") + ".FailLimitTimes", std::to_string(noticeConfig.failLimitTimes)); + setBodyParameter(std::string("NoticeConfig") + ".SendChannel", noticeConfig.sendChannel); + setBodyParameter(std::string("NoticeConfig") + ".TimeoutEnable", noticeConfig.timeoutEnable ? "true" : "false"); + setBodyParameter(std::string("NoticeConfig") + ".MissWorkerEnable", noticeConfig.missWorkerEnable ? "true" : "false"); + setBodyParameter(std::string("NoticeConfig") + ".Timeout", std::to_string(noticeConfig.timeout)); +} + +std::string UpdateJobRequest::getCalendar() const { + return calendar_; +} + +void UpdateJobRequest::setCalendar(const std::string &calendar) { + calendar_ = calendar; + setBodyParameter(std::string("Calendar"), calendar); +} + +int UpdateJobRequest::getDataOffset() const { + return dataOffset_; +} + +void UpdateJobRequest::setDataOffset(int dataOffset) { + dataOffset_ = dataOffset; + setBodyParameter(std::string("DataOffset"), std::to_string(dataOffset)); +} + +int UpdateJobRequest::getMaxAttempt() const { + return maxAttempt_; +} + +void UpdateJobRequest::setMaxAttempt(int maxAttempt) { + maxAttempt_ = maxAttempt; + setBodyParameter(std::string("MaxAttempt"), std::to_string(maxAttempt)); +} + +std::string UpdateJobRequest::getClusterId() const { + return clusterId_; +} + +void UpdateJobRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setBodyParameter(std::string("ClusterId"), clusterId); +} + +int UpdateJobRequest::getPriority() const { + return priority_; +} + +void UpdateJobRequest::setPriority(int priority) { + priority_ = priority; + setBodyParameter(std::string("Priority"), std::to_string(priority)); +} + +std::string UpdateJobRequest::getTimeExpression() const { + return timeExpression_; +} + +void UpdateJobRequest::setTimeExpression(const std::string &timeExpression) { + timeExpression_ = timeExpression; + setBodyParameter(std::string("TimeExpression"), timeExpression); +} + +std::string UpdateJobRequest::getName() const { + return name_; +} + +void UpdateJobRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + +std::string UpdateJobRequest::getXAttrs() const { + return xAttrs_; +} + +void UpdateJobRequest::setXAttrs(const std::string &xAttrs) { + xAttrs_ = xAttrs; + setBodyParameter(std::string("XAttrs"), xAttrs); +} + +int UpdateJobRequest::getMaxConcurrency() const { + return maxConcurrency_; +} + +void UpdateJobRequest::setMaxConcurrency(int maxConcurrency) { + maxConcurrency_ = maxConcurrency; + setBodyParameter(std::string("MaxConcurrency"), std::to_string(maxConcurrency)); +} + +int UpdateJobRequest::getTimeType() const { + return timeType_; +} + +void UpdateJobRequest::setTimeType(int timeType) { + timeType_ = timeType; + setBodyParameter(std::string("TimeType"), std::to_string(timeType)); +} + +std::string UpdateJobRequest::getParameters() const { + return parameters_; +} + +void UpdateJobRequest::setParameters(const std::string ¶meters) { + parameters_ = parameters; + setBodyParameter(std::string("Parameters"), parameters); +} + +std::string UpdateJobRequest::getJobHandler() const { + return jobHandler_; +} + +void UpdateJobRequest::setJobHandler(const std::string &jobHandler) { + jobHandler_ = jobHandler; + setBodyParameter(std::string("JobHandler"), jobHandler); +} + +std::string UpdateJobRequest::getCleanMode() const { + return cleanMode_; +} + +void UpdateJobRequest::setCleanMode(const std::string &cleanMode) { + cleanMode_ = cleanMode; + setBodyParameter(std::string("CleanMode"), cleanMode); +} + diff --git a/schedulerx3/src/model/UpdateJobResult.cc b/schedulerx3/src/model/UpdateJobResult.cc new file mode 100644 index 000000000..fce18b2c8 --- /dev/null +++ b/schedulerx3/src/model/UpdateJobResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SchedulerX3; +using namespace AlibabaCloud::SchedulerX3::Model; + +UpdateJobResult::UpdateJobResult() : + ServiceResult() +{} + +UpdateJobResult::UpdateJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateJobResult::~UpdateJobResult() +{} + +void UpdateJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateJobResult::getMessage()const +{ + return message_; +} + +int UpdateJobResult::getCode()const +{ + return code_; +} + +bool UpdateJobResult::getSuccess()const +{ + return success_; +} +