CreateJob and UpdateJob support ExecutorBlockStrategy.
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
73
schedulerx3/src/model/ImportCalendarResult.cc
Normal file
73
schedulerx3/src/model/ImportCalendarResult.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/ImportCalendarResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
ImportCalendarResult::ImportCalendarResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ImportCalendarResult::ImportCalendarResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ImportCalendarResult::~ImportCalendarResult()
|
||||
{}
|
||||
|
||||
void ImportCalendarResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["data"];
|
||||
for (const auto &item : allData)
|
||||
data_.push_back(item.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ImportCalendarResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<std::string> ImportCalendarResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ImportCalendarResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ImportCalendarResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
schedulerx3/src/model/ImportJobsRequest.cc
Normal file
72
schedulerx3/src/model/ImportJobsRequest.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/ImportJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::ImportJobsRequest;
|
||||
|
||||
ImportJobsRequest::ImportJobsRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "ImportJobs") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ImportJobsRequest::~ImportJobsRequest() {}
|
||||
|
||||
std::string ImportJobsRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void ImportJobsRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
std::string ImportJobsRequest::getContent() const {
|
||||
return content_;
|
||||
}
|
||||
|
||||
void ImportJobsRequest::setContent(const std::string &content) {
|
||||
content_ = content;
|
||||
setBodyParameter(std::string("Content"), content);
|
||||
}
|
||||
|
||||
bool ImportJobsRequest::getOverwrite() const {
|
||||
return overwrite_;
|
||||
}
|
||||
|
||||
void ImportJobsRequest::setOverwrite(bool overwrite) {
|
||||
overwrite_ = overwrite;
|
||||
setBodyParameter(std::string("Overwrite"), overwrite ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ImportJobsRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ImportJobsRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setBodyParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
bool ImportJobsRequest::getAutoCreateApp() const {
|
||||
return autoCreateApp_;
|
||||
}
|
||||
|
||||
void ImportJobsRequest::setAutoCreateApp(bool autoCreateApp) {
|
||||
autoCreateApp_ = autoCreateApp;
|
||||
setBodyParameter(std::string("AutoCreateApp"), autoCreateApp ? "true" : "false");
|
||||
}
|
||||
|
||||
65
schedulerx3/src/model/ImportJobsResult.cc
Normal file
65
schedulerx3/src/model/ImportJobsResult.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/ImportJobsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
ImportJobsResult::ImportJobsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ImportJobsResult::ImportJobsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ImportJobsResult::~ImportJobsResult()
|
||||
{}
|
||||
|
||||
void ImportJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ImportJobsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ImportJobsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ImportJobsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
135
schedulerx3/src/model/ListAlarmEventRequest.cc
Normal file
135
schedulerx3/src/model/ListAlarmEventRequest.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/ListAlarmEventRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::ListAlarmEventRequest;
|
||||
|
||||
ListAlarmEventRequest::ListAlarmEventRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "ListAlarmEvent") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListAlarmEventRequest::~ListAlarmEventRequest() {}
|
||||
|
||||
std::string ListAlarmEventRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void ListAlarmEventRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
long ListAlarmEventRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListAlarmEventRequest::setStartTime(long startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string ListAlarmEventRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListAlarmEventRequest::setPageNum(const std::string &pageNum) {
|
||||
pageNum_ = pageNum;
|
||||
setParameter(std::string("PageNum"), pageNum);
|
||||
}
|
||||
|
||||
std::string ListAlarmEventRequest::getAlarmChannel() const {
|
||||
return alarmChannel_;
|
||||
}
|
||||
|
||||
void ListAlarmEventRequest::setAlarmChannel(const std::string &alarmChannel) {
|
||||
alarmChannel_ = alarmChannel;
|
||||
setParameter(std::string("AlarmChannel"), alarmChannel);
|
||||
}
|
||||
|
||||
std::string ListAlarmEventRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ListAlarmEventRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string ListAlarmEventRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListAlarmEventRequest::setPageSize(const std::string &pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), pageSize);
|
||||
}
|
||||
|
||||
std::string ListAlarmEventRequest::getJobName() const {
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void ListAlarmEventRequest::setJobName(const std::string &jobName) {
|
||||
jobName_ = jobName;
|
||||
setParameter(std::string("JobName"), jobName);
|
||||
}
|
||||
|
||||
std::string ListAlarmEventRequest::getAlarmType() const {
|
||||
return alarmType_;
|
||||
}
|
||||
|
||||
void ListAlarmEventRequest::setAlarmType(const std::string &alarmType) {
|
||||
alarmType_ = alarmType;
|
||||
setParameter(std::string("AlarmType"), alarmType);
|
||||
}
|
||||
|
||||
long ListAlarmEventRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListAlarmEventRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string ListAlarmEventRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListAlarmEventRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
bool ListAlarmEventRequest::getReverse() const {
|
||||
return reverse_;
|
||||
}
|
||||
|
||||
void ListAlarmEventRequest::setReverse(bool reverse) {
|
||||
reverse_ = reverse;
|
||||
setParameter(std::string("Reverse"), reverse ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListAlarmEventRequest::getAlarmStatus() const {
|
||||
return alarmStatus_;
|
||||
}
|
||||
|
||||
void ListAlarmEventRequest::setAlarmStatus(const std::string &alarmStatus) {
|
||||
alarmStatus_ = alarmStatus;
|
||||
setParameter(std::string("AlarmStatus"), alarmStatus);
|
||||
}
|
||||
|
||||
99
schedulerx3/src/model/ListAlarmEventResult.cc
Normal file
99
schedulerx3/src/model/ListAlarmEventResult.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/ListAlarmEventResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
ListAlarmEventResult::ListAlarmEventResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAlarmEventResult::ListAlarmEventResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAlarmEventResult::~ListAlarmEventResult()
|
||||
{}
|
||||
|
||||
void ListAlarmEventResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stol(dataNode["Total"].asString());
|
||||
auto allRecordsNode = dataNode["Records"]["record"];
|
||||
for (auto dataNodeRecordsrecord : allRecordsNode)
|
||||
{
|
||||
Data::Record recordObject;
|
||||
if(!dataNodeRecordsrecord["AppName"].isNull())
|
||||
recordObject.appName = dataNodeRecordsrecord["AppName"].asString();
|
||||
if(!dataNodeRecordsrecord["JobName"].isNull())
|
||||
recordObject.jobName = dataNodeRecordsrecord["JobName"].asString();
|
||||
if(!dataNodeRecordsrecord["AlarmType"].isNull())
|
||||
recordObject.alarmType = dataNodeRecordsrecord["AlarmType"].asString();
|
||||
if(!dataNodeRecordsrecord["AlarmChannel"].isNull())
|
||||
recordObject.alarmChannel = dataNodeRecordsrecord["AlarmChannel"].asString();
|
||||
if(!dataNodeRecordsrecord["AlarmContacts"].isNull())
|
||||
recordObject.alarmContacts = dataNodeRecordsrecord["AlarmContacts"].asString();
|
||||
if(!dataNodeRecordsrecord["AlarmStatus"].isNull())
|
||||
recordObject.alarmStatus = dataNodeRecordsrecord["AlarmStatus"].asString();
|
||||
if(!dataNodeRecordsrecord["AlarmMessage"].isNull())
|
||||
recordObject.alarmMessage = dataNodeRecordsrecord["AlarmMessage"].asString();
|
||||
if(!dataNodeRecordsrecord["Time"].isNull())
|
||||
recordObject.time = dataNodeRecordsrecord["Time"].asString();
|
||||
data_.records.push_back(recordObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListAlarmEventResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListAlarmEventResult::Data ListAlarmEventResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListAlarmEventResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListAlarmEventResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
schedulerx3/src/model/ListAppNamesRequest.cc
Normal file
54
schedulerx3/src/model/ListAppNamesRequest.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/ListAppNamesRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::ListAppNamesRequest;
|
||||
|
||||
ListAppNamesRequest::ListAppNamesRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "ListAppNames") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListAppNamesRequest::~ListAppNamesRequest() {}
|
||||
|
||||
std::string ListAppNamesRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void ListAppNamesRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
std::string ListAppNamesRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListAppNamesRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string ListAppNamesRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ListAppNamesRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
84
schedulerx3/src/model/ListAppNamesResult.cc
Normal file
84
schedulerx3/src/model/ListAppNamesResult.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/ListAppNamesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
ListAppNamesResult::ListAppNamesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAppNamesResult::ListAppNamesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAppNamesResult::~ListAppNamesResult()
|
||||
{}
|
||||
|
||||
void ListAppNamesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["dataItem"];
|
||||
for (auto valueDatadataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDatadataItem["Id"].isNull())
|
||||
dataObject.id = std::stol(valueDatadataItem["Id"].asString());
|
||||
if(!valueDatadataItem["AppName"].isNull())
|
||||
dataObject.appName = valueDatadataItem["AppName"].asString();
|
||||
if(!valueDatadataItem["Title"].isNull())
|
||||
dataObject.title = valueDatadataItem["Title"].asString();
|
||||
if(!valueDatadataItem["AppGroupId"].isNull())
|
||||
dataObject.appGroupId = valueDatadataItem["AppGroupId"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListAppNamesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ListAppNamesResult::DataItem> ListAppNamesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListAppNamesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListAppNamesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
81
schedulerx3/src/model/ListAppsRequest.cc
Normal file
81
schedulerx3/src/model/ListAppsRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/ListAppsRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::ListAppsRequest;
|
||||
|
||||
ListAppsRequest::ListAppsRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "ListApps") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListAppsRequest::~ListAppsRequest() {}
|
||||
|
||||
std::string ListAppsRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void ListAppsRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
std::string ListAppsRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
|
||||
void ListAppsRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
}
|
||||
|
||||
int ListAppsRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListAppsRequest::setPageNum(int pageNum) {
|
||||
pageNum_ = pageNum;
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string ListAppsRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ListAppsRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
int ListAppsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListAppsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListAppsRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListAppsRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
113
schedulerx3/src/model/ListAppsResult.cc
Normal file
113
schedulerx3/src/model/ListAppsResult.cc
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/ListAppsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
ListAppsResult::ListAppsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAppsResult::ListAppsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAppsResult::~ListAppsResult()
|
||||
{}
|
||||
|
||||
void ListAppsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allRecordsNode = dataNode["Records"]["Record"];
|
||||
for (auto dataNodeRecordsRecord : allRecordsNode)
|
||||
{
|
||||
Data::Record recordObject;
|
||||
if(!dataNodeRecordsRecord["Id"].isNull())
|
||||
recordObject.id = std::stol(dataNodeRecordsRecord["Id"].asString());
|
||||
if(!dataNodeRecordsRecord["AppName"].isNull())
|
||||
recordObject.appName = dataNodeRecordsRecord["AppName"].asString();
|
||||
if(!dataNodeRecordsRecord["AccessToken"].isNull())
|
||||
recordObject.accessToken = dataNodeRecordsRecord["AccessToken"].asString();
|
||||
if(!dataNodeRecordsRecord["Title"].isNull())
|
||||
recordObject.title = dataNodeRecordsRecord["Title"].asString();
|
||||
if(!dataNodeRecordsRecord["Creator"].isNull())
|
||||
recordObject.creator = dataNodeRecordsRecord["Creator"].asString();
|
||||
if(!dataNodeRecordsRecord["Updater"].isNull())
|
||||
recordObject.updater = dataNodeRecordsRecord["Updater"].asString();
|
||||
if(!dataNodeRecordsRecord["Leader"].isNull())
|
||||
recordObject.leader = dataNodeRecordsRecord["Leader"].asString();
|
||||
if(!dataNodeRecordsRecord["Calendar"].isNull())
|
||||
recordObject.calendar = dataNodeRecordsRecord["Calendar"].asString();
|
||||
if(!dataNodeRecordsRecord["MaxJobs"].isNull())
|
||||
recordObject.maxJobs = std::stoi(dataNodeRecordsRecord["MaxJobs"].asString());
|
||||
if(!dataNodeRecordsRecord["MaxConcurrency"].isNull())
|
||||
recordObject.maxConcurrency = std::stoi(dataNodeRecordsRecord["MaxConcurrency"].asString());
|
||||
if(!dataNodeRecordsRecord["NoticeConfig"].isNull())
|
||||
recordObject.noticeConfig = dataNodeRecordsRecord["NoticeConfig"].asString();
|
||||
if(!dataNodeRecordsRecord["NoticeContacts"].isNull())
|
||||
recordObject.noticeContacts = dataNodeRecordsRecord["NoticeContacts"].asString();
|
||||
if(!dataNodeRecordsRecord["JobNum"].isNull())
|
||||
recordObject.jobNum = std::stoi(dataNodeRecordsRecord["JobNum"].asString());
|
||||
if(!dataNodeRecordsRecord["ExecutorNum"].isNull())
|
||||
recordObject.executorNum = std::stol(dataNodeRecordsRecord["ExecutorNum"].asString());
|
||||
if(!dataNodeRecordsRecord["EnableLog"].isNull())
|
||||
recordObject.enableLog = dataNodeRecordsRecord["EnableLog"].asString() == "true";
|
||||
data_.records.push_back(recordObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListAppsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListAppsResult::Data ListAppsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListAppsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListAppsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
schedulerx3/src/model/ListCalendarNamesRequest.cc
Normal file
45
schedulerx3/src/model/ListCalendarNamesRequest.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/ListCalendarNamesRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::ListCalendarNamesRequest;
|
||||
|
||||
ListCalendarNamesRequest::ListCalendarNamesRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "ListCalendarNames") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListCalendarNamesRequest::~ListCalendarNamesRequest() {}
|
||||
|
||||
std::string ListCalendarNamesRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void ListCalendarNamesRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
std::string ListCalendarNamesRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListCalendarNamesRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
73
schedulerx3/src/model/ListCalendarNamesResult.cc
Normal file
73
schedulerx3/src/model/ListCalendarNamesResult.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/ListCalendarNamesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
ListCalendarNamesResult::ListCalendarNamesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListCalendarNamesResult::ListCalendarNamesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListCalendarNamesResult::~ListCalendarNamesResult()
|
||||
{}
|
||||
|
||||
void ListCalendarNamesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["data"];
|
||||
for (const auto &item : allData)
|
||||
data_.push_back(item.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListCalendarNamesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<std::string> ListCalendarNamesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListCalendarNamesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListCalendarNamesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
schedulerx3/src/model/ListClustersRequest.cc
Normal file
72
schedulerx3/src/model/ListClustersRequest.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/ListClustersRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::ListClustersRequest;
|
||||
|
||||
ListClustersRequest::ListClustersRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "ListClusters") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListClustersRequest::~ListClustersRequest() {}
|
||||
|
||||
std::string ListClustersRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void ListClustersRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
std::string ListClustersRequest::getClusterName() const {
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void ListClustersRequest::setClusterName(const std::string &clusterName) {
|
||||
clusterName_ = clusterName;
|
||||
setParameter(std::string("ClusterName"), clusterName);
|
||||
}
|
||||
|
||||
int ListClustersRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListClustersRequest::setPageNum(int pageNum) {
|
||||
pageNum_ = pageNum;
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
int ListClustersRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListClustersRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListClustersRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListClustersRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
121
schedulerx3/src/model/ListClustersResult.cc
Normal file
121
schedulerx3/src/model/ListClustersResult.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/ListClustersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
ListClustersResult::ListClustersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListClustersResult::ListClustersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListClustersResult::~ListClustersResult()
|
||||
{}
|
||||
|
||||
void ListClustersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allRecordsNode = dataNode["Records"]["record"];
|
||||
for (auto dataNodeRecordsrecord : allRecordsNode)
|
||||
{
|
||||
Data::Record recordObject;
|
||||
if(!dataNodeRecordsrecord["ClusterId"].isNull())
|
||||
recordObject.clusterId = dataNodeRecordsrecord["ClusterId"].asString();
|
||||
if(!dataNodeRecordsrecord["ClusterName"].isNull())
|
||||
recordObject.clusterName = dataNodeRecordsrecord["ClusterName"].asString();
|
||||
if(!dataNodeRecordsrecord["ClusterSpec"].isNull())
|
||||
recordObject.clusterSpec = dataNodeRecordsrecord["ClusterSpec"].asString();
|
||||
if(!dataNodeRecordsrecord["ProductType"].isNull())
|
||||
recordObject.productType = std::stoi(dataNodeRecordsrecord["ProductType"].asString());
|
||||
if(!dataNodeRecordsrecord["EngineType"].isNull())
|
||||
recordObject.engineType = dataNodeRecordsrecord["EngineType"].asString();
|
||||
if(!dataNodeRecordsrecord["EngineVersion"].isNull())
|
||||
recordObject.engineVersion = dataNodeRecordsrecord["EngineVersion"].asString();
|
||||
if(!dataNodeRecordsrecord["Status"].isNull())
|
||||
recordObject.status = std::stoi(dataNodeRecordsrecord["Status"].asString());
|
||||
if(!dataNodeRecordsrecord["CreateTime"].isNull())
|
||||
recordObject.createTime = dataNodeRecordsrecord["CreateTime"].asString();
|
||||
if(!dataNodeRecordsrecord["EndTime"].isNull())
|
||||
recordObject.endTime = dataNodeRecordsrecord["EndTime"].asString();
|
||||
if(!dataNodeRecordsrecord["IntranetDomain"].isNull())
|
||||
recordObject.intranetDomain = dataNodeRecordsrecord["IntranetDomain"].asString();
|
||||
if(!dataNodeRecordsrecord["InternetDomain"].isNull())
|
||||
recordObject.internetDomain = dataNodeRecordsrecord["InternetDomain"].asString();
|
||||
if(!dataNodeRecordsrecord["ChargeType"].isNull())
|
||||
recordObject.chargeType = dataNodeRecordsrecord["ChargeType"].asString();
|
||||
if(!dataNodeRecordsrecord["VpcId"].isNull())
|
||||
recordObject.vpcId = dataNodeRecordsrecord["VpcId"].asString();
|
||||
if(!dataNodeRecordsrecord["SpInstanceId"].isNull())
|
||||
recordObject.spInstanceId = dataNodeRecordsrecord["SpInstanceId"].asString();
|
||||
auto allVSwitchesNode = dataNodeRecordsrecord["VSwitches"]["vswitchesItem"];
|
||||
for (auto dataNodeRecordsrecordVSwitchesvswitchesItem : allVSwitchesNode)
|
||||
{
|
||||
Data::Record::VswitchesItem vSwitchesObject;
|
||||
if(!dataNodeRecordsrecordVSwitchesvswitchesItem["ZoneId"].isNull())
|
||||
vSwitchesObject.zoneId = dataNodeRecordsrecordVSwitchesvswitchesItem["ZoneId"].asString();
|
||||
if(!dataNodeRecordsrecordVSwitchesvswitchesItem["VSwitchId"].isNull())
|
||||
vSwitchesObject.vSwitchId = dataNodeRecordsrecordVSwitchesvswitchesItem["VSwitchId"].asString();
|
||||
recordObject.vSwitches.push_back(vSwitchesObject);
|
||||
}
|
||||
data_.records.push_back(recordObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListClustersResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListClustersResult::Data ListClustersResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListClustersResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListClustersResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
schedulerx3/src/model/ListExecutorsRequest.cc
Normal file
72
schedulerx3/src/model/ListExecutorsRequest.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/ListExecutorsRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::ListExecutorsRequest;
|
||||
|
||||
ListExecutorsRequest::ListExecutorsRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "ListExecutors") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListExecutorsRequest::~ListExecutorsRequest() {}
|
||||
|
||||
std::string ListExecutorsRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void ListExecutorsRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
long ListExecutorsRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void ListExecutorsRequest::setJobId(long jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), std::to_string(jobId));
|
||||
}
|
||||
|
||||
std::string ListExecutorsRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ListExecutorsRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string ListExecutorsRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListExecutorsRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string ListExecutorsRequest::getLabel() const {
|
||||
return label_;
|
||||
}
|
||||
|
||||
void ListExecutorsRequest::setLabel(const std::string &label) {
|
||||
label_ = label;
|
||||
setParameter(std::string("Label"), label);
|
||||
}
|
||||
|
||||
90
schedulerx3/src/model/ListExecutorsResult.cc
Normal file
90
schedulerx3/src/model/ListExecutorsResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/ListExecutorsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
ListExecutorsResult::ListExecutorsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListExecutorsResult::ListExecutorsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListExecutorsResult::~ListExecutorsResult()
|
||||
{}
|
||||
|
||||
void ListExecutorsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["dataItem"];
|
||||
for (auto valueDatadataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDatadataItem["Address"].isNull())
|
||||
dataObject.address = valueDatadataItem["Address"].asString();
|
||||
if(!valueDatadataItem["Ip"].isNull())
|
||||
dataObject.ip = valueDatadataItem["Ip"].asString();
|
||||
if(!valueDatadataItem["Port"].isNull())
|
||||
dataObject.port = std::stoi(valueDatadataItem["Port"].asString());
|
||||
if(!valueDatadataItem["Label"].isNull())
|
||||
dataObject.label = valueDatadataItem["Label"].asString();
|
||||
if(!valueDatadataItem["Version"].isNull())
|
||||
dataObject.version = valueDatadataItem["Version"].asString();
|
||||
if(!valueDatadataItem["Online"].isNull())
|
||||
dataObject.online = valueDatadataItem["Online"].asString() == "true";
|
||||
if(!valueDatadataItem["IsDesignated"].isNull())
|
||||
dataObject.isDesignated = valueDatadataItem["IsDesignated"].asString() == "true";
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListExecutorsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ListExecutorsResult::DataItem> ListExecutorsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListExecutorsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListExecutorsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
126
schedulerx3/src/model/ListJobExecutionsRequest.cc
Normal file
126
schedulerx3/src/model/ListJobExecutionsRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/ListJobExecutionsRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::ListJobExecutionsRequest;
|
||||
|
||||
ListJobExecutionsRequest::ListJobExecutionsRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "ListJobExecutions") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListJobExecutionsRequest::~ListJobExecutionsRequest() {}
|
||||
|
||||
std::string ListJobExecutionsRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void ListJobExecutionsRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
std::string ListJobExecutionsRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListJobExecutionsRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
int ListJobExecutionsRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListJobExecutionsRequest::setPageNum(int pageNum) {
|
||||
pageNum_ = pageNum;
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
long ListJobExecutionsRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void ListJobExecutionsRequest::setJobId(long jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), std::to_string(jobId));
|
||||
}
|
||||
|
||||
std::string ListJobExecutionsRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ListJobExecutionsRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
int ListJobExecutionsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListJobExecutionsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListJobExecutionsRequest::getJobName() const {
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void ListJobExecutionsRequest::setJobName(const std::string &jobName) {
|
||||
jobName_ = jobName;
|
||||
setParameter(std::string("JobName"), jobName);
|
||||
}
|
||||
|
||||
std::string ListJobExecutionsRequest::getJobExecutionId() const {
|
||||
return jobExecutionId_;
|
||||
}
|
||||
|
||||
void ListJobExecutionsRequest::setJobExecutionId(const std::string &jobExecutionId) {
|
||||
jobExecutionId_ = jobExecutionId;
|
||||
setParameter(std::string("JobExecutionId"), jobExecutionId);
|
||||
}
|
||||
|
||||
std::string ListJobExecutionsRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListJobExecutionsRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
std::string ListJobExecutionsRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListJobExecutionsRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
int ListJobExecutionsRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListJobExecutionsRequest::setStatus(int status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), std::to_string(status));
|
||||
}
|
||||
|
||||
123
schedulerx3/src/model/ListJobExecutionsResult.cc
Normal file
123
schedulerx3/src/model/ListJobExecutionsResult.cc
Normal file
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/ListJobExecutionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
ListJobExecutionsResult::ListJobExecutionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListJobExecutionsResult::ListJobExecutionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListJobExecutionsResult::~ListJobExecutionsResult()
|
||||
{}
|
||||
|
||||
void ListJobExecutionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allRecordsNode = dataNode["Records"]["record"];
|
||||
for (auto dataNodeRecordsrecord : allRecordsNode)
|
||||
{
|
||||
Data::Record recordObject;
|
||||
if(!dataNodeRecordsrecord["JobExecutionId"].isNull())
|
||||
recordObject.jobExecutionId = dataNodeRecordsrecord["JobExecutionId"].asString();
|
||||
if(!dataNodeRecordsrecord["JobId"].isNull())
|
||||
recordObject.jobId = std::stol(dataNodeRecordsrecord["JobId"].asString());
|
||||
if(!dataNodeRecordsrecord["JobName"].isNull())
|
||||
recordObject.jobName = dataNodeRecordsrecord["JobName"].asString();
|
||||
if(!dataNodeRecordsrecord["JobType"].isNull())
|
||||
recordObject.jobType = dataNodeRecordsrecord["JobType"].asString();
|
||||
if(!dataNodeRecordsrecord["Parameters"].isNull())
|
||||
recordObject.parameters = dataNodeRecordsrecord["Parameters"].asString();
|
||||
if(!dataNodeRecordsrecord["ScheduleTime"].isNull())
|
||||
recordObject.scheduleTime = dataNodeRecordsrecord["ScheduleTime"].asString();
|
||||
if(!dataNodeRecordsrecord["DataTime"].isNull())
|
||||
recordObject.dataTime = dataNodeRecordsrecord["DataTime"].asString();
|
||||
if(!dataNodeRecordsrecord["StartTime"].isNull())
|
||||
recordObject.startTime = dataNodeRecordsrecord["StartTime"].asString();
|
||||
if(!dataNodeRecordsrecord["EndTime"].isNull())
|
||||
recordObject.endTime = dataNodeRecordsrecord["EndTime"].asString();
|
||||
if(!dataNodeRecordsrecord["Duration"].isNull())
|
||||
recordObject.duration = std::stol(dataNodeRecordsrecord["Duration"].asString());
|
||||
if(!dataNodeRecordsrecord["Executor"].isNull())
|
||||
recordObject.executor = dataNodeRecordsrecord["Executor"].asString();
|
||||
if(!dataNodeRecordsrecord["Result"].isNull())
|
||||
recordObject.result = dataNodeRecordsrecord["Result"].asString();
|
||||
if(!dataNodeRecordsrecord["Status"].isNull())
|
||||
recordObject.status = std::stoi(dataNodeRecordsrecord["Status"].asString());
|
||||
if(!dataNodeRecordsrecord["TimeType"].isNull())
|
||||
recordObject.timeType = std::stoi(dataNodeRecordsrecord["TimeType"].asString());
|
||||
if(!dataNodeRecordsrecord["Attempt"].isNull())
|
||||
recordObject.attempt = std::stoi(dataNodeRecordsrecord["Attempt"].asString());
|
||||
if(!dataNodeRecordsrecord["WorkAddr"].isNull())
|
||||
recordObject.workAddr = dataNodeRecordsrecord["WorkAddr"].asString();
|
||||
if(!dataNodeRecordsrecord["AppName"].isNull())
|
||||
recordObject.appName = dataNodeRecordsrecord["AppName"].asString();
|
||||
if(!dataNodeRecordsrecord["RouteStrategy"].isNull())
|
||||
recordObject.routeStrategy = std::stoi(dataNodeRecordsrecord["RouteStrategy"].asString());
|
||||
if(!dataNodeRecordsrecord["ServerIp"].isNull())
|
||||
recordObject.serverIp = dataNodeRecordsrecord["ServerIp"].asString();
|
||||
if(!dataNodeRecordsrecord["TriggerType"].isNull())
|
||||
recordObject.triggerType = std::stoi(dataNodeRecordsrecord["TriggerType"].asString());
|
||||
data_.records.push_back(recordObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListJobExecutionsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListJobExecutionsResult::Data ListJobExecutionsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListJobExecutionsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListJobExecutionsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
117
schedulerx3/src/model/ListJobsRequest.cc
Normal file
117
schedulerx3/src/model/ListJobsRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/ListJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::ListJobsRequest;
|
||||
|
||||
ListJobsRequest::ListJobsRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "ListJobs") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListJobsRequest::~ListJobsRequest() {}
|
||||
|
||||
std::string ListJobsRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
std::string ListJobsRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
int ListJobsRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setPageNum(int pageNum) {
|
||||
pageNum_ = pageNum;
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
long ListJobsRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setJobId(long jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), std::to_string(jobId));
|
||||
}
|
||||
|
||||
std::string ListJobsRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
int ListJobsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListJobsRequest::getJobName() const {
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setJobName(const std::string &jobName) {
|
||||
jobName_ = jobName;
|
||||
setParameter(std::string("JobName"), jobName);
|
||||
}
|
||||
|
||||
std::string ListJobsRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string ListJobsRequest::getJobHandler() const {
|
||||
return jobHandler_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setJobHandler(const std::string &jobHandler) {
|
||||
jobHandler_ = jobHandler;
|
||||
setParameter(std::string("JobHandler"), jobHandler);
|
||||
}
|
||||
|
||||
std::string ListJobsRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
143
schedulerx3/src/model/ListJobsResult.cc
Normal file
143
schedulerx3/src/model/ListJobsResult.cc
Normal file
@@ -0,0 +1,143 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/ListJobsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
ListJobsResult::ListJobsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListJobsResult::ListJobsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListJobsResult::~ListJobsResult()
|
||||
{}
|
||||
|
||||
void ListJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allRecordsNode = dataNode["Records"]["Record"];
|
||||
for (auto dataNodeRecordsRecord : allRecordsNode)
|
||||
{
|
||||
Data::Record recordObject;
|
||||
if(!dataNodeRecordsRecord["JobId"].isNull())
|
||||
recordObject.jobId = std::stol(dataNodeRecordsRecord["JobId"].asString());
|
||||
if(!dataNodeRecordsRecord["Name"].isNull())
|
||||
recordObject.name = dataNodeRecordsRecord["Name"].asString();
|
||||
if(!dataNodeRecordsRecord["Description"].isNull())
|
||||
recordObject.description = dataNodeRecordsRecord["Description"].asString();
|
||||
if(!dataNodeRecordsRecord["JobType"].isNull())
|
||||
recordObject.jobType = dataNodeRecordsRecord["JobType"].asString();
|
||||
if(!dataNodeRecordsRecord["Status"].isNull())
|
||||
recordObject.status = std::stoi(dataNodeRecordsRecord["Status"].asString());
|
||||
if(!dataNodeRecordsRecord["Parameters"].isNull())
|
||||
recordObject.parameters = dataNodeRecordsRecord["Parameters"].asString();
|
||||
if(!dataNodeRecordsRecord["MaxConcurrency"].isNull())
|
||||
recordObject.maxConcurrency = std::stoi(dataNodeRecordsRecord["MaxConcurrency"].asString());
|
||||
if(!dataNodeRecordsRecord["MaxAttempt"].isNull())
|
||||
recordObject.maxAttempt = std::stoi(dataNodeRecordsRecord["MaxAttempt"].asString());
|
||||
if(!dataNodeRecordsRecord["AttemptInterval"].isNull())
|
||||
recordObject.attemptInterval = std::stoi(dataNodeRecordsRecord["AttemptInterval"].asString());
|
||||
if(!dataNodeRecordsRecord["JobHandler"].isNull())
|
||||
recordObject.jobHandler = dataNodeRecordsRecord["JobHandler"].asString();
|
||||
if(!dataNodeRecordsRecord["Priority"].isNull())
|
||||
recordObject.priority = std::stoi(dataNodeRecordsRecord["Priority"].asString());
|
||||
if(!dataNodeRecordsRecord["TimeType"].isNull())
|
||||
recordObject.timeType = std::stoi(dataNodeRecordsRecord["TimeType"].asString());
|
||||
if(!dataNodeRecordsRecord["TimeExpression"].isNull())
|
||||
recordObject.timeExpression = dataNodeRecordsRecord["TimeExpression"].asString();
|
||||
if(!dataNodeRecordsRecord["TimeZone"].isNull())
|
||||
recordObject.timeZone = dataNodeRecordsRecord["TimeZone"].asString();
|
||||
if(!dataNodeRecordsRecord["Calendar"].isNull())
|
||||
recordObject.calendar = dataNodeRecordsRecord["Calendar"].asString();
|
||||
if(!dataNodeRecordsRecord["DataOffset"].isNull())
|
||||
recordObject.dataOffset = std::stoi(dataNodeRecordsRecord["DataOffset"].asString());
|
||||
if(!dataNodeRecordsRecord["CleanMode"].isNull())
|
||||
recordObject.cleanMode = dataNodeRecordsRecord["CleanMode"].asString();
|
||||
if(!dataNodeRecordsRecord["Creator"].isNull())
|
||||
recordObject.creator = dataNodeRecordsRecord["Creator"].asString();
|
||||
if(!dataNodeRecordsRecord["Updater"].isNull())
|
||||
recordObject.updater = dataNodeRecordsRecord["Updater"].asString();
|
||||
if(!dataNodeRecordsRecord["Xattrs"].isNull())
|
||||
recordObject.xattrs = dataNodeRecordsRecord["Xattrs"].asString();
|
||||
if(!dataNodeRecordsRecord["NoticeConfig"].isNull())
|
||||
recordObject.noticeConfig = dataNodeRecordsRecord["NoticeConfig"].asString();
|
||||
if(!dataNodeRecordsRecord["NoticeContacts"].isNull())
|
||||
recordObject.noticeContacts = dataNodeRecordsRecord["NoticeContacts"].asString();
|
||||
if(!dataNodeRecordsRecord["RouteStrategy"].isNull())
|
||||
recordObject.routeStrategy = std::stoi(dataNodeRecordsRecord["RouteStrategy"].asString());
|
||||
if(!dataNodeRecordsRecord["AppName"].isNull())
|
||||
recordObject.appName = dataNodeRecordsRecord["AppName"].asString();
|
||||
if(!dataNodeRecordsRecord["StartTime"].isNull())
|
||||
recordObject.startTime = std::stol(dataNodeRecordsRecord["StartTime"].asString());
|
||||
if(!dataNodeRecordsRecord["Timezone"].isNull())
|
||||
recordObject.timezone = dataNodeRecordsRecord["Timezone"].asString();
|
||||
if(!dataNodeRecordsRecord["ExecutorBlockStrategy"].isNull())
|
||||
recordObject.executorBlockStrategy = dataNodeRecordsRecord["ExecutorBlockStrategy"].asString();
|
||||
if(!dataNodeRecordsRecord["LastExecuteEndTime"].isNull())
|
||||
recordObject.lastExecuteEndTime = dataNodeRecordsRecord["LastExecuteEndTime"].asString();
|
||||
if(!dataNodeRecordsRecord["LastExecuteStatus"].isNull())
|
||||
recordObject.lastExecuteStatus = std::stoi(dataNodeRecordsRecord["LastExecuteStatus"].asString());
|
||||
if(!dataNodeRecordsRecord["CurrentExecuteStatus"].isNull())
|
||||
recordObject.currentExecuteStatus = std::stoi(dataNodeRecordsRecord["CurrentExecuteStatus"].asString());
|
||||
data_.records.push_back(recordObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListJobsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListJobsResult::Data ListJobsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListJobsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListJobsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
schedulerx3/src/model/ListLablesRequest.cc
Normal file
63
schedulerx3/src/model/ListLablesRequest.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/ListLablesRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::ListLablesRequest;
|
||||
|
||||
ListLablesRequest::ListLablesRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "ListLables") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListLablesRequest::~ListLablesRequest() {}
|
||||
|
||||
std::string ListLablesRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void ListLablesRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
std::string ListLablesRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListLablesRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
long ListLablesRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void ListLablesRequest::setJobId(long jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), std::to_string(jobId));
|
||||
}
|
||||
|
||||
std::string ListLablesRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ListLablesRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
84
schedulerx3/src/model/ListLablesResult.cc
Normal file
84
schedulerx3/src/model/ListLablesResult.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/ListLablesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
ListLablesResult::ListLablesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListLablesResult::ListLablesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListLablesResult::~ListLablesResult()
|
||||
{}
|
||||
|
||||
void ListLablesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["dataItem"];
|
||||
for (auto valueDatadataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDatadataItem["Label"].isNull())
|
||||
dataObject.label = valueDatadataItem["Label"].asString();
|
||||
if(!valueDatadataItem["Online"].isNull())
|
||||
dataObject.online = valueDatadataItem["Online"].asString() == "true";
|
||||
if(!valueDatadataItem["Size"].isNull())
|
||||
dataObject.size = std::stoi(valueDatadataItem["Size"].asString());
|
||||
if(!valueDatadataItem["IsDesignated"].isNull())
|
||||
dataObject.isDesignated = valueDatadataItem["IsDesignated"].asString() == "true";
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListLablesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ListLablesResult::DataItem> ListLablesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListLablesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListLablesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
36
schedulerx3/src/model/ListRegionZoneRequest.cc
Normal file
36
schedulerx3/src/model/ListRegionZoneRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/ListRegionZoneRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::ListRegionZoneRequest;
|
||||
|
||||
ListRegionZoneRequest::ListRegionZoneRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "ListRegionZone") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListRegionZoneRequest::~ListRegionZoneRequest() {}
|
||||
|
||||
std::string ListRegionZoneRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void ListRegionZoneRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
87
schedulerx3/src/model/ListRegionZoneResult.cc
Normal file
87
schedulerx3/src/model/ListRegionZoneResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/ListRegionZoneResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
ListRegionZoneResult::ListRegionZoneResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListRegionZoneResult::ListRegionZoneResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListRegionZoneResult::~ListRegionZoneResult()
|
||||
{}
|
||||
|
||||
void ListRegionZoneResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["dataItem"];
|
||||
for (auto valueDatadataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDatadataItem["ZoneId"].isNull())
|
||||
dataObject.zoneId = valueDatadataItem["ZoneId"].asString();
|
||||
if(!valueDatadataItem["LocalName"].isNull())
|
||||
dataObject.localName = valueDatadataItem["LocalName"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListRegionZoneResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ListRegionZoneResult::DataItem> ListRegionZoneResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListRegionZoneResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
int ListRegionZoneResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListRegionZoneResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
36
schedulerx3/src/model/ListRegionsRequest.cc
Normal file
36
schedulerx3/src/model/ListRegionsRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/ListRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::ListRegionsRequest;
|
||||
|
||||
ListRegionsRequest::ListRegionsRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "ListRegions") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListRegionsRequest::~ListRegionsRequest() {}
|
||||
|
||||
std::string ListRegionsRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void ListRegionsRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
82
schedulerx3/src/model/ListRegionsResult.cc
Normal file
82
schedulerx3/src/model/ListRegionsResult.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/ListRegionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
ListRegionsResult::ListRegionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListRegionsResult::ListRegionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListRegionsResult::~ListRegionsResult()
|
||||
{}
|
||||
|
||||
void ListRegionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionsNode = value["Regions"]["Region"];
|
||||
for (auto valueRegionsRegion : allRegionsNode)
|
||||
{
|
||||
Region regionsObject;
|
||||
if(!valueRegionsRegion["RegionEndpoint"].isNull())
|
||||
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
|
||||
if(!valueRegionsRegion["LocalName"].isNull())
|
||||
regionsObject.localName = valueRegionsRegion["LocalName"].asString();
|
||||
if(!valueRegionsRegion["RegionId"].isNull())
|
||||
regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListRegionsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ListRegionsResult::Region> ListRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
int ListRegionsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListRegionsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
135
schedulerx3/src/model/ListScheduleEventRequest.cc
Normal file
135
schedulerx3/src/model/ListScheduleEventRequest.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/ListScheduleEventRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::ListScheduleEventRequest;
|
||||
|
||||
ListScheduleEventRequest::ListScheduleEventRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "ListScheduleEvent") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListScheduleEventRequest::~ListScheduleEventRequest() {}
|
||||
|
||||
std::string ListScheduleEventRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void ListScheduleEventRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
long ListScheduleEventRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListScheduleEventRequest::setStartTime(long startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
int ListScheduleEventRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListScheduleEventRequest::setPageNum(int pageNum) {
|
||||
pageNum_ = pageNum;
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string ListScheduleEventRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ListScheduleEventRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
int ListScheduleEventRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListScheduleEventRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListScheduleEventRequest::getEvent() const {
|
||||
return event_;
|
||||
}
|
||||
|
||||
void ListScheduleEventRequest::setEvent(const std::string &event) {
|
||||
event_ = event;
|
||||
setParameter(std::string("Event"), event);
|
||||
}
|
||||
|
||||
std::string ListScheduleEventRequest::getKeyword() const {
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
void ListScheduleEventRequest::setKeyword(const std::string &keyword) {
|
||||
keyword_ = keyword;
|
||||
setParameter(std::string("Keyword"), keyword);
|
||||
}
|
||||
|
||||
std::string ListScheduleEventRequest::getJobName() const {
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void ListScheduleEventRequest::setJobName(const std::string &jobName) {
|
||||
jobName_ = jobName;
|
||||
setParameter(std::string("JobName"), jobName);
|
||||
}
|
||||
|
||||
std::string ListScheduleEventRequest::getJobExecutionId() const {
|
||||
return jobExecutionId_;
|
||||
}
|
||||
|
||||
void ListScheduleEventRequest::setJobExecutionId(const std::string &jobExecutionId) {
|
||||
jobExecutionId_ = jobExecutionId;
|
||||
setParameter(std::string("JobExecutionId"), jobExecutionId);
|
||||
}
|
||||
|
||||
long ListScheduleEventRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListScheduleEventRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string ListScheduleEventRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListScheduleEventRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
bool ListScheduleEventRequest::getReverse() const {
|
||||
return reverse_;
|
||||
}
|
||||
|
||||
void ListScheduleEventRequest::setReverse(bool reverse) {
|
||||
reverse_ = reverse;
|
||||
setParameter(std::string("Reverse"), reverse ? "true" : "false");
|
||||
}
|
||||
|
||||
97
schedulerx3/src/model/ListScheduleEventResult.cc
Normal file
97
schedulerx3/src/model/ListScheduleEventResult.cc
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/ListScheduleEventResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
ListScheduleEventResult::ListScheduleEventResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListScheduleEventResult::ListScheduleEventResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListScheduleEventResult::~ListScheduleEventResult()
|
||||
{}
|
||||
|
||||
void ListScheduleEventResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stol(dataNode["Total"].asString());
|
||||
auto allRecordsNode = dataNode["Records"]["record"];
|
||||
for (auto dataNodeRecordsrecord : allRecordsNode)
|
||||
{
|
||||
Data::Record recordObject;
|
||||
if(!dataNodeRecordsrecord["AppName"].isNull())
|
||||
recordObject.appName = dataNodeRecordsrecord["AppName"].asString();
|
||||
if(!dataNodeRecordsrecord["JobName"].isNull())
|
||||
recordObject.jobName = dataNodeRecordsrecord["JobName"].asString();
|
||||
if(!dataNodeRecordsrecord["JobExecutionId"].isNull())
|
||||
recordObject.jobExecutionId = dataNodeRecordsrecord["JobExecutionId"].asString();
|
||||
if(!dataNodeRecordsrecord["Event"].isNull())
|
||||
recordObject.event = dataNodeRecordsrecord["Event"].asString();
|
||||
if(!dataNodeRecordsrecord["WorkerAddr"].isNull())
|
||||
recordObject.workerAddr = dataNodeRecordsrecord["WorkerAddr"].asString();
|
||||
if(!dataNodeRecordsrecord["Content"].isNull())
|
||||
recordObject.content = dataNodeRecordsrecord["Content"].asString();
|
||||
if(!dataNodeRecordsrecord["Time"].isNull())
|
||||
recordObject.time = dataNodeRecordsrecord["Time"].asString();
|
||||
data_.records.push_back(recordObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListScheduleEventResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListScheduleEventResult::Data ListScheduleEventResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListScheduleEventResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListScheduleEventResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
90
schedulerx3/src/model/ListScheduleTimesRequest.cc
Normal file
90
schedulerx3/src/model/ListScheduleTimesRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/ListScheduleTimesRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::ListScheduleTimesRequest;
|
||||
|
||||
ListScheduleTimesRequest::ListScheduleTimesRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "ListScheduleTimes") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListScheduleTimesRequest::~ListScheduleTimesRequest() {}
|
||||
|
||||
std::string ListScheduleTimesRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void ListScheduleTimesRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
std::string ListScheduleTimesRequest::getTimeZone() const {
|
||||
return timeZone_;
|
||||
}
|
||||
|
||||
void ListScheduleTimesRequest::setTimeZone(const std::string &timeZone) {
|
||||
timeZone_ = timeZone;
|
||||
setParameter(std::string("TimeZone"), timeZone);
|
||||
}
|
||||
|
||||
std::string ListScheduleTimesRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ListScheduleTimesRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string ListScheduleTimesRequest::getCalendar() const {
|
||||
return calendar_;
|
||||
}
|
||||
|
||||
void ListScheduleTimesRequest::setCalendar(const std::string &calendar) {
|
||||
calendar_ = calendar;
|
||||
setParameter(std::string("Calendar"), calendar);
|
||||
}
|
||||
|
||||
std::string ListScheduleTimesRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListScheduleTimesRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string ListScheduleTimesRequest::getTimeExpression() const {
|
||||
return timeExpression_;
|
||||
}
|
||||
|
||||
void ListScheduleTimesRequest::setTimeExpression(const std::string &timeExpression) {
|
||||
timeExpression_ = timeExpression;
|
||||
setParameter(std::string("TimeExpression"), timeExpression);
|
||||
}
|
||||
|
||||
int ListScheduleTimesRequest::getTimeType() const {
|
||||
return timeType_;
|
||||
}
|
||||
|
||||
void ListScheduleTimesRequest::setTimeType(int timeType) {
|
||||
timeType_ = timeType;
|
||||
setParameter(std::string("TimeType"), std::to_string(timeType));
|
||||
}
|
||||
|
||||
73
schedulerx3/src/model/ListScheduleTimesResult.cc
Normal file
73
schedulerx3/src/model/ListScheduleTimesResult.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/ListScheduleTimesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
ListScheduleTimesResult::ListScheduleTimesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListScheduleTimesResult::ListScheduleTimesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListScheduleTimesResult::~ListScheduleTimesResult()
|
||||
{}
|
||||
|
||||
void ListScheduleTimesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["data"];
|
||||
for (const auto &item : allData)
|
||||
data_.push_back(item.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListScheduleTimesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<std::string> ListScheduleTimesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListScheduleTimesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListScheduleTimesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
92
schedulerx3/src/model/OperateDesignateExecutorsRequest.cc
Normal file
92
schedulerx3/src/model/OperateDesignateExecutorsRequest.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/OperateDesignateExecutorsRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::OperateDesignateExecutorsRequest;
|
||||
|
||||
OperateDesignateExecutorsRequest::OperateDesignateExecutorsRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "OperateDesignateExecutors") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OperateDesignateExecutorsRequest::~OperateDesignateExecutorsRequest() {}
|
||||
|
||||
std::string OperateDesignateExecutorsRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void OperateDesignateExecutorsRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
bool OperateDesignateExecutorsRequest::getTransferable() const {
|
||||
return transferable_;
|
||||
}
|
||||
|
||||
void OperateDesignateExecutorsRequest::setTransferable(bool transferable) {
|
||||
transferable_ = transferable;
|
||||
setBodyParameter(std::string("Transferable"), transferable ? "true" : "false");
|
||||
}
|
||||
|
||||
int OperateDesignateExecutorsRequest::getDesignateType() const {
|
||||
return designateType_;
|
||||
}
|
||||
|
||||
void OperateDesignateExecutorsRequest::setDesignateType(int designateType) {
|
||||
designateType_ = designateType;
|
||||
setBodyParameter(std::string("DesignateType"), std::to_string(designateType));
|
||||
}
|
||||
|
||||
long OperateDesignateExecutorsRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void OperateDesignateExecutorsRequest::setJobId(long jobId) {
|
||||
jobId_ = jobId;
|
||||
setBodyParameter(std::string("JobId"), std::to_string(jobId));
|
||||
}
|
||||
|
||||
std::string OperateDesignateExecutorsRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void OperateDesignateExecutorsRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setBodyParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::vector<OperateDesignateExecutorsRequest::std::string> OperateDesignateExecutorsRequest::getAddressList() const {
|
||||
return addressList_;
|
||||
}
|
||||
|
||||
void OperateDesignateExecutorsRequest::setAddressList(const std::vector<OperateDesignateExecutorsRequest::std::string> &addressList) {
|
||||
addressList_ = addressList;
|
||||
for(int dep1 = 0; dep1 != addressList.size(); dep1++) {
|
||||
setBodyParameter(std::string("AddressList") + "." + std::to_string(dep1 + 1), addressList[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string OperateDesignateExecutorsRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void OperateDesignateExecutorsRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setBodyParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
65
schedulerx3/src/model/OperateDesignateExecutorsResult.cc
Normal file
65
schedulerx3/src/model/OperateDesignateExecutorsResult.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/OperateDesignateExecutorsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
OperateDesignateExecutorsResult::OperateDesignateExecutorsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OperateDesignateExecutorsResult::OperateDesignateExecutorsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OperateDesignateExecutorsResult::~OperateDesignateExecutorsResult()
|
||||
{}
|
||||
|
||||
void OperateDesignateExecutorsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string OperateDesignateExecutorsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int OperateDesignateExecutorsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool OperateDesignateExecutorsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
65
schedulerx3/src/model/OperateDisableJobsRequest.cc
Normal file
65
schedulerx3/src/model/OperateDisableJobsRequest.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/OperateDisableJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::OperateDisableJobsRequest;
|
||||
|
||||
OperateDisableJobsRequest::OperateDisableJobsRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "OperateDisableJobs") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OperateDisableJobsRequest::~OperateDisableJobsRequest() {}
|
||||
|
||||
std::string OperateDisableJobsRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void OperateDisableJobsRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
std::string OperateDisableJobsRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void OperateDisableJobsRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setBodyParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string OperateDisableJobsRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void OperateDisableJobsRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setBodyParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::vector<OperateDisableJobsRequest::long> OperateDisableJobsRequest::getJobIds() const {
|
||||
return jobIds_;
|
||||
}
|
||||
|
||||
void OperateDisableJobsRequest::setJobIds(const std::vector<OperateDisableJobsRequest::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/OperateDisableJobsResult.cc
Normal file
65
schedulerx3/src/model/OperateDisableJobsResult.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/OperateDisableJobsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
OperateDisableJobsResult::OperateDisableJobsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OperateDisableJobsResult::OperateDisableJobsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OperateDisableJobsResult::~OperateDisableJobsResult()
|
||||
{}
|
||||
|
||||
void OperateDisableJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string OperateDisableJobsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int OperateDisableJobsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool OperateDisableJobsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
65
schedulerx3/src/model/OperateEnableJobsRequest.cc
Normal file
65
schedulerx3/src/model/OperateEnableJobsRequest.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/OperateEnableJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::OperateEnableJobsRequest;
|
||||
|
||||
OperateEnableJobsRequest::OperateEnableJobsRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "OperateEnableJobs") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OperateEnableJobsRequest::~OperateEnableJobsRequest() {}
|
||||
|
||||
std::string OperateEnableJobsRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void OperateEnableJobsRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
std::string OperateEnableJobsRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void OperateEnableJobsRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setBodyParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string OperateEnableJobsRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void OperateEnableJobsRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setBodyParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::vector<OperateEnableJobsRequest::long> OperateEnableJobsRequest::getJobIds() const {
|
||||
return jobIds_;
|
||||
}
|
||||
|
||||
void OperateEnableJobsRequest::setJobIds(const std::vector<OperateEnableJobsRequest::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/OperateEnableJobsResult.cc
Normal file
65
schedulerx3/src/model/OperateEnableJobsResult.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/OperateEnableJobsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
OperateEnableJobsResult::OperateEnableJobsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OperateEnableJobsResult::OperateEnableJobsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OperateEnableJobsResult::~OperateEnableJobsResult()
|
||||
{}
|
||||
|
||||
void OperateEnableJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string OperateEnableJobsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int OperateEnableJobsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool OperateEnableJobsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
90
schedulerx3/src/model/OperateExecuteJobRequest.cc
Normal file
90
schedulerx3/src/model/OperateExecuteJobRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/OperateExecuteJobRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::OperateExecuteJobRequest;
|
||||
|
||||
OperateExecuteJobRequest::OperateExecuteJobRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "OperateExecuteJob") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OperateExecuteJobRequest::~OperateExecuteJobRequest() {}
|
||||
|
||||
std::string OperateExecuteJobRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void OperateExecuteJobRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
long OperateExecuteJobRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void OperateExecuteJobRequest::setJobId(long jobId) {
|
||||
jobId_ = jobId;
|
||||
setBodyParameter(std::string("JobId"), std::to_string(jobId));
|
||||
}
|
||||
|
||||
std::string OperateExecuteJobRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void OperateExecuteJobRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setBodyParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string OperateExecuteJobRequest::getWorker() const {
|
||||
return worker_;
|
||||
}
|
||||
|
||||
void OperateExecuteJobRequest::setWorker(const std::string &worker) {
|
||||
worker_ = worker;
|
||||
setBodyParameter(std::string("Worker"), worker);
|
||||
}
|
||||
|
||||
std::string OperateExecuteJobRequest::getInstanceParameters() const {
|
||||
return instanceParameters_;
|
||||
}
|
||||
|
||||
void OperateExecuteJobRequest::setInstanceParameters(const std::string &instanceParameters) {
|
||||
instanceParameters_ = instanceParameters;
|
||||
setBodyParameter(std::string("InstanceParameters"), instanceParameters);
|
||||
}
|
||||
|
||||
std::string OperateExecuteJobRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void OperateExecuteJobRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setBodyParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string OperateExecuteJobRequest::getLabel() const {
|
||||
return label_;
|
||||
}
|
||||
|
||||
void OperateExecuteJobRequest::setLabel(const std::string &label) {
|
||||
label_ = label;
|
||||
setBodyParameter(std::string("Label"), label);
|
||||
}
|
||||
|
||||
73
schedulerx3/src/model/OperateExecuteJobResult.cc
Normal file
73
schedulerx3/src/model/OperateExecuteJobResult.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/OperateExecuteJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
OperateExecuteJobResult::OperateExecuteJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OperateExecuteJobResult::OperateExecuteJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OperateExecuteJobResult::~OperateExecuteJobResult()
|
||||
{}
|
||||
|
||||
void OperateExecuteJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["JobExecutionId"].isNull())
|
||||
data_.jobExecutionId = dataNode["JobExecutionId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string OperateExecuteJobResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
OperateExecuteJobResult::Data OperateExecuteJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int OperateExecuteJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool OperateExecuteJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
90
schedulerx3/src/model/OperateRerunJobRequest.cc
Normal file
90
schedulerx3/src/model/OperateRerunJobRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/OperateRerunJobRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::OperateRerunJobRequest;
|
||||
|
||||
OperateRerunJobRequest::OperateRerunJobRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "OperateRerunJob") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OperateRerunJobRequest::~OperateRerunJobRequest() {}
|
||||
|
||||
std::string OperateRerunJobRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void OperateRerunJobRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
std::string OperateRerunJobRequest::getDataTime() const {
|
||||
return dataTime_;
|
||||
}
|
||||
|
||||
void OperateRerunJobRequest::setDataTime(const std::string &dataTime) {
|
||||
dataTime_ = dataTime;
|
||||
setParameter(std::string("DataTime"), dataTime);
|
||||
}
|
||||
|
||||
long OperateRerunJobRequest::getStartDate() const {
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void OperateRerunJobRequest::setStartDate(long startDate) {
|
||||
startDate_ = startDate;
|
||||
setParameter(std::string("StartDate"), std::to_string(startDate));
|
||||
}
|
||||
|
||||
long OperateRerunJobRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void OperateRerunJobRequest::setJobId(long jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), std::to_string(jobId));
|
||||
}
|
||||
|
||||
std::string OperateRerunJobRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void OperateRerunJobRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string OperateRerunJobRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void OperateRerunJobRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
long OperateRerunJobRequest::getEndDate() const {
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void OperateRerunJobRequest::setEndDate(long endDate) {
|
||||
endDate_ = endDate;
|
||||
setParameter(std::string("EndDate"), std::to_string(endDate));
|
||||
}
|
||||
|
||||
65
schedulerx3/src/model/OperateRerunJobResult.cc
Normal file
65
schedulerx3/src/model/OperateRerunJobResult.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/OperateRerunJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
OperateRerunJobResult::OperateRerunJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OperateRerunJobResult::OperateRerunJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OperateRerunJobResult::~OperateRerunJobResult()
|
||||
{}
|
||||
|
||||
void OperateRerunJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string OperateRerunJobResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int OperateRerunJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool OperateRerunJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
83
schedulerx3/src/model/OperateRetryJobExecutionRequest.cc
Normal file
83
schedulerx3/src/model/OperateRetryJobExecutionRequest.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/OperateRetryJobExecutionRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::OperateRetryJobExecutionRequest;
|
||||
|
||||
OperateRetryJobExecutionRequest::OperateRetryJobExecutionRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "OperateRetryJobExecution") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OperateRetryJobExecutionRequest::~OperateRetryJobExecutionRequest() {}
|
||||
|
||||
std::string OperateRetryJobExecutionRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void OperateRetryJobExecutionRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
long OperateRetryJobExecutionRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void OperateRetryJobExecutionRequest::setJobId(long jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), std::to_string(jobId));
|
||||
}
|
||||
|
||||
std::string OperateRetryJobExecutionRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void OperateRetryJobExecutionRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string OperateRetryJobExecutionRequest::getJobExecutionId() const {
|
||||
return jobExecutionId_;
|
||||
}
|
||||
|
||||
void OperateRetryJobExecutionRequest::setJobExecutionId(const std::string &jobExecutionId) {
|
||||
jobExecutionId_ = jobExecutionId;
|
||||
setParameter(std::string("JobExecutionId"), jobExecutionId);
|
||||
}
|
||||
|
||||
std::string OperateRetryJobExecutionRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void OperateRetryJobExecutionRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::vector<OperateRetryJobExecutionRequest::std::string> OperateRetryJobExecutionRequest::getTaskList() const {
|
||||
return taskList_;
|
||||
}
|
||||
|
||||
void OperateRetryJobExecutionRequest::setTaskList(const std::vector<OperateRetryJobExecutionRequest::std::string> &taskList) {
|
||||
taskList_ = taskList;
|
||||
for(int dep1 = 0; dep1 != taskList.size(); dep1++) {
|
||||
setParameter(std::string("TaskList") + "." + std::to_string(dep1 + 1), taskList[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
65
schedulerx3/src/model/OperateRetryJobExecutionResult.cc
Normal file
65
schedulerx3/src/model/OperateRetryJobExecutionResult.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/OperateRetryJobExecutionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
OperateRetryJobExecutionResult::OperateRetryJobExecutionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OperateRetryJobExecutionResult::OperateRetryJobExecutionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OperateRetryJobExecutionResult::~OperateRetryJobExecutionResult()
|
||||
{}
|
||||
|
||||
void OperateRetryJobExecutionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string OperateRetryJobExecutionResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int OperateRetryJobExecutionResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool OperateRetryJobExecutionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
83
schedulerx3/src/model/OperateStopJobExecutionRequest.cc
Normal file
83
schedulerx3/src/model/OperateStopJobExecutionRequest.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/OperateStopJobExecutionRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::OperateStopJobExecutionRequest;
|
||||
|
||||
OperateStopJobExecutionRequest::OperateStopJobExecutionRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "OperateStopJobExecution") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OperateStopJobExecutionRequest::~OperateStopJobExecutionRequest() {}
|
||||
|
||||
std::string OperateStopJobExecutionRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void OperateStopJobExecutionRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
long OperateStopJobExecutionRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void OperateStopJobExecutionRequest::setJobId(long jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), std::to_string(jobId));
|
||||
}
|
||||
|
||||
std::string OperateStopJobExecutionRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void OperateStopJobExecutionRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string OperateStopJobExecutionRequest::getJobExecutionId() const {
|
||||
return jobExecutionId_;
|
||||
}
|
||||
|
||||
void OperateStopJobExecutionRequest::setJobExecutionId(const std::string &jobExecutionId) {
|
||||
jobExecutionId_ = jobExecutionId;
|
||||
setParameter(std::string("JobExecutionId"), jobExecutionId);
|
||||
}
|
||||
|
||||
std::string OperateStopJobExecutionRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void OperateStopJobExecutionRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::vector<OperateStopJobExecutionRequest::std::string> OperateStopJobExecutionRequest::getTaskList() const {
|
||||
return taskList_;
|
||||
}
|
||||
|
||||
void OperateStopJobExecutionRequest::setTaskList(const std::vector<OperateStopJobExecutionRequest::std::string> &taskList) {
|
||||
taskList_ = taskList;
|
||||
for(int dep1 = 0; dep1 != taskList.size(); dep1++) {
|
||||
setParameter(std::string("TaskList") + "." + std::to_string(dep1 + 1), taskList[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
65
schedulerx3/src/model/OperateStopJobExecutionResult.cc
Normal file
65
schedulerx3/src/model/OperateStopJobExecutionResult.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/OperateStopJobExecutionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
OperateStopJobExecutionResult::OperateStopJobExecutionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OperateStopJobExecutionResult::OperateStopJobExecutionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OperateStopJobExecutionResult::~OperateStopJobExecutionResult()
|
||||
{}
|
||||
|
||||
void OperateStopJobExecutionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string OperateStopJobExecutionResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int OperateStopJobExecutionResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool OperateStopJobExecutionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
135
schedulerx3/src/model/UpdateAppRequest.cc
Normal file
135
schedulerx3/src/model/UpdateAppRequest.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/UpdateAppRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::UpdateAppRequest;
|
||||
|
||||
UpdateAppRequest::UpdateAppRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "UpdateApp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateAppRequest::~UpdateAppRequest() {}
|
||||
|
||||
std::string UpdateAppRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void UpdateAppRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
std::string UpdateAppRequest::getAccessToken() const {
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void UpdateAppRequest::setAccessToken(const std::string &accessToken) {
|
||||
accessToken_ = accessToken;
|
||||
setBodyParameter(std::string("AccessToken"), accessToken);
|
||||
}
|
||||
|
||||
std::string UpdateAppRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
|
||||
void UpdateAppRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setBodyParameter(std::string("Title"), title);
|
||||
}
|
||||
|
||||
std::string UpdateAppRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void UpdateAppRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setBodyParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::vector<UpdateAppRequest::NoticeContacts> UpdateAppRequest::getNoticeContacts() const {
|
||||
return noticeContacts_;
|
||||
}
|
||||
|
||||
void UpdateAppRequest::setNoticeContacts(const std::vector<UpdateAppRequest::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);
|
||||
}
|
||||
}
|
||||
|
||||
UpdateAppRequest::NoticeConfig UpdateAppRequest::getNoticeConfig() const {
|
||||
return noticeConfig_;
|
||||
}
|
||||
|
||||
void UpdateAppRequest::setNoticeConfig(const UpdateAppRequest::NoticeConfig ¬iceConfig) {
|
||||
noticeConfig_ = noticeConfig;
|
||||
setBodyParameter(std::string("NoticeConfig") + ".WebhookIsAtAll", noticeConfig.webhookIsAtAll ? "true" : "false");
|
||||
setBodyParameter(std::string("NoticeConfig") + ".NoticeChannel", noticeConfig.noticeChannel);
|
||||
setBodyParameter(std::string("NoticeConfig") + ".Enable", noticeConfig.enable ? "true" : "false");
|
||||
}
|
||||
|
||||
int UpdateAppRequest::getMaxJobs() const {
|
||||
return maxJobs_;
|
||||
}
|
||||
|
||||
void UpdateAppRequest::setMaxJobs(int maxJobs) {
|
||||
maxJobs_ = maxJobs;
|
||||
setBodyParameter(std::string("MaxJobs"), std::to_string(maxJobs));
|
||||
}
|
||||
|
||||
std::string UpdateAppRequest::getCalendar() const {
|
||||
return calendar_;
|
||||
}
|
||||
|
||||
void UpdateAppRequest::setCalendar(const std::string &calendar) {
|
||||
calendar_ = calendar;
|
||||
setBodyParameter(std::string("Calendar"), calendar);
|
||||
}
|
||||
|
||||
std::string UpdateAppRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void UpdateAppRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setBodyParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
bool UpdateAppRequest::getEnableLog() const {
|
||||
return enableLog_;
|
||||
}
|
||||
|
||||
void UpdateAppRequest::setEnableLog(bool enableLog) {
|
||||
enableLog_ = enableLog;
|
||||
setBodyParameter(std::string("EnableLog"), enableLog ? "true" : "false");
|
||||
}
|
||||
|
||||
int UpdateAppRequest::getMaxConcurrency() const {
|
||||
return maxConcurrency_;
|
||||
}
|
||||
|
||||
void UpdateAppRequest::setMaxConcurrency(int maxConcurrency) {
|
||||
maxConcurrency_ = maxConcurrency;
|
||||
setBodyParameter(std::string("MaxConcurrency"), std::to_string(maxConcurrency));
|
||||
}
|
||||
|
||||
65
schedulerx3/src/model/UpdateAppResult.cc
Normal file
65
schedulerx3/src/model/UpdateAppResult.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/UpdateAppResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
UpdateAppResult::UpdateAppResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateAppResult::UpdateAppResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateAppResult::~UpdateAppResult()
|
||||
{}
|
||||
|
||||
void UpdateAppResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateAppResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateAppResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateAppResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
schedulerx3/src/model/UpdateClusterRequest.cc
Normal file
54
schedulerx3/src/model/UpdateClusterRequest.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/UpdateClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::UpdateClusterRequest;
|
||||
|
||||
UpdateClusterRequest::UpdateClusterRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "UpdateCluster") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateClusterRequest::~UpdateClusterRequest() {}
|
||||
|
||||
std::string UpdateClusterRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void UpdateClusterRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
std::string UpdateClusterRequest::getClusterName() const {
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void UpdateClusterRequest::setClusterName(const std::string &clusterName) {
|
||||
clusterName_ = clusterName;
|
||||
setParameter(std::string("ClusterName"), clusterName);
|
||||
}
|
||||
|
||||
std::string UpdateClusterRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void UpdateClusterRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
65
schedulerx3/src/model/UpdateClusterResult.cc
Normal file
65
schedulerx3/src/model/UpdateClusterResult.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/UpdateClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
UpdateClusterResult::UpdateClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateClusterResult::UpdateClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateClusterResult::~UpdateClusterResult()
|
||||
{}
|
||||
|
||||
void UpdateClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateClusterResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateClusterResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateClusterResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
254
schedulerx3/src/model/UpdateJobRequest.cc
Normal file
254
schedulerx3/src/model/UpdateJobRequest.cc
Normal file
@@ -0,0 +1,254 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/schedulerx3/model/UpdateJobRequest.h>
|
||||
|
||||
using AlibabaCloud::SchedulerX3::Model::UpdateJobRequest;
|
||||
|
||||
UpdateJobRequest::UpdateJobRequest()
|
||||
: RpcServiceRequest("schedulerx3", "2024-06-24", "UpdateJob") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateJobRequest::~UpdateJobRequest() {}
|
||||
|
||||
std::string UpdateJobRequest::getMseSessionId() const {
|
||||
return mseSessionId_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setMseSessionId(const std::string &mseSessionId) {
|
||||
mseSessionId_ = mseSessionId;
|
||||
setParameter(std::string("MseSessionId"), mseSessionId);
|
||||
}
|
||||
|
||||
int UpdateJobRequest::getExecutorBlockStrategy() const {
|
||||
return executorBlockStrategy_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setExecutorBlockStrategy(int executorBlockStrategy) {
|
||||
executorBlockStrategy_ = executorBlockStrategy;
|
||||
setBodyParameter(std::string("ExecutorBlockStrategy"), std::to_string(executorBlockStrategy));
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getTimezone() const {
|
||||
return timezone_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setTimezone(const std::string &timezone) {
|
||||
timezone_ = timezone;
|
||||
setBodyParameter(std::string("Timezone"), timezone);
|
||||
}
|
||||
|
||||
int UpdateJobRequest::getRouteStrategy() const {
|
||||
return routeStrategy_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setRouteStrategy(int routeStrategy) {
|
||||
routeStrategy_ = routeStrategy;
|
||||
setBodyParameter(std::string("RouteStrategy"), std::to_string(routeStrategy));
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
int UpdateJobRequest::getAttemptInterval() const {
|
||||
return attemptInterval_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setAttemptInterval(int attemptInterval) {
|
||||
attemptInterval_ = attemptInterval;
|
||||
setBodyParameter(std::string("AttemptInterval"), std::to_string(attemptInterval));
|
||||
}
|
||||
|
||||
long UpdateJobRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setStartTime(long startTime) {
|
||||
startTime_ = startTime;
|
||||
setBodyParameter(std::string("StartTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
long UpdateJobRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setJobId(long jobId) {
|
||||
jobId_ = jobId;
|
||||
setBodyParameter(std::string("JobId"), std::to_string(jobId));
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setBodyParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::vector<UpdateJobRequest::NoticeContacts> UpdateJobRequest::getNoticeContacts() const {
|
||||
return noticeContacts_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setNoticeContacts(const std::vector<UpdateJobRequest::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);
|
||||
}
|
||||
}
|
||||
|
||||
UpdateJobRequest::NoticeConfig UpdateJobRequest::getNoticeConfig() const {
|
||||
return noticeConfig_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setNoticeConfig(const UpdateJobRequest::NoticeConfig ¬iceConfig) {
|
||||
noticeConfig_ = noticeConfig;
|
||||
setBodyParameter(std::string("NoticeConfig") + ".TimeoutKillEnable", noticeConfig.timeoutKillEnable ? "true" : "false");
|
||||
setBodyParameter(std::string("NoticeConfig") + ".FailEnable", noticeConfig.failEnable ? "true" : "false");
|
||||
setBodyParameter(std::string("NoticeConfig") + ".webhookIsAtAll", noticeConfig.webhookIsAtAll ? "true" : "false");
|
||||
setBodyParameter(std::string("NoticeConfig") + ".SuccessNotice", noticeConfig.successNotice ? "true" : "false");
|
||||
setBodyParameter(std::string("NoticeConfig") + ".FailLimitTimes", std::to_string(noticeConfig.failLimitTimes));
|
||||
setBodyParameter(std::string("NoticeConfig") + ".SendChannel", noticeConfig.sendChannel);
|
||||
setBodyParameter(std::string("NoticeConfig") + ".TimeoutEnable", noticeConfig.timeoutEnable ? "true" : "false");
|
||||
setBodyParameter(std::string("NoticeConfig") + ".MissWorkerEnable", noticeConfig.missWorkerEnable ? "true" : "false");
|
||||
setBodyParameter(std::string("NoticeConfig") + ".Timeout", std::to_string(noticeConfig.timeout));
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getCalendar() const {
|
||||
return calendar_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setCalendar(const std::string &calendar) {
|
||||
calendar_ = calendar;
|
||||
setBodyParameter(std::string("Calendar"), calendar);
|
||||
}
|
||||
|
||||
int UpdateJobRequest::getDataOffset() const {
|
||||
return dataOffset_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setDataOffset(int dataOffset) {
|
||||
dataOffset_ = dataOffset;
|
||||
setBodyParameter(std::string("DataOffset"), std::to_string(dataOffset));
|
||||
}
|
||||
|
||||
int UpdateJobRequest::getMaxAttempt() const {
|
||||
return maxAttempt_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setMaxAttempt(int maxAttempt) {
|
||||
maxAttempt_ = maxAttempt;
|
||||
setBodyParameter(std::string("MaxAttempt"), std::to_string(maxAttempt));
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setBodyParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
int UpdateJobRequest::getPriority() const {
|
||||
return priority_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setPriority(int priority) {
|
||||
priority_ = priority;
|
||||
setBodyParameter(std::string("Priority"), std::to_string(priority));
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getTimeExpression() const {
|
||||
return timeExpression_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setTimeExpression(const std::string &timeExpression) {
|
||||
timeExpression_ = timeExpression;
|
||||
setBodyParameter(std::string("TimeExpression"), timeExpression);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getXAttrs() const {
|
||||
return xAttrs_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setXAttrs(const std::string &xAttrs) {
|
||||
xAttrs_ = xAttrs;
|
||||
setBodyParameter(std::string("XAttrs"), xAttrs);
|
||||
}
|
||||
|
||||
int UpdateJobRequest::getMaxConcurrency() const {
|
||||
return maxConcurrency_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setMaxConcurrency(int maxConcurrency) {
|
||||
maxConcurrency_ = maxConcurrency;
|
||||
setBodyParameter(std::string("MaxConcurrency"), std::to_string(maxConcurrency));
|
||||
}
|
||||
|
||||
int UpdateJobRequest::getTimeType() const {
|
||||
return timeType_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setTimeType(int timeType) {
|
||||
timeType_ = timeType;
|
||||
setBodyParameter(std::string("TimeType"), std::to_string(timeType));
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getParameters() const {
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setParameters(const std::string ¶meters) {
|
||||
parameters_ = parameters;
|
||||
setBodyParameter(std::string("Parameters"), parameters);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getJobHandler() const {
|
||||
return jobHandler_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setJobHandler(const std::string &jobHandler) {
|
||||
jobHandler_ = jobHandler;
|
||||
setBodyParameter(std::string("JobHandler"), jobHandler);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getCleanMode() const {
|
||||
return cleanMode_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setCleanMode(const std::string &cleanMode) {
|
||||
cleanMode_ = cleanMode;
|
||||
setBodyParameter(std::string("CleanMode"), cleanMode);
|
||||
}
|
||||
|
||||
65
schedulerx3/src/model/UpdateJobResult.cc
Normal file
65
schedulerx3/src/model/UpdateJobResult.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/UpdateJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SchedulerX3;
|
||||
using namespace AlibabaCloud::SchedulerX3::Model;
|
||||
|
||||
UpdateJobResult::UpdateJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateJobResult::UpdateJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateJobResult::~UpdateJobResult()
|
||||
{}
|
||||
|
||||
void UpdateJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateJobResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user