CreateJob and UpdateJob support ExecutorBlockStrategy.
This commit is contained in:
226
schedulerx3/CMakeLists.txt
Normal file
226
schedulerx3/CMakeLists.txt
Normal file
@@ -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}
|
||||||
|
)
|
||||||
334
schedulerx3/include/alibabacloud/schedulerx3/SchedulerX3Client.h
Normal file
334
schedulerx3/include/alibabacloud/schedulerx3/SchedulerX3Client.h
Normal file
@@ -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 <future>
|
||||||
|
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||||
|
#include <alibabacloud/core/EndpointProvider.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceClient.h>
|
||||||
|
#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<Error, Model::CreateAppResult> CreateAppOutcome;
|
||||||
|
typedef std::future<CreateAppOutcome> CreateAppOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::CreateAppRequest&, const CreateAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAppAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::CreateClusterResult> CreateClusterOutcome;
|
||||||
|
typedef std::future<CreateClusterOutcome> CreateClusterOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::CreateClusterRequest&, const CreateClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateClusterAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::CreateJobResult> CreateJobOutcome;
|
||||||
|
typedef std::future<CreateJobOutcome> CreateJobOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::CreateJobRequest&, const CreateJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateJobAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DeleteAppResult> DeleteAppOutcome;
|
||||||
|
typedef std::future<DeleteAppOutcome> DeleteAppOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::DeleteAppRequest&, const DeleteAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAppAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DeleteClusterResult> DeleteClusterOutcome;
|
||||||
|
typedef std::future<DeleteClusterOutcome> DeleteClusterOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::DeleteClusterRequest&, const DeleteClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteClusterAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DeleteJobsResult> DeleteJobsOutcome;
|
||||||
|
typedef std::future<DeleteJobsOutcome> DeleteJobsOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::DeleteJobsRequest&, const DeleteJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteJobsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ExportJobsResult> ExportJobsOutcome;
|
||||||
|
typedef std::future<ExportJobsOutcome> ExportJobsOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::ExportJobsRequest&, const ExportJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExportJobsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::GetClusterResult> GetClusterOutcome;
|
||||||
|
typedef std::future<GetClusterOutcome> GetClusterOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::GetClusterRequest&, const GetClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetClusterAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::GetDesigateInfoResult> GetDesigateInfoOutcome;
|
||||||
|
typedef std::future<GetDesigateInfoOutcome> GetDesigateInfoOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::GetDesigateInfoRequest&, const GetDesigateInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDesigateInfoAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::GetJobExecutionProgressResult> GetJobExecutionProgressOutcome;
|
||||||
|
typedef std::future<GetJobExecutionProgressOutcome> GetJobExecutionProgressOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::GetJobExecutionProgressRequest&, const GetJobExecutionProgressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetJobExecutionProgressAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::GetLogResult> GetLogOutcome;
|
||||||
|
typedef std::future<GetLogOutcome> GetLogOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::GetLogRequest&, const GetLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLogAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ImportCalendarResult> ImportCalendarOutcome;
|
||||||
|
typedef std::future<ImportCalendarOutcome> ImportCalendarOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::ImportCalendarRequest&, const ImportCalendarOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImportCalendarAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ImportJobsResult> ImportJobsOutcome;
|
||||||
|
typedef std::future<ImportJobsOutcome> ImportJobsOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::ImportJobsRequest&, const ImportJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImportJobsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListAlarmEventResult> ListAlarmEventOutcome;
|
||||||
|
typedef std::future<ListAlarmEventOutcome> ListAlarmEventOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::ListAlarmEventRequest&, const ListAlarmEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAlarmEventAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListAppNamesResult> ListAppNamesOutcome;
|
||||||
|
typedef std::future<ListAppNamesOutcome> ListAppNamesOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::ListAppNamesRequest&, const ListAppNamesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAppNamesAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListAppsResult> ListAppsOutcome;
|
||||||
|
typedef std::future<ListAppsOutcome> ListAppsOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::ListAppsRequest&, const ListAppsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAppsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListCalendarNamesResult> ListCalendarNamesOutcome;
|
||||||
|
typedef std::future<ListCalendarNamesOutcome> ListCalendarNamesOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::ListCalendarNamesRequest&, const ListCalendarNamesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCalendarNamesAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListClustersResult> ListClustersOutcome;
|
||||||
|
typedef std::future<ListClustersOutcome> ListClustersOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::ListClustersRequest&, const ListClustersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListClustersAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListExecutorsResult> ListExecutorsOutcome;
|
||||||
|
typedef std::future<ListExecutorsOutcome> ListExecutorsOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::ListExecutorsRequest&, const ListExecutorsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListExecutorsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListJobExecutionsResult> ListJobExecutionsOutcome;
|
||||||
|
typedef std::future<ListJobExecutionsOutcome> ListJobExecutionsOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::ListJobExecutionsRequest&, const ListJobExecutionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListJobExecutionsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListJobsResult> ListJobsOutcome;
|
||||||
|
typedef std::future<ListJobsOutcome> ListJobsOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::ListJobsRequest&, const ListJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListJobsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListLablesResult> ListLablesOutcome;
|
||||||
|
typedef std::future<ListLablesOutcome> ListLablesOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::ListLablesRequest&, const ListLablesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListLablesAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListRegionZoneResult> ListRegionZoneOutcome;
|
||||||
|
typedef std::future<ListRegionZoneOutcome> ListRegionZoneOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::ListRegionZoneRequest&, const ListRegionZoneOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRegionZoneAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListRegionsResult> ListRegionsOutcome;
|
||||||
|
typedef std::future<ListRegionsOutcome> ListRegionsOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::ListRegionsRequest&, const ListRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRegionsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListScheduleEventResult> ListScheduleEventOutcome;
|
||||||
|
typedef std::future<ListScheduleEventOutcome> ListScheduleEventOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::ListScheduleEventRequest&, const ListScheduleEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListScheduleEventAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListScheduleTimesResult> ListScheduleTimesOutcome;
|
||||||
|
typedef std::future<ListScheduleTimesOutcome> ListScheduleTimesOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::ListScheduleTimesRequest&, const ListScheduleTimesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListScheduleTimesAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::OperateDesignateExecutorsResult> OperateDesignateExecutorsOutcome;
|
||||||
|
typedef std::future<OperateDesignateExecutorsOutcome> OperateDesignateExecutorsOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::OperateDesignateExecutorsRequest&, const OperateDesignateExecutorsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OperateDesignateExecutorsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::OperateDisableJobsResult> OperateDisableJobsOutcome;
|
||||||
|
typedef std::future<OperateDisableJobsOutcome> OperateDisableJobsOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::OperateDisableJobsRequest&, const OperateDisableJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OperateDisableJobsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::OperateEnableJobsResult> OperateEnableJobsOutcome;
|
||||||
|
typedef std::future<OperateEnableJobsOutcome> OperateEnableJobsOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::OperateEnableJobsRequest&, const OperateEnableJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OperateEnableJobsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::OperateExecuteJobResult> OperateExecuteJobOutcome;
|
||||||
|
typedef std::future<OperateExecuteJobOutcome> OperateExecuteJobOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::OperateExecuteJobRequest&, const OperateExecuteJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OperateExecuteJobAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::OperateRerunJobResult> OperateRerunJobOutcome;
|
||||||
|
typedef std::future<OperateRerunJobOutcome> OperateRerunJobOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::OperateRerunJobRequest&, const OperateRerunJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OperateRerunJobAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::OperateRetryJobExecutionResult> OperateRetryJobExecutionOutcome;
|
||||||
|
typedef std::future<OperateRetryJobExecutionOutcome> OperateRetryJobExecutionOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::OperateRetryJobExecutionRequest&, const OperateRetryJobExecutionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OperateRetryJobExecutionAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::OperateStopJobExecutionResult> OperateStopJobExecutionOutcome;
|
||||||
|
typedef std::future<OperateStopJobExecutionOutcome> OperateStopJobExecutionOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::OperateStopJobExecutionRequest&, const OperateStopJobExecutionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OperateStopJobExecutionAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::UpdateAppResult> UpdateAppOutcome;
|
||||||
|
typedef std::future<UpdateAppOutcome> UpdateAppOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::UpdateAppRequest&, const UpdateAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAppAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::UpdateClusterResult> UpdateClusterOutcome;
|
||||||
|
typedef std::future<UpdateClusterOutcome> UpdateClusterOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::UpdateClusterRequest&, const UpdateClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateClusterAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::UpdateJobResult> UpdateJobOutcome;
|
||||||
|
typedef std::future<UpdateJobOutcome> UpdateJobOutcomeCallable;
|
||||||
|
typedef std::function<void(const SchedulerX3Client*, const Model::UpdateJobRequest&, const UpdateJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateJobAsyncHandler;
|
||||||
|
|
||||||
|
SchedulerX3Client(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||||
|
SchedulerX3Client(const std::shared_ptr<CredentialsProvider> &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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
UpdateJobOutcomeCallable updateJobCallable(const Model::UpdateJobRequest& request) const;
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX3_SCHEDULERX3CLIENT_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 <alibabacloud/core/Global.h>
|
||||||
|
|
||||||
|
#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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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<NoticeContacts> getNoticeContacts() const;
|
||||||
|
void setNoticeContacts(const std::vector<NoticeContacts> ¬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> 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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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<VSwitches> getVSwitches() const;
|
||||||
|
void setVSwitches(const std::vector<VSwitches> &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> vSwitches_;
|
||||||
|
std::string clusterSpec_;
|
||||||
|
std::string vpcId_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace SchedulerX3
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !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_CREATECLUSTERRESULT_H_
|
||||||
|
#define ALIBABACLOUD_SCHEDULERX3_MODEL_CREATECLUSTERRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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<NoticeContacts> getNoticeContacts() const;
|
||||||
|
void setNoticeContacts(const std::vector<NoticeContacts> ¬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> 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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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<long> getJobIds() const;
|
||||||
|
void setJobIds(const std::vector<long> &jobIds);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string mseSessionId_;
|
||||||
|
std::string clusterId_;
|
||||||
|
std::string appName_;
|
||||||
|
std::vector<long> jobIds_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace SchedulerX3
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_DELETEJOBSREQUEST_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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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<long> getJobIds() const;
|
||||||
|
void setJobIds(const std::vector<long> &jobIds);
|
||||||
|
int getExportJobType() const;
|
||||||
|
void setExportJobType(int exportJobType);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string mseSessionId_;
|
||||||
|
std::string appName_;
|
||||||
|
std::string clusterId_;
|
||||||
|
std::vector<long> jobIds_;
|
||||||
|
int exportJobType_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace SchedulerX3
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_EXPORTJOBSREQUEST_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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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<std::string> zones;
|
||||||
|
int spm;
|
||||||
|
std::string vpcId;
|
||||||
|
std::string chargeType;
|
||||||
|
std::string kubeConfig;
|
||||||
|
std::string clusterName;
|
||||||
|
int jobNum;
|
||||||
|
std::vector<VswitchesItem> 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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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<WorkerProgressItem> workerProgress;
|
||||||
|
std::vector<ShardingProgressItem> shardingProgress;
|
||||||
|
std::vector<TaskProgressItem> 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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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<std::string> getData()const;
|
||||||
|
int getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
std::vector<std::string> data_;
|
||||||
|
int code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_GETLOGRESULT_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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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<std::string> getData()const;
|
||||||
|
int getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
std::vector<std::string> data_;
|
||||||
|
int code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_IMPORTCALENDARRESULT_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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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<Record> 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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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<DataItem> getData()const;
|
||||||
|
int getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
std::vector<DataItem> data_;
|
||||||
|
int code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTAPPNAMESRESULT_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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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<Record> 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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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<std::string> getData()const;
|
||||||
|
int getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
std::vector<std::string> data_;
|
||||||
|
int code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTCALENDARNAMESRESULT_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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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<Record::VswitchesItem> vSwitches;
|
||||||
|
std::string engineType;
|
||||||
|
std::string intranetDomain;
|
||||||
|
};
|
||||||
|
int pageSize;
|
||||||
|
int pageNumber;
|
||||||
|
int total;
|
||||||
|
std::vector<Record> 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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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<DataItem> getData()const;
|
||||||
|
int getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
std::vector<DataItem> data_;
|
||||||
|
int code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTEXECUTORSRESULT_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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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<Record> 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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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<Record> 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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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<DataItem> getData()const;
|
||||||
|
int getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
std::vector<DataItem> data_;
|
||||||
|
int code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTLABLESRESULT_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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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<DataItem> 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<DataItem> data_;
|
||||||
|
std::string errorCode_;
|
||||||
|
int code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTREGIONZONERESULT_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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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<Region> getRegions()const;
|
||||||
|
int getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
std::vector<Region> regions_;
|
||||||
|
int code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTREGIONSRESULT_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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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<Record> 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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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<std::string> getData()const;
|
||||||
|
int getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
std::vector<std::string> data_;
|
||||||
|
int code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_LISTSCHEDULETIMESRESULT_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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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<std::string> getAddressList() const;
|
||||||
|
void setAddressList(const std::vector<std::string> &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<std::string> addressList_;
|
||||||
|
std::string clusterId_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace SchedulerX3
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATEDESIGNATEEXECUTORSREQUEST_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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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<long> getJobIds() const;
|
||||||
|
void setJobIds(const std::vector<long> &jobIds);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string mseSessionId_;
|
||||||
|
std::string clusterId_;
|
||||||
|
std::string appName_;
|
||||||
|
std::vector<long> jobIds_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace SchedulerX3
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATEDISABLEJOBSREQUEST_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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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<long> getJobIds() const;
|
||||||
|
void setJobIds(const std::vector<long> &jobIds);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string mseSessionId_;
|
||||||
|
std::string clusterId_;
|
||||||
|
std::string appName_;
|
||||||
|
std::vector<long> jobIds_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace SchedulerX3
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATEENABLEJOBSREQUEST_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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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<std::string> getTaskList() const;
|
||||||
|
void setTaskList(const std::vector<std::string> &taskList);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string mseSessionId_;
|
||||||
|
long jobId_;
|
||||||
|
std::string appName_;
|
||||||
|
std::string jobExecutionId_;
|
||||||
|
std::string clusterId_;
|
||||||
|
std::vector<std::string> taskList_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace SchedulerX3
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATERETRYJOBEXECUTIONREQUEST_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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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<std::string> getTaskList() const;
|
||||||
|
void setTaskList(const std::vector<std::string> &taskList);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string mseSessionId_;
|
||||||
|
long jobId_;
|
||||||
|
std::string appName_;
|
||||||
|
std::string jobExecutionId_;
|
||||||
|
std::string clusterId_;
|
||||||
|
std::vector<std::string> taskList_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace SchedulerX3
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX3_MODEL_OPERATESTOPJOBEXECUTIONREQUEST_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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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<NoticeContacts> getNoticeContacts() const;
|
||||||
|
void setNoticeContacts(const std::vector<NoticeContacts> ¬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> 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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
@@ -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 <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
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<NoticeContacts> getNoticeContacts() const;
|
||||||
|
void setNoticeContacts(const std::vector<NoticeContacts> ¬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> 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_
|
||||||
@@ -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 <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx3/SchedulerX3Export.h>
|
||||||
|
|
||||||
|
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_
|
||||||
1349
schedulerx3/src/SchedulerX3Client.cc
Normal file
1349
schedulerx3/src/SchedulerX3Client.cc
Normal file
File diff suppressed because it is too large
Load Diff
134
schedulerx3/src/model/CreateAppRequest.cc
Normal file
134
schedulerx3/src/model/CreateAppRequest.cc
Normal file
@@ -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 <alibabacloud/schedulerx3/model/CreateAppRequest.h>
|
||||||
|
|
||||||
|
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::NoticeContacts> CreateAppRequest::getNoticeContacts() const {
|
||||||
|
return noticeContacts_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateAppRequest::setNoticeContacts(const std::vector<CreateAppRequest::NoticeContacts> ¬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));
|
||||||
|
}
|
||||||
|
|
||||||
75
schedulerx3/src/model/CreateAppResult.cc
Normal file
75
schedulerx3/src/model/CreateAppResult.cc
Normal file
@@ -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 <alibabacloud/schedulerx3/model/CreateAppResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
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_;
|
||||||
|
}
|
||||||
|
|
||||||
93
schedulerx3/src/model/CreateClusterRequest.cc
Normal file
93
schedulerx3/src/model/CreateClusterRequest.cc
Normal file
@@ -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 <alibabacloud/schedulerx3/model/CreateClusterRequest.h>
|
||||||
|
|
||||||
|
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::VSwitches> CreateClusterRequest::getVSwitches() const {
|
||||||
|
return vSwitches_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateClusterRequest::setVSwitches(const std::vector<CreateClusterRequest::VSwitches> &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);
|
||||||
|
}
|
||||||
|
|
||||||
82
schedulerx3/src/model/CreateClusterResult.cc
Normal file
82
schedulerx3/src/model/CreateClusterResult.cc
Normal file
@@ -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 <alibabacloud/schedulerx3/model/CreateClusterResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
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_;
|
||||||
|
}
|
||||||
|
|
||||||
264
schedulerx3/src/model/CreateJobRequest.cc
Normal file
264
schedulerx3/src/model/CreateJobRequest.cc
Normal file
@@ -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 <alibabacloud/schedulerx3/model/CreateJobRequest.h>
|
||||||
|
|
||||||
|
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::NoticeContacts> CreateJobRequest::getNoticeContacts() const {
|
||||||
|
return noticeContacts_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateJobRequest::setNoticeContacts(const std::vector<CreateJobRequest::NoticeContacts> ¬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));
|
||||||
|
}
|
||||||
|
|
||||||
73
schedulerx3/src/model/CreateJobResult.cc
Normal file
73
schedulerx3/src/model/CreateJobResult.cc
Normal file
@@ -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 <alibabacloud/schedulerx3/model/CreateJobResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
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_;
|
||||||
|
}
|
||||||
|
|
||||||
54
schedulerx3/src/model/DeleteAppRequest.cc
Normal file
54
schedulerx3/src/model/DeleteAppRequest.cc
Normal file
@@ -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 <alibabacloud/schedulerx3/model/DeleteAppRequest.h>
|
||||||
|
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
65
schedulerx3/src/model/DeleteAppResult.cc
Normal file
65
schedulerx3/src/model/DeleteAppResult.cc
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/schedulerx3/model/DeleteAppResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
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_;
|
||||||
|
}
|
||||||
|
|
||||||
45
schedulerx3/src/model/DeleteClusterRequest.cc
Normal file
45
schedulerx3/src/model/DeleteClusterRequest.cc
Normal file
@@ -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 <alibabacloud/schedulerx3/model/DeleteClusterRequest.h>
|
||||||
|
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
65
schedulerx3/src/model/DeleteClusterResult.cc
Normal file
65
schedulerx3/src/model/DeleteClusterResult.cc
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/schedulerx3/model/DeleteClusterResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
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_;
|
||||||
|
}
|
||||||
|
|
||||||
65
schedulerx3/src/model/DeleteJobsRequest.cc
Normal file
65
schedulerx3/src/model/DeleteJobsRequest.cc
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/schedulerx3/model/DeleteJobsRequest.h>
|
||||||
|
|
||||||
|
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::long> DeleteJobsRequest::getJobIds() const {
|
||||||
|
return jobIds_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteJobsRequest::setJobIds(const std::vector<DeleteJobsRequest::long> &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]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
65
schedulerx3/src/model/DeleteJobsResult.cc
Normal file
65
schedulerx3/src/model/DeleteJobsResult.cc
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/schedulerx3/model/DeleteJobsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
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_;
|
||||||
|
}
|
||||||
|
|
||||||
74
schedulerx3/src/model/ExportJobsRequest.cc
Normal file
74
schedulerx3/src/model/ExportJobsRequest.cc
Normal file
@@ -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 <alibabacloud/schedulerx3/model/ExportJobsRequest.h>
|
||||||
|
|
||||||
|
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::long> ExportJobsRequest::getJobIds() const {
|
||||||
|
return jobIds_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ExportJobsRequest::setJobIds(const std::vector<ExportJobsRequest::long> &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));
|
||||||
|
}
|
||||||
|
|
||||||
44
schedulerx3/src/model/ExportJobsResult.cc
Normal file
44
schedulerx3/src/model/ExportJobsResult.cc
Normal file
@@ -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 <alibabacloud/schedulerx3/model/ExportJobsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
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());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
45
schedulerx3/src/model/GetClusterRequest.cc
Normal file
45
schedulerx3/src/model/GetClusterRequest.cc
Normal file
@@ -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 <alibabacloud/schedulerx3/model/GetClusterRequest.h>
|
||||||
|
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
120
schedulerx3/src/model/GetClusterResult.cc
Normal file
120
schedulerx3/src/model/GetClusterResult.cc
Normal file
@@ -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 <alibabacloud/schedulerx3/model/GetClusterResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
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_;
|
||||||
|
}
|
||||||
|
|
||||||
63
schedulerx3/src/model/GetDesigateInfoRequest.cc
Normal file
63
schedulerx3/src/model/GetDesigateInfoRequest.cc
Normal file
@@ -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 <alibabacloud/schedulerx3/model/GetDesigateInfoRequest.h>
|
||||||
|
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
75
schedulerx3/src/model/GetDesigateInfoResult.cc
Normal file
75
schedulerx3/src/model/GetDesigateInfoResult.cc
Normal file
@@ -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 <alibabacloud/schedulerx3/model/GetDesigateInfoResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
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_;
|
||||||
|
}
|
||||||
|
|
||||||
63
schedulerx3/src/model/GetJobExecutionProgressRequest.cc
Normal file
63
schedulerx3/src/model/GetJobExecutionProgressRequest.cc
Normal file
@@ -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 <alibabacloud/schedulerx3/model/GetJobExecutionProgressRequest.h>
|
||||||
|
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
150
schedulerx3/src/model/GetJobExecutionProgressResult.cc
Normal file
150
schedulerx3/src/model/GetJobExecutionProgressResult.cc
Normal file
@@ -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 <alibabacloud/schedulerx3/model/GetJobExecutionProgressResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
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_;
|
||||||
|
}
|
||||||
|
|
||||||
135
schedulerx3/src/model/GetLogRequest.cc
Normal file
135
schedulerx3/src/model/GetLogRequest.cc
Normal file
@@ -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 <alibabacloud/schedulerx3/model/GetLogRequest.h>
|
||||||
|
|
||||||
|
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));
|
||||||
|
}
|
||||||
|
|
||||||
73
schedulerx3/src/model/GetLogResult.cc
Normal file
73
schedulerx3/src/model/GetLogResult.cc
Normal file
@@ -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 <alibabacloud/schedulerx3/model/GetLogResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
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<std::string> GetLogResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int GetLogResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool GetLogResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
72
schedulerx3/src/model/ImportCalendarRequest.cc
Normal file
72
schedulerx3/src/model/ImportCalendarRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/schedulerx3/model/ImportCalendarRequest.h>
|
||||||
|
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user