Generated 2018-04-12 for EHPC.
This commit is contained in:
@@ -38,6 +38,28 @@ void AddNodesRequest::setImageId(const std::string& imageId)
|
||||
setParameter("ImageId", imageId);
|
||||
}
|
||||
|
||||
bool AddNodesRequest::getAllocatePublicAddress()const
|
||||
{
|
||||
return allocatePublicAddress_;
|
||||
}
|
||||
|
||||
void AddNodesRequest::setAllocatePublicAddress(bool allocatePublicAddress)
|
||||
{
|
||||
allocatePublicAddress_ = allocatePublicAddress;
|
||||
setParameter("AllocatePublicAddress", allocatePublicAddress ? "true" : "false");
|
||||
}
|
||||
|
||||
int AddNodesRequest::getInternetMaxBandWidthOut()const
|
||||
{
|
||||
return internetMaxBandWidthOut_;
|
||||
}
|
||||
|
||||
void AddNodesRequest::setInternetMaxBandWidthOut(int internetMaxBandWidthOut)
|
||||
{
|
||||
internetMaxBandWidthOut_ = internetMaxBandWidthOut;
|
||||
setParameter("InternetMaxBandWidthOut", std::to_string(internetMaxBandWidthOut));
|
||||
}
|
||||
|
||||
std::string AddNodesRequest::getJobQueue()const
|
||||
{
|
||||
return jobQueue_;
|
||||
@@ -247,6 +269,17 @@ void AddNodesRequest::setEcsChargeType(const std::string& ecsChargeType)
|
||||
setParameter("EcsChargeType", ecsChargeType);
|
||||
}
|
||||
|
||||
std::string AddNodesRequest::getInternetChargeType()const
|
||||
{
|
||||
return internetChargeType_;
|
||||
}
|
||||
|
||||
void AddNodesRequest::setInternetChargeType(const std::string& internetChargeType)
|
||||
{
|
||||
internetChargeType_ = internetChargeType;
|
||||
setParameter("InternetChargeType", internetChargeType);
|
||||
}
|
||||
|
||||
std::string AddNodesRequest::getCreateMode()const
|
||||
{
|
||||
return createMode_;
|
||||
@@ -269,3 +302,14 @@ void AddNodesRequest::setZoneId(const std::string& zoneId)
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
int AddNodesRequest::getInternetMaxBandWidthIn()const
|
||||
{
|
||||
return internetMaxBandWidthIn_;
|
||||
}
|
||||
|
||||
void AddNodesRequest::setInternetMaxBandWidthIn(int internetMaxBandWidthIn)
|
||||
{
|
||||
internetMaxBandWidthIn_ = internetMaxBandWidthIn;
|
||||
setParameter("InternetMaxBandWidthIn", std::to_string(internetMaxBandWidthIn));
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,9 @@ void DescribePriceRequest::setCommodities(const std::vector<Commodities>& commod
|
||||
setParameter(commoditiesObjStr + ".Period", std::to_string(commoditiesObj.period));
|
||||
setParameter(commoditiesObjStr + ".NodeType", commoditiesObj.nodeType);
|
||||
setParameter(commoditiesObjStr + ".SystemDiskCategory", commoditiesObj.systemDiskCategory);
|
||||
setParameter(commoditiesObjStr + ".InternetChargeType", commoditiesObj.internetChargeType);
|
||||
setParameter(commoditiesObjStr + ".SystemDiskSize", std::to_string(commoditiesObj.systemDiskSize));
|
||||
setParameter(commoditiesObjStr + ".InternetMaxBandWidthOut", std::to_string(commoditiesObj.internetMaxBandWidthOut));
|
||||
setParameter(commoditiesObjStr + ".InstanceType", commoditiesObj.instanceType);
|
||||
setParameter(commoditiesObjStr + ".NetworkType", commoditiesObj.networkType);
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/ehpc/model/GetInstanceReportRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::GetInstanceReportRequest;
|
||||
|
||||
GetInstanceReportRequest::GetInstanceReportRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "GetInstanceReport")
|
||||
{
|
||||
setMethod(HttpRequest::Method::GET);
|
||||
}
|
||||
|
||||
GetInstanceReportRequest::~GetInstanceReportRequest()
|
||||
{}
|
||||
|
||||
int GetInstanceReportRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetInstanceReportRequest::setEndTime(int endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string GetInstanceReportRequest::getFilterValue()const
|
||||
{
|
||||
return filterValue_;
|
||||
}
|
||||
|
||||
void GetInstanceReportRequest::setFilterValue(const std::string& filterValue)
|
||||
{
|
||||
filterValue_ = filterValue;
|
||||
setParameter("FilterValue", filterValue);
|
||||
}
|
||||
|
||||
std::string GetInstanceReportRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetInstanceReportRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int GetInstanceReportRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetInstanceReportRequest::setStartTime(int startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string GetInstanceReportRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetInstanceReportRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/ehpc/model/GetInstanceReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
GetInstanceReportResult::GetInstanceReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInstanceReportResult::GetInstanceReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInstanceReportResult::~GetInstanceReportResult()
|
||||
{}
|
||||
|
||||
void GetInstanceReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["Data"];
|
||||
for (const auto &item : allData)
|
||||
data_.push_back(item.asString());
|
||||
if(!value["Metrics"].isNull())
|
||||
metrics_ = value["Metrics"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetInstanceReportResult::getMetrics()const
|
||||
{
|
||||
return metrics_;
|
||||
}
|
||||
|
||||
std::vector<std::string> GetInstanceReportResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/ehpc/model/GetJobReportRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::GetJobReportRequest;
|
||||
|
||||
GetJobReportRequest::GetJobReportRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "GetJobReport")
|
||||
{
|
||||
setMethod(HttpRequest::Method::GET);
|
||||
}
|
||||
|
||||
GetJobReportRequest::~GetJobReportRequest()
|
||||
{}
|
||||
|
||||
std::string GetJobReportRequest::getReportType()const
|
||||
{
|
||||
return reportType_;
|
||||
}
|
||||
|
||||
void GetJobReportRequest::setReportType(const std::string& reportType)
|
||||
{
|
||||
reportType_ = reportType;
|
||||
setParameter("ReportType", reportType);
|
||||
}
|
||||
|
||||
int GetJobReportRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetJobReportRequest::setEndTime(int endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string GetJobReportRequest::getFilterValue()const
|
||||
{
|
||||
return filterValue_;
|
||||
}
|
||||
|
||||
void GetJobReportRequest::setFilterValue(const std::string& filterValue)
|
||||
{
|
||||
filterValue_ = filterValue;
|
||||
setParameter("FilterValue", filterValue);
|
||||
}
|
||||
|
||||
std::string GetJobReportRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetJobReportRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int GetJobReportRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetJobReportRequest::setStartTime(int startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string GetJobReportRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetJobReportRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/ehpc/model/GetJobReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
GetJobReportResult::GetJobReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetJobReportResult::GetJobReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetJobReportResult::~GetJobReportResult()
|
||||
{}
|
||||
|
||||
void GetJobReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["Data"];
|
||||
for (const auto &item : allData)
|
||||
data_.push_back(item.asString());
|
||||
if(!value["Metrics"].isNull())
|
||||
metrics_ = value["Metrics"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetJobReportResult::getMetrics()const
|
||||
{
|
||||
return metrics_;
|
||||
}
|
||||
|
||||
std::vector<std::string> GetJobReportResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/ehpc/model/GetTotalQueueReportRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::GetTotalQueueReportRequest;
|
||||
|
||||
GetTotalQueueReportRequest::GetTotalQueueReportRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "GetTotalQueueReport")
|
||||
{
|
||||
setMethod(HttpRequest::Method::GET);
|
||||
}
|
||||
|
||||
GetTotalQueueReportRequest::~GetTotalQueueReportRequest()
|
||||
{}
|
||||
|
||||
int GetTotalQueueReportRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetTotalQueueReportRequest::setEndTime(int endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string GetTotalQueueReportRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetTotalQueueReportRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int GetTotalQueueReportRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetTotalQueueReportRequest::setStartTime(int startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string GetTotalQueueReportRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetTotalQueueReportRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/ehpc/model/GetTotalQueueReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
GetTotalQueueReportResult::GetTotalQueueReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTotalQueueReportResult::GetTotalQueueReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTotalQueueReportResult::~GetTotalQueueReportResult()
|
||||
{}
|
||||
|
||||
void GetTotalQueueReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["Data"];
|
||||
for (const auto &item : allData)
|
||||
data_.push_back(item.asString());
|
||||
if(!value["Metrics"].isNull())
|
||||
metrics_ = value["Metrics"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetTotalQueueReportResult::getMetrics()const
|
||||
{
|
||||
return metrics_;
|
||||
}
|
||||
|
||||
std::vector<std::string> GetTotalQueueReportResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/ehpc/model/GetTotalUserReportRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::GetTotalUserReportRequest;
|
||||
|
||||
GetTotalUserReportRequest::GetTotalUserReportRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "GetTotalUserReport")
|
||||
{
|
||||
setMethod(HttpRequest::Method::GET);
|
||||
}
|
||||
|
||||
GetTotalUserReportRequest::~GetTotalUserReportRequest()
|
||||
{}
|
||||
|
||||
int GetTotalUserReportRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetTotalUserReportRequest::setEndTime(int endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string GetTotalUserReportRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetTotalUserReportRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int GetTotalUserReportRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetTotalUserReportRequest::setStartTime(int startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string GetTotalUserReportRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetTotalUserReportRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/ehpc/model/GetTotalUserReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
GetTotalUserReportResult::GetTotalUserReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTotalUserReportResult::GetTotalUserReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTotalUserReportResult::~GetTotalUserReportResult()
|
||||
{}
|
||||
|
||||
void GetTotalUserReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["Data"];
|
||||
for (const auto &item : allData)
|
||||
data_.push_back(item.asString());
|
||||
if(!value["Metrics"].isNull())
|
||||
metrics_ = value["Metrics"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetTotalUserReportResult::getMetrics()const
|
||||
{
|
||||
return metrics_;
|
||||
}
|
||||
|
||||
std::vector<std::string> GetTotalUserReportResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/ehpc/model/InstallNFSClientRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::InstallNFSClientRequest;
|
||||
|
||||
InstallNFSClientRequest::InstallNFSClientRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "InstallNFSClient")
|
||||
{
|
||||
setMethod(HttpRequest::Method::GET);
|
||||
}
|
||||
|
||||
InstallNFSClientRequest::~InstallNFSClientRequest()
|
||||
{}
|
||||
|
||||
std::string InstallNFSClientRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void InstallNFSClientRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string InstallNFSClientRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void InstallNFSClientRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/ehpc/model/InstallNFSClientResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
InstallNFSClientResult::InstallNFSClientResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InstallNFSClientResult::InstallNFSClientResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InstallNFSClientResult::~InstallNFSClientResult()
|
||||
{}
|
||||
|
||||
void InstallNFSClientResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["InvokeId"].isNull())
|
||||
invokeId_ = value["InvokeId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string InstallNFSClientResult::getInvokeId()const
|
||||
{
|
||||
return invokeId_;
|
||||
}
|
||||
|
||||
@@ -81,6 +81,10 @@ void ListNodesByQueueResult::parse(const std::string &payload)
|
||||
nodesObject.vSwitchId = valueNodesNodeInfo["VSwitchId"].asString();
|
||||
if(!valueNodesNodeInfo["HtEnabled"].isNull())
|
||||
nodesObject.htEnabled = valueNodesNodeInfo["HtEnabled"].asString() == "true";
|
||||
if(!valueNodesNodeInfo["IpAddress"].isNull())
|
||||
nodesObject.ipAddress = valueNodesNodeInfo["IpAddress"].asString();
|
||||
if(!valueNodesNodeInfo["PublicIpAddress"].isNull())
|
||||
nodesObject.publicIpAddress = valueNodesNodeInfo["PublicIpAddress"].asString();
|
||||
auto totalResourcesNode = value["TotalResources"];
|
||||
if(!totalResourcesNode["Cpu"].isNull())
|
||||
nodesObject.totalResources.cpu = std::stoi(totalResourcesNode["Cpu"].asString());
|
||||
|
||||
@@ -83,6 +83,8 @@ void ListNodesResult::parse(const std::string &payload)
|
||||
nodesObject.vSwitchId = valueNodesNodeInfo["VSwitchId"].asString();
|
||||
if(!valueNodesNodeInfo["HtEnabled"].isNull())
|
||||
nodesObject.htEnabled = valueNodesNodeInfo["HtEnabled"].asString() == "true";
|
||||
if(!valueNodesNodeInfo["PublicIpAddress"].isNull())
|
||||
nodesObject.publicIpAddress = valueNodesNodeInfo["PublicIpAddress"].asString();
|
||||
auto totalResourcesNode = value["TotalResources"];
|
||||
if(!totalResourcesNode["Cpu"].isNull())
|
||||
nodesObject.totalResources.cpu = std::stoi(totalResourcesNode["Cpu"].asString());
|
||||
|
||||
Reference in New Issue
Block a user