EHPC SDK Auto Released By qianzheng.llc,Version:1.24.0

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
This commit is contained in:
yixiong.jxy
2018-08-28 20:44:35 +08:00
parent 84adbb2cb8
commit c960a34373
33 changed files with 1011 additions and 23 deletions

View File

@@ -48,9 +48,9 @@ void AddUsersRequest::setUser(const std::vector<User>& user)
for(int i = 0; i!= user.size(); i++) {
auto obj = user.at(i);
std::string str ="User."+ std::to_string(i);
setParameter(str + ".Password", obj.password);
setParameter(str + ".Name", obj.name);
setParameter(str + ".Group", obj.group);
setParameter(str + ".Password", obj.password);
}
}

View File

@@ -256,6 +256,17 @@ void CreateClusterRequest::setVolumeProtocol(const std::string& volumeProtocol)
setParameter("VolumeProtocol", volumeProtocol);
}
std::string CreateClusterRequest::getClientVersion()const
{
return clientVersion_;
}
void CreateClusterRequest::setClientVersion(const std::string& clientVersion)
{
clientVersion_ = clientVersion;
setParameter("ClientVersion", clientVersion);
}
std::string CreateClusterRequest::getOsTag()const
{
return osTag_;
@@ -312,8 +323,8 @@ void CreateClusterRequest::setPostInstallScript(const std::vector<PostInstallScr
for(int i = 0; i!= postInstallScript.size(); i++) {
auto obj = postInstallScript.at(i);
std::string str ="PostInstallScript."+ std::to_string(i);
setParameter(str + ".Url", obj.url);
setParameter(str + ".Args", obj.args);
setParameter(str + ".Url", obj.url);
}
}

View File

@@ -179,6 +179,17 @@ void CreateHybridClusterRequest::setOnPremiseVolumeLocalPath(const std::string&
setParameter("OnPremiseVolumeLocalPath", onPremiseVolumeLocalPath);
}
std::string CreateHybridClusterRequest::getClientVersion()const
{
return clientVersion_;
}
void CreateHybridClusterRequest::setClientVersion(const std::string& clientVersion)
{
clientVersion_ = clientVersion;
setParameter("ClientVersion", clientVersion);
}
std::string CreateHybridClusterRequest::getOsTag()const
{
return osTag_;

View File

@@ -58,17 +58,6 @@ void GetCloudMetricLogsRequest::setMetricCategories(const std::string& metricCat
setParameter("MetricCategories", metricCategories);
}
int GetCloudMetricLogsRequest::getLine()const
{
return line_;
}
void GetCloudMetricLogsRequest::setLine(int line)
{
line_ = line;
setParameter("Line", std::to_string(line));
}
std::string GetCloudMetricLogsRequest::getMetricScope()const
{
return metricScope_;

View 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/ehpc/model/GetCloudMetricProfilingRequest.h>
using AlibabaCloud::EHPC::Model::GetCloudMetricProfilingRequest;
GetCloudMetricProfilingRequest::GetCloudMetricProfilingRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "GetCloudMetricProfiling")
{}
GetCloudMetricProfilingRequest::~GetCloudMetricProfilingRequest()
{}
std::string GetCloudMetricProfilingRequest::getRegionId()const
{
return regionId_;
}
void GetCloudMetricProfilingRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string GetCloudMetricProfilingRequest::getProfilingId()const
{
return profilingId_;
}
void GetCloudMetricProfilingRequest::setProfilingId(const std::string& profilingId)
{
profilingId_ = profilingId;
setParameter("ProfilingId", profilingId);
}
std::string GetCloudMetricProfilingRequest::getClusterId()const
{
return clusterId_;
}
void GetCloudMetricProfilingRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string GetCloudMetricProfilingRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetCloudMetricProfilingRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/GetCloudMetricProfilingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
GetCloudMetricProfilingResult::GetCloudMetricProfilingResult() :
ServiceResult()
{}
GetCloudMetricProfilingResult::GetCloudMetricProfilingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetCloudMetricProfilingResult::~GetCloudMetricProfilingResult()
{}
void GetCloudMetricProfilingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSvgUrls = value["SvgUrls"]["SvgInfo"];
for (auto value : allSvgUrls)
{
SvgInfo svgUrlsObject;
if(!value["Name"].isNull())
svgUrlsObject.name = value["Name"].asString();
if(!value["Type"].isNull())
svgUrlsObject.type = value["Type"].asString();
if(!value["Url"].isNull())
svgUrlsObject.url = value["Url"].asString();
if(!value["Size"].isNull())
svgUrlsObject.size = std::stoi(value["Size"].asString());
svgUrls_.push_back(svgUrlsObject);
}
}
std::vector<GetCloudMetricProfilingResult::SvgInfo> GetCloudMetricProfilingResult::getSvgUrls()const
{
return svgUrls_;
}

View 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/ehpc/model/ListCloudMetricProfilingsRequest.h>
using AlibabaCloud::EHPC::Model::ListCloudMetricProfilingsRequest;
ListCloudMetricProfilingsRequest::ListCloudMetricProfilingsRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "ListCloudMetricProfilings")
{}
ListCloudMetricProfilingsRequest::~ListCloudMetricProfilingsRequest()
{}
std::string ListCloudMetricProfilingsRequest::getRegionId()const
{
return regionId_;
}
void ListCloudMetricProfilingsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int ListCloudMetricProfilingsRequest::getPageSize()const
{
return pageSize_;
}
void ListCloudMetricProfilingsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListCloudMetricProfilingsRequest::getClusterId()const
{
return clusterId_;
}
void ListCloudMetricProfilingsRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
int ListCloudMetricProfilingsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListCloudMetricProfilingsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListCloudMetricProfilingsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListCloudMetricProfilingsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,91 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/ListCloudMetricProfilingsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
ListCloudMetricProfilingsResult::ListCloudMetricProfilingsResult() :
ServiceResult()
{}
ListCloudMetricProfilingsResult::ListCloudMetricProfilingsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCloudMetricProfilingsResult::~ListCloudMetricProfilingsResult()
{}
void ListCloudMetricProfilingsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allProfilings = value["Profilings"]["ProfilingInfo"];
for (auto value : allProfilings)
{
ProfilingInfo profilingsObject;
if(!value["ProfilingId"].isNull())
profilingsObject.profilingId = value["ProfilingId"].asString();
if(!value["InstanceId"].isNull())
profilingsObject.instanceId = value["InstanceId"].asString();
if(!value["HostName"].isNull())
profilingsObject.hostName = value["HostName"].asString();
if(!value["Pid"].isNull())
profilingsObject.pid = std::stoi(value["Pid"].asString());
if(!value["Duration"].isNull())
profilingsObject.duration = std::stoi(value["Duration"].asString());
if(!value["Freq"].isNull())
profilingsObject.freq = std::stoi(value["Freq"].asString());
if(!value["TriggerTime"].isNull())
profilingsObject.triggerTime = value["TriggerTime"].asString();
profilings_.push_back(profilingsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int ListCloudMetricProfilingsResult::getTotalCount()const
{
return totalCount_;
}
int ListCloudMetricProfilingsResult::getPageSize()const
{
return pageSize_;
}
int ListCloudMetricProfilingsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListCloudMetricProfilingsResult::ProfilingInfo> ListCloudMetricProfilingsResult::getProfilings()const
{
return profilings_;
}

View File

@@ -46,10 +46,14 @@ void ListNodesNoPagingResult::parse(const std::string &payload)
NodeInfo nodesObject;
if(!value["Id"].isNull())
nodesObject.id = value["Id"].asString();
if(!value["HostName"].isNull())
nodesObject.hostName = value["HostName"].asString();
if(!value["RegionId"].isNull())
nodesObject.regionId = value["RegionId"].asString();
if(!value["Status"].isNull())
nodesObject.status = value["Status"].asString();
if(!value["Version"].isNull())
nodesObject.version = value["Version"].asString();
if(!value["CreatedByEhpc"].isNull())
nodesObject.createdByEhpc = value["CreatedByEhpc"].asString() == "true";
if(!value["AddTime"].isNull())

View File

@@ -48,8 +48,12 @@ void ListNodesResult::parse(const std::string &payload)
nodesObject.id = value["Id"].asString();
if(!value["RegionId"].isNull())
nodesObject.regionId = value["RegionId"].asString();
if(!value["HostName"].isNull())
nodesObject.hostName = value["HostName"].asString();
if(!value["Status"].isNull())
nodesObject.status = value["Status"].asString();
if(!value["Version"].isNull())
nodesObject.version = value["Version"].asString();
if(!value["CreatedByEhpc"].isNull())
nodesObject.createdByEhpc = value["CreatedByEhpc"].asString() == "true";
if(!value["AddTime"].isNull())

View File

@@ -59,8 +59,8 @@ void ModifyImageGatewayConfigRequest::setRepo(const std::vector<Repo>& repo)
for(int i = 0; i!= repo.size(); i++) {
auto obj = repo.at(i);
std::string str ="Repo."+ std::to_string(i);
setParameter(str + ".Location", obj.location);
setParameter(str + ".Auth", obj.auth);
setParameter(str + ".Location", obj.location);
setParameter(str + ".URL", obj.uRL);
}
}

View File

@@ -48,8 +48,8 @@ void ModifyUserPasswordsRequest::setUser(const std::vector<User>& user)
for(int i = 0; i!= user.size(); i++) {
auto obj = user.at(i);
std::string str ="User."+ std::to_string(i);
setParameter(str + ".Name", obj.name);
setParameter(str + ".Password", obj.password);
setParameter(str + ".Name", obj.name);
}
}

View 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/ehpc/model/RunCloudMetricProfilingRequest.h>
using AlibabaCloud::EHPC::Model::RunCloudMetricProfilingRequest;
RunCloudMetricProfilingRequest::RunCloudMetricProfilingRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "RunCloudMetricProfiling")
{}
RunCloudMetricProfilingRequest::~RunCloudMetricProfilingRequest()
{}
int RunCloudMetricProfilingRequest::getDuration()const
{
return duration_;
}
void RunCloudMetricProfilingRequest::setDuration(int duration)
{
duration_ = duration;
setParameter("Duration", std::to_string(duration));
}
std::string RunCloudMetricProfilingRequest::getHostName()const
{
return hostName_;
}
void RunCloudMetricProfilingRequest::setHostName(const std::string& hostName)
{
hostName_ = hostName;
setParameter("HostName", hostName);
}
std::string RunCloudMetricProfilingRequest::getRegionId()const
{
return regionId_;
}
void RunCloudMetricProfilingRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int RunCloudMetricProfilingRequest::getProcessId()const
{
return processId_;
}
void RunCloudMetricProfilingRequest::setProcessId(int processId)
{
processId_ = processId;
setParameter("ProcessId", std::to_string(processId));
}
int RunCloudMetricProfilingRequest::getFreq()const
{
return freq_;
}
void RunCloudMetricProfilingRequest::setFreq(int freq)
{
freq_ = freq;
setParameter("Freq", std::to_string(freq));
}
std::string RunCloudMetricProfilingRequest::getClusterId()const
{
return clusterId_;
}
void RunCloudMetricProfilingRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string RunCloudMetricProfilingRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void RunCloudMetricProfilingRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/RunCloudMetricProfilingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
RunCloudMetricProfilingResult::RunCloudMetricProfilingResult() :
ServiceResult()
{}
RunCloudMetricProfilingResult::RunCloudMetricProfilingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RunCloudMetricProfilingResult::~RunCloudMetricProfilingResult()
{}
void RunCloudMetricProfilingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}