Generated 2018-11-11 for foas.
This commit is contained in:
2285
foas/src/FoasClient.cc
Normal file
2285
foas/src/FoasClient.cc
Normal file
File diff suppressed because it is too large
Load Diff
71
foas/src/model/BatchGetInstanceRunSummaryRequest.cc
Normal file
71
foas/src/model/BatchGetInstanceRunSummaryRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/BatchGetInstanceRunSummaryRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::BatchGetInstanceRunSummaryRequest;
|
||||
|
||||
BatchGetInstanceRunSummaryRequest::BatchGetInstanceRunSummaryRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
BatchGetInstanceRunSummaryRequest::~BatchGetInstanceRunSummaryRequest()
|
||||
{}
|
||||
|
||||
std::string BatchGetInstanceRunSummaryRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void BatchGetInstanceRunSummaryRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string BatchGetInstanceRunSummaryRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void BatchGetInstanceRunSummaryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string BatchGetInstanceRunSummaryRequest::getJobNames()const
|
||||
{
|
||||
return jobNames_;
|
||||
}
|
||||
|
||||
void BatchGetInstanceRunSummaryRequest::setJobNames(const std::string& jobNames)
|
||||
{
|
||||
jobNames_ = jobNames;
|
||||
setCoreParameter("JobNames", jobNames);
|
||||
}
|
||||
|
||||
std::string BatchGetInstanceRunSummaryRequest::getJobType()const
|
||||
{
|
||||
return jobType_;
|
||||
}
|
||||
|
||||
void BatchGetInstanceRunSummaryRequest::setJobType(const std::string& jobType)
|
||||
{
|
||||
jobType_ = jobType;
|
||||
setCoreParameter("JobType", jobType);
|
||||
}
|
||||
|
||||
71
foas/src/model/BatchGetInstanceRunSummaryResult.cc
Normal file
71
foas/src/model/BatchGetInstanceRunSummaryResult.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/BatchGetInstanceRunSummaryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
BatchGetInstanceRunSummaryResult::BatchGetInstanceRunSummaryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchGetInstanceRunSummaryResult::BatchGetInstanceRunSummaryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchGetInstanceRunSummaryResult::~BatchGetInstanceRunSummaryResult()
|
||||
{}
|
||||
|
||||
void BatchGetInstanceRunSummaryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRunSummarys = value["RunSummarys"]["RunSummary"];
|
||||
for (auto value : allRunSummarys)
|
||||
{
|
||||
RunSummary runSummarysObject;
|
||||
if(!value["Id"].isNull())
|
||||
runSummarysObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["ActualState"].isNull())
|
||||
runSummarysObject.actualState = value["ActualState"].asString();
|
||||
if(!value["ExpectState"].isNull())
|
||||
runSummarysObject.expectState = value["ExpectState"].asString();
|
||||
if(!value["LastErrorTime"].isNull())
|
||||
runSummarysObject.lastErrorTime = std::stol(value["LastErrorTime"].asString());
|
||||
if(!value["LastErrorMessage"].isNull())
|
||||
runSummarysObject.lastErrorMessage = value["LastErrorMessage"].asString();
|
||||
if(!value["EngineJobHandler"].isNull())
|
||||
runSummarysObject.engineJobHandler = value["EngineJobHandler"].asString();
|
||||
if(!value["InputDelay"].isNull())
|
||||
runSummarysObject.inputDelay = std::stol(value["InputDelay"].asString());
|
||||
if(!value["JobName"].isNull())
|
||||
runSummarysObject.jobName = value["JobName"].asString();
|
||||
runSummarys_.push_back(runSummarysObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<BatchGetInstanceRunSummaryResult::RunSummary> BatchGetInstanceRunSummaryResult::getRunSummarys()const
|
||||
{
|
||||
return runSummarys_;
|
||||
}
|
||||
|
||||
71
foas/src/model/BindQueueRequest.cc
Normal file
71
foas/src/model/BindQueueRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/BindQueueRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::BindQueueRequest;
|
||||
|
||||
BindQueueRequest::BindQueueRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
BindQueueRequest::~BindQueueRequest()
|
||||
{}
|
||||
|
||||
std::string BindQueueRequest::getQueueName()const
|
||||
{
|
||||
return queueName_;
|
||||
}
|
||||
|
||||
void BindQueueRequest::setQueueName(const std::string& queueName)
|
||||
{
|
||||
queueName_ = queueName;
|
||||
setCoreParameter("QueueName", queueName);
|
||||
}
|
||||
|
||||
std::string BindQueueRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void BindQueueRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string BindQueueRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void BindQueueRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string BindQueueRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void BindQueueRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
44
foas/src/model/BindQueueResult.cc
Normal file
44
foas/src/model/BindQueueResult.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/foas/model/BindQueueResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
BindQueueResult::BindQueueResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindQueueResult::BindQueueResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindQueueResult::~BindQueueResult()
|
||||
{}
|
||||
|
||||
void BindQueueResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
60
foas/src/model/CalcPlanJsonResourceRequest.cc
Normal file
60
foas/src/model/CalcPlanJsonResourceRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/CalcPlanJsonResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::CalcPlanJsonResourceRequest;
|
||||
|
||||
CalcPlanJsonResourceRequest::CalcPlanJsonResourceRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
CalcPlanJsonResourceRequest::~CalcPlanJsonResourceRequest()
|
||||
{}
|
||||
|
||||
std::string CalcPlanJsonResourceRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void CalcPlanJsonResourceRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string CalcPlanJsonResourceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CalcPlanJsonResourceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CalcPlanJsonResourceRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void CalcPlanJsonResourceRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
54
foas/src/model/CalcPlanJsonResourceResult.cc
Normal file
54
foas/src/model/CalcPlanJsonResourceResult.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/foas/model/CalcPlanJsonResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
CalcPlanJsonResourceResult::CalcPlanJsonResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CalcPlanJsonResourceResult::CalcPlanJsonResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CalcPlanJsonResourceResult::~CalcPlanJsonResourceResult()
|
||||
{}
|
||||
|
||||
void CalcPlanJsonResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto planJsonResourceNode = value["PlanJsonResource"];
|
||||
if(!planJsonResourceNode["Cores"].isNull())
|
||||
planJsonResource_.cores = std::stof(planJsonResourceNode["Cores"].asString());
|
||||
if(!planJsonResourceNode["MemoryGB"].isNull())
|
||||
planJsonResource_.memoryGB = std::stof(planJsonResourceNode["MemoryGB"].asString());
|
||||
|
||||
}
|
||||
|
||||
CalcPlanJsonResourceResult::PlanJsonResource CalcPlanJsonResourceResult::getPlanJsonResource()const
|
||||
{
|
||||
return planJsonResource_;
|
||||
}
|
||||
|
||||
71
foas/src/model/CheckRawPlanJsonRequest.cc
Normal file
71
foas/src/model/CheckRawPlanJsonRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/CheckRawPlanJsonRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::CheckRawPlanJsonRequest;
|
||||
|
||||
CheckRawPlanJsonRequest::CheckRawPlanJsonRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
CheckRawPlanJsonRequest::~CheckRawPlanJsonRequest()
|
||||
{}
|
||||
|
||||
std::string CheckRawPlanJsonRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void CheckRawPlanJsonRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string CheckRawPlanJsonRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CheckRawPlanJsonRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CheckRawPlanJsonRequest::getSessionId()const
|
||||
{
|
||||
return sessionId_;
|
||||
}
|
||||
|
||||
void CheckRawPlanJsonRequest::setSessionId(const std::string& sessionId)
|
||||
{
|
||||
sessionId_ = sessionId;
|
||||
setCoreParameter("SessionId", sessionId);
|
||||
}
|
||||
|
||||
std::string CheckRawPlanJsonRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void CheckRawPlanJsonRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
56
foas/src/model/CheckRawPlanJsonResult.cc
Normal file
56
foas/src/model/CheckRawPlanJsonResult.cc
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/CheckRawPlanJsonResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
CheckRawPlanJsonResult::CheckRawPlanJsonResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckRawPlanJsonResult::CheckRawPlanJsonResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckRawPlanJsonResult::~CheckRawPlanJsonResult()
|
||||
{}
|
||||
|
||||
void CheckRawPlanJsonResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto planJsonInfoNode = value["PlanJsonInfo"];
|
||||
if(!planJsonInfoNode["Status"].isNull())
|
||||
planJsonInfo_.status = planJsonInfoNode["Status"].asString();
|
||||
if(!planJsonInfoNode["PlanJson"].isNull())
|
||||
planJsonInfo_.planJson = planJsonInfoNode["PlanJson"].asString();
|
||||
if(!planJsonInfoNode["ErrorMessage"].isNull())
|
||||
planJsonInfo_.errorMessage = planJsonInfoNode["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
CheckRawPlanJsonResult::PlanJsonInfo CheckRawPlanJsonResult::getPlanJsonInfo()const
|
||||
{
|
||||
return planJsonInfo_;
|
||||
}
|
||||
|
||||
93
foas/src/model/CommitJobRequest.cc
Normal file
93
foas/src/model/CommitJobRequest.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/foas/model/CommitJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::CommitJobRequest;
|
||||
|
||||
CommitJobRequest::CommitJobRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
CommitJobRequest::~CommitJobRequest()
|
||||
{}
|
||||
|
||||
std::string CommitJobRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void CommitJobRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string CommitJobRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CommitJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
float CommitJobRequest::getMaxCU()const
|
||||
{
|
||||
return maxCU_;
|
||||
}
|
||||
|
||||
void CommitJobRequest::setMaxCU(float maxCU)
|
||||
{
|
||||
maxCU_ = maxCU;
|
||||
setCoreParameter("MaxCU", std::to_string(maxCU));
|
||||
}
|
||||
|
||||
std::string CommitJobRequest::getConfigure()const
|
||||
{
|
||||
return configure_;
|
||||
}
|
||||
|
||||
void CommitJobRequest::setConfigure(const std::string& configure)
|
||||
{
|
||||
configure_ = configure;
|
||||
setCoreParameter("Configure", configure);
|
||||
}
|
||||
|
||||
bool CommitJobRequest::getIsOnOff()const
|
||||
{
|
||||
return isOnOff_;
|
||||
}
|
||||
|
||||
void CommitJobRequest::setIsOnOff(bool isOnOff)
|
||||
{
|
||||
isOnOff_ = isOnOff;
|
||||
setCoreParameter("IsOnOff", isOnOff ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CommitJobRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void CommitJobRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
44
foas/src/model/CommitJobResult.cc
Normal file
44
foas/src/model/CommitJobResult.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/foas/model/CommitJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
CommitJobResult::CommitJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CommitJobResult::CommitJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CommitJobResult::~CommitJobResult()
|
||||
{}
|
||||
|
||||
void CommitJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
115
foas/src/model/CreateCellClusterOrderRequest.cc
Normal file
115
foas/src/model/CreateCellClusterOrderRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/CreateCellClusterOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::CreateCellClusterOrderRequest;
|
||||
|
||||
CreateCellClusterOrderRequest::CreateCellClusterOrderRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
CreateCellClusterOrderRequest::~CreateCellClusterOrderRequest()
|
||||
{}
|
||||
|
||||
int CreateCellClusterOrderRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateCellClusterOrderRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setCoreParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
int CreateCellClusterOrderRequest::getSlaveNum()const
|
||||
{
|
||||
return slaveNum_;
|
||||
}
|
||||
|
||||
void CreateCellClusterOrderRequest::setSlaveNum(int slaveNum)
|
||||
{
|
||||
slaveNum_ = slaveNum;
|
||||
setCoreParameter("SlaveNum", std::to_string(slaveNum));
|
||||
}
|
||||
|
||||
std::string CreateCellClusterOrderRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateCellClusterOrderRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateCellClusterOrderRequest::getSlaveSpec()const
|
||||
{
|
||||
return slaveSpec_;
|
||||
}
|
||||
|
||||
void CreateCellClusterOrderRequest::setSlaveSpec(const std::string& slaveSpec)
|
||||
{
|
||||
slaveSpec_ = slaveSpec;
|
||||
setCoreParameter("SlaveSpec", slaveSpec);
|
||||
}
|
||||
|
||||
std::string CreateCellClusterOrderRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void CreateCellClusterOrderRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setCoreParameter("Region", region);
|
||||
}
|
||||
|
||||
int CreateCellClusterOrderRequest::getMasterNum()const
|
||||
{
|
||||
return masterNum_;
|
||||
}
|
||||
|
||||
void CreateCellClusterOrderRequest::setMasterNum(int masterNum)
|
||||
{
|
||||
masterNum_ = masterNum;
|
||||
setCoreParameter("MasterNum", std::to_string(masterNum));
|
||||
}
|
||||
|
||||
std::string CreateCellClusterOrderRequest::getMasterSpec()const
|
||||
{
|
||||
return masterSpec_;
|
||||
}
|
||||
|
||||
void CreateCellClusterOrderRequest::setMasterSpec(const std::string& masterSpec)
|
||||
{
|
||||
masterSpec_ = masterSpec;
|
||||
setCoreParameter("MasterSpec", masterSpec);
|
||||
}
|
||||
|
||||
std::string CreateCellClusterOrderRequest::getPayModel()const
|
||||
{
|
||||
return payModel_;
|
||||
}
|
||||
|
||||
void CreateCellClusterOrderRequest::setPayModel(const std::string& payModel)
|
||||
{
|
||||
payModel_ = payModel;
|
||||
setCoreParameter("PayModel", payModel);
|
||||
}
|
||||
|
||||
51
foas/src/model/CreateCellClusterOrderResult.cc
Normal file
51
foas/src/model/CreateCellClusterOrderResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/CreateCellClusterOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
CreateCellClusterOrderResult::CreateCellClusterOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCellClusterOrderResult::CreateCellClusterOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCellClusterOrderResult::~CreateCellClusterOrderResult()
|
||||
{}
|
||||
|
||||
void CreateCellClusterOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateCellClusterOrderResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
115
foas/src/model/CreateClusterRequest.cc
Normal file
115
foas/src/model/CreateClusterRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/CreateClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::CreateClusterRequest;
|
||||
|
||||
CreateClusterRequest::CreateClusterRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
CreateClusterRequest::~CreateClusterRequest()
|
||||
{}
|
||||
|
||||
std::string CreateClusterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setOrderId(const std::string& orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setCoreParameter("OrderId", orderId);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getUserOssBucket()const
|
||||
{
|
||||
return userOssBucket_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setUserOssBucket(const std::string& userOssBucket)
|
||||
{
|
||||
userOssBucket_ = userOssBucket;
|
||||
setCoreParameter("UserOssBucket", userOssBucket);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getDisplayName()const
|
||||
{
|
||||
return displayName_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setDisplayName(const std::string& displayName)
|
||||
{
|
||||
displayName_ = displayName;
|
||||
setCoreParameter("DisplayName", displayName);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getUserVpcId()const
|
||||
{
|
||||
return userVpcId_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setUserVpcId(const std::string& userVpcId)
|
||||
{
|
||||
userVpcId_ = userVpcId;
|
||||
setCoreParameter("UserVpcId", userVpcId);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getUserVSwitch()const
|
||||
{
|
||||
return userVSwitch_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setUserVSwitch(const std::string& userVSwitch)
|
||||
{
|
||||
userVSwitch_ = userVSwitch;
|
||||
setCoreParameter("UserVSwitch", userVSwitch);
|
||||
}
|
||||
|
||||
51
foas/src/model/CreateClusterResult.cc
Normal file
51
foas/src/model/CreateClusterResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/CreateClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::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());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateClusterResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
60
foas/src/model/CreateFolderRequest.cc
Normal file
60
foas/src/model/CreateFolderRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/CreateFolderRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::CreateFolderRequest;
|
||||
|
||||
CreateFolderRequest::CreateFolderRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
CreateFolderRequest::~CreateFolderRequest()
|
||||
{}
|
||||
|
||||
std::string CreateFolderRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
}
|
||||
|
||||
void CreateFolderRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setCoreParameter("Path", path);
|
||||
}
|
||||
|
||||
std::string CreateFolderRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void CreateFolderRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string CreateFolderRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateFolderRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
51
foas/src/model/CreateFolderResult.cc
Normal file
51
foas/src/model/CreateFolderResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/CreateFolderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
CreateFolderResult::CreateFolderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateFolderResult::CreateFolderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateFolderResult::~CreateFolderResult()
|
||||
{}
|
||||
|
||||
void CreateFolderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["FolderId"].isNull())
|
||||
folderId_ = std::stol(value["FolderId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long CreateFolderResult::getFolderId()const
|
||||
{
|
||||
return folderId_;
|
||||
}
|
||||
|
||||
181
foas/src/model/CreateJobRequest.cc
Normal file
181
foas/src/model/CreateJobRequest.cc
Normal file
@@ -0,0 +1,181 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/CreateJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::CreateJobRequest;
|
||||
|
||||
CreateJobRequest::CreateJobRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
CreateJobRequest::~CreateJobRequest()
|
||||
{}
|
||||
|
||||
std::string CreateJobRequest::getQueueName()const
|
||||
{
|
||||
return queueName_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setQueueName(const std::string& queueName)
|
||||
{
|
||||
queueName_ = queueName;
|
||||
setCoreParameter("QueueName", queueName);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setCode(const std::string& code)
|
||||
{
|
||||
code_ = code;
|
||||
setCoreParameter("Code", code);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setEngineVersion(const std::string& engineVersion)
|
||||
{
|
||||
engineVersion_ = engineVersion;
|
||||
setCoreParameter("EngineVersion", engineVersion);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getPackages()const
|
||||
{
|
||||
return packages_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setPackages(const std::string& packages)
|
||||
{
|
||||
packages_ = packages;
|
||||
setCoreParameter("Packages", packages);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getJobType()const
|
||||
{
|
||||
return jobType_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setJobType(const std::string& jobType)
|
||||
{
|
||||
jobType_ = jobType;
|
||||
setCoreParameter("JobType", jobType);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getApiType()const
|
||||
{
|
||||
return apiType_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setApiType(const std::string& apiType)
|
||||
{
|
||||
apiType_ = apiType;
|
||||
setCoreParameter("ApiType", apiType);
|
||||
}
|
||||
|
||||
long CreateJobRequest::getFolderId()const
|
||||
{
|
||||
return folderId_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setFolderId(long folderId)
|
||||
{
|
||||
folderId_ = folderId;
|
||||
setCoreParameter("FolderId", std::to_string(folderId));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getPlanJson()const
|
||||
{
|
||||
return planJson_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setPlanJson(const std::string& planJson)
|
||||
{
|
||||
planJson_ = planJson;
|
||||
setCoreParameter("PlanJson", planJson);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getProperties()const
|
||||
{
|
||||
return properties_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setProperties(const std::string& properties)
|
||||
{
|
||||
properties_ = properties;
|
||||
setCoreParameter("Properties", properties);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
44
foas/src/model/CreateJobResult.cc
Normal file
44
foas/src/model/CreateJobResult.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/foas/model/CreateJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::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());
|
||||
|
||||
}
|
||||
|
||||
159
foas/src/model/CreatePackageRequest.cc
Normal file
159
foas/src/model/CreatePackageRequest.cc
Normal file
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/CreatePackageRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::CreatePackageRequest;
|
||||
|
||||
CreatePackageRequest::CreatePackageRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
CreatePackageRequest::~CreatePackageRequest()
|
||||
{}
|
||||
|
||||
std::string CreatePackageRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void CreatePackageRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string CreatePackageRequest::getOssBucket()const
|
||||
{
|
||||
return ossBucket_;
|
||||
}
|
||||
|
||||
void CreatePackageRequest::setOssBucket(const std::string& ossBucket)
|
||||
{
|
||||
ossBucket_ = ossBucket;
|
||||
setCoreParameter("OssBucket", ossBucket);
|
||||
}
|
||||
|
||||
std::string CreatePackageRequest::getOssOwner()const
|
||||
{
|
||||
return ossOwner_;
|
||||
}
|
||||
|
||||
void CreatePackageRequest::setOssOwner(const std::string& ossOwner)
|
||||
{
|
||||
ossOwner_ = ossOwner;
|
||||
setCoreParameter("OssOwner", ossOwner);
|
||||
}
|
||||
|
||||
std::string CreatePackageRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreatePackageRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreatePackageRequest::getPackageName()const
|
||||
{
|
||||
return packageName_;
|
||||
}
|
||||
|
||||
void CreatePackageRequest::setPackageName(const std::string& packageName)
|
||||
{
|
||||
packageName_ = packageName;
|
||||
setCoreParameter("PackageName", packageName);
|
||||
}
|
||||
|
||||
std::string CreatePackageRequest::getOssEndpoint()const
|
||||
{
|
||||
return ossEndpoint_;
|
||||
}
|
||||
|
||||
void CreatePackageRequest::setOssEndpoint(const std::string& ossEndpoint)
|
||||
{
|
||||
ossEndpoint_ = ossEndpoint;
|
||||
setCoreParameter("OssEndpoint", ossEndpoint);
|
||||
}
|
||||
|
||||
std::string CreatePackageRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreatePackageRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreatePackageRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreatePackageRequest::setTag(const std::string& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
setCoreParameter("Tag", tag);
|
||||
}
|
||||
|
||||
std::string CreatePackageRequest::getOriginName()const
|
||||
{
|
||||
return originName_;
|
||||
}
|
||||
|
||||
void CreatePackageRequest::setOriginName(const std::string& originName)
|
||||
{
|
||||
originName_ = originName;
|
||||
setCoreParameter("OriginName", originName);
|
||||
}
|
||||
|
||||
std::string CreatePackageRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreatePackageRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreatePackageRequest::getOssPath()const
|
||||
{
|
||||
return ossPath_;
|
||||
}
|
||||
|
||||
void CreatePackageRequest::setOssPath(const std::string& ossPath)
|
||||
{
|
||||
ossPath_ = ossPath;
|
||||
setCoreParameter("OssPath", ossPath);
|
||||
}
|
||||
|
||||
std::string CreatePackageRequest::getMd5()const
|
||||
{
|
||||
return md5_;
|
||||
}
|
||||
|
||||
void CreatePackageRequest::setMd5(const std::string& md5)
|
||||
{
|
||||
md5_ = md5;
|
||||
setCoreParameter("Md5", md5);
|
||||
}
|
||||
|
||||
44
foas/src/model/CreatePackageResult.cc
Normal file
44
foas/src/model/CreatePackageResult.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/foas/model/CreatePackageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
CreatePackageResult::CreatePackageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePackageResult::CreatePackageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePackageResult::~CreatePackageResult()
|
||||
{}
|
||||
|
||||
void CreatePackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
104
foas/src/model/CreateProjectRequest.cc
Normal file
104
foas/src/model/CreateProjectRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/CreateProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::CreateProjectRequest;
|
||||
|
||||
CreateProjectRequest::CreateProjectRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
CreateProjectRequest::~CreateProjectRequest()
|
||||
{}
|
||||
|
||||
std::string CreateProjectRequest::getManagerIds()const
|
||||
{
|
||||
return managerIds_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setManagerIds(const std::string& managerIds)
|
||||
{
|
||||
managerIds_ = managerIds;
|
||||
setCoreParameter("ManagerIds", managerIds);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setOrderId(const std::string& orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setCoreParameter("OrderId", orderId);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getDeployType()const
|
||||
{
|
||||
return deployType_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setDeployType(const std::string& deployType)
|
||||
{
|
||||
deployType_ = deployType;
|
||||
setCoreParameter("DeployType", deployType);
|
||||
}
|
||||
|
||||
44
foas/src/model/CreateProjectResult.cc
Normal file
44
foas/src/model/CreateProjectResult.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/foas/model/CreateProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
CreateProjectResult::CreateProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateProjectResult::CreateProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateProjectResult::~CreateProjectResult()
|
||||
{}
|
||||
|
||||
void CreateProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
93
foas/src/model/CreateQueueRequest.cc
Normal file
93
foas/src/model/CreateQueueRequest.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/foas/model/CreateQueueRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::CreateQueueRequest;
|
||||
|
||||
CreateQueueRequest::CreateQueueRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
CreateQueueRequest::~CreateQueueRequest()
|
||||
{}
|
||||
|
||||
std::string CreateQueueRequest::getQueueName()const
|
||||
{
|
||||
return queueName_;
|
||||
}
|
||||
|
||||
void CreateQueueRequest::setQueueName(const std::string& queueName)
|
||||
{
|
||||
queueName_ = queueName;
|
||||
setCoreParameter("QueueName", queueName);
|
||||
}
|
||||
|
||||
std::string CreateQueueRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateQueueRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int CreateQueueRequest::getMaxMemMB()const
|
||||
{
|
||||
return maxMemMB_;
|
||||
}
|
||||
|
||||
void CreateQueueRequest::setMaxMemMB(int maxMemMB)
|
||||
{
|
||||
maxMemMB_ = maxMemMB;
|
||||
setCoreParameter("MaxMemMB", std::to_string(maxMemMB));
|
||||
}
|
||||
|
||||
std::string CreateQueueRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateQueueRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int CreateQueueRequest::getGpu()const
|
||||
{
|
||||
return gpu_;
|
||||
}
|
||||
|
||||
void CreateQueueRequest::setGpu(int gpu)
|
||||
{
|
||||
gpu_ = gpu;
|
||||
setCoreParameter("Gpu", std::to_string(gpu));
|
||||
}
|
||||
|
||||
int CreateQueueRequest::getMaxVcore()const
|
||||
{
|
||||
return maxVcore_;
|
||||
}
|
||||
|
||||
void CreateQueueRequest::setMaxVcore(int maxVcore)
|
||||
{
|
||||
maxVcore_ = maxVcore;
|
||||
setCoreParameter("MaxVcore", std::to_string(maxVcore));
|
||||
}
|
||||
|
||||
44
foas/src/model/CreateQueueResult.cc
Normal file
44
foas/src/model/CreateQueueResult.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/foas/model/CreateQueueResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
CreateQueueResult::CreateQueueResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateQueueResult::CreateQueueResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateQueueResult::~CreateQueueResult()
|
||||
{}
|
||||
|
||||
void CreateQueueResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
60
foas/src/model/DeleteFolderRequest.cc
Normal file
60
foas/src/model/DeleteFolderRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/DeleteFolderRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::DeleteFolderRequest;
|
||||
|
||||
DeleteFolderRequest::DeleteFolderRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
DeleteFolderRequest::~DeleteFolderRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteFolderRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
}
|
||||
|
||||
void DeleteFolderRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setCoreParameter("Path", path);
|
||||
}
|
||||
|
||||
std::string DeleteFolderRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void DeleteFolderRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string DeleteFolderRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteFolderRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
44
foas/src/model/DeleteFolderResult.cc
Normal file
44
foas/src/model/DeleteFolderResult.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/foas/model/DeleteFolderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
DeleteFolderResult::DeleteFolderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteFolderResult::DeleteFolderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteFolderResult::~DeleteFolderResult()
|
||||
{}
|
||||
|
||||
void DeleteFolderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
60
foas/src/model/DeleteJobRequest.cc
Normal file
60
foas/src/model/DeleteJobRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/DeleteJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::DeleteJobRequest;
|
||||
|
||||
DeleteJobRequest::DeleteJobRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
DeleteJobRequest::~DeleteJobRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteJobRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void DeleteJobRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string DeleteJobRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteJobRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void DeleteJobRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
44
foas/src/model/DeleteJobResult.cc
Normal file
44
foas/src/model/DeleteJobResult.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/foas/model/DeleteJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
DeleteJobResult::DeleteJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteJobResult::DeleteJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteJobResult::~DeleteJobResult()
|
||||
{}
|
||||
|
||||
void DeleteJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
60
foas/src/model/DeletePackageRequest.cc
Normal file
60
foas/src/model/DeletePackageRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/DeletePackageRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::DeletePackageRequest;
|
||||
|
||||
DeletePackageRequest::DeletePackageRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
DeletePackageRequest::~DeletePackageRequest()
|
||||
{}
|
||||
|
||||
std::string DeletePackageRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void DeletePackageRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string DeletePackageRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeletePackageRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeletePackageRequest::getPackageName()const
|
||||
{
|
||||
return packageName_;
|
||||
}
|
||||
|
||||
void DeletePackageRequest::setPackageName(const std::string& packageName)
|
||||
{
|
||||
packageName_ = packageName;
|
||||
setCoreParameter("PackageName", packageName);
|
||||
}
|
||||
|
||||
44
foas/src/model/DeletePackageResult.cc
Normal file
44
foas/src/model/DeletePackageResult.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/foas/model/DeletePackageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
DeletePackageResult::DeletePackageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePackageResult::DeletePackageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePackageResult::~DeletePackageResult()
|
||||
{}
|
||||
|
||||
void DeletePackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
49
foas/src/model/DeleteProjectRequest.cc
Normal file
49
foas/src/model/DeleteProjectRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/DeleteProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::DeleteProjectRequest;
|
||||
|
||||
DeleteProjectRequest::DeleteProjectRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
DeleteProjectRequest::~DeleteProjectRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteProjectRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
44
foas/src/model/DeleteProjectResult.cc
Normal file
44
foas/src/model/DeleteProjectResult.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/foas/model/DeleteProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
DeleteProjectResult::DeleteProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteProjectResult::DeleteProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteProjectResult::~DeleteProjectResult()
|
||||
{}
|
||||
|
||||
void DeleteProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
60
foas/src/model/DeleteQueueRequest.cc
Normal file
60
foas/src/model/DeleteQueueRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/DeleteQueueRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::DeleteQueueRequest;
|
||||
|
||||
DeleteQueueRequest::DeleteQueueRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
DeleteQueueRequest::~DeleteQueueRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteQueueRequest::getQueueName()const
|
||||
{
|
||||
return queueName_;
|
||||
}
|
||||
|
||||
void DeleteQueueRequest::setQueueName(const std::string& queueName)
|
||||
{
|
||||
queueName_ = queueName;
|
||||
setCoreParameter("QueueName", queueName);
|
||||
}
|
||||
|
||||
std::string DeleteQueueRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteQueueRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteQueueRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteQueueRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
44
foas/src/model/DeleteQueueResult.cc
Normal file
44
foas/src/model/DeleteQueueResult.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/foas/model/DeleteQueueResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
DeleteQueueResult::DeleteQueueResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteQueueResult::DeleteQueueResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteQueueResult::~DeleteQueueResult()
|
||||
{}
|
||||
|
||||
void DeleteQueueResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
49
foas/src/model/DestroyClusterRequest.cc
Normal file
49
foas/src/model/DestroyClusterRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/DestroyClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::DestroyClusterRequest;
|
||||
|
||||
DestroyClusterRequest::DestroyClusterRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
DestroyClusterRequest::~DestroyClusterRequest()
|
||||
{}
|
||||
|
||||
std::string DestroyClusterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DestroyClusterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DestroyClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DestroyClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
44
foas/src/model/DestroyClusterResult.cc
Normal file
44
foas/src/model/DestroyClusterResult.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/foas/model/DestroyClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
DestroyClusterResult::DestroyClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DestroyClusterResult::DestroyClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DestroyClusterResult::~DestroyClusterResult()
|
||||
{}
|
||||
|
||||
void DestroyClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
82
foas/src/model/ExpandClusterRequest.cc
Normal file
82
foas/src/model/ExpandClusterRequest.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/foas/model/ExpandClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::ExpandClusterRequest;
|
||||
|
||||
ExpandClusterRequest::ExpandClusterRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
ExpandClusterRequest::~ExpandClusterRequest()
|
||||
{}
|
||||
|
||||
std::string ExpandClusterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ExpandClusterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int ExpandClusterRequest::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
void ExpandClusterRequest::setCount(int count)
|
||||
{
|
||||
count_ = count;
|
||||
setCoreParameter("Count", std::to_string(count));
|
||||
}
|
||||
|
||||
std::string ExpandClusterRequest::getModel()const
|
||||
{
|
||||
return model_;
|
||||
}
|
||||
|
||||
void ExpandClusterRequest::setModel(const std::string& model)
|
||||
{
|
||||
model_ = model;
|
||||
setCoreParameter("Model", model);
|
||||
}
|
||||
|
||||
std::string ExpandClusterRequest::getUserVSwitch()const
|
||||
{
|
||||
return userVSwitch_;
|
||||
}
|
||||
|
||||
void ExpandClusterRequest::setUserVSwitch(const std::string& userVSwitch)
|
||||
{
|
||||
userVSwitch_ = userVSwitch;
|
||||
setCoreParameter("UserVSwitch", userVSwitch);
|
||||
}
|
||||
|
||||
std::string ExpandClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ExpandClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
44
foas/src/model/ExpandClusterResult.cc
Normal file
44
foas/src/model/ExpandClusterResult.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/foas/model/ExpandClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
ExpandClusterResult::ExpandClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ExpandClusterResult::ExpandClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ExpandClusterResult::~ExpandClusterResult()
|
||||
{}
|
||||
|
||||
void ExpandClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
49
foas/src/model/GetClusterDetailsRequest.cc
Normal file
49
foas/src/model/GetClusterDetailsRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetClusterDetailsRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetClusterDetailsRequest;
|
||||
|
||||
GetClusterDetailsRequest::GetClusterDetailsRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetClusterDetailsRequest::~GetClusterDetailsRequest()
|
||||
{}
|
||||
|
||||
std::string GetClusterDetailsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetClusterDetailsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetClusterDetailsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetClusterDetailsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
84
foas/src/model/GetClusterDetailsResult.cc
Normal file
84
foas/src/model/GetClusterDetailsResult.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/foas/model/GetClusterDetailsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetClusterDetailsResult::GetClusterDetailsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetClusterDetailsResult::GetClusterDetailsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetClusterDetailsResult::~GetClusterDetailsResult()
|
||||
{}
|
||||
|
||||
void GetClusterDetailsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto detailsNode = value["Details"];
|
||||
if(!detailsNode["ClusterId"].isNull())
|
||||
details_.clusterId = detailsNode["ClusterId"].asString();
|
||||
if(!detailsNode["RegionId"].isNull())
|
||||
details_.regionId = detailsNode["RegionId"].asString();
|
||||
if(!detailsNode["ZoneId"].isNull())
|
||||
details_.zoneId = detailsNode["ZoneId"].asString();
|
||||
if(!detailsNode["State"].isNull())
|
||||
details_.state = detailsNode["State"].asString();
|
||||
if(!detailsNode["Description"].isNull())
|
||||
details_.description = detailsNode["Description"].asString();
|
||||
if(!detailsNode["DisplayName"].isNull())
|
||||
details_.displayName = detailsNode["DisplayName"].asString();
|
||||
if(!detailsNode["OwnerId"].isNull())
|
||||
details_.ownerId = detailsNode["OwnerId"].asString();
|
||||
if(!detailsNode["Operator"].isNull())
|
||||
details_._operator = detailsNode["Operator"].asString();
|
||||
if(!detailsNode["StorageType"].isNull())
|
||||
details_.storageType = detailsNode["StorageType"].asString();
|
||||
if(!detailsNode["GmtCreate"].isNull())
|
||||
details_.gmtCreate = std::stol(detailsNode["GmtCreate"].asString());
|
||||
if(!detailsNode["GmtModified"].isNull())
|
||||
details_.gmtModified = std::stol(detailsNode["GmtModified"].asString());
|
||||
if(!detailsNode["UserOssInfo"].isNull())
|
||||
details_.userOssInfo = detailsNode["UserOssInfo"].asString();
|
||||
if(!detailsNode["UserVpcId"].isNull())
|
||||
details_.userVpcId = detailsNode["UserVpcId"].asString();
|
||||
if(!detailsNode["UserSGId"].isNull())
|
||||
details_.userSGId = detailsNode["UserSGId"].asString();
|
||||
if(!detailsNode["UserVSwitchList"].isNull())
|
||||
details_.userVSwitchList = detailsNode["UserVSwitchList"].asString();
|
||||
if(!detailsNode["IsMixDeploy"].isNull())
|
||||
details_.isMixDeploy = detailsNode["IsMixDeploy"].asString() == "true";
|
||||
if(!detailsNode["InstanceInfos"].isNull())
|
||||
details_.instanceInfos = detailsNode["InstanceInfos"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetClusterDetailsResult::Details GetClusterDetailsResult::getDetails()const
|
||||
{
|
||||
return details_;
|
||||
}
|
||||
|
||||
49
foas/src/model/GetClusterEngineVersionsRequest.cc
Normal file
49
foas/src/model/GetClusterEngineVersionsRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetClusterEngineVersionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetClusterEngineVersionsRequest;
|
||||
|
||||
GetClusterEngineVersionsRequest::GetClusterEngineVersionsRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetClusterEngineVersionsRequest::~GetClusterEngineVersionsRequest()
|
||||
{}
|
||||
|
||||
std::string GetClusterEngineVersionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetClusterEngineVersionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetClusterEngineVersionsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetClusterEngineVersionsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
52
foas/src/model/GetClusterEngineVersionsResult.cc
Normal file
52
foas/src/model/GetClusterEngineVersionsResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/GetClusterEngineVersionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetClusterEngineVersionsResult::GetClusterEngineVersionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetClusterEngineVersionsResult::GetClusterEngineVersionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetClusterEngineVersionsResult::~GetClusterEngineVersionsResult()
|
||||
{}
|
||||
|
||||
void GetClusterEngineVersionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEngineVersions = value["EngineVersions"]["EngineVersion"];
|
||||
for (const auto &item : allEngineVersions)
|
||||
engineVersions_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> GetClusterEngineVersionsResult::getEngineVersions()const
|
||||
{
|
||||
return engineVersions_;
|
||||
}
|
||||
|
||||
60
foas/src/model/GetClusterMetricsRequest.cc
Normal file
60
foas/src/model/GetClusterMetricsRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetClusterMetricsRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetClusterMetricsRequest;
|
||||
|
||||
GetClusterMetricsRequest::GetClusterMetricsRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetClusterMetricsRequest::~GetClusterMetricsRequest()
|
||||
{}
|
||||
|
||||
std::string GetClusterMetricsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetClusterMetricsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetClusterMetricsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetClusterMetricsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string GetClusterMetricsRequest::getMetricJson()const
|
||||
{
|
||||
return metricJson_;
|
||||
}
|
||||
|
||||
void GetClusterMetricsRequest::setMetricJson(const std::string& metricJson)
|
||||
{
|
||||
metricJson_ = metricJson;
|
||||
setCoreParameter("MetricJson", metricJson);
|
||||
}
|
||||
|
||||
63
foas/src/model/GetClusterMetricsResult.cc
Normal file
63
foas/src/model/GetClusterMetricsResult.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/foas/model/GetClusterMetricsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetClusterMetricsResult::GetClusterMetricsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetClusterMetricsResult::GetClusterMetricsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetClusterMetricsResult::~GetClusterMetricsResult()
|
||||
{}
|
||||
|
||||
void GetClusterMetricsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allMetrics = value["Metrics"]["Metric"];
|
||||
for (auto value : allMetrics)
|
||||
{
|
||||
Metric metricsObject;
|
||||
if(!value["MetricName"].isNull())
|
||||
metricsObject.metricName = value["MetricName"].asString();
|
||||
if(!value["Dps"].isNull())
|
||||
metricsObject.dps = value["Dps"].asString();
|
||||
if(!value["Summary"].isNull())
|
||||
metricsObject.summary = std::stof(value["Summary"].asString());
|
||||
if(!value["Tags"].isNull())
|
||||
metricsObject.tags = value["Tags"].asString();
|
||||
metrics_.push_back(metricsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetClusterMetricsResult::Metric> GetClusterMetricsResult::getMetrics()const
|
||||
{
|
||||
return metrics_;
|
||||
}
|
||||
|
||||
49
foas/src/model/GetClusterQueueInfoRequest.cc
Normal file
49
foas/src/model/GetClusterQueueInfoRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetClusterQueueInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetClusterQueueInfoRequest;
|
||||
|
||||
GetClusterQueueInfoRequest::GetClusterQueueInfoRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetClusterQueueInfoRequest::~GetClusterQueueInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetClusterQueueInfoRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetClusterQueueInfoRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetClusterQueueInfoRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetClusterQueueInfoRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
77
foas/src/model/GetClusterQueueInfoResult.cc
Normal file
77
foas/src/model/GetClusterQueueInfoResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/GetClusterQueueInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetClusterQueueInfoResult::GetClusterQueueInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetClusterQueueInfoResult::GetClusterQueueInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetClusterQueueInfoResult::~GetClusterQueueInfoResult()
|
||||
{}
|
||||
|
||||
void GetClusterQueueInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allQueues = value["Queues"]["Queue"];
|
||||
for (auto value : allQueues)
|
||||
{
|
||||
Queue queuesObject;
|
||||
if(!value["ClusterId"].isNull())
|
||||
queuesObject.clusterId = value["ClusterId"].asString();
|
||||
if(!value["QueueName"].isNull())
|
||||
queuesObject.queueName = value["QueueName"].asString();
|
||||
if(!value["MinGpu"].isNull())
|
||||
queuesObject.minGpu = std::stoi(value["MinGpu"].asString());
|
||||
if(!value["MaxGpu"].isNull())
|
||||
queuesObject.maxGpu = std::stoi(value["MaxGpu"].asString());
|
||||
if(!value["MinMem"].isNull())
|
||||
queuesObject.minMem = std::stoi(value["MinMem"].asString());
|
||||
if(!value["UsedVCore"].isNull())
|
||||
queuesObject.usedVCore = std::stoi(value["UsedVCore"].asString());
|
||||
if(!value["UsedGpu"].isNull())
|
||||
queuesObject.usedGpu = std::stoi(value["UsedGpu"].asString());
|
||||
if(!value["UsedMem"].isNull())
|
||||
queuesObject.usedMem = std::stoi(value["UsedMem"].asString());
|
||||
if(!value["MinVCore"].isNull())
|
||||
queuesObject.minVCore = std::stoi(value["MinVCore"].asString());
|
||||
if(!value["MaxVCore"].isNull())
|
||||
queuesObject.maxVCore = std::stoi(value["MaxVCore"].asString());
|
||||
if(!value["MaxMem"].isNull())
|
||||
queuesObject.maxMem = std::stoi(value["MaxMem"].asString());
|
||||
queues_.push_back(queuesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetClusterQueueInfoResult::Queue> GetClusterQueueInfoResult::getQueues()const
|
||||
{
|
||||
return queues_;
|
||||
}
|
||||
|
||||
49
foas/src/model/GetClusterResourceRequest.cc
Normal file
49
foas/src/model/GetClusterResourceRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetClusterResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetClusterResourceRequest;
|
||||
|
||||
GetClusterResourceRequest::GetClusterResourceRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetClusterResourceRequest::~GetClusterResourceRequest()
|
||||
{}
|
||||
|
||||
std::string GetClusterResourceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetClusterResourceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetClusterResourceRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetClusterResourceRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
62
foas/src/model/GetClusterResourceResult.cc
Normal file
62
foas/src/model/GetClusterResourceResult.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetClusterResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetClusterResourceResult::GetClusterResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetClusterResourceResult::GetClusterResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetClusterResourceResult::~GetClusterResourceResult()
|
||||
{}
|
||||
|
||||
void GetClusterResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceNode = value["Resource"];
|
||||
if(!resourceNode["TotalMB"].isNull())
|
||||
resource_.totalMB = std::stol(resourceNode["TotalMB"].asString());
|
||||
if(!resourceNode["AllocatedMB"].isNull())
|
||||
resource_.allocatedMB = std::stol(resourceNode["AllocatedMB"].asString());
|
||||
if(!resourceNode["AvailableMB"].isNull())
|
||||
resource_.availableMB = std::stol(resourceNode["AvailableMB"].asString());
|
||||
if(!resourceNode["TotalVirtualCores"].isNull())
|
||||
resource_.totalVirtualCores = std::stol(resourceNode["TotalVirtualCores"].asString());
|
||||
if(!resourceNode["AllocatedVirtualCores"].isNull())
|
||||
resource_.allocatedVirtualCores = std::stol(resourceNode["AllocatedVirtualCores"].asString());
|
||||
if(!resourceNode["AvailableVirtualCores"].isNull())
|
||||
resource_.availableVirtualCores = std::stol(resourceNode["AvailableVirtualCores"].asString());
|
||||
|
||||
}
|
||||
|
||||
GetClusterResourceResult::Resource GetClusterResourceResult::getResource()const
|
||||
{
|
||||
return resource_;
|
||||
}
|
||||
|
||||
60
foas/src/model/GetFolderRequest.cc
Normal file
60
foas/src/model/GetFolderRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetFolderRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetFolderRequest;
|
||||
|
||||
GetFolderRequest::GetFolderRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetFolderRequest::~GetFolderRequest()
|
||||
{}
|
||||
|
||||
std::string GetFolderRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
}
|
||||
|
||||
void GetFolderRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setCoreParameter("Path", path);
|
||||
}
|
||||
|
||||
std::string GetFolderRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetFolderRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string GetFolderRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetFolderRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
54
foas/src/model/GetFolderResult.cc
Normal file
54
foas/src/model/GetFolderResult.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/foas/model/GetFolderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetFolderResult::GetFolderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetFolderResult::GetFolderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetFolderResult::~GetFolderResult()
|
||||
{}
|
||||
|
||||
void GetFolderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto folderNode = value["Folder"];
|
||||
if(!folderNode["FolderId"].isNull())
|
||||
folder_.folderId = std::stol(folderNode["FolderId"].asString());
|
||||
if(!folderNode["Path"].isNull())
|
||||
folder_.path = folderNode["Path"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetFolderResult::Folder GetFolderResult::getFolder()const
|
||||
{
|
||||
return folder_;
|
||||
}
|
||||
|
||||
71
foas/src/model/GetInstanceCheckpointRequest.cc
Normal file
71
foas/src/model/GetInstanceCheckpointRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceCheckpointRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetInstanceCheckpointRequest;
|
||||
|
||||
GetInstanceCheckpointRequest::GetInstanceCheckpointRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetInstanceCheckpointRequest::~GetInstanceCheckpointRequest()
|
||||
{}
|
||||
|
||||
std::string GetInstanceCheckpointRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetInstanceCheckpointRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long GetInstanceCheckpointRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetInstanceCheckpointRequest::setInstanceId(long instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", std::to_string(instanceId));
|
||||
}
|
||||
|
||||
std::string GetInstanceCheckpointRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetInstanceCheckpointRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetInstanceCheckpointRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void GetInstanceCheckpointRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
51
foas/src/model/GetInstanceCheckpointResult.cc
Normal file
51
foas/src/model/GetInstanceCheckpointResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceCheckpointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetInstanceCheckpointResult::GetInstanceCheckpointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInstanceCheckpointResult::GetInstanceCheckpointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInstanceCheckpointResult::~GetInstanceCheckpointResult()
|
||||
{}
|
||||
|
||||
void GetInstanceCheckpointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Checkpoints"].isNull())
|
||||
checkpoints_ = value["Checkpoints"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetInstanceCheckpointResult::getCheckpoints()const
|
||||
{
|
||||
return checkpoints_;
|
||||
}
|
||||
|
||||
71
foas/src/model/GetInstanceConfigRequest.cc
Normal file
71
foas/src/model/GetInstanceConfigRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetInstanceConfigRequest;
|
||||
|
||||
GetInstanceConfigRequest::GetInstanceConfigRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetInstanceConfigRequest::~GetInstanceConfigRequest()
|
||||
{}
|
||||
|
||||
std::string GetInstanceConfigRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetInstanceConfigRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long GetInstanceConfigRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetInstanceConfigRequest::setInstanceId(long instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", std::to_string(instanceId));
|
||||
}
|
||||
|
||||
std::string GetInstanceConfigRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetInstanceConfigRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetInstanceConfigRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void GetInstanceConfigRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
51
foas/src/model/GetInstanceConfigResult.cc
Normal file
51
foas/src/model/GetInstanceConfigResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetInstanceConfigResult::GetInstanceConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInstanceConfigResult::GetInstanceConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInstanceConfigResult::~GetInstanceConfigResult()
|
||||
{}
|
||||
|
||||
void GetInstanceConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Config"].isNull())
|
||||
config_ = value["Config"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetInstanceConfigResult::getConfig()const
|
||||
{
|
||||
return config_;
|
||||
}
|
||||
|
||||
71
foas/src/model/GetInstanceDetailRequest.cc
Normal file
71
foas/src/model/GetInstanceDetailRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetInstanceDetailRequest;
|
||||
|
||||
GetInstanceDetailRequest::GetInstanceDetailRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetInstanceDetailRequest::~GetInstanceDetailRequest()
|
||||
{}
|
||||
|
||||
std::string GetInstanceDetailRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetInstanceDetailRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long GetInstanceDetailRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetInstanceDetailRequest::setInstanceId(long instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", std::to_string(instanceId));
|
||||
}
|
||||
|
||||
std::string GetInstanceDetailRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetInstanceDetailRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetInstanceDetailRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void GetInstanceDetailRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
51
foas/src/model/GetInstanceDetailResult.cc
Normal file
51
foas/src/model/GetInstanceDetailResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetInstanceDetailResult::GetInstanceDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInstanceDetailResult::GetInstanceDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInstanceDetailResult::~GetInstanceDetailResult()
|
||||
{}
|
||||
|
||||
void GetInstanceDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Detail"].isNull())
|
||||
detail_ = value["Detail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetInstanceDetailResult::getDetail()const
|
||||
{
|
||||
return detail_;
|
||||
}
|
||||
|
||||
71
foas/src/model/GetInstanceExceptionsRequest.cc
Normal file
71
foas/src/model/GetInstanceExceptionsRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceExceptionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetInstanceExceptionsRequest;
|
||||
|
||||
GetInstanceExceptionsRequest::GetInstanceExceptionsRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetInstanceExceptionsRequest::~GetInstanceExceptionsRequest()
|
||||
{}
|
||||
|
||||
std::string GetInstanceExceptionsRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetInstanceExceptionsRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long GetInstanceExceptionsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetInstanceExceptionsRequest::setInstanceId(long instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", std::to_string(instanceId));
|
||||
}
|
||||
|
||||
std::string GetInstanceExceptionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetInstanceExceptionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetInstanceExceptionsRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void GetInstanceExceptionsRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
51
foas/src/model/GetInstanceExceptionsResult.cc
Normal file
51
foas/src/model/GetInstanceExceptionsResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceExceptionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetInstanceExceptionsResult::GetInstanceExceptionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInstanceExceptionsResult::GetInstanceExceptionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInstanceExceptionsResult::~GetInstanceExceptionsResult()
|
||||
{}
|
||||
|
||||
void GetInstanceExceptionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Exceptions"].isNull())
|
||||
exceptions_ = value["Exceptions"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetInstanceExceptionsResult::getExceptions()const
|
||||
{
|
||||
return exceptions_;
|
||||
}
|
||||
|
||||
71
foas/src/model/GetInstanceFinalStateRequest.cc
Normal file
71
foas/src/model/GetInstanceFinalStateRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceFinalStateRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetInstanceFinalStateRequest;
|
||||
|
||||
GetInstanceFinalStateRequest::GetInstanceFinalStateRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetInstanceFinalStateRequest::~GetInstanceFinalStateRequest()
|
||||
{}
|
||||
|
||||
std::string GetInstanceFinalStateRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetInstanceFinalStateRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long GetInstanceFinalStateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetInstanceFinalStateRequest::setInstanceId(long instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", std::to_string(instanceId));
|
||||
}
|
||||
|
||||
std::string GetInstanceFinalStateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetInstanceFinalStateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetInstanceFinalStateRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void GetInstanceFinalStateRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
51
foas/src/model/GetInstanceFinalStateResult.cc
Normal file
51
foas/src/model/GetInstanceFinalStateResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceFinalStateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetInstanceFinalStateResult::GetInstanceFinalStateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInstanceFinalStateResult::GetInstanceFinalStateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInstanceFinalStateResult::~GetInstanceFinalStateResult()
|
||||
{}
|
||||
|
||||
void GetInstanceFinalStateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Finalstate"].isNull())
|
||||
finalstate_ = value["Finalstate"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetInstanceFinalStateResult::getFinalstate()const
|
||||
{
|
||||
return finalstate_;
|
||||
}
|
||||
|
||||
@@ -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/foas/model/GetInstanceHistoryAutoScalePlanContentRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetInstanceHistoryAutoScalePlanContentRequest;
|
||||
|
||||
GetInstanceHistoryAutoScalePlanContentRequest::GetInstanceHistoryAutoScalePlanContentRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetInstanceHistoryAutoScalePlanContentRequest::~GetInstanceHistoryAutoScalePlanContentRequest()
|
||||
{}
|
||||
|
||||
std::string GetInstanceHistoryAutoScalePlanContentRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetInstanceHistoryAutoScalePlanContentRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long GetInstanceHistoryAutoScalePlanContentRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetInstanceHistoryAutoScalePlanContentRequest::setInstanceId(long instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", std::to_string(instanceId));
|
||||
}
|
||||
|
||||
std::string GetInstanceHistoryAutoScalePlanContentRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetInstanceHistoryAutoScalePlanContentRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetInstanceHistoryAutoScalePlanContentRequest::getPlanName()const
|
||||
{
|
||||
return planName_;
|
||||
}
|
||||
|
||||
void GetInstanceHistoryAutoScalePlanContentRequest::setPlanName(const std::string& planName)
|
||||
{
|
||||
planName_ = planName;
|
||||
setCoreParameter("PlanName", planName);
|
||||
}
|
||||
|
||||
std::string GetInstanceHistoryAutoScalePlanContentRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void GetInstanceHistoryAutoScalePlanContentRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceHistoryAutoScalePlanContentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetInstanceHistoryAutoScalePlanContentResult::GetInstanceHistoryAutoScalePlanContentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInstanceHistoryAutoScalePlanContentResult::GetInstanceHistoryAutoScalePlanContentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInstanceHistoryAutoScalePlanContentResult::~GetInstanceHistoryAutoScalePlanContentResult()
|
||||
{}
|
||||
|
||||
void GetInstanceHistoryAutoScalePlanContentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["PlanContent"].isNull())
|
||||
planContent_ = value["PlanContent"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetInstanceHistoryAutoScalePlanContentResult::getPlanContent()const
|
||||
{
|
||||
return planContent_;
|
||||
}
|
||||
|
||||
71
foas/src/model/GetInstanceHistoryAutoScalePlanListRequest.cc
Normal file
71
foas/src/model/GetInstanceHistoryAutoScalePlanListRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceHistoryAutoScalePlanListRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetInstanceHistoryAutoScalePlanListRequest;
|
||||
|
||||
GetInstanceHistoryAutoScalePlanListRequest::GetInstanceHistoryAutoScalePlanListRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetInstanceHistoryAutoScalePlanListRequest::~GetInstanceHistoryAutoScalePlanListRequest()
|
||||
{}
|
||||
|
||||
std::string GetInstanceHistoryAutoScalePlanListRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetInstanceHistoryAutoScalePlanListRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long GetInstanceHistoryAutoScalePlanListRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetInstanceHistoryAutoScalePlanListRequest::setInstanceId(long instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", std::to_string(instanceId));
|
||||
}
|
||||
|
||||
std::string GetInstanceHistoryAutoScalePlanListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetInstanceHistoryAutoScalePlanListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetInstanceHistoryAutoScalePlanListRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void GetInstanceHistoryAutoScalePlanListRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
52
foas/src/model/GetInstanceHistoryAutoScalePlanListResult.cc
Normal file
52
foas/src/model/GetInstanceHistoryAutoScalePlanListResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/GetInstanceHistoryAutoScalePlanListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetInstanceHistoryAutoScalePlanListResult::GetInstanceHistoryAutoScalePlanListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInstanceHistoryAutoScalePlanListResult::GetInstanceHistoryAutoScalePlanListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInstanceHistoryAutoScalePlanListResult::~GetInstanceHistoryAutoScalePlanListResult()
|
||||
{}
|
||||
|
||||
void GetInstanceHistoryAutoScalePlanListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPlanList = value["PlanList"]["Plan"];
|
||||
for (const auto &item : allPlanList)
|
||||
planList_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> GetInstanceHistoryAutoScalePlanListResult::getPlanList()const
|
||||
{
|
||||
return planList_;
|
||||
}
|
||||
|
||||
82
foas/src/model/GetInstanceMetricRequest.cc
Normal file
82
foas/src/model/GetInstanceMetricRequest.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/foas/model/GetInstanceMetricRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetInstanceMetricRequest;
|
||||
|
||||
GetInstanceMetricRequest::GetInstanceMetricRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetInstanceMetricRequest::~GetInstanceMetricRequest()
|
||||
{}
|
||||
|
||||
std::string GetInstanceMetricRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetInstanceMetricRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long GetInstanceMetricRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetInstanceMetricRequest::setInstanceId(long instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", std::to_string(instanceId));
|
||||
}
|
||||
|
||||
std::string GetInstanceMetricRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetInstanceMetricRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetInstanceMetricRequest::getMetricJson()const
|
||||
{
|
||||
return metricJson_;
|
||||
}
|
||||
|
||||
void GetInstanceMetricRequest::setMetricJson(const std::string& metricJson)
|
||||
{
|
||||
metricJson_ = metricJson;
|
||||
setCoreParameter("MetricJson", metricJson);
|
||||
}
|
||||
|
||||
std::string GetInstanceMetricRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void GetInstanceMetricRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
63
foas/src/model/GetInstanceMetricResult.cc
Normal file
63
foas/src/model/GetInstanceMetricResult.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/foas/model/GetInstanceMetricResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetInstanceMetricResult::GetInstanceMetricResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInstanceMetricResult::GetInstanceMetricResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInstanceMetricResult::~GetInstanceMetricResult()
|
||||
{}
|
||||
|
||||
void GetInstanceMetricResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allMetrics = value["Metrics"]["Metric"];
|
||||
for (auto value : allMetrics)
|
||||
{
|
||||
Metric metricsObject;
|
||||
if(!value["MetricName"].isNull())
|
||||
metricsObject.metricName = value["MetricName"].asString();
|
||||
if(!value["Dps"].isNull())
|
||||
metricsObject.dps = value["Dps"].asString();
|
||||
if(!value["Summary"].isNull())
|
||||
metricsObject.summary = std::stof(value["Summary"].asString());
|
||||
if(!value["Tags"].isNull())
|
||||
metricsObject.tags = value["Tags"].asString();
|
||||
metrics_.push_back(metricsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetInstanceMetricResult::Metric> GetInstanceMetricResult::getMetrics()const
|
||||
{
|
||||
return metrics_;
|
||||
}
|
||||
|
||||
71
foas/src/model/GetInstanceRequest.cc
Normal file
71
foas/src/model/GetInstanceRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetInstanceRequest;
|
||||
|
||||
GetInstanceRequest::GetInstanceRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetInstanceRequest::~GetInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string GetInstanceRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetInstanceRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long GetInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetInstanceRequest::setInstanceId(long instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", std::to_string(instanceId));
|
||||
}
|
||||
|
||||
std::string GetInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetInstanceRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void GetInstanceRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
71
foas/src/model/GetInstanceResourceRequest.cc
Normal file
71
foas/src/model/GetInstanceResourceRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetInstanceResourceRequest;
|
||||
|
||||
GetInstanceResourceRequest::GetInstanceResourceRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetInstanceResourceRequest::~GetInstanceResourceRequest()
|
||||
{}
|
||||
|
||||
std::string GetInstanceResourceRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetInstanceResourceRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long GetInstanceResourceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetInstanceResourceRequest::setInstanceId(long instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", std::to_string(instanceId));
|
||||
}
|
||||
|
||||
std::string GetInstanceResourceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetInstanceResourceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetInstanceResourceRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void GetInstanceResourceRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
58
foas/src/model/GetInstanceResourceResult.cc
Normal file
58
foas/src/model/GetInstanceResourceResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/GetInstanceResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetInstanceResourceResult::GetInstanceResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInstanceResourceResult::GetInstanceResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInstanceResourceResult::~GetInstanceResourceResult()
|
||||
{}
|
||||
|
||||
void GetInstanceResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceNode = value["Resource"];
|
||||
if(!resourceNode["TotalMB"].isNull())
|
||||
resource_.totalMB = std::stol(resourceNode["TotalMB"].asString());
|
||||
if(!resourceNode["AllocatedMB"].isNull())
|
||||
resource_.allocatedMB = std::stol(resourceNode["AllocatedMB"].asString());
|
||||
if(!resourceNode["TotalVirtualCores"].isNull())
|
||||
resource_.totalVirtualCores = std::stol(resourceNode["TotalVirtualCores"].asString());
|
||||
if(!resourceNode["AllocatedVirtualCores"].isNull())
|
||||
resource_.allocatedVirtualCores = std::stol(resourceNode["AllocatedVirtualCores"].asString());
|
||||
|
||||
}
|
||||
|
||||
GetInstanceResourceResult::Resource GetInstanceResourceResult::getResource()const
|
||||
{
|
||||
return resource_;
|
||||
}
|
||||
|
||||
96
foas/src/model/GetInstanceResult.cc
Normal file
96
foas/src/model/GetInstanceResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/GetInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetInstanceResult::GetInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInstanceResult::GetInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInstanceResult::~GetInstanceResult()
|
||||
{}
|
||||
|
||||
void GetInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto instanceNode = value["Instance"];
|
||||
if(!instanceNode["Id"].isNull())
|
||||
instance_.id = std::stol(instanceNode["Id"].asString());
|
||||
if(!instanceNode["ProjectName"].isNull())
|
||||
instance_.projectName = instanceNode["ProjectName"].asString();
|
||||
if(!instanceNode["JobName"].isNull())
|
||||
instance_.jobName = instanceNode["JobName"].asString();
|
||||
if(!instanceNode["ActualState"].isNull())
|
||||
instance_.actualState = instanceNode["ActualState"].asString();
|
||||
if(!instanceNode["ExpectState"].isNull())
|
||||
instance_.expectState = instanceNode["ExpectState"].asString();
|
||||
if(!instanceNode["JobType"].isNull())
|
||||
instance_.jobType = instanceNode["JobType"].asString();
|
||||
if(!instanceNode["ApiType"].isNull())
|
||||
instance_.apiType = instanceNode["ApiType"].asString();
|
||||
if(!instanceNode["Code"].isNull())
|
||||
instance_.code = instanceNode["Code"].asString();
|
||||
if(!instanceNode["Properties"].isNull())
|
||||
instance_.properties = instanceNode["Properties"].asString();
|
||||
if(!instanceNode["Packages"].isNull())
|
||||
instance_.packages = instanceNode["Packages"].asString();
|
||||
if(!instanceNode["Starter"].isNull())
|
||||
instance_.starter = instanceNode["Starter"].asString();
|
||||
if(!instanceNode["StartTime"].isNull())
|
||||
instance_.startTime = std::stol(instanceNode["StartTime"].asString());
|
||||
if(!instanceNode["LastErrorTime"].isNull())
|
||||
instance_.lastErrorTime = std::stol(instanceNode["LastErrorTime"].asString());
|
||||
if(!instanceNode["LastErrorMessage"].isNull())
|
||||
instance_.lastErrorMessage = instanceNode["LastErrorMessage"].asString();
|
||||
if(!instanceNode["LastOperator"].isNull())
|
||||
instance_.lastOperator = instanceNode["LastOperator"].asString();
|
||||
if(!instanceNode["LastOperateTime"].isNull())
|
||||
instance_.lastOperateTime = std::stol(instanceNode["LastOperateTime"].asString());
|
||||
if(!instanceNode["PlanJson"].isNull())
|
||||
instance_.planJson = instanceNode["PlanJson"].asString();
|
||||
if(!instanceNode["EngineVersion"].isNull())
|
||||
instance_.engineVersion = instanceNode["EngineVersion"].asString();
|
||||
if(!instanceNode["EngineJobHandler"].isNull())
|
||||
instance_.engineJobHandler = instanceNode["EngineJobHandler"].asString();
|
||||
if(!instanceNode["InputDelay"].isNull())
|
||||
instance_.inputDelay = std::stol(instanceNode["InputDelay"].asString());
|
||||
if(!instanceNode["ClusterId"].isNull())
|
||||
instance_.clusterId = instanceNode["ClusterId"].asString();
|
||||
if(!instanceNode["QueueName"].isNull())
|
||||
instance_.queueName = instanceNode["QueueName"].asString();
|
||||
if(!instanceNode["EndTime"].isNull())
|
||||
instance_.endTime = std::stol(instanceNode["EndTime"].asString());
|
||||
|
||||
}
|
||||
|
||||
GetInstanceResult::Instance GetInstanceResult::getInstance()const
|
||||
{
|
||||
return instance_;
|
||||
}
|
||||
|
||||
71
foas/src/model/GetInstanceRunSummaryRequest.cc
Normal file
71
foas/src/model/GetInstanceRunSummaryRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceRunSummaryRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetInstanceRunSummaryRequest;
|
||||
|
||||
GetInstanceRunSummaryRequest::GetInstanceRunSummaryRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetInstanceRunSummaryRequest::~GetInstanceRunSummaryRequest()
|
||||
{}
|
||||
|
||||
std::string GetInstanceRunSummaryRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetInstanceRunSummaryRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long GetInstanceRunSummaryRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetInstanceRunSummaryRequest::setInstanceId(long instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", std::to_string(instanceId));
|
||||
}
|
||||
|
||||
std::string GetInstanceRunSummaryRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetInstanceRunSummaryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetInstanceRunSummaryRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void GetInstanceRunSummaryRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
66
foas/src/model/GetInstanceRunSummaryResult.cc
Normal file
66
foas/src/model/GetInstanceRunSummaryResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceRunSummaryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetInstanceRunSummaryResult::GetInstanceRunSummaryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInstanceRunSummaryResult::GetInstanceRunSummaryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInstanceRunSummaryResult::~GetInstanceRunSummaryResult()
|
||||
{}
|
||||
|
||||
void GetInstanceRunSummaryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto runSummaryNode = value["RunSummary"];
|
||||
if(!runSummaryNode["Id"].isNull())
|
||||
runSummary_.id = std::stol(runSummaryNode["Id"].asString());
|
||||
if(!runSummaryNode["ActualState"].isNull())
|
||||
runSummary_.actualState = runSummaryNode["ActualState"].asString();
|
||||
if(!runSummaryNode["ExpectState"].isNull())
|
||||
runSummary_.expectState = runSummaryNode["ExpectState"].asString();
|
||||
if(!runSummaryNode["LastErrorTime"].isNull())
|
||||
runSummary_.lastErrorTime = std::stol(runSummaryNode["LastErrorTime"].asString());
|
||||
if(!runSummaryNode["LastErrorMessage"].isNull())
|
||||
runSummary_.lastErrorMessage = runSummaryNode["LastErrorMessage"].asString();
|
||||
if(!runSummaryNode["EngineJobHandler"].isNull())
|
||||
runSummary_.engineJobHandler = runSummaryNode["EngineJobHandler"].asString();
|
||||
if(!runSummaryNode["InputDelay"].isNull())
|
||||
runSummary_.inputDelay = std::stol(runSummaryNode["InputDelay"].asString());
|
||||
if(!runSummaryNode["JobName"].isNull())
|
||||
runSummary_.jobName = runSummaryNode["JobName"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetInstanceRunSummaryResult::RunSummary GetInstanceRunSummaryResult::getRunSummary()const
|
||||
{
|
||||
return runSummary_;
|
||||
}
|
||||
|
||||
82
foas/src/model/GetInstanceVertexTaskManagersRequest.cc
Normal file
82
foas/src/model/GetInstanceVertexTaskManagersRequest.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/foas/model/GetInstanceVertexTaskManagersRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetInstanceVertexTaskManagersRequest;
|
||||
|
||||
GetInstanceVertexTaskManagersRequest::GetInstanceVertexTaskManagersRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetInstanceVertexTaskManagersRequest::~GetInstanceVertexTaskManagersRequest()
|
||||
{}
|
||||
|
||||
std::string GetInstanceVertexTaskManagersRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetInstanceVertexTaskManagersRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long GetInstanceVertexTaskManagersRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetInstanceVertexTaskManagersRequest::setInstanceId(long instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", std::to_string(instanceId));
|
||||
}
|
||||
|
||||
std::string GetInstanceVertexTaskManagersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetInstanceVertexTaskManagersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetInstanceVertexTaskManagersRequest::getVertexId()const
|
||||
{
|
||||
return vertexId_;
|
||||
}
|
||||
|
||||
void GetInstanceVertexTaskManagersRequest::setVertexId(const std::string& vertexId)
|
||||
{
|
||||
vertexId_ = vertexId;
|
||||
setCoreParameter("VertexId", vertexId);
|
||||
}
|
||||
|
||||
std::string GetInstanceVertexTaskManagersRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void GetInstanceVertexTaskManagersRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
51
foas/src/model/GetInstanceVertexTaskManagersResult.cc
Normal file
51
foas/src/model/GetInstanceVertexTaskManagersResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetInstanceVertexTaskManagersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetInstanceVertexTaskManagersResult::GetInstanceVertexTaskManagersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInstanceVertexTaskManagersResult::GetInstanceVertexTaskManagersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInstanceVertexTaskManagersResult::~GetInstanceVertexTaskManagersResult()
|
||||
{}
|
||||
|
||||
void GetInstanceVertexTaskManagersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskManagers"].isNull())
|
||||
taskManagers_ = value["TaskManagers"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetInstanceVertexTaskManagersResult::getTaskManagers()const
|
||||
{
|
||||
return taskManagers_;
|
||||
}
|
||||
|
||||
60
foas/src/model/GetJobLatestAutoScalePlanRequest.cc
Normal file
60
foas/src/model/GetJobLatestAutoScalePlanRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetJobLatestAutoScalePlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetJobLatestAutoScalePlanRequest;
|
||||
|
||||
GetJobLatestAutoScalePlanRequest::GetJobLatestAutoScalePlanRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetJobLatestAutoScalePlanRequest::~GetJobLatestAutoScalePlanRequest()
|
||||
{}
|
||||
|
||||
std::string GetJobLatestAutoScalePlanRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetJobLatestAutoScalePlanRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string GetJobLatestAutoScalePlanRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetJobLatestAutoScalePlanRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetJobLatestAutoScalePlanRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void GetJobLatestAutoScalePlanRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
51
foas/src/model/GetJobLatestAutoScalePlanResult.cc
Normal file
51
foas/src/model/GetJobLatestAutoScalePlanResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetJobLatestAutoScalePlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetJobLatestAutoScalePlanResult::GetJobLatestAutoScalePlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetJobLatestAutoScalePlanResult::GetJobLatestAutoScalePlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetJobLatestAutoScalePlanResult::~GetJobLatestAutoScalePlanResult()
|
||||
{}
|
||||
|
||||
void GetJobLatestAutoScalePlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["PlanJson"].isNull())
|
||||
planJson_ = value["PlanJson"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetJobLatestAutoScalePlanResult::getPlanJson()const
|
||||
{
|
||||
return planJson_;
|
||||
}
|
||||
|
||||
60
foas/src/model/GetJobRequest.cc
Normal file
60
foas/src/model/GetJobRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetJobRequest;
|
||||
|
||||
GetJobRequest::GetJobRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetJobRequest::~GetJobRequest()
|
||||
{}
|
||||
|
||||
std::string GetJobRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetJobRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string GetJobRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetJobRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void GetJobRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
88
foas/src/model/GetJobResult.cc
Normal file
88
foas/src/model/GetJobResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/GetJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetJobResult::GetJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetJobResult::GetJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetJobResult::~GetJobResult()
|
||||
{}
|
||||
|
||||
void GetJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobNode = value["Job"];
|
||||
if(!jobNode["JobName"].isNull())
|
||||
job_.jobName = jobNode["JobName"].asString();
|
||||
if(!jobNode["ProjectName"].isNull())
|
||||
job_.projectName = jobNode["ProjectName"].asString();
|
||||
if(!jobNode["JobType"].isNull())
|
||||
job_.jobType = jobNode["JobType"].asString();
|
||||
if(!jobNode["ApiType"].isNull())
|
||||
job_.apiType = jobNode["ApiType"].asString();
|
||||
if(!jobNode["Code"].isNull())
|
||||
job_.code = jobNode["Code"].asString();
|
||||
if(!jobNode["PlanJson"].isNull())
|
||||
job_.planJson = jobNode["PlanJson"].asString();
|
||||
if(!jobNode["Properties"].isNull())
|
||||
job_.properties = jobNode["Properties"].asString();
|
||||
if(!jobNode["Packages"].isNull())
|
||||
job_.packages = jobNode["Packages"].asString();
|
||||
if(!jobNode["IsCommitted"].isNull())
|
||||
job_.isCommitted = jobNode["IsCommitted"].asString() == "true";
|
||||
if(!jobNode["Creator"].isNull())
|
||||
job_.creator = jobNode["Creator"].asString();
|
||||
if(!jobNode["CreateTime"].isNull())
|
||||
job_.createTime = std::stol(jobNode["CreateTime"].asString());
|
||||
if(!jobNode["Modifier"].isNull())
|
||||
job_.modifier = jobNode["Modifier"].asString();
|
||||
if(!jobNode["ModifyTime"].isNull())
|
||||
job_.modifyTime = std::stol(jobNode["ModifyTime"].asString());
|
||||
if(!jobNode["Description"].isNull())
|
||||
job_.description = jobNode["Description"].asString();
|
||||
if(!jobNode["EngineVersion"].isNull())
|
||||
job_.engineVersion = jobNode["EngineVersion"].asString();
|
||||
if(!jobNode["ClusterId"].isNull())
|
||||
job_.clusterId = jobNode["ClusterId"].asString();
|
||||
if(!jobNode["QueueName"].isNull())
|
||||
job_.queueName = jobNode["QueueName"].asString();
|
||||
if(!jobNode["FolderId"].isNull())
|
||||
job_.folderId = std::stol(jobNode["FolderId"].asString());
|
||||
if(!jobNode["JobId"].isNull())
|
||||
job_.jobId = jobNode["JobId"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetJobResult::Job GetJobResult::getJob()const
|
||||
{
|
||||
return job_;
|
||||
}
|
||||
|
||||
60
foas/src/model/GetPackageRequest.cc
Normal file
60
foas/src/model/GetPackageRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetPackageRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetPackageRequest;
|
||||
|
||||
GetPackageRequest::GetPackageRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetPackageRequest::~GetPackageRequest()
|
||||
{}
|
||||
|
||||
std::string GetPackageRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetPackageRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string GetPackageRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetPackageRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetPackageRequest::getPackageName()const
|
||||
{
|
||||
return packageName_;
|
||||
}
|
||||
|
||||
void GetPackageRequest::setPackageName(const std::string& packageName)
|
||||
{
|
||||
packageName_ = packageName;
|
||||
setCoreParameter("PackageName", packageName);
|
||||
}
|
||||
|
||||
80
foas/src/model/GetPackageResult.cc
Normal file
80
foas/src/model/GetPackageResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/GetPackageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetPackageResult::GetPackageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPackageResult::GetPackageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPackageResult::~GetPackageResult()
|
||||
{}
|
||||
|
||||
void GetPackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto packageNode = value["Package"];
|
||||
if(!packageNode["ProjectName"].isNull())
|
||||
package_.projectName = packageNode["ProjectName"].asString();
|
||||
if(!packageNode["PackageName"].isNull())
|
||||
package_.packageName = packageNode["PackageName"].asString();
|
||||
if(!packageNode["Creator"].isNull())
|
||||
package_.creator = packageNode["Creator"].asString();
|
||||
if(!packageNode["Modifier"].isNull())
|
||||
package_.modifier = packageNode["Modifier"].asString();
|
||||
if(!packageNode["CreateTime"].isNull())
|
||||
package_.createTime = std::stol(packageNode["CreateTime"].asString());
|
||||
if(!packageNode["ModifyTime"].isNull())
|
||||
package_.modifyTime = std::stol(packageNode["ModifyTime"].asString());
|
||||
if(!packageNode["OriginName"].isNull())
|
||||
package_.originName = packageNode["OriginName"].asString();
|
||||
if(!packageNode["Type"].isNull())
|
||||
package_.type = packageNode["Type"].asString();
|
||||
if(!packageNode["Md5"].isNull())
|
||||
package_.md5 = packageNode["Md5"].asString();
|
||||
if(!packageNode["Description"].isNull())
|
||||
package_.description = packageNode["Description"].asString();
|
||||
if(!packageNode["OssEndpoint"].isNull())
|
||||
package_.ossEndpoint = packageNode["OssEndpoint"].asString();
|
||||
if(!packageNode["OssBucket"].isNull())
|
||||
package_.ossBucket = packageNode["OssBucket"].asString();
|
||||
if(!packageNode["OssOwner"].isNull())
|
||||
package_.ossOwner = packageNode["OssOwner"].asString();
|
||||
if(!packageNode["OssPath"].isNull())
|
||||
package_.ossPath = packageNode["OssPath"].asString();
|
||||
if(!packageNode["Tag"].isNull())
|
||||
package_.tag = packageNode["Tag"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetPackageResult::Package GetPackageResult::getPackage()const
|
||||
{
|
||||
return package_;
|
||||
}
|
||||
|
||||
49
foas/src/model/GetProjectRequest.cc
Normal file
49
foas/src/model/GetProjectRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetProjectRequest;
|
||||
|
||||
GetProjectRequest::GetProjectRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetProjectRequest::~GetProjectRequest()
|
||||
{}
|
||||
|
||||
std::string GetProjectRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetProjectRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string GetProjectRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetProjectRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
74
foas/src/model/GetProjectResult.cc
Normal file
74
foas/src/model/GetProjectResult.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/foas/model/GetProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetProjectResult::GetProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetProjectResult::GetProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetProjectResult::~GetProjectResult()
|
||||
{}
|
||||
|
||||
void GetProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto projectNode = value["Project"];
|
||||
if(!projectNode["Name"].isNull())
|
||||
project_.name = projectNode["Name"].asString();
|
||||
if(!projectNode["State"].isNull())
|
||||
project_.state = projectNode["State"].asString();
|
||||
if(!projectNode["Creator"].isNull())
|
||||
project_.creator = projectNode["Creator"].asString();
|
||||
if(!projectNode["CreateTime"].isNull())
|
||||
project_.createTime = std::stol(projectNode["CreateTime"].asString());
|
||||
if(!projectNode["Modifier"].isNull())
|
||||
project_.modifier = projectNode["Modifier"].asString();
|
||||
if(!projectNode["ModifyTime"].isNull())
|
||||
project_.modifyTime = std::stol(projectNode["ModifyTime"].asString());
|
||||
if(!projectNode["Description"].isNull())
|
||||
project_.description = projectNode["Description"].asString();
|
||||
if(!projectNode["DeployType"].isNull())
|
||||
project_.deployType = projectNode["DeployType"].asString();
|
||||
if(!projectNode["ClusterId"].isNull())
|
||||
project_.clusterId = projectNode["ClusterId"].asString();
|
||||
if(!projectNode["ManagerIds"].isNull())
|
||||
project_.managerIds = projectNode["ManagerIds"].asString();
|
||||
if(!projectNode["Region"].isNull())
|
||||
project_.region = projectNode["Region"].asString();
|
||||
if(!projectNode["Id"].isNull())
|
||||
project_.id = projectNode["Id"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetProjectResult::Project GetProjectResult::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
93
foas/src/model/GetRawPlanJsonRequest.cc
Normal file
93
foas/src/model/GetRawPlanJsonRequest.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/foas/model/GetRawPlanJsonRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetRawPlanJsonRequest;
|
||||
|
||||
GetRawPlanJsonRequest::GetRawPlanJsonRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetRawPlanJsonRequest::~GetRawPlanJsonRequest()
|
||||
{}
|
||||
|
||||
std::string GetRawPlanJsonRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetRawPlanJsonRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string GetRawPlanJsonRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetRawPlanJsonRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
float GetRawPlanJsonRequest::getExpectedGB()const
|
||||
{
|
||||
return expectedGB_;
|
||||
}
|
||||
|
||||
void GetRawPlanJsonRequest::setExpectedGB(float expectedGB)
|
||||
{
|
||||
expectedGB_ = expectedGB;
|
||||
setCoreParameter("ExpectedGB", std::to_string(expectedGB));
|
||||
}
|
||||
|
||||
float GetRawPlanJsonRequest::getExpectedCore()const
|
||||
{
|
||||
return expectedCore_;
|
||||
}
|
||||
|
||||
void GetRawPlanJsonRequest::setExpectedCore(float expectedCore)
|
||||
{
|
||||
expectedCore_ = expectedCore;
|
||||
setCoreParameter("ExpectedCore", std::to_string(expectedCore));
|
||||
}
|
||||
|
||||
std::string GetRawPlanJsonRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void GetRawPlanJsonRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
bool GetRawPlanJsonRequest::getAutoconfEnable()const
|
||||
{
|
||||
return autoconfEnable_;
|
||||
}
|
||||
|
||||
void GetRawPlanJsonRequest::setAutoconfEnable(bool autoconfEnable)
|
||||
{
|
||||
autoconfEnable_ = autoconfEnable;
|
||||
setCoreParameter("AutoconfEnable", autoconfEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
51
foas/src/model/GetRawPlanJsonResult.cc
Normal file
51
foas/src/model/GetRawPlanJsonResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/GetRawPlanJsonResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetRawPlanJsonResult::GetRawPlanJsonResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetRawPlanJsonResult::GetRawPlanJsonResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetRawPlanJsonResult::~GetRawPlanJsonResult()
|
||||
{}
|
||||
|
||||
void GetRawPlanJsonResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SessionId"].isNull())
|
||||
sessionId_ = value["SessionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetRawPlanJsonResult::getSessionId()const
|
||||
{
|
||||
return sessionId_;
|
||||
}
|
||||
|
||||
82
foas/src/model/GetRefPackageJobRequest.cc
Normal file
82
foas/src/model/GetRefPackageJobRequest.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/foas/model/GetRefPackageJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::GetRefPackageJobRequest;
|
||||
|
||||
GetRefPackageJobRequest::GetRefPackageJobRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
GetRefPackageJobRequest::~GetRefPackageJobRequest()
|
||||
{}
|
||||
|
||||
std::string GetRefPackageJobRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetRefPackageJobRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string GetRefPackageJobRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetRefPackageJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetRefPackageJobRequest::getPackageName()const
|
||||
{
|
||||
return packageName_;
|
||||
}
|
||||
|
||||
void GetRefPackageJobRequest::setPackageName(const std::string& packageName)
|
||||
{
|
||||
packageName_ = packageName;
|
||||
setCoreParameter("PackageName", packageName);
|
||||
}
|
||||
|
||||
int GetRefPackageJobRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetRefPackageJobRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int GetRefPackageJobRequest::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
void GetRefPackageJobRequest::setPageIndex(int pageIndex)
|
||||
{
|
||||
pageIndex_ = pageIndex;
|
||||
setCoreParameter("PageIndex", std::to_string(pageIndex));
|
||||
}
|
||||
|
||||
121
foas/src/model/GetRefPackageJobResult.cc
Normal file
121
foas/src/model/GetRefPackageJobResult.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/foas/model/GetRefPackageJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
GetRefPackageJobResult::GetRefPackageJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetRefPackageJobResult::GetRefPackageJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetRefPackageJobResult::~GetRefPackageJobResult()
|
||||
{}
|
||||
|
||||
void GetRefPackageJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allJobs = value["Jobs"]["Job"];
|
||||
for (auto value : allJobs)
|
||||
{
|
||||
Job jobsObject;
|
||||
if(!value["JobName"].isNull())
|
||||
jobsObject.jobName = value["JobName"].asString();
|
||||
if(!value["ProjectName"].isNull())
|
||||
jobsObject.projectName = value["ProjectName"].asString();
|
||||
if(!value["JobType"].isNull())
|
||||
jobsObject.jobType = value["JobType"].asString();
|
||||
if(!value["ApiType"].isNull())
|
||||
jobsObject.apiType = value["ApiType"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
jobsObject.code = value["Code"].asString();
|
||||
if(!value["PlanJson"].isNull())
|
||||
jobsObject.planJson = value["PlanJson"].asString();
|
||||
if(!value["Properties"].isNull())
|
||||
jobsObject.properties = value["Properties"].asString();
|
||||
if(!value["Packages"].isNull())
|
||||
jobsObject.packages = value["Packages"].asString();
|
||||
if(!value["IsCommitted"].isNull())
|
||||
jobsObject.isCommitted = value["IsCommitted"].asString() == "true";
|
||||
if(!value["Creator"].isNull())
|
||||
jobsObject.creator = value["Creator"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
jobsObject.createTime = std::stol(value["CreateTime"].asString());
|
||||
if(!value["Modifier"].isNull())
|
||||
jobsObject.modifier = value["Modifier"].asString();
|
||||
if(!value["ModifyTime"].isNull())
|
||||
jobsObject.modifyTime = std::stol(value["ModifyTime"].asString());
|
||||
if(!value["Description"].isNull())
|
||||
jobsObject.description = value["Description"].asString();
|
||||
if(!value["EngineVersion"].isNull())
|
||||
jobsObject.engineVersion = value["EngineVersion"].asString();
|
||||
if(!value["ClusterId"].isNull())
|
||||
jobsObject.clusterId = value["ClusterId"].asString();
|
||||
if(!value["QueueName"].isNull())
|
||||
jobsObject.queueName = value["QueueName"].asString();
|
||||
if(!value["FolderId"].isNull())
|
||||
jobsObject.folderId = std::stol(value["FolderId"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobsObject.jobId = value["JobId"].asString();
|
||||
jobs_.push_back(jobsObject);
|
||||
}
|
||||
if(!value["PageIndex"].isNull())
|
||||
pageIndex_ = std::stoi(value["PageIndex"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stoi(value["TotalPage"].asString());
|
||||
|
||||
}
|
||||
|
||||
long GetRefPackageJobResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int GetRefPackageJobResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int GetRefPackageJobResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
std::vector<GetRefPackageJobResult::Job> GetRefPackageJobResult::getJobs()const
|
||||
{
|
||||
return jobs_;
|
||||
}
|
||||
|
||||
int GetRefPackageJobResult::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
60
foas/src/model/ListChildFolderRequest.cc
Normal file
60
foas/src/model/ListChildFolderRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/ListChildFolderRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::ListChildFolderRequest;
|
||||
|
||||
ListChildFolderRequest::ListChildFolderRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
ListChildFolderRequest::~ListChildFolderRequest()
|
||||
{}
|
||||
|
||||
std::string ListChildFolderRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
}
|
||||
|
||||
void ListChildFolderRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setCoreParameter("Path", path);
|
||||
}
|
||||
|
||||
std::string ListChildFolderRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void ListChildFolderRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string ListChildFolderRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListChildFolderRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
foas/src/model/ListChildFolderResult.cc
Normal file
59
foas/src/model/ListChildFolderResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/ListChildFolderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
ListChildFolderResult::ListChildFolderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListChildFolderResult::ListChildFolderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListChildFolderResult::~ListChildFolderResult()
|
||||
{}
|
||||
|
||||
void ListChildFolderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFolders = value["Folders"]["Folder"];
|
||||
for (auto value : allFolders)
|
||||
{
|
||||
Folder foldersObject;
|
||||
if(!value["FolderId"].isNull())
|
||||
foldersObject.folderId = std::stol(value["FolderId"].asString());
|
||||
if(!value["Path"].isNull())
|
||||
foldersObject.path = value["Path"].asString();
|
||||
folders_.push_back(foldersObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListChildFolderResult::Folder> ListChildFolderResult::getFolders()const
|
||||
{
|
||||
return folders_;
|
||||
}
|
||||
|
||||
104
foas/src/model/ListClusterRequest.cc
Normal file
104
foas/src/model/ListClusterRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/ListClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::ListClusterRequest;
|
||||
|
||||
ListClusterRequest::ListClusterRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
ListClusterRequest::~ListClusterRequest()
|
||||
{}
|
||||
|
||||
std::string ListClusterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListClusterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListClusterRequest::getDisplayName()const
|
||||
{
|
||||
return displayName_;
|
||||
}
|
||||
|
||||
void ListClusterRequest::setDisplayName(const std::string& displayName)
|
||||
{
|
||||
displayName_ = displayName;
|
||||
setCoreParameter("DisplayName", displayName);
|
||||
}
|
||||
|
||||
int ListClusterRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListClusterRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListClusterRequest::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
void ListClusterRequest::setPageIndex(int pageIndex)
|
||||
{
|
||||
pageIndex_ = pageIndex;
|
||||
setCoreParameter("PageIndex", std::to_string(pageIndex));
|
||||
}
|
||||
|
||||
std::string ListClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ListClusterRequest::getState()const
|
||||
{
|
||||
return state_;
|
||||
}
|
||||
|
||||
void ListClusterRequest::setState(const std::string& state)
|
||||
{
|
||||
state_ = state;
|
||||
setCoreParameter("State", state);
|
||||
}
|
||||
|
||||
std::string ListClusterRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void ListClusterRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setCoreParameter("Region", region);
|
||||
}
|
||||
|
||||
103
foas/src/model/ListClusterResult.cc
Normal file
103
foas/src/model/ListClusterResult.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/ListClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
ListClusterResult::ListClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListClusterResult::ListClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListClusterResult::~ListClusterResult()
|
||||
{}
|
||||
|
||||
void ListClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allClusters = value["Clusters"]["Cluster"];
|
||||
for (auto value : allClusters)
|
||||
{
|
||||
Cluster clustersObject;
|
||||
if(!value["ClusterId"].isNull())
|
||||
clustersObject.clusterId = value["ClusterId"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
clustersObject.regionId = value["RegionId"].asString();
|
||||
if(!value["ZoneId"].isNull())
|
||||
clustersObject.zoneId = value["ZoneId"].asString();
|
||||
if(!value["State"].isNull())
|
||||
clustersObject.state = value["State"].asString();
|
||||
if(!value["OwnerId"].isNull())
|
||||
clustersObject.ownerId = value["OwnerId"].asString();
|
||||
if(!value["Operator"].isNull())
|
||||
clustersObject._operator = value["Operator"].asString();
|
||||
if(!value["DisplayName"].isNull())
|
||||
clustersObject.displayName = value["DisplayName"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
clustersObject.description = value["Description"].asString();
|
||||
if(!value["GmtCreate"].isNull())
|
||||
clustersObject.gmtCreate = std::stol(value["GmtCreate"].asString());
|
||||
if(!value["GmtModified"].isNull())
|
||||
clustersObject.gmtModified = std::stol(value["GmtModified"].asString());
|
||||
clusters_.push_back(clustersObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stoi(value["TotalPage"].asString());
|
||||
if(!value["PageIndex"].isNull())
|
||||
pageIndex_ = std::stoi(value["PageIndex"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListClusterResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListClusterResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
int ListClusterResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::vector<ListClusterResult::Cluster> ListClusterResult::getClusters()const
|
||||
{
|
||||
return clusters_;
|
||||
}
|
||||
|
||||
int ListClusterResult::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
181
foas/src/model/ListInstanceRequest.cc
Normal file
181
foas/src/model/ListInstanceRequest.cc
Normal file
@@ -0,0 +1,181 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/ListInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::ListInstanceRequest;
|
||||
|
||||
ListInstanceRequest::ListInstanceRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
ListInstanceRequest::~ListInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string ListInstanceRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void ListInstanceRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long ListInstanceRequest::getEndBeginTs()const
|
||||
{
|
||||
return endBeginTs_;
|
||||
}
|
||||
|
||||
void ListInstanceRequest::setEndBeginTs(long endBeginTs)
|
||||
{
|
||||
endBeginTs_ = endBeginTs;
|
||||
setCoreParameter("EndBeginTs", std::to_string(endBeginTs));
|
||||
}
|
||||
|
||||
std::string ListInstanceRequest::getExpectState()const
|
||||
{
|
||||
return expectState_;
|
||||
}
|
||||
|
||||
void ListInstanceRequest::setExpectState(const std::string& expectState)
|
||||
{
|
||||
expectState_ = expectState;
|
||||
setCoreParameter("ExpectState", expectState);
|
||||
}
|
||||
|
||||
std::string ListInstanceRequest::getJobType()const
|
||||
{
|
||||
return jobType_;
|
||||
}
|
||||
|
||||
void ListInstanceRequest::setJobType(const std::string& jobType)
|
||||
{
|
||||
jobType_ = jobType;
|
||||
setCoreParameter("JobType", jobType);
|
||||
}
|
||||
|
||||
std::string ListInstanceRequest::getApiType()const
|
||||
{
|
||||
return apiType_;
|
||||
}
|
||||
|
||||
void ListInstanceRequest::setApiType(const std::string& apiType)
|
||||
{
|
||||
apiType_ = apiType;
|
||||
setCoreParameter("ApiType", apiType);
|
||||
}
|
||||
|
||||
std::string ListInstanceRequest::getActualState()const
|
||||
{
|
||||
return actualState_;
|
||||
}
|
||||
|
||||
void ListInstanceRequest::setActualState(const std::string& actualState)
|
||||
{
|
||||
actualState_ = actualState;
|
||||
setCoreParameter("ActualState", actualState);
|
||||
}
|
||||
|
||||
long ListInstanceRequest::getEndEndTs()const
|
||||
{
|
||||
return endEndTs_;
|
||||
}
|
||||
|
||||
void ListInstanceRequest::setEndEndTs(long endEndTs)
|
||||
{
|
||||
endEndTs_ = endEndTs;
|
||||
setCoreParameter("EndEndTs", std::to_string(endEndTs));
|
||||
}
|
||||
|
||||
std::string ListInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long ListInstanceRequest::getStartEndTs()const
|
||||
{
|
||||
return startEndTs_;
|
||||
}
|
||||
|
||||
void ListInstanceRequest::setStartEndTs(long startEndTs)
|
||||
{
|
||||
startEndTs_ = startEndTs;
|
||||
setCoreParameter("StartEndTs", std::to_string(startEndTs));
|
||||
}
|
||||
|
||||
int ListInstanceRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListInstanceRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListInstanceRequest::getStartBeginTs()const
|
||||
{
|
||||
return startBeginTs_;
|
||||
}
|
||||
|
||||
void ListInstanceRequest::setStartBeginTs(long startBeginTs)
|
||||
{
|
||||
startBeginTs_ = startBeginTs;
|
||||
setCoreParameter("StartBeginTs", std::to_string(startBeginTs));
|
||||
}
|
||||
|
||||
int ListInstanceRequest::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
void ListInstanceRequest::setPageIndex(int pageIndex)
|
||||
{
|
||||
pageIndex_ = pageIndex;
|
||||
setCoreParameter("PageIndex", std::to_string(pageIndex));
|
||||
}
|
||||
|
||||
bool ListInstanceRequest::getIsArchived()const
|
||||
{
|
||||
return isArchived_;
|
||||
}
|
||||
|
||||
void ListInstanceRequest::setIsArchived(bool isArchived)
|
||||
{
|
||||
isArchived_ = isArchived;
|
||||
setCoreParameter("IsArchived", isArchived ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListInstanceRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void ListInstanceRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
129
foas/src/model/ListInstanceResult.cc
Normal file
129
foas/src/model/ListInstanceResult.cc
Normal file
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/ListInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
ListInstanceResult::ListInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListInstanceResult::ListInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListInstanceResult::~ListInstanceResult()
|
||||
{}
|
||||
|
||||
void ListInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstances = value["Instances"]["Instance"];
|
||||
for (auto value : allInstances)
|
||||
{
|
||||
Instance instancesObject;
|
||||
if(!value["Id"].isNull())
|
||||
instancesObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["ProjectName"].isNull())
|
||||
instancesObject.projectName = value["ProjectName"].asString();
|
||||
if(!value["JobName"].isNull())
|
||||
instancesObject.jobName = value["JobName"].asString();
|
||||
if(!value["ActualState"].isNull())
|
||||
instancesObject.actualState = value["ActualState"].asString();
|
||||
if(!value["ExpectState"].isNull())
|
||||
instancesObject.expectState = value["ExpectState"].asString();
|
||||
if(!value["JobType"].isNull())
|
||||
instancesObject.jobType = value["JobType"].asString();
|
||||
if(!value["ApiType"].isNull())
|
||||
instancesObject.apiType = value["ApiType"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
instancesObject.code = value["Code"].asString();
|
||||
if(!value["Properties"].isNull())
|
||||
instancesObject.properties = value["Properties"].asString();
|
||||
if(!value["Packages"].isNull())
|
||||
instancesObject.packages = value["Packages"].asString();
|
||||
if(!value["Starter"].isNull())
|
||||
instancesObject.starter = value["Starter"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
instancesObject.startTime = std::stol(value["StartTime"].asString());
|
||||
if(!value["LastErrorTime"].isNull())
|
||||
instancesObject.lastErrorTime = std::stol(value["LastErrorTime"].asString());
|
||||
if(!value["LastErrorMessage"].isNull())
|
||||
instancesObject.lastErrorMessage = value["LastErrorMessage"].asString();
|
||||
if(!value["LastOperator"].isNull())
|
||||
instancesObject.lastOperator = value["LastOperator"].asString();
|
||||
if(!value["LastOperateTime"].isNull())
|
||||
instancesObject.lastOperateTime = std::stol(value["LastOperateTime"].asString());
|
||||
if(!value["PlanJson"].isNull())
|
||||
instancesObject.planJson = value["PlanJson"].asString();
|
||||
if(!value["EngineVersion"].isNull())
|
||||
instancesObject.engineVersion = value["EngineVersion"].asString();
|
||||
if(!value["EngineJobHandler"].isNull())
|
||||
instancesObject.engineJobHandler = value["EngineJobHandler"].asString();
|
||||
if(!value["InputDelay"].isNull())
|
||||
instancesObject.inputDelay = std::stol(value["InputDelay"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
instancesObject.clusterId = value["ClusterId"].asString();
|
||||
if(!value["QueueName"].isNull())
|
||||
instancesObject.queueName = value["QueueName"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
instancesObject.endTime = std::stol(value["EndTime"].asString());
|
||||
instances_.push_back(instancesObject);
|
||||
}
|
||||
if(!value["PageIndex"].isNull())
|
||||
pageIndex_ = std::stoi(value["PageIndex"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stoi(value["TotalPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListInstanceResult::Instance> ListInstanceResult::getInstances()const
|
||||
{
|
||||
return instances_;
|
||||
}
|
||||
|
||||
long ListInstanceResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListInstanceResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListInstanceResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
int ListInstanceResult::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
159
foas/src/model/ListJobRequest.cc
Normal file
159
foas/src/model/ListJobRequest.cc
Normal file
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/ListJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::ListJobRequest;
|
||||
|
||||
ListJobRequest::ListJobRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
ListJobRequest::~ListJobRequest()
|
||||
{}
|
||||
|
||||
std::string ListJobRequest::getQueueName()const
|
||||
{
|
||||
return queueName_;
|
||||
}
|
||||
|
||||
void ListJobRequest::setQueueName(const std::string& queueName)
|
||||
{
|
||||
queueName_ = queueName;
|
||||
setCoreParameter("QueueName", queueName);
|
||||
}
|
||||
|
||||
std::string ListJobRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void ListJobRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string ListJobRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int ListJobRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListJobRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
bool ListJobRequest::getIsShowFullField()const
|
||||
{
|
||||
return isShowFullField_;
|
||||
}
|
||||
|
||||
void ListJobRequest::setIsShowFullField(bool isShowFullField)
|
||||
{
|
||||
isShowFullField_ = isShowFullField;
|
||||
setCoreParameter("IsShowFullField", isShowFullField ? "true" : "false");
|
||||
}
|
||||
|
||||
int ListJobRequest::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
void ListJobRequest::setPageIndex(int pageIndex)
|
||||
{
|
||||
pageIndex_ = pageIndex;
|
||||
setCoreParameter("PageIndex", std::to_string(pageIndex));
|
||||
}
|
||||
|
||||
std::string ListJobRequest::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void ListJobRequest::setEngineVersion(const std::string& engineVersion)
|
||||
{
|
||||
engineVersion_ = engineVersion;
|
||||
setCoreParameter("EngineVersion", engineVersion);
|
||||
}
|
||||
|
||||
std::string ListJobRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListJobRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ListJobRequest::getJobType()const
|
||||
{
|
||||
return jobType_;
|
||||
}
|
||||
|
||||
void ListJobRequest::setJobType(const std::string& jobType)
|
||||
{
|
||||
jobType_ = jobType;
|
||||
setCoreParameter("JobType", jobType);
|
||||
}
|
||||
|
||||
std::string ListJobRequest::getApiType()const
|
||||
{
|
||||
return apiType_;
|
||||
}
|
||||
|
||||
void ListJobRequest::setApiType(const std::string& apiType)
|
||||
{
|
||||
apiType_ = apiType;
|
||||
setCoreParameter("ApiType", apiType);
|
||||
}
|
||||
|
||||
std::string ListJobRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void ListJobRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
long ListJobRequest::getFolderId()const
|
||||
{
|
||||
return folderId_;
|
||||
}
|
||||
|
||||
void ListJobRequest::setFolderId(long folderId)
|
||||
{
|
||||
folderId_ = folderId;
|
||||
setCoreParameter("FolderId", std::to_string(folderId));
|
||||
}
|
||||
|
||||
121
foas/src/model/ListJobResult.cc
Normal file
121
foas/src/model/ListJobResult.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/foas/model/ListJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
ListJobResult::ListJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListJobResult::ListJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListJobResult::~ListJobResult()
|
||||
{}
|
||||
|
||||
void ListJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allJobs = value["Jobs"]["Job"];
|
||||
for (auto value : allJobs)
|
||||
{
|
||||
Job jobsObject;
|
||||
if(!value["JobName"].isNull())
|
||||
jobsObject.jobName = value["JobName"].asString();
|
||||
if(!value["ProjectName"].isNull())
|
||||
jobsObject.projectName = value["ProjectName"].asString();
|
||||
if(!value["JobType"].isNull())
|
||||
jobsObject.jobType = value["JobType"].asString();
|
||||
if(!value["ApiType"].isNull())
|
||||
jobsObject.apiType = value["ApiType"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
jobsObject.code = value["Code"].asString();
|
||||
if(!value["PlanJson"].isNull())
|
||||
jobsObject.planJson = value["PlanJson"].asString();
|
||||
if(!value["Properties"].isNull())
|
||||
jobsObject.properties = value["Properties"].asString();
|
||||
if(!value["Packages"].isNull())
|
||||
jobsObject.packages = value["Packages"].asString();
|
||||
if(!value["IsCommitted"].isNull())
|
||||
jobsObject.isCommitted = value["IsCommitted"].asString() == "true";
|
||||
if(!value["Creator"].isNull())
|
||||
jobsObject.creator = value["Creator"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
jobsObject.createTime = std::stol(value["CreateTime"].asString());
|
||||
if(!value["Modifier"].isNull())
|
||||
jobsObject.modifier = value["Modifier"].asString();
|
||||
if(!value["ModifyTime"].isNull())
|
||||
jobsObject.modifyTime = std::stol(value["ModifyTime"].asString());
|
||||
if(!value["Description"].isNull())
|
||||
jobsObject.description = value["Description"].asString();
|
||||
if(!value["EngineVersion"].isNull())
|
||||
jobsObject.engineVersion = value["EngineVersion"].asString();
|
||||
if(!value["ClusterId"].isNull())
|
||||
jobsObject.clusterId = value["ClusterId"].asString();
|
||||
if(!value["QueueName"].isNull())
|
||||
jobsObject.queueName = value["QueueName"].asString();
|
||||
if(!value["FolderId"].isNull())
|
||||
jobsObject.folderId = std::stol(value["FolderId"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobsObject.jobId = value["JobId"].asString();
|
||||
jobs_.push_back(jobsObject);
|
||||
}
|
||||
if(!value["PageIndex"].isNull())
|
||||
pageIndex_ = std::stoi(value["PageIndex"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stoi(value["TotalPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListJobResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListJobResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListJobResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
std::vector<ListJobResult::Job> ListJobResult::getJobs()const
|
||||
{
|
||||
return jobs_;
|
||||
}
|
||||
|
||||
int ListJobResult::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
104
foas/src/model/ListPackageRequest.cc
Normal file
104
foas/src/model/ListPackageRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/ListPackageRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::ListPackageRequest;
|
||||
|
||||
ListPackageRequest::ListPackageRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
ListPackageRequest::~ListPackageRequest()
|
||||
{}
|
||||
|
||||
std::string ListPackageRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void ListPackageRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string ListPackageRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListPackageRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListPackageRequest::getPackageName()const
|
||||
{
|
||||
return packageName_;
|
||||
}
|
||||
|
||||
void ListPackageRequest::setPackageName(const std::string& packageName)
|
||||
{
|
||||
packageName_ = packageName;
|
||||
setCoreParameter("PackageName", packageName);
|
||||
}
|
||||
|
||||
int ListPackageRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListPackageRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListPackageRequest::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
void ListPackageRequest::setPageIndex(int pageIndex)
|
||||
{
|
||||
pageIndex_ = pageIndex;
|
||||
setCoreParameter("PageIndex", std::to_string(pageIndex));
|
||||
}
|
||||
|
||||
std::string ListPackageRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListPackageRequest::setTag(const std::string& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
setCoreParameter("Tag", tag);
|
||||
}
|
||||
|
||||
std::string ListPackageRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void ListPackageRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
113
foas/src/model/ListPackageResult.cc
Normal file
113
foas/src/model/ListPackageResult.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/foas/model/ListPackageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
ListPackageResult::ListPackageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPackageResult::ListPackageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPackageResult::~ListPackageResult()
|
||||
{}
|
||||
|
||||
void ListPackageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPackages = value["Packages"]["Package"];
|
||||
for (auto value : allPackages)
|
||||
{
|
||||
Package packagesObject;
|
||||
if(!value["ProjectName"].isNull())
|
||||
packagesObject.projectName = value["ProjectName"].asString();
|
||||
if(!value["PackageName"].isNull())
|
||||
packagesObject.packageName = value["PackageName"].asString();
|
||||
if(!value["Creator"].isNull())
|
||||
packagesObject.creator = value["Creator"].asString();
|
||||
if(!value["Modifier"].isNull())
|
||||
packagesObject.modifier = value["Modifier"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
packagesObject.createTime = std::stol(value["CreateTime"].asString());
|
||||
if(!value["ModifyTime"].isNull())
|
||||
packagesObject.modifyTime = std::stol(value["ModifyTime"].asString());
|
||||
if(!value["OriginName"].isNull())
|
||||
packagesObject.originName = value["OriginName"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
packagesObject.type = value["Type"].asString();
|
||||
if(!value["Md5"].isNull())
|
||||
packagesObject.md5 = value["Md5"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
packagesObject.description = value["Description"].asString();
|
||||
if(!value["OssEndpoint"].isNull())
|
||||
packagesObject.ossEndpoint = value["OssEndpoint"].asString();
|
||||
if(!value["OssBucket"].isNull())
|
||||
packagesObject.ossBucket = value["OssBucket"].asString();
|
||||
if(!value["OssOwner"].isNull())
|
||||
packagesObject.ossOwner = value["OssOwner"].asString();
|
||||
if(!value["OssPath"].isNull())
|
||||
packagesObject.ossPath = value["OssPath"].asString();
|
||||
if(!value["Tag"].isNull())
|
||||
packagesObject.tag = value["Tag"].asString();
|
||||
packages_.push_back(packagesObject);
|
||||
}
|
||||
if(!value["PageIndex"].isNull())
|
||||
pageIndex_ = std::stoi(value["PageIndex"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stoi(value["TotalPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListPackageResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListPackageResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListPackageResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
std::vector<ListPackageResult::Package> ListPackageResult::getPackages()const
|
||||
{
|
||||
return packages_;
|
||||
}
|
||||
|
||||
int ListPackageResult::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
71
foas/src/model/ListProjectBindQueueRequest.cc
Normal file
71
foas/src/model/ListProjectBindQueueRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/ListProjectBindQueueRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::ListProjectBindQueueRequest;
|
||||
|
||||
ListProjectBindQueueRequest::ListProjectBindQueueRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
ListProjectBindQueueRequest::~ListProjectBindQueueRequest()
|
||||
{}
|
||||
|
||||
std::string ListProjectBindQueueRequest::getQueueName()const
|
||||
{
|
||||
return queueName_;
|
||||
}
|
||||
|
||||
void ListProjectBindQueueRequest::setQueueName(const std::string& queueName)
|
||||
{
|
||||
queueName_ = queueName;
|
||||
setCoreParameter("QueueName", queueName);
|
||||
}
|
||||
|
||||
std::string ListProjectBindQueueRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void ListProjectBindQueueRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string ListProjectBindQueueRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListProjectBindQueueRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListProjectBindQueueRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListProjectBindQueueRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
71
foas/src/model/ListProjectBindQueueResourceRequest.cc
Normal file
71
foas/src/model/ListProjectBindQueueResourceRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/foas/model/ListProjectBindQueueResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Foas::Model::ListProjectBindQueueResourceRequest;
|
||||
|
||||
ListProjectBindQueueResourceRequest::ListProjectBindQueueResourceRequest() :
|
||||
RoaServiceRequest("foas", "2018-11-11")
|
||||
{}
|
||||
|
||||
ListProjectBindQueueResourceRequest::~ListProjectBindQueueResourceRequest()
|
||||
{}
|
||||
|
||||
std::string ListProjectBindQueueResourceRequest::getQueueName()const
|
||||
{
|
||||
return queueName_;
|
||||
}
|
||||
|
||||
void ListProjectBindQueueResourceRequest::setQueueName(const std::string& queueName)
|
||||
{
|
||||
queueName_ = queueName;
|
||||
setCoreParameter("QueueName", queueName);
|
||||
}
|
||||
|
||||
std::string ListProjectBindQueueResourceRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void ListProjectBindQueueResourceRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setCoreParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string ListProjectBindQueueResourceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListProjectBindQueueResourceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListProjectBindQueueResourceRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListProjectBindQueueResourceRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
77
foas/src/model/ListProjectBindQueueResourceResult.cc
Normal file
77
foas/src/model/ListProjectBindQueueResourceResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/foas/model/ListProjectBindQueueResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Foas;
|
||||
using namespace AlibabaCloud::Foas::Model;
|
||||
|
||||
ListProjectBindQueueResourceResult::ListProjectBindQueueResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListProjectBindQueueResourceResult::ListProjectBindQueueResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListProjectBindQueueResourceResult::~ListProjectBindQueueResourceResult()
|
||||
{}
|
||||
|
||||
void ListProjectBindQueueResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allQueues = value["Queues"]["Queue"];
|
||||
for (auto value : allQueues)
|
||||
{
|
||||
Queue queuesObject;
|
||||
if(!value["ClusterId"].isNull())
|
||||
queuesObject.clusterId = value["ClusterId"].asString();
|
||||
if(!value["QueueName"].isNull())
|
||||
queuesObject.queueName = value["QueueName"].asString();
|
||||
if(!value["MinGpu"].isNull())
|
||||
queuesObject.minGpu = std::stoi(value["MinGpu"].asString());
|
||||
if(!value["MaxGpu"].isNull())
|
||||
queuesObject.maxGpu = std::stoi(value["MaxGpu"].asString());
|
||||
if(!value["MinMem"].isNull())
|
||||
queuesObject.minMem = std::stoi(value["MinMem"].asString());
|
||||
if(!value["MaxMem"].isNull())
|
||||
queuesObject.maxMem = std::stoi(value["MaxMem"].asString());
|
||||
if(!value["MinVCore"].isNull())
|
||||
queuesObject.minVCore = std::stoi(value["MinVCore"].asString());
|
||||
if(!value["MaxVCore"].isNull())
|
||||
queuesObject.maxVCore = std::stoi(value["MaxVCore"].asString());
|
||||
if(!value["UsedVCore"].isNull())
|
||||
queuesObject.usedVCore = std::stoi(value["UsedVCore"].asString());
|
||||
if(!value["UsedGpu"].isNull())
|
||||
queuesObject.usedGpu = std::stoi(value["UsedGpu"].asString());
|
||||
if(!value["UsedMem"].isNull())
|
||||
queuesObject.usedMem = std::stoi(value["UsedMem"].asString());
|
||||
queues_.push_back(queuesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListProjectBindQueueResourceResult::Queue> ListProjectBindQueueResourceResult::getQueues()const
|
||||
{
|
||||
return queues_;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user