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

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-04-10 11:21:39 +08:00
parent a4b515be6c
commit eafc1d87f5
163 changed files with 6445 additions and 680 deletions

View File

@@ -33,7 +33,7 @@ std::string AddContainerAppRequest::getContainerType()const
void AddContainerAppRequest::setContainerType(const std::string& containerType)
{
containerType_ = containerType;
setParameter("ContainerType", containerType);
setCoreParameter("ContainerType", containerType);
}
std::string AddContainerAppRequest::getName()const
@@ -44,7 +44,7 @@ std::string AddContainerAppRequest::getName()const
void AddContainerAppRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
setCoreParameter("Name", name);
}
std::string AddContainerAppRequest::getDescription()const
@@ -55,7 +55,7 @@ std::string AddContainerAppRequest::getDescription()const
void AddContainerAppRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
setCoreParameter("Description", description);
}
std::string AddContainerAppRequest::getRepository()const
@@ -66,7 +66,7 @@ std::string AddContainerAppRequest::getRepository()const
void AddContainerAppRequest::setRepository(const std::string& repository)
{
repository_ = repository;
setParameter("Repository", repository);
setCoreParameter("Repository", repository);
}
std::string AddContainerAppRequest::getImageTag()const
@@ -77,7 +77,7 @@ std::string AddContainerAppRequest::getImageTag()const
void AddContainerAppRequest::setImageTag(const std::string& imageTag)
{
imageTag_ = imageTag;
setParameter("ImageTag", imageTag);
setCoreParameter("ImageTag", imageTag);
}
std::string AddContainerAppRequest::getAccessKeyId()const
@@ -88,6 +88,6 @@ std::string AddContainerAppRequest::getAccessKeyId()const
void AddContainerAppRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string AddLocalNodesRequest::getNodes()const
void AddLocalNodesRequest::setNodes(const std::string& nodes)
{
nodes_ = nodes;
setParameter("Nodes", nodes);
setCoreParameter("Nodes", nodes);
}
std::string AddLocalNodesRequest::getClusterId()const
@@ -44,7 +44,7 @@ std::string AddLocalNodesRequest::getClusterId()const
void AddLocalNodesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string AddLocalNodesRequest::getAccessKeyId()const
@@ -55,6 +55,6 @@ std::string AddLocalNodesRequest::getAccessKeyId()const
void AddLocalNodesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ int AddNodesRequest::getAutoRenewPeriod()const
void AddNodesRequest::setAutoRenewPeriod(int autoRenewPeriod)
{
autoRenewPeriod_ = autoRenewPeriod;
setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
setCoreParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
}
int AddNodesRequest::getPeriod()const
@@ -44,7 +44,7 @@ int AddNodesRequest::getPeriod()const
void AddNodesRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
setCoreParameter("Period", std::to_string(period));
}
std::string AddNodesRequest::getImageId()const
@@ -55,7 +55,7 @@ std::string AddNodesRequest::getImageId()const
void AddNodesRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
setCoreParameter("ImageId", imageId);
}
int AddNodesRequest::getCount()const
@@ -66,7 +66,7 @@ int AddNodesRequest::getCount()const
void AddNodesRequest::setCount(int count)
{
count_ = count;
setParameter("Count", std::to_string(count));
setCoreParameter("Count", std::to_string(count));
}
std::string AddNodesRequest::getClusterId()const
@@ -77,7 +77,7 @@ std::string AddNodesRequest::getClusterId()const
void AddNodesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string AddNodesRequest::getComputeSpotStrategy()const
@@ -88,7 +88,7 @@ std::string AddNodesRequest::getComputeSpotStrategy()const
void AddNodesRequest::setComputeSpotStrategy(const std::string& computeSpotStrategy)
{
computeSpotStrategy_ = computeSpotStrategy;
setParameter("ComputeSpotStrategy", computeSpotStrategy);
setCoreParameter("ComputeSpotStrategy", computeSpotStrategy);
}
std::string AddNodesRequest::getJobQueue()const
@@ -99,7 +99,7 @@ std::string AddNodesRequest::getJobQueue()const
void AddNodesRequest::setJobQueue(const std::string& jobQueue)
{
jobQueue_ = jobQueue;
setParameter("JobQueue", jobQueue);
setCoreParameter("JobQueue", jobQueue);
}
std::string AddNodesRequest::getAccessKeyId()const
@@ -110,7 +110,7 @@ std::string AddNodesRequest::getAccessKeyId()const
void AddNodesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string AddNodesRequest::getImageOwnerAlias()const
@@ -121,7 +121,18 @@ std::string AddNodesRequest::getImageOwnerAlias()const
void AddNodesRequest::setImageOwnerAlias(const std::string& imageOwnerAlias)
{
imageOwnerAlias_ = imageOwnerAlias;
setParameter("ImageOwnerAlias", imageOwnerAlias);
setCoreParameter("ImageOwnerAlias", imageOwnerAlias);
}
std::string AddNodesRequest::getVSwitchId()const
{
return vSwitchId_;
}
void AddNodesRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setCoreParameter("VSwitchId", vSwitchId);
}
std::string AddNodesRequest::getPeriodUnit()const
@@ -132,7 +143,7 @@ std::string AddNodesRequest::getPeriodUnit()const
void AddNodesRequest::setPeriodUnit(const std::string& periodUnit)
{
periodUnit_ = periodUnit;
setParameter("PeriodUnit", periodUnit);
setCoreParameter("PeriodUnit", periodUnit);
}
std::string AddNodesRequest::getAutoRenew()const
@@ -143,7 +154,7 @@ std::string AddNodesRequest::getAutoRenew()const
void AddNodesRequest::setAutoRenew(const std::string& autoRenew)
{
autoRenew_ = autoRenew;
setParameter("AutoRenew", autoRenew);
setCoreParameter("AutoRenew", autoRenew);
}
std::string AddNodesRequest::getEcsChargeType()const
@@ -154,7 +165,7 @@ std::string AddNodesRequest::getEcsChargeType()const
void AddNodesRequest::setEcsChargeType(const std::string& ecsChargeType)
{
ecsChargeType_ = ecsChargeType;
setParameter("EcsChargeType", ecsChargeType);
setCoreParameter("EcsChargeType", ecsChargeType);
}
std::string AddNodesRequest::getCreateMode()const
@@ -165,7 +176,18 @@ std::string AddNodesRequest::getCreateMode()const
void AddNodesRequest::setCreateMode(const std::string& createMode)
{
createMode_ = createMode;
setParameter("CreateMode", createMode);
setCoreParameter("CreateMode", createMode);
}
int AddNodesRequest::getSystemDiskSize()const
{
return systemDiskSize_;
}
void AddNodesRequest::setSystemDiskSize(int systemDiskSize)
{
systemDiskSize_ = systemDiskSize;
setCoreParameter("SystemDiskSize", std::to_string(systemDiskSize));
}
std::string AddNodesRequest::getInstanceType()const
@@ -176,7 +198,18 @@ std::string AddNodesRequest::getInstanceType()const
void AddNodesRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setParameter("InstanceType", instanceType);
setCoreParameter("InstanceType", instanceType);
}
std::string AddNodesRequest::getZoneId()const
{
return zoneId_;
}
void AddNodesRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setCoreParameter("ZoneId", zoneId);
}
std::string AddNodesRequest::getComputeSpotPriceLimit()const
@@ -187,6 +220,6 @@ std::string AddNodesRequest::getComputeSpotPriceLimit()const
void AddNodesRequest::setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit)
{
computeSpotPriceLimit_ = computeSpotPriceLimit;
setParameter("ComputeSpotPriceLimit", computeSpotPriceLimit);
setCoreParameter("ComputeSpotPriceLimit", computeSpotPriceLimit);
}

View 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/ehpc/model/AddQueueRequest.h>
using AlibabaCloud::EHPC::Model::AddQueueRequest;
AddQueueRequest::AddQueueRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "AddQueue")
{}
AddQueueRequest::~AddQueueRequest()
{}
std::string AddQueueRequest::getQueueName()const
{
return queueName_;
}
void AddQueueRequest::setQueueName(const std::string& queueName)
{
queueName_ = queueName;
setCoreParameter("QueueName", queueName);
}
std::string AddQueueRequest::getClusterId()const
{
return clusterId_;
}
void AddQueueRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setCoreParameter("ClusterId", clusterId);
}
std::string AddQueueRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddQueueRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("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/AddQueueResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
AddQueueResult::AddQueueResult() :
ServiceResult()
{}
AddQueueResult::AddQueueResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddQueueResult::~AddQueueResult()
{}
void AddQueueResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -33,7 +33,7 @@ std::string AddUsersRequest::getClusterId()const
void AddUsersRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::vector<AddUsersRequest::User> AddUsersRequest::getUser()const
@@ -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);
setCoreParameter(str + ".Password", obj.password);
setCoreParameter(str + ".Name", obj.name);
setCoreParameter(str + ".Group", obj.group);
}
}
@@ -62,6 +62,6 @@ std::string AddUsersRequest::getAccessKeyId()const
void AddUsersRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string CreateClusterRequest::getSccClusterId()const
void CreateClusterRequest::setSccClusterId(const std::string& sccClusterId)
{
sccClusterId_ = sccClusterId;
setParameter("SccClusterId", sccClusterId);
setCoreParameter("SccClusterId", sccClusterId);
}
std::string CreateClusterRequest::getImageId()const
@@ -44,7 +44,31 @@ std::string CreateClusterRequest::getImageId()const
void CreateClusterRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
setCoreParameter("ImageId", imageId);
}
std::vector<CreateClusterRequest::AdditionalVolumes> CreateClusterRequest::getAdditionalVolumes()const
{
return additionalVolumes_;
}
void CreateClusterRequest::setAdditionalVolumes(const std::vector<AdditionalVolumes>& additionalVolumes)
{
additionalVolumes_ = additionalVolumes;
int i = 0;
for(int i = 0; i!= additionalVolumes.size(); i++) {
auto obj = additionalVolumes.at(i);
std::string str ="AdditionalVolumes."+ std::to_string(i);
setCoreParameter(str + ".VolumeType", obj.volumeType);
setCoreParameter(str + ".VolumeProtocol", obj.volumeProtocol);
setCoreParameter(str + ".LocalDirectory", obj.localDirectory);
setCoreParameter(str + ".RemoteDirectory", obj.remoteDirectory);
setCoreParameter(str + ".Roles", std::to_string(obj.roles));
setCoreParameter(str + ".VolumeId", obj.volumeId);
setCoreParameter(str + ".VolumeMountpoint", obj.volumeMountpoint);
setCoreParameter(str + ".Location", obj.location);
setCoreParameter(str + ".JobQueue", obj.jobQueue);
}
}
std::string CreateClusterRequest::getEcsOrderManagerInstanceType()const
@@ -55,7 +79,7 @@ std::string CreateClusterRequest::getEcsOrderManagerInstanceType()const
void CreateClusterRequest::setEcsOrderManagerInstanceType(const std::string& ecsOrderManagerInstanceType)
{
ecsOrderManagerInstanceType_ = ecsOrderManagerInstanceType;
setParameter("EcsOrderManagerInstanceType", ecsOrderManagerInstanceType);
setCoreParameter("EcsOrderManagerInstanceType", ecsOrderManagerInstanceType);
}
std::string CreateClusterRequest::getEhpcVersion()const
@@ -66,7 +90,7 @@ std::string CreateClusterRequest::getEhpcVersion()const
void CreateClusterRequest::setEhpcVersion(const std::string& ehpcVersion)
{
ehpcVersion_ = ehpcVersion;
setParameter("EhpcVersion", ehpcVersion);
setCoreParameter("EhpcVersion", ehpcVersion);
}
std::string CreateClusterRequest::getAccountType()const
@@ -77,7 +101,7 @@ std::string CreateClusterRequest::getAccountType()const
void CreateClusterRequest::setAccountType(const std::string& accountType)
{
accountType_ = accountType;
setParameter("AccountType", accountType);
setCoreParameter("AccountType", accountType);
}
std::string CreateClusterRequest::getSecurityGroupId()const
@@ -88,7 +112,7 @@ std::string CreateClusterRequest::getSecurityGroupId()const
void CreateClusterRequest::setSecurityGroupId(const std::string& securityGroupId)
{
securityGroupId_ = securityGroupId;
setParameter("SecurityGroupId", securityGroupId);
setCoreParameter("SecurityGroupId", securityGroupId);
}
std::string CreateClusterRequest::getDescription()const
@@ -99,7 +123,7 @@ std::string CreateClusterRequest::getDescription()const
void CreateClusterRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
setCoreParameter("Description", description);
}
std::string CreateClusterRequest::getKeyPairName()const
@@ -110,7 +134,7 @@ std::string CreateClusterRequest::getKeyPairName()const
void CreateClusterRequest::setKeyPairName(const std::string& keyPairName)
{
keyPairName_ = keyPairName;
setParameter("KeyPairName", keyPairName);
setCoreParameter("KeyPairName", keyPairName);
}
std::string CreateClusterRequest::getSecurityGroupName()const
@@ -121,7 +145,7 @@ std::string CreateClusterRequest::getSecurityGroupName()const
void CreateClusterRequest::setSecurityGroupName(const std::string& securityGroupName)
{
securityGroupName_ = securityGroupName;
setParameter("SecurityGroupName", securityGroupName);
setCoreParameter("SecurityGroupName", securityGroupName);
}
std::string CreateClusterRequest::getEcsOrderComputeInstanceType()const
@@ -132,7 +156,7 @@ std::string CreateClusterRequest::getEcsOrderComputeInstanceType()const
void CreateClusterRequest::setEcsOrderComputeInstanceType(const std::string& ecsOrderComputeInstanceType)
{
ecsOrderComputeInstanceType_ = ecsOrderComputeInstanceType;
setParameter("EcsOrderComputeInstanceType", ecsOrderComputeInstanceType);
setCoreParameter("EcsOrderComputeInstanceType", ecsOrderComputeInstanceType);
}
std::string CreateClusterRequest::getJobQueue()const
@@ -143,7 +167,7 @@ std::string CreateClusterRequest::getJobQueue()const
void CreateClusterRequest::setJobQueue(const std::string& jobQueue)
{
jobQueue_ = jobQueue;
setParameter("JobQueue", jobQueue);
setCoreParameter("JobQueue", jobQueue);
}
std::string CreateClusterRequest::getAccessKeyId()const
@@ -154,7 +178,7 @@ std::string CreateClusterRequest::getAccessKeyId()const
void CreateClusterRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string CreateClusterRequest::getImageOwnerAlias()const
@@ -165,7 +189,7 @@ std::string CreateClusterRequest::getImageOwnerAlias()const
void CreateClusterRequest::setImageOwnerAlias(const std::string& imageOwnerAlias)
{
imageOwnerAlias_ = imageOwnerAlias;
setParameter("ImageOwnerAlias", imageOwnerAlias);
setCoreParameter("ImageOwnerAlias", imageOwnerAlias);
}
std::string CreateClusterRequest::getVolumeType()const
@@ -176,7 +200,7 @@ std::string CreateClusterRequest::getVolumeType()const
void CreateClusterRequest::setVolumeType(const std::string& volumeType)
{
volumeType_ = volumeType;
setParameter("VolumeType", volumeType);
setCoreParameter("VolumeType", volumeType);
}
std::string CreateClusterRequest::getDeployMode()const
@@ -187,7 +211,7 @@ std::string CreateClusterRequest::getDeployMode()const
void CreateClusterRequest::setDeployMode(const std::string& deployMode)
{
deployMode_ = deployMode;
setParameter("DeployMode", deployMode);
setCoreParameter("DeployMode", deployMode);
}
int CreateClusterRequest::getEcsOrderManagerCount()const
@@ -198,7 +222,18 @@ int CreateClusterRequest::getEcsOrderManagerCount()const
void CreateClusterRequest::setEcsOrderManagerCount(int ecsOrderManagerCount)
{
ecsOrderManagerCount_ = ecsOrderManagerCount;
setParameter("EcsOrderManagerCount", std::to_string(ecsOrderManagerCount));
setCoreParameter("EcsOrderManagerCount", std::to_string(ecsOrderManagerCount));
}
std::string CreateClusterRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateClusterRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setCoreParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateClusterRequest::getPassword()const
@@ -209,7 +244,7 @@ std::string CreateClusterRequest::getPassword()const
void CreateClusterRequest::setPassword(const std::string& password)
{
password_ = password;
setParameter("Password", password);
setCoreParameter("Password", password);
}
int CreateClusterRequest::getEcsOrderLoginCount()const
@@ -220,7 +255,29 @@ int CreateClusterRequest::getEcsOrderLoginCount()const
void CreateClusterRequest::setEcsOrderLoginCount(int ecsOrderLoginCount)
{
ecsOrderLoginCount_ = ecsOrderLoginCount;
setParameter("EcsOrderLoginCount", std::to_string(ecsOrderLoginCount));
setCoreParameter("EcsOrderLoginCount", std::to_string(ecsOrderLoginCount));
}
std::string CreateClusterRequest::getRemoteVisEnable()const
{
return remoteVisEnable_;
}
void CreateClusterRequest::setRemoteVisEnable(const std::string& remoteVisEnable)
{
remoteVisEnable_ = remoteVisEnable;
setCoreParameter("RemoteVisEnable", remoteVisEnable);
}
int CreateClusterRequest::getSystemDiskSize()const
{
return systemDiskSize_;
}
void CreateClusterRequest::setSystemDiskSize(int systemDiskSize)
{
systemDiskSize_ = systemDiskSize;
setCoreParameter("SystemDiskSize", std::to_string(systemDiskSize));
}
std::string CreateClusterRequest::getComputeSpotPriceLimit()const
@@ -231,7 +288,7 @@ std::string CreateClusterRequest::getComputeSpotPriceLimit()const
void CreateClusterRequest::setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit)
{
computeSpotPriceLimit_ = computeSpotPriceLimit;
setParameter("ComputeSpotPriceLimit", computeSpotPriceLimit);
setCoreParameter("ComputeSpotPriceLimit", computeSpotPriceLimit);
}
int CreateClusterRequest::getAutoRenewPeriod()const
@@ -242,7 +299,7 @@ int CreateClusterRequest::getAutoRenewPeriod()const
void CreateClusterRequest::setAutoRenewPeriod(int autoRenewPeriod)
{
autoRenewPeriod_ = autoRenewPeriod;
setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
setCoreParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
}
int CreateClusterRequest::getPeriod()const
@@ -253,7 +310,7 @@ int CreateClusterRequest::getPeriod()const
void CreateClusterRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
setCoreParameter("Period", std::to_string(period));
}
std::string CreateClusterRequest::getVolumeProtocol()const
@@ -264,7 +321,7 @@ std::string CreateClusterRequest::getVolumeProtocol()const
void CreateClusterRequest::setVolumeProtocol(const std::string& volumeProtocol)
{
volumeProtocol_ = volumeProtocol;
setParameter("VolumeProtocol", volumeProtocol);
setCoreParameter("VolumeProtocol", volumeProtocol);
}
std::string CreateClusterRequest::getClientVersion()const
@@ -275,7 +332,7 @@ std::string CreateClusterRequest::getClientVersion()const
void CreateClusterRequest::setClientVersion(const std::string& clientVersion)
{
clientVersion_ = clientVersion;
setParameter("ClientVersion", clientVersion);
setCoreParameter("ClientVersion", clientVersion);
}
std::string CreateClusterRequest::getOsTag()const
@@ -286,7 +343,7 @@ std::string CreateClusterRequest::getOsTag()const
void CreateClusterRequest::setOsTag(const std::string& osTag)
{
osTag_ = osTag;
setParameter("OsTag", osTag);
setCoreParameter("OsTag", osTag);
}
std::string CreateClusterRequest::getRemoteDirectory()const
@@ -297,7 +354,7 @@ std::string CreateClusterRequest::getRemoteDirectory()const
void CreateClusterRequest::setRemoteDirectory(const std::string& remoteDirectory)
{
remoteDirectory_ = remoteDirectory;
setParameter("RemoteDirectory", remoteDirectory);
setCoreParameter("RemoteDirectory", remoteDirectory);
}
int CreateClusterRequest::getEcsOrderComputeCount()const
@@ -308,7 +365,7 @@ int CreateClusterRequest::getEcsOrderComputeCount()const
void CreateClusterRequest::setEcsOrderComputeCount(int ecsOrderComputeCount)
{
ecsOrderComputeCount_ = ecsOrderComputeCount;
setParameter("EcsOrderComputeCount", std::to_string(ecsOrderComputeCount));
setCoreParameter("EcsOrderComputeCount", std::to_string(ecsOrderComputeCount));
}
std::string CreateClusterRequest::getComputeSpotStrategy()const
@@ -319,7 +376,7 @@ std::string CreateClusterRequest::getComputeSpotStrategy()const
void CreateClusterRequest::setComputeSpotStrategy(const std::string& computeSpotStrategy)
{
computeSpotStrategy_ = computeSpotStrategy;
setParameter("ComputeSpotStrategy", computeSpotStrategy);
setCoreParameter("ComputeSpotStrategy", computeSpotStrategy);
}
std::vector<CreateClusterRequest::PostInstallScript> CreateClusterRequest::getPostInstallScript()const
@@ -334,8 +391,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 + ".Args", obj.args);
setParameter(str + ".Url", obj.url);
setCoreParameter(str + ".Args", obj.args);
setCoreParameter(str + ".Url", obj.url);
}
}
@@ -347,7 +404,7 @@ std::string CreateClusterRequest::getVSwitchId()const
void CreateClusterRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
setCoreParameter("VSwitchId", vSwitchId);
}
std::string CreateClusterRequest::getPeriodUnit()const
@@ -358,7 +415,7 @@ std::string CreateClusterRequest::getPeriodUnit()const
void CreateClusterRequest::setPeriodUnit(const std::string& periodUnit)
{
periodUnit_ = periodUnit;
setParameter("PeriodUnit", periodUnit);
setCoreParameter("PeriodUnit", periodUnit);
}
std::vector<CreateClusterRequest::Application> CreateClusterRequest::getApplication()const
@@ -373,7 +430,7 @@ void CreateClusterRequest::setApplication(const std::vector<Application>& applic
for(int i = 0; i!= application.size(); i++) {
auto obj = application.at(i);
std::string str ="Application."+ std::to_string(i);
setParameter(str + ".Tag", obj.tag);
setCoreParameter(str + ".Tag", obj.tag);
}
}
@@ -385,7 +442,7 @@ std::string CreateClusterRequest::getAutoRenew()const
void CreateClusterRequest::setAutoRenew(const std::string& autoRenew)
{
autoRenew_ = autoRenew;
setParameter("AutoRenew", autoRenew);
setCoreParameter("AutoRenew", autoRenew);
}
std::string CreateClusterRequest::getEcsChargeType()const
@@ -396,7 +453,7 @@ std::string CreateClusterRequest::getEcsChargeType()const
void CreateClusterRequest::setEcsChargeType(const std::string& ecsChargeType)
{
ecsChargeType_ = ecsChargeType;
setParameter("EcsChargeType", ecsChargeType);
setCoreParameter("EcsChargeType", ecsChargeType);
}
std::string CreateClusterRequest::getInputFileUrl()const
@@ -407,7 +464,7 @@ std::string CreateClusterRequest::getInputFileUrl()const
void CreateClusterRequest::setInputFileUrl(const std::string& inputFileUrl)
{
inputFileUrl_ = inputFileUrl;
setParameter("InputFileUrl", inputFileUrl);
setCoreParameter("InputFileUrl", inputFileUrl);
}
std::string CreateClusterRequest::getVpcId()const
@@ -418,7 +475,7 @@ std::string CreateClusterRequest::getVpcId()const
void CreateClusterRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
setCoreParameter("VpcId", vpcId);
}
bool CreateClusterRequest::getHaEnable()const
@@ -429,7 +486,7 @@ bool CreateClusterRequest::getHaEnable()const
void CreateClusterRequest::setHaEnable(bool haEnable)
{
haEnable_ = haEnable;
setParameter("HaEnable", std::to_string(haEnable));
setCoreParameter("HaEnable", haEnable ? "true" : "false");
}
std::string CreateClusterRequest::getName()const
@@ -440,7 +497,7 @@ std::string CreateClusterRequest::getName()const
void CreateClusterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
setCoreParameter("Name", name);
}
std::string CreateClusterRequest::getSchedulerType()const
@@ -451,7 +508,7 @@ std::string CreateClusterRequest::getSchedulerType()const
void CreateClusterRequest::setSchedulerType(const std::string& schedulerType)
{
schedulerType_ = schedulerType;
setParameter("SchedulerType", schedulerType);
setCoreParameter("SchedulerType", schedulerType);
}
std::string CreateClusterRequest::getVolumeId()const
@@ -462,7 +519,7 @@ std::string CreateClusterRequest::getVolumeId()const
void CreateClusterRequest::setVolumeId(const std::string& volumeId)
{
volumeId_ = volumeId;
setParameter("VolumeId", volumeId);
setCoreParameter("VolumeId", volumeId);
}
std::string CreateClusterRequest::getVolumeMountpoint()const
@@ -473,7 +530,7 @@ std::string CreateClusterRequest::getVolumeMountpoint()const
void CreateClusterRequest::setVolumeMountpoint(const std::string& volumeMountpoint)
{
volumeMountpoint_ = volumeMountpoint;
setParameter("VolumeMountpoint", volumeMountpoint);
setCoreParameter("VolumeMountpoint", volumeMountpoint);
}
std::string CreateClusterRequest::getEcsOrderLoginInstanceType()const
@@ -484,7 +541,7 @@ std::string CreateClusterRequest::getEcsOrderLoginInstanceType()const
void CreateClusterRequest::setEcsOrderLoginInstanceType(const std::string& ecsOrderLoginInstanceType)
{
ecsOrderLoginInstanceType_ = ecsOrderLoginInstanceType;
setParameter("EcsOrderLoginInstanceType", ecsOrderLoginInstanceType);
setCoreParameter("EcsOrderLoginInstanceType", ecsOrderLoginInstanceType);
}
std::string CreateClusterRequest::getZoneId()const
@@ -495,6 +552,6 @@ std::string CreateClusterRequest::getZoneId()const
void CreateClusterRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
setCoreParameter("ZoneId", zoneId);
}

View File

@@ -33,7 +33,7 @@ std::string CreateHybridClusterRequest::getEhpcVersion()const
void CreateHybridClusterRequest::setEhpcVersion(const std::string& ehpcVersion)
{
ehpcVersion_ = ehpcVersion;
setParameter("EhpcVersion", ehpcVersion);
setCoreParameter("EhpcVersion", ehpcVersion);
}
std::string CreateHybridClusterRequest::getSecurityGroupId()const
@@ -44,7 +44,7 @@ std::string CreateHybridClusterRequest::getSecurityGroupId()const
void CreateHybridClusterRequest::setSecurityGroupId(const std::string& securityGroupId)
{
securityGroupId_ = securityGroupId;
setParameter("SecurityGroupId", securityGroupId);
setCoreParameter("SecurityGroupId", securityGroupId);
}
std::string CreateHybridClusterRequest::getDescription()const
@@ -55,7 +55,7 @@ std::string CreateHybridClusterRequest::getDescription()const
void CreateHybridClusterRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
setCoreParameter("Description", description);
}
std::string CreateHybridClusterRequest::getKeyPairName()const
@@ -66,7 +66,7 @@ std::string CreateHybridClusterRequest::getKeyPairName()const
void CreateHybridClusterRequest::setKeyPairName(const std::string& keyPairName)
{
keyPairName_ = keyPairName;
setParameter("KeyPairName", keyPairName);
setCoreParameter("KeyPairName", keyPairName);
}
std::string CreateHybridClusterRequest::getSecurityGroupName()const
@@ -77,7 +77,7 @@ std::string CreateHybridClusterRequest::getSecurityGroupName()const
void CreateHybridClusterRequest::setSecurityGroupName(const std::string& securityGroupName)
{
securityGroupName_ = securityGroupName;
setParameter("SecurityGroupName", securityGroupName);
setCoreParameter("SecurityGroupName", securityGroupName);
}
std::string CreateHybridClusterRequest::getEcsOrderComputeInstanceType()const
@@ -88,7 +88,7 @@ std::string CreateHybridClusterRequest::getEcsOrderComputeInstanceType()const
void CreateHybridClusterRequest::setEcsOrderComputeInstanceType(const std::string& ecsOrderComputeInstanceType)
{
ecsOrderComputeInstanceType_ = ecsOrderComputeInstanceType;
setParameter("EcsOrderComputeInstanceType", ecsOrderComputeInstanceType);
setCoreParameter("EcsOrderComputeInstanceType", ecsOrderComputeInstanceType);
}
std::string CreateHybridClusterRequest::getOnPremiseVolumeRemotePath()const
@@ -99,7 +99,7 @@ std::string CreateHybridClusterRequest::getOnPremiseVolumeRemotePath()const
void CreateHybridClusterRequest::setOnPremiseVolumeRemotePath(const std::string& onPremiseVolumeRemotePath)
{
onPremiseVolumeRemotePath_ = onPremiseVolumeRemotePath;
setParameter("OnPremiseVolumeRemotePath", onPremiseVolumeRemotePath);
setCoreParameter("OnPremiseVolumeRemotePath", onPremiseVolumeRemotePath);
}
std::string CreateHybridClusterRequest::getJobQueue()const
@@ -110,7 +110,7 @@ std::string CreateHybridClusterRequest::getJobQueue()const
void CreateHybridClusterRequest::setJobQueue(const std::string& jobQueue)
{
jobQueue_ = jobQueue;
setParameter("JobQueue", jobQueue);
setCoreParameter("JobQueue", jobQueue);
}
std::string CreateHybridClusterRequest::getAccessKeyId()const
@@ -121,7 +121,7 @@ std::string CreateHybridClusterRequest::getAccessKeyId()const
void CreateHybridClusterRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string CreateHybridClusterRequest::getVolumeType()const
@@ -132,7 +132,18 @@ std::string CreateHybridClusterRequest::getVolumeType()const
void CreateHybridClusterRequest::setVolumeType(const std::string& volumeType)
{
volumeType_ = volumeType;
setParameter("VolumeType", volumeType);
setCoreParameter("VolumeType", volumeType);
}
std::string CreateHybridClusterRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateHybridClusterRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setCoreParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateHybridClusterRequest::getPassword()const
@@ -143,7 +154,7 @@ std::string CreateHybridClusterRequest::getPassword()const
void CreateHybridClusterRequest::setPassword(const std::string& password)
{
password_ = password;
setParameter("Password", password);
setCoreParameter("Password", password);
}
std::string CreateHybridClusterRequest::getOnPremiseVolumeMountPoint()const
@@ -154,7 +165,7 @@ std::string CreateHybridClusterRequest::getOnPremiseVolumeMountPoint()const
void CreateHybridClusterRequest::setOnPremiseVolumeMountPoint(const std::string& onPremiseVolumeMountPoint)
{
onPremiseVolumeMountPoint_ = onPremiseVolumeMountPoint;
setParameter("OnPremiseVolumeMountPoint", onPremiseVolumeMountPoint);
setCoreParameter("OnPremiseVolumeMountPoint", onPremiseVolumeMountPoint);
}
std::string CreateHybridClusterRequest::getOnPremiseVolumeProtocol()const
@@ -165,7 +176,7 @@ std::string CreateHybridClusterRequest::getOnPremiseVolumeProtocol()const
void CreateHybridClusterRequest::setOnPremiseVolumeProtocol(const std::string& onPremiseVolumeProtocol)
{
onPremiseVolumeProtocol_ = onPremiseVolumeProtocol;
setParameter("OnPremiseVolumeProtocol", onPremiseVolumeProtocol);
setCoreParameter("OnPremiseVolumeProtocol", onPremiseVolumeProtocol);
}
std::string CreateHybridClusterRequest::getVolumeProtocol()const
@@ -176,7 +187,7 @@ std::string CreateHybridClusterRequest::getVolumeProtocol()const
void CreateHybridClusterRequest::setVolumeProtocol(const std::string& volumeProtocol)
{
volumeProtocol_ = volumeProtocol;
setParameter("VolumeProtocol", volumeProtocol);
setCoreParameter("VolumeProtocol", volumeProtocol);
}
std::string CreateHybridClusterRequest::getOnPremiseVolumeLocalPath()const
@@ -187,7 +198,7 @@ std::string CreateHybridClusterRequest::getOnPremiseVolumeLocalPath()const
void CreateHybridClusterRequest::setOnPremiseVolumeLocalPath(const std::string& onPremiseVolumeLocalPath)
{
onPremiseVolumeLocalPath_ = onPremiseVolumeLocalPath;
setParameter("OnPremiseVolumeLocalPath", onPremiseVolumeLocalPath);
setCoreParameter("OnPremiseVolumeLocalPath", onPremiseVolumeLocalPath);
}
std::string CreateHybridClusterRequest::getClientVersion()const
@@ -198,7 +209,7 @@ std::string CreateHybridClusterRequest::getClientVersion()const
void CreateHybridClusterRequest::setClientVersion(const std::string& clientVersion)
{
clientVersion_ = clientVersion;
setParameter("ClientVersion", clientVersion);
setCoreParameter("ClientVersion", clientVersion);
}
std::string CreateHybridClusterRequest::getOsTag()const
@@ -209,7 +220,7 @@ std::string CreateHybridClusterRequest::getOsTag()const
void CreateHybridClusterRequest::setOsTag(const std::string& osTag)
{
osTag_ = osTag;
setParameter("OsTag", osTag);
setCoreParameter("OsTag", osTag);
}
std::string CreateHybridClusterRequest::getRemoteDirectory()const
@@ -220,7 +231,7 @@ std::string CreateHybridClusterRequest::getRemoteDirectory()const
void CreateHybridClusterRequest::setRemoteDirectory(const std::string& remoteDirectory)
{
remoteDirectory_ = remoteDirectory;
setParameter("RemoteDirectory", remoteDirectory);
setCoreParameter("RemoteDirectory", remoteDirectory);
}
std::vector<CreateHybridClusterRequest::PostInstallScript> CreateHybridClusterRequest::getPostInstallScript()const
@@ -235,8 +246,8 @@ void CreateHybridClusterRequest::setPostInstallScript(const std::vector<PostInst
for(int i = 0; i!= postInstallScript.size(); i++) {
auto obj = postInstallScript.at(i);
std::string str ="PostInstallScript."+ std::to_string(i);
setParameter(str + ".Args", obj.args);
setParameter(str + ".Url", obj.url);
setCoreParameter(str + ".Args", obj.args);
setCoreParameter(str + ".Url", obj.url);
}
}
@@ -248,7 +259,7 @@ std::string CreateHybridClusterRequest::getVSwitchId()const
void CreateHybridClusterRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
setCoreParameter("VSwitchId", vSwitchId);
}
std::string CreateHybridClusterRequest::getNodes()const
@@ -259,7 +270,7 @@ std::string CreateHybridClusterRequest::getNodes()const
void CreateHybridClusterRequest::setNodes(const std::string& nodes)
{
nodes_ = nodes;
setParameter("Nodes", nodes);
setCoreParameter("Nodes", nodes);
}
std::vector<CreateHybridClusterRequest::Application> CreateHybridClusterRequest::getApplication()const
@@ -274,7 +285,7 @@ void CreateHybridClusterRequest::setApplication(const std::vector<Application>&
for(int i = 0; i!= application.size(); i++) {
auto obj = application.at(i);
std::string str ="Application."+ std::to_string(i);
setParameter(str + ".Tag", obj.tag);
setCoreParameter(str + ".Tag", obj.tag);
}
}
@@ -286,7 +297,7 @@ std::string CreateHybridClusterRequest::getDomain()const
void CreateHybridClusterRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
setCoreParameter("Domain", domain);
}
std::string CreateHybridClusterRequest::getVpcId()const
@@ -297,7 +308,7 @@ std::string CreateHybridClusterRequest::getVpcId()const
void CreateHybridClusterRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
setCoreParameter("VpcId", vpcId);
}
std::string CreateHybridClusterRequest::getName()const
@@ -308,7 +319,7 @@ std::string CreateHybridClusterRequest::getName()const
void CreateHybridClusterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
setCoreParameter("Name", name);
}
std::string CreateHybridClusterRequest::getVolumeId()const
@@ -319,7 +330,7 @@ std::string CreateHybridClusterRequest::getVolumeId()const
void CreateHybridClusterRequest::setVolumeId(const std::string& volumeId)
{
volumeId_ = volumeId;
setParameter("VolumeId", volumeId);
setCoreParameter("VolumeId", volumeId);
}
std::string CreateHybridClusterRequest::getVolumeMountpoint()const
@@ -330,7 +341,7 @@ std::string CreateHybridClusterRequest::getVolumeMountpoint()const
void CreateHybridClusterRequest::setVolumeMountpoint(const std::string& volumeMountpoint)
{
volumeMountpoint_ = volumeMountpoint;
setParameter("VolumeMountpoint", volumeMountpoint);
setCoreParameter("VolumeMountpoint", volumeMountpoint);
}
std::string CreateHybridClusterRequest::getZoneId()const
@@ -341,7 +352,7 @@ std::string CreateHybridClusterRequest::getZoneId()const
void CreateHybridClusterRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
setCoreParameter("ZoneId", zoneId);
}
std::string CreateHybridClusterRequest::getLocation()const
@@ -352,6 +363,6 @@ std::string CreateHybridClusterRequest::getLocation()const
void CreateHybridClusterRequest::setLocation(const std::string& location)
{
location_ = location;
setParameter("Location", location);
setCoreParameter("Location", location);
}

View 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/ehpc/model/CreateJobFileRequest.h>
using AlibabaCloud::EHPC::Model::CreateJobFileRequest;
CreateJobFileRequest::CreateJobFileRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "CreateJobFile")
{}
CreateJobFileRequest::~CreateJobFileRequest()
{}
std::string CreateJobFileRequest::getTargetFile()const
{
return targetFile_;
}
void CreateJobFileRequest::setTargetFile(const std::string& targetFile)
{
targetFile_ = targetFile;
setCoreParameter("TargetFile", targetFile);
}
std::string CreateJobFileRequest::getRunasUserPassword()const
{
return runasUserPassword_;
}
void CreateJobFileRequest::setRunasUserPassword(const std::string& runasUserPassword)
{
runasUserPassword_ = runasUserPassword;
setCoreParameter("RunasUserPassword", runasUserPassword);
}
std::string CreateJobFileRequest::getRunasUser()const
{
return runasUser_;
}
void CreateJobFileRequest::setRunasUser(const std::string& runasUser)
{
runasUser_ = runasUser;
setCoreParameter("RunasUser", runasUser);
}
std::string CreateJobFileRequest::getClusterId()const
{
return clusterId_;
}
void CreateJobFileRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setCoreParameter("ClusterId", clusterId);
}
std::string CreateJobFileRequest::getContent()const
{
return content_;
}
void CreateJobFileRequest::setContent(const std::string& content)
{
content_ = content;
setCoreParameter("Content", content);
}
std::string CreateJobFileRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateJobFileRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View 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/ehpc/model/CreateJobFileResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
CreateJobFileResult::CreateJobFileResult() :
ServiceResult()
{}
CreateJobFileResult::CreateJobFileResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateJobFileResult::~CreateJobFileResult()
{}
void CreateJobFileResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TemplateId"].isNull())
templateId_ = value["TemplateId"].asString();
}
std::string CreateJobFileResult::getTemplateId()const
{
return templateId_;
}

View File

@@ -33,7 +33,7 @@ std::string CreateJobTemplateRequest::getStderrRedirectPath()const
void CreateJobTemplateRequest::setStderrRedirectPath(const std::string& stderrRedirectPath)
{
stderrRedirectPath_ = stderrRedirectPath;
setParameter("StderrRedirectPath", stderrRedirectPath);
setCoreParameter("StderrRedirectPath", stderrRedirectPath);
}
std::string CreateJobTemplateRequest::getArrayRequest()const
@@ -44,7 +44,7 @@ std::string CreateJobTemplateRequest::getArrayRequest()const
void CreateJobTemplateRequest::setArrayRequest(const std::string& arrayRequest)
{
arrayRequest_ = arrayRequest;
setParameter("ArrayRequest", arrayRequest);
setCoreParameter("ArrayRequest", arrayRequest);
}
std::string CreateJobTemplateRequest::getPackagePath()const
@@ -55,7 +55,7 @@ std::string CreateJobTemplateRequest::getPackagePath()const
void CreateJobTemplateRequest::setPackagePath(const std::string& packagePath)
{
packagePath_ = packagePath;
setParameter("PackagePath", packagePath);
setCoreParameter("PackagePath", packagePath);
}
std::string CreateJobTemplateRequest::getVariables()const
@@ -66,7 +66,7 @@ std::string CreateJobTemplateRequest::getVariables()const
void CreateJobTemplateRequest::setVariables(const std::string& variables)
{
variables_ = variables;
setParameter("Variables", variables);
setCoreParameter("Variables", variables);
}
std::string CreateJobTemplateRequest::getName()const
@@ -77,7 +77,7 @@ std::string CreateJobTemplateRequest::getName()const
void CreateJobTemplateRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
setCoreParameter("Name", name);
}
std::string CreateJobTemplateRequest::getRunasUser()const
@@ -88,7 +88,7 @@ std::string CreateJobTemplateRequest::getRunasUser()const
void CreateJobTemplateRequest::setRunasUser(const std::string& runasUser)
{
runasUser_ = runasUser;
setParameter("RunasUser", runasUser);
setCoreParameter("RunasUser", runasUser);
}
std::string CreateJobTemplateRequest::getStdoutRedirectPath()const
@@ -99,7 +99,7 @@ std::string CreateJobTemplateRequest::getStdoutRedirectPath()const
void CreateJobTemplateRequest::setStdoutRedirectPath(const std::string& stdoutRedirectPath)
{
stdoutRedirectPath_ = stdoutRedirectPath;
setParameter("StdoutRedirectPath", stdoutRedirectPath);
setCoreParameter("StdoutRedirectPath", stdoutRedirectPath);
}
bool CreateJobTemplateRequest::getReRunable()const
@@ -110,7 +110,7 @@ bool CreateJobTemplateRequest::getReRunable()const
void CreateJobTemplateRequest::setReRunable(bool reRunable)
{
reRunable_ = reRunable;
setParameter("ReRunable", std::to_string(reRunable));
setCoreParameter("ReRunable", reRunable ? "true" : "false");
}
int CreateJobTemplateRequest::getPriority()const
@@ -121,7 +121,7 @@ int CreateJobTemplateRequest::getPriority()const
void CreateJobTemplateRequest::setPriority(int priority)
{
priority_ = priority;
setParameter("Priority", std::to_string(priority));
setCoreParameter("Priority", std::to_string(priority));
}
std::string CreateJobTemplateRequest::getCommandLine()const
@@ -132,7 +132,7 @@ std::string CreateJobTemplateRequest::getCommandLine()const
void CreateJobTemplateRequest::setCommandLine(const std::string& commandLine)
{
commandLine_ = commandLine;
setParameter("CommandLine", commandLine);
setCoreParameter("CommandLine", commandLine);
}
std::string CreateJobTemplateRequest::getAccessKeyId()const
@@ -143,6 +143,6 @@ std::string CreateJobTemplateRequest::getAccessKeyId()const
void CreateJobTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string DeleteClusterRequest::getReleaseInstance()const
void DeleteClusterRequest::setReleaseInstance(const std::string& releaseInstance)
{
releaseInstance_ = releaseInstance;
setParameter("ReleaseInstance", releaseInstance);
setCoreParameter("ReleaseInstance", releaseInstance);
}
std::string DeleteClusterRequest::getClusterId()const
@@ -44,7 +44,7 @@ std::string DeleteClusterRequest::getClusterId()const
void DeleteClusterRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string DeleteClusterRequest::getAccessKeyId()const
@@ -55,6 +55,6 @@ std::string DeleteClusterRequest::getAccessKeyId()const
void DeleteClusterRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -37,7 +37,7 @@ void DeleteContainerAppsRequest::setContainerApp(const std::vector<ContainerApp>
for(int i = 0; i!= containerApp.size(); i++) {
auto obj = containerApp.at(i);
std::string str ="ContainerApp."+ std::to_string(i);
setParameter(str + ".Id", obj.id);
setCoreParameter(str + ".Id", obj.id);
}
}
@@ -49,6 +49,6 @@ std::string DeleteContainerAppsRequest::getAccessKeyId()const
void DeleteContainerAppsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string DeleteImageRequest::getContainerType()const
void DeleteImageRequest::setContainerType(const std::string& containerType)
{
containerType_ = containerType;
setParameter("ContainerType", containerType);
setCoreParameter("ContainerType", containerType);
}
std::string DeleteImageRequest::getClusterId()const
@@ -44,7 +44,7 @@ std::string DeleteImageRequest::getClusterId()const
void DeleteImageRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string DeleteImageRequest::getRepository()const
@@ -55,7 +55,7 @@ std::string DeleteImageRequest::getRepository()const
void DeleteImageRequest::setRepository(const std::string& repository)
{
repository_ = repository;
setParameter("Repository", repository);
setCoreParameter("Repository", repository);
}
std::string DeleteImageRequest::getImageTag()const
@@ -66,7 +66,7 @@ std::string DeleteImageRequest::getImageTag()const
void DeleteImageRequest::setImageTag(const std::string& imageTag)
{
imageTag_ = imageTag;
setParameter("ImageTag", imageTag);
setCoreParameter("ImageTag", imageTag);
}
std::string DeleteImageRequest::getAccessKeyId()const
@@ -77,6 +77,6 @@ std::string DeleteImageRequest::getAccessKeyId()const
void DeleteImageRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string DeleteJobTemplatesRequest::getTemplates()const
void DeleteJobTemplatesRequest::setTemplates(const std::string& templates)
{
templates_ = templates;
setParameter("Templates", templates);
setCoreParameter("Templates", templates);
}
std::string DeleteJobTemplatesRequest::getAccessKeyId()const
@@ -44,6 +44,6 @@ std::string DeleteJobTemplatesRequest::getAccessKeyId()const
void DeleteJobTemplatesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string DeleteJobsRequest::getJobs()const
void DeleteJobsRequest::setJobs(const std::string& jobs)
{
jobs_ = jobs;
setParameter("Jobs", jobs);
setCoreParameter("Jobs", jobs);
}
std::string DeleteJobsRequest::getClusterId()const
@@ -44,7 +44,7 @@ std::string DeleteJobsRequest::getClusterId()const
void DeleteJobsRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string DeleteJobsRequest::getAccessKeyId()const
@@ -55,6 +55,6 @@ std::string DeleteJobsRequest::getAccessKeyId()const
void DeleteJobsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ bool DeleteNodesRequest::getReleaseInstance()const
void DeleteNodesRequest::setReleaseInstance(bool releaseInstance)
{
releaseInstance_ = releaseInstance;
setParameter("ReleaseInstance", std::to_string(releaseInstance));
setCoreParameter("ReleaseInstance", releaseInstance ? "true" : "false");
}
std::vector<DeleteNodesRequest::Instance> DeleteNodesRequest::getInstance()const
@@ -48,7 +48,7 @@ void DeleteNodesRequest::setInstance(const std::vector<Instance>& instance)
for(int i = 0; i!= instance.size(); i++) {
auto obj = instance.at(i);
std::string str ="Instance."+ std::to_string(i);
setParameter(str + ".Id", obj.id);
setCoreParameter(str + ".Id", obj.id);
}
}
@@ -60,7 +60,7 @@ std::string DeleteNodesRequest::getClusterId()const
void DeleteNodesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string DeleteNodesRequest::getAccessKeyId()const
@@ -71,6 +71,6 @@ std::string DeleteNodesRequest::getAccessKeyId()const
void DeleteNodesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View 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/ehpc/model/DeleteQueueRequest.h>
using AlibabaCloud::EHPC::Model::DeleteQueueRequest;
DeleteQueueRequest::DeleteQueueRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DeleteQueue")
{}
DeleteQueueRequest::~DeleteQueueRequest()
{}
std::string DeleteQueueRequest::getQueueName()const
{
return queueName_;
}
void DeleteQueueRequest::setQueueName(const std::string& queueName)
{
queueName_ = queueName;
setCoreParameter("QueueName", queueName);
}
std::string DeleteQueueRequest::getClusterId()const
{
return clusterId_;
}
void DeleteQueueRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setCoreParameter("ClusterId", clusterId);
}
std::string DeleteQueueRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteQueueRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("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/DeleteQueueResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::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());
}

View File

@@ -33,7 +33,7 @@ std::string DeleteUsersRequest::getClusterId()const
void DeleteUsersRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::vector<DeleteUsersRequest::User> DeleteUsersRequest::getUser()const
@@ -48,7 +48,7 @@ void DeleteUsersRequest::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);
setCoreParameter(str + ".Name", obj.name);
}
}
@@ -60,6 +60,6 @@ std::string DeleteUsersRequest::getAccessKeyId()const
void DeleteUsersRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string DescribeAutoScaleConfigRequest::getClusterId()const
void DescribeAutoScaleConfigRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string DescribeAutoScaleConfigRequest::getAccessKeyId()const
@@ -44,6 +44,6 @@ std::string DescribeAutoScaleConfigRequest::getAccessKeyId()const
void DescribeAutoScaleConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string DescribeClusterRequest::getClusterId()const
void DescribeClusterRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string DescribeClusterRequest::getAccessKeyId()const
@@ -44,6 +44,6 @@ std::string DescribeClusterRequest::getAccessKeyId()const
void DescribeClusterRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string DescribeContainerAppRequest::getContainerId()const
void DescribeContainerAppRequest::setContainerId(const std::string& containerId)
{
containerId_ = containerId;
setParameter("ContainerId", containerId);
setCoreParameter("ContainerId", containerId);
}
std::string DescribeContainerAppRequest::getAccessKeyId()const
@@ -44,6 +44,6 @@ std::string DescribeContainerAppRequest::getAccessKeyId()const
void DescribeContainerAppRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string DescribeImageGatewayConfigRequest::getClusterId()const
void DescribeImageGatewayConfigRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string DescribeImageGatewayConfigRequest::getAccessKeyId()const
@@ -44,6 +44,6 @@ std::string DescribeImageGatewayConfigRequest::getAccessKeyId()const
void DescribeImageGatewayConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ int DescribeImagePriceRequest::getPeriod()const
void DescribeImagePriceRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
setCoreParameter("Period", std::to_string(period));
}
int DescribeImagePriceRequest::getAmount()const
@@ -44,7 +44,7 @@ int DescribeImagePriceRequest::getAmount()const
void DescribeImagePriceRequest::setAmount(int amount)
{
amount_ = amount;
setParameter("Amount", std::to_string(amount));
setCoreParameter("Amount", std::to_string(amount));
}
std::string DescribeImagePriceRequest::getImageId()const
@@ -55,7 +55,7 @@ std::string DescribeImagePriceRequest::getImageId()const
void DescribeImagePriceRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
setCoreParameter("ImageId", imageId);
}
std::string DescribeImagePriceRequest::getPriceUnit()const
@@ -66,7 +66,7 @@ std::string DescribeImagePriceRequest::getPriceUnit()const
void DescribeImagePriceRequest::setPriceUnit(const std::string& priceUnit)
{
priceUnit_ = priceUnit;
setParameter("PriceUnit", priceUnit);
setCoreParameter("PriceUnit", priceUnit);
}
std::string DescribeImagePriceRequest::getSkuCode()const
@@ -77,7 +77,7 @@ std::string DescribeImagePriceRequest::getSkuCode()const
void DescribeImagePriceRequest::setSkuCode(const std::string& skuCode)
{
skuCode_ = skuCode;
setParameter("SkuCode", skuCode);
setCoreParameter("SkuCode", skuCode);
}
std::string DescribeImagePriceRequest::getAccessKeyId()const
@@ -88,7 +88,7 @@ std::string DescribeImagePriceRequest::getAccessKeyId()const
void DescribeImagePriceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DescribeImagePriceRequest::getOrderType()const
@@ -99,6 +99,6 @@ std::string DescribeImagePriceRequest::getOrderType()const
void DescribeImagePriceRequest::setOrderType(const std::string& orderType)
{
orderType_ = orderType;
setParameter("OrderType", orderType);
setCoreParameter("OrderType", orderType);
}

View File

@@ -33,7 +33,7 @@ std::string DescribeImageRequest::getContainerType()const
void DescribeImageRequest::setContainerType(const std::string& containerType)
{
containerType_ = containerType;
setParameter("ContainerType", containerType);
setCoreParameter("ContainerType", containerType);
}
std::string DescribeImageRequest::getClusterId()const
@@ -44,7 +44,7 @@ std::string DescribeImageRequest::getClusterId()const
void DescribeImageRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string DescribeImageRequest::getRepository()const
@@ -55,7 +55,7 @@ std::string DescribeImageRequest::getRepository()const
void DescribeImageRequest::setRepository(const std::string& repository)
{
repository_ = repository;
setParameter("Repository", repository);
setCoreParameter("Repository", repository);
}
std::string DescribeImageRequest::getImageTag()const
@@ -66,7 +66,7 @@ std::string DescribeImageRequest::getImageTag()const
void DescribeImageRequest::setImageTag(const std::string& imageTag)
{
imageTag_ = imageTag;
setParameter("ImageTag", imageTag);
setCoreParameter("ImageTag", imageTag);
}
std::string DescribeImageRequest::getAccessKeyId()const
@@ -77,6 +77,6 @@ std::string DescribeImageRequest::getAccessKeyId()const
void DescribeImageRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View 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/ehpc/model/DescribeJobRequest.h>
using AlibabaCloud::EHPC::Model::DescribeJobRequest;
DescribeJobRequest::DescribeJobRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DescribeJob")
{}
DescribeJobRequest::~DescribeJobRequest()
{}
std::string DescribeJobRequest::getJobId()const
{
return jobId_;
}
void DescribeJobRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setCoreParameter("JobId", jobId);
}
std::string DescribeJobRequest::getClusterId()const
{
return clusterId_;
}
void DescribeJobRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setCoreParameter("ClusterId", clusterId);
}
std::string DescribeJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/DescribeJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
DescribeJobResult::DescribeJobResult() :
ServiceResult()
{}
DescribeJobResult::DescribeJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeJobResult::~DescribeJobResult()
{}
void DescribeJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto messageNode = value["Message"];
if(!messageNode["JobInfo"].isNull())
message_.jobInfo = messageNode["JobInfo"].asString();
}
DescribeJobResult::Message DescribeJobResult::getMessage()const
{
return message_;
}

View File

@@ -33,7 +33,7 @@ std::string DescribePriceRequest::getPriceUnit()const
void DescribePriceRequest::setPriceUnit(const std::string& priceUnit)
{
priceUnit_ = priceUnit;
setParameter("PriceUnit", priceUnit);
setCoreParameter("PriceUnit", priceUnit);
}
std::vector<DescribePriceRequest::Commodities> DescribePriceRequest::getCommodities()const
@@ -48,13 +48,13 @@ void DescribePriceRequest::setCommodities(const std::vector<Commodities>& commod
for(int i = 0; i!= commodities.size(); i++) {
auto obj = commodities.at(i);
std::string str ="Commodities."+ std::to_string(i);
setParameter(str + ".Amount", std::to_string(obj.amount));
setParameter(str + ".Period", std::to_string(obj.period));
setParameter(str + ".NodeType", obj.nodeType);
setParameter(str + ".SystemDiskCategory", obj.systemDiskCategory);
setParameter(str + ".SystemDiskSize", std::to_string(obj.systemDiskSize));
setParameter(str + ".InstanceType", obj.instanceType);
setParameter(str + ".NetworkType", obj.networkType);
setCoreParameter(str + ".Amount", std::to_string(obj.amount));
setCoreParameter(str + ".Period", std::to_string(obj.period));
setCoreParameter(str + ".NodeType", obj.nodeType);
setCoreParameter(str + ".SystemDiskCategory", obj.systemDiskCategory);
setCoreParameter(str + ".SystemDiskSize", std::to_string(obj.systemDiskSize));
setCoreParameter(str + ".InstanceType", obj.instanceType);
setCoreParameter(str + ".NetworkType", obj.networkType);
}
}
@@ -66,7 +66,7 @@ std::string DescribePriceRequest::getChargeType()const
void DescribePriceRequest::setChargeType(const std::string& chargeType)
{
chargeType_ = chargeType;
setParameter("ChargeType", chargeType);
setCoreParameter("ChargeType", chargeType);
}
std::string DescribePriceRequest::getAccessKeyId()const
@@ -77,7 +77,7 @@ std::string DescribePriceRequest::getAccessKeyId()const
void DescribePriceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DescribePriceRequest::getOrderType()const
@@ -88,6 +88,6 @@ std::string DescribePriceRequest::getOrderType()const
void DescribePriceRequest::setOrderType(const std::string& orderType)
{
orderType_ = orderType;
setParameter("OrderType", orderType);
setCoreParameter("OrderType", orderType);
}

View File

@@ -33,7 +33,7 @@ std::string EditJobTemplateRequest::getStderrRedirectPath()const
void EditJobTemplateRequest::setStderrRedirectPath(const std::string& stderrRedirectPath)
{
stderrRedirectPath_ = stderrRedirectPath;
setParameter("StderrRedirectPath", stderrRedirectPath);
setCoreParameter("StderrRedirectPath", stderrRedirectPath);
}
std::string EditJobTemplateRequest::getVariables()const
@@ -44,7 +44,7 @@ std::string EditJobTemplateRequest::getVariables()const
void EditJobTemplateRequest::setVariables(const std::string& variables)
{
variables_ = variables;
setParameter("Variables", variables);
setCoreParameter("Variables", variables);
}
std::string EditJobTemplateRequest::getRunasUser()const
@@ -55,7 +55,7 @@ std::string EditJobTemplateRequest::getRunasUser()const
void EditJobTemplateRequest::setRunasUser(const std::string& runasUser)
{
runasUser_ = runasUser;
setParameter("RunasUser", runasUser);
setCoreParameter("RunasUser", runasUser);
}
bool EditJobTemplateRequest::getReRunable()const
@@ -66,7 +66,7 @@ bool EditJobTemplateRequest::getReRunable()const
void EditJobTemplateRequest::setReRunable(bool reRunable)
{
reRunable_ = reRunable;
setParameter("ReRunable", std::to_string(reRunable));
setCoreParameter("ReRunable", reRunable ? "true" : "false");
}
std::string EditJobTemplateRequest::getTemplateId()const
@@ -77,7 +77,7 @@ std::string EditJobTemplateRequest::getTemplateId()const
void EditJobTemplateRequest::setTemplateId(const std::string& templateId)
{
templateId_ = templateId;
setParameter("TemplateId", templateId);
setCoreParameter("TemplateId", templateId);
}
int EditJobTemplateRequest::getPriority()const
@@ -88,7 +88,7 @@ int EditJobTemplateRequest::getPriority()const
void EditJobTemplateRequest::setPriority(int priority)
{
priority_ = priority;
setParameter("Priority", std::to_string(priority));
setCoreParameter("Priority", std::to_string(priority));
}
std::string EditJobTemplateRequest::getCommandLine()const
@@ -99,7 +99,7 @@ std::string EditJobTemplateRequest::getCommandLine()const
void EditJobTemplateRequest::setCommandLine(const std::string& commandLine)
{
commandLine_ = commandLine;
setParameter("CommandLine", commandLine);
setCoreParameter("CommandLine", commandLine);
}
std::string EditJobTemplateRequest::getAccessKeyId()const
@@ -110,7 +110,7 @@ std::string EditJobTemplateRequest::getAccessKeyId()const
void EditJobTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string EditJobTemplateRequest::getArrayRequest()const
@@ -121,7 +121,7 @@ std::string EditJobTemplateRequest::getArrayRequest()const
void EditJobTemplateRequest::setArrayRequest(const std::string& arrayRequest)
{
arrayRequest_ = arrayRequest;
setParameter("ArrayRequest", arrayRequest);
setCoreParameter("ArrayRequest", arrayRequest);
}
std::string EditJobTemplateRequest::getPackagePath()const
@@ -132,7 +132,7 @@ std::string EditJobTemplateRequest::getPackagePath()const
void EditJobTemplateRequest::setPackagePath(const std::string& packagePath)
{
packagePath_ = packagePath;
setParameter("PackagePath", packagePath);
setCoreParameter("PackagePath", packagePath);
}
std::string EditJobTemplateRequest::getName()const
@@ -143,7 +143,7 @@ std::string EditJobTemplateRequest::getName()const
void EditJobTemplateRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
setCoreParameter("Name", name);
}
std::string EditJobTemplateRequest::getStdoutRedirectPath()const
@@ -154,6 +154,6 @@ std::string EditJobTemplateRequest::getStdoutRedirectPath()const
void EditJobTemplateRequest::setStdoutRedirectPath(const std::string& stdoutRedirectPath)
{
stdoutRedirectPath_ = stdoutRedirectPath;
setParameter("StdoutRedirectPath", stdoutRedirectPath);
setCoreParameter("StdoutRedirectPath", stdoutRedirectPath);
}

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/GetAccountingReportRequest.h>
using AlibabaCloud::EHPC::Model::GetAccountingReportRequest;
GetAccountingReportRequest::GetAccountingReportRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "GetAccountingReport")
{}
GetAccountingReportRequest::~GetAccountingReportRequest()
{}
std::string GetAccountingReportRequest::getReportType()const
{
return reportType_;
}
void GetAccountingReportRequest::setReportType(const std::string& reportType)
{
reportType_ = reportType;
setCoreParameter("ReportType", reportType);
}
int GetAccountingReportRequest::getEndTime()const
{
return endTime_;
}
void GetAccountingReportRequest::setEndTime(int endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", std::to_string(endTime));
}
std::string GetAccountingReportRequest::getClusterId()const
{
return clusterId_;
}
void GetAccountingReportRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setCoreParameter("ClusterId", clusterId);
}
int GetAccountingReportRequest::getStartTime()const
{
return startTime_;
}
void GetAccountingReportRequest::setStartTime(int startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", std::to_string(startTime));
}
std::string GetAccountingReportRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetAccountingReportRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View 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/ehpc/model/GetAccountingReportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
GetAccountingReportResult::GetAccountingReportResult() :
ServiceResult()
{}
GetAccountingReportResult::GetAccountingReportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAccountingReportResult::~GetAccountingReportResult()
{}
void GetAccountingReportResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Metrics"].isNull())
metrics_ = value["Metrics"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetAccountingReportResult::getMetrics()const
{
return metrics_;
}
std::string GetAccountingReportResult::getData()const
{
return data_;
}

View File

@@ -33,7 +33,7 @@ std::string GetAutoScaleConfigRequest::getClusterId()const
void GetAutoScaleConfigRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string GetAutoScaleConfigRequest::getAccessKeyId()const
@@ -44,6 +44,6 @@ std::string GetAutoScaleConfigRequest::getAccessKeyId()const
void GetAutoScaleConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -56,6 +56,18 @@ void GetAutoScaleConfigResult::parse(const std::string &payload)
queuesObject.enableAutoGrow = value["EnableAutoGrow"].asString() == "true";
if(!value["EnableAutoShrink"].isNull())
queuesObject.enableAutoShrink = value["EnableAutoShrink"].asString() == "true";
auto allInstanceTypes = value["InstanceTypes"]["InstanceTypeInfo"];
for (auto value : allInstanceTypes)
{
QueueInfo::InstanceTypeInfo instanceTypesObject;
if(!value["InstanceType"].isNull())
instanceTypesObject.instanceType = value["InstanceType"].asString();
if(!value["SpotStrategy"].isNull())
instanceTypesObject.spotStrategy = value["SpotStrategy"].asString();
if(!value["SpotPriceLimit"].isNull())
instanceTypesObject.spotPriceLimit = std::stof(value["SpotPriceLimit"].asString());
queuesObject.instanceTypes.push_back(instanceTypesObject);
}
queues_.push_back(queuesObject);
}
if(!value["Uid"].isNull())

View File

@@ -33,7 +33,7 @@ std::string GetCloudMetricLogsRequest::getAggregationType()const
void GetCloudMetricLogsRequest::setAggregationType(const std::string& aggregationType)
{
aggregationType_ = aggregationType;
setParameter("AggregationType", aggregationType);
setCoreParameter("AggregationType", aggregationType);
}
std::string GetCloudMetricLogsRequest::getFilter()const
@@ -44,7 +44,7 @@ std::string GetCloudMetricLogsRequest::getFilter()const
void GetCloudMetricLogsRequest::setFilter(const std::string& filter)
{
filter_ = filter;
setParameter("Filter", filter);
setCoreParameter("Filter", filter);
}
std::string GetCloudMetricLogsRequest::getMetricCategories()const
@@ -55,7 +55,7 @@ std::string GetCloudMetricLogsRequest::getMetricCategories()const
void GetCloudMetricLogsRequest::setMetricCategories(const std::string& metricCategories)
{
metricCategories_ = metricCategories;
setParameter("MetricCategories", metricCategories);
setCoreParameter("MetricCategories", metricCategories);
}
std::string GetCloudMetricLogsRequest::getMetricScope()const
@@ -66,7 +66,7 @@ std::string GetCloudMetricLogsRequest::getMetricScope()const
void GetCloudMetricLogsRequest::setMetricScope(const std::string& metricScope)
{
metricScope_ = metricScope;
setParameter("MetricScope", metricScope);
setCoreParameter("MetricScope", metricScope);
}
int GetCloudMetricLogsRequest::getFrom()const
@@ -77,7 +77,7 @@ int GetCloudMetricLogsRequest::getFrom()const
void GetCloudMetricLogsRequest::setFrom(int from)
{
from_ = from;
setParameter("From", std::to_string(from));
setCoreParameter("From", std::to_string(from));
}
std::string GetCloudMetricLogsRequest::getClusterId()const
@@ -88,7 +88,7 @@ std::string GetCloudMetricLogsRequest::getClusterId()const
void GetCloudMetricLogsRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
int GetCloudMetricLogsRequest::getTo()const
@@ -99,7 +99,7 @@ int GetCloudMetricLogsRequest::getTo()const
void GetCloudMetricLogsRequest::setTo(int to)
{
to_ = to;
setParameter("To", std::to_string(to));
setCoreParameter("To", std::to_string(to));
}
int GetCloudMetricLogsRequest::getAggregationInterval()const
@@ -110,7 +110,7 @@ int GetCloudMetricLogsRequest::getAggregationInterval()const
void GetCloudMetricLogsRequest::setAggregationInterval(int aggregationInterval)
{
aggregationInterval_ = aggregationInterval;
setParameter("AggregationInterval", std::to_string(aggregationInterval));
setCoreParameter("AggregationInterval", std::to_string(aggregationInterval));
}
bool GetCloudMetricLogsRequest::getReverse()const
@@ -121,7 +121,7 @@ bool GetCloudMetricLogsRequest::getReverse()const
void GetCloudMetricLogsRequest::setReverse(bool reverse)
{
reverse_ = reverse;
setParameter("Reverse", std::to_string(reverse));
setCoreParameter("Reverse", reverse ? "true" : "false");
}
std::string GetCloudMetricLogsRequest::getAccessKeyId()const
@@ -132,6 +132,6 @@ std::string GetCloudMetricLogsRequest::getAccessKeyId()const
void GetCloudMetricLogsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string GetCloudMetricProfilingRequest::getRegionId()const
void GetCloudMetricProfilingRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
setCoreParameter("RegionId", regionId);
}
std::string GetCloudMetricProfilingRequest::getProfilingId()const
@@ -44,7 +44,7 @@ std::string GetCloudMetricProfilingRequest::getProfilingId()const
void GetCloudMetricProfilingRequest::setProfilingId(const std::string& profilingId)
{
profilingId_ = profilingId;
setParameter("ProfilingId", profilingId);
setCoreParameter("ProfilingId", profilingId);
}
std::string GetCloudMetricProfilingRequest::getClusterId()const
@@ -55,7 +55,7 @@ std::string GetCloudMetricProfilingRequest::getClusterId()const
void GetCloudMetricProfilingRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string GetCloudMetricProfilingRequest::getAccessKeyId()const
@@ -66,6 +66,6 @@ std::string GetCloudMetricProfilingRequest::getAccessKeyId()const
void GetCloudMetricProfilingRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View 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/ehpc/model/GetClusterVolumesRequest.h>
using AlibabaCloud::EHPC::Model::GetClusterVolumesRequest;
GetClusterVolumesRequest::GetClusterVolumesRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "GetClusterVolumes")
{}
GetClusterVolumesRequest::~GetClusterVolumesRequest()
{}
std::string GetClusterVolumesRequest::getClusterId()const
{
return clusterId_;
}
void GetClusterVolumesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setCoreParameter("ClusterId", clusterId);
}
std::string GetClusterVolumesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetClusterVolumesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,89 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/GetClusterVolumesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
GetClusterVolumesResult::GetClusterVolumesResult() :
ServiceResult()
{}
GetClusterVolumesResult::GetClusterVolumesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetClusterVolumesResult::~GetClusterVolumesResult()
{}
void GetClusterVolumesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVolumes = value["Volumes"]["VolumeInfo"];
for (auto value : allVolumes)
{
VolumeInfo volumesObject;
if(!value["VolumeId"].isNull())
volumesObject.volumeId = value["VolumeId"].asString();
if(!value["VolumeType"].isNull())
volumesObject.volumeType = value["VolumeType"].asString();
if(!value["VolumeProtocol"].isNull())
volumesObject.volumeProtocol = value["VolumeProtocol"].asString();
if(!value["VolumeMountpoint"].isNull())
volumesObject.volumeMountpoint = value["VolumeMountpoint"].asString();
if(!value["RemoteDirectory"].isNull())
volumesObject.remoteDirectory = value["RemoteDirectory"].asString();
if(!value["LocalDirectory"].isNull())
volumesObject.localDirectory = value["LocalDirectory"].asString();
if(!value["Location"].isNull())
volumesObject.location = value["Location"].asString();
if(!value["JobQueue"].isNull())
volumesObject.jobQueue = value["JobQueue"].asString();
if(!value["MustKeep"].isNull())
volumesObject.mustKeep = value["MustKeep"].asString() == "true";
auto allRoles = value["Roles"]["RoleInfo"];
for (auto value : allRoles)
{
VolumeInfo::RoleInfo rolesObject;
if(!value["Name"].isNull())
rolesObject.name = value["Name"].asString();
volumesObject.roles.push_back(rolesObject);
}
volumes_.push_back(volumesObject);
}
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
}
std::vector<GetClusterVolumesResult::VolumeInfo> GetClusterVolumesResult::getVolumes()const
{
return volumes_;
}
std::string GetClusterVolumesResult::getRegionId()const
{
return regionId_;
}

View File

@@ -33,7 +33,7 @@ std::string GetHybridClusterConfigRequest::getNode()const
void GetHybridClusterConfigRequest::setNode(const std::string& node)
{
node_ = node;
setParameter("Node", node);
setCoreParameter("Node", node);
}
std::string GetHybridClusterConfigRequest::getClusterId()const
@@ -44,7 +44,7 @@ std::string GetHybridClusterConfigRequest::getClusterId()const
void GetHybridClusterConfigRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string GetHybridClusterConfigRequest::getAccessKeyId()const
@@ -55,6 +55,6 @@ std::string GetHybridClusterConfigRequest::getAccessKeyId()const
void GetHybridClusterConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View 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/ehpc/model/GetVisualServiceStatusRequest.h>
using AlibabaCloud::EHPC::Model::GetVisualServiceStatusRequest;
GetVisualServiceStatusRequest::GetVisualServiceStatusRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "GetVisualServiceStatus")
{}
GetVisualServiceStatusRequest::~GetVisualServiceStatusRequest()
{}
std::string GetVisualServiceStatusRequest::getClusterId()const
{
return clusterId_;
}
void GetVisualServiceStatusRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setCoreParameter("ClusterId", clusterId);
}
std::string GetVisualServiceStatusRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetVisualServiceStatusRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View 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/ehpc/model/GetVisualServiceStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
GetVisualServiceStatusResult::GetVisualServiceStatusResult() :
ServiceResult()
{}
GetVisualServiceStatusResult::GetVisualServiceStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetVisualServiceStatusResult::~GetVisualServiceStatusResult()
{}
void GetVisualServiceStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetVisualServiceStatusResult::getMessage()const
{
return message_;
}

View 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/ehpc/model/InstallSoftwareRequest.h>
using AlibabaCloud::EHPC::Model::InstallSoftwareRequest;
InstallSoftwareRequest::InstallSoftwareRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "InstallSoftware")
{}
InstallSoftwareRequest::~InstallSoftwareRequest()
{}
std::string InstallSoftwareRequest::getApplication()const
{
return application_;
}
void InstallSoftwareRequest::setApplication(const std::string& application)
{
application_ = application;
setCoreParameter("Application", application);
}
std::string InstallSoftwareRequest::getClusterId()const
{
return clusterId_;
}
void InstallSoftwareRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setCoreParameter("ClusterId", clusterId);
}
std::string InstallSoftwareRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void InstallSoftwareRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("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/InstallSoftwareResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
InstallSoftwareResult::InstallSoftwareResult() :
ServiceResult()
{}
InstallSoftwareResult::InstallSoftwareResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
InstallSoftwareResult::~InstallSoftwareResult()
{}
void InstallSoftwareResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -37,7 +37,7 @@ void InvokeShellCommandRequest::setInstance(const std::vector<Instance>& instanc
for(int i = 0; i!= instance.size(); i++) {
auto obj = instance.at(i);
std::string str ="Instance."+ std::to_string(i);
setParameter(str + ".Id", obj.id);
setCoreParameter(str + ".Id", obj.id);
}
}
@@ -49,7 +49,7 @@ std::string InvokeShellCommandRequest::getWorkingDir()const
void InvokeShellCommandRequest::setWorkingDir(const std::string& workingDir)
{
workingDir_ = workingDir;
setParameter("WorkingDir", workingDir);
setCoreParameter("WorkingDir", workingDir);
}
std::string InvokeShellCommandRequest::getClusterId()const
@@ -60,7 +60,7 @@ std::string InvokeShellCommandRequest::getClusterId()const
void InvokeShellCommandRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string InvokeShellCommandRequest::getCommand()const
@@ -71,7 +71,7 @@ std::string InvokeShellCommandRequest::getCommand()const
void InvokeShellCommandRequest::setCommand(const std::string& command)
{
command_ = command;
setParameter("Command", command);
setCoreParameter("Command", command);
}
int InvokeShellCommandRequest::getTimeout()const
@@ -82,7 +82,7 @@ int InvokeShellCommandRequest::getTimeout()const
void InvokeShellCommandRequest::setTimeout(int timeout)
{
timeout_ = timeout;
setParameter("Timeout", std::to_string(timeout));
setCoreParameter("Timeout", std::to_string(timeout));
}
std::string InvokeShellCommandRequest::getAccessKeyId()const
@@ -93,6 +93,6 @@ std::string InvokeShellCommandRequest::getAccessKeyId()const
void InvokeShellCommandRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string ListAvailableEcsTypesRequest::getSpotStrategy()const
void ListAvailableEcsTypesRequest::setSpotStrategy(const std::string& spotStrategy)
{
spotStrategy_ = spotStrategy;
setParameter("SpotStrategy", spotStrategy);
setCoreParameter("SpotStrategy", spotStrategy);
}
std::string ListAvailableEcsTypesRequest::getZoneId()const
@@ -44,7 +44,7 @@ std::string ListAvailableEcsTypesRequest::getZoneId()const
void ListAvailableEcsTypesRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
setCoreParameter("ZoneId", zoneId);
}
std::string ListAvailableEcsTypesRequest::getInstanceChargeType()const
@@ -55,7 +55,7 @@ std::string ListAvailableEcsTypesRequest::getInstanceChargeType()const
void ListAvailableEcsTypesRequest::setInstanceChargeType(const std::string& instanceChargeType)
{
instanceChargeType_ = instanceChargeType;
setParameter("InstanceChargeType", instanceChargeType);
setCoreParameter("InstanceChargeType", instanceChargeType);
}
std::string ListAvailableEcsTypesRequest::getAccessKeyId()const
@@ -66,6 +66,6 @@ std::string ListAvailableEcsTypesRequest::getAccessKeyId()const
void ListAvailableEcsTypesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,38 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/ListAvailableFileSystemTypesRequest.h>
using AlibabaCloud::EHPC::Model::ListAvailableFileSystemTypesRequest;
ListAvailableFileSystemTypesRequest::ListAvailableFileSystemTypesRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "ListAvailableFileSystemTypes")
{}
ListAvailableFileSystemTypesRequest::~ListAvailableFileSystemTypesRequest()
{}
std::string ListAvailableFileSystemTypesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListAvailableFileSystemTypesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -33,7 +33,7 @@ std::string ListCloudMetricProfilingsRequest::getRegionId()const
void ListCloudMetricProfilingsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
setCoreParameter("RegionId", regionId);
}
int ListCloudMetricProfilingsRequest::getPageSize()const
@@ -44,7 +44,7 @@ int ListCloudMetricProfilingsRequest::getPageSize()const
void ListCloudMetricProfilingsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string ListCloudMetricProfilingsRequest::getClusterId()const
@@ -55,7 +55,7 @@ std::string ListCloudMetricProfilingsRequest::getClusterId()const
void ListCloudMetricProfilingsRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
int ListCloudMetricProfilingsRequest::getPageNumber()const
@@ -66,7 +66,7 @@ int ListCloudMetricProfilingsRequest::getPageNumber()const
void ListCloudMetricProfilingsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListCloudMetricProfilingsRequest::getAccessKeyId()const
@@ -77,6 +77,6 @@ std::string ListCloudMetricProfilingsRequest::getAccessKeyId()const
void ListCloudMetricProfilingsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ int ListClusterLogsRequest::getPageSize()const
void ListClusterLogsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string ListClusterLogsRequest::getClusterId()const
@@ -44,7 +44,7 @@ std::string ListClusterLogsRequest::getClusterId()const
void ListClusterLogsRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
int ListClusterLogsRequest::getPageNumber()const
@@ -55,7 +55,7 @@ int ListClusterLogsRequest::getPageNumber()const
void ListClusterLogsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListClusterLogsRequest::getAccessKeyId()const
@@ -66,6 +66,6 @@ std::string ListClusterLogsRequest::getAccessKeyId()const
void ListClusterLogsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View 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/ehpc/model/ListClustersMetaRequest.h>
using AlibabaCloud::EHPC::Model::ListClustersMetaRequest;
ListClustersMetaRequest::ListClustersMetaRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "ListClustersMeta")
{}
ListClustersMetaRequest::~ListClustersMetaRequest()
{}
int ListClustersMetaRequest::getPageSize()const
{
return pageSize_;
}
void ListClustersMetaRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int ListClustersMetaRequest::getPageNumber()const
{
return pageNumber_;
}
void ListClustersMetaRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListClustersMetaRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListClustersMetaRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,85 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/ListClustersMetaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
ListClustersMetaResult::ListClustersMetaResult() :
ServiceResult()
{}
ListClustersMetaResult::ListClustersMetaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListClustersMetaResult::~ListClustersMetaResult()
{}
void ListClustersMetaResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allClusters = value["Clusters"]["ClusterInfoSimple"];
for (auto value : allClusters)
{
ClusterInfoSimple clustersObject;
if(!value["Id"].isNull())
clustersObject.id = value["Id"].asString();
if(!value["Name"].isNull())
clustersObject.name = value["Name"].asString();
if(!value["Description"].isNull())
clustersObject.description = value["Description"].asString();
if(!value["Status"].isNull())
clustersObject.status = value["Status"].asString();
clusters_.push_back(clustersObject);
}
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 ListClustersMetaResult::getTotalCount()const
{
return totalCount_;
}
int ListClustersMetaResult::getPageSize()const
{
return pageSize_;
}
int ListClustersMetaResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListClustersMetaResult::ClusterInfoSimple> ListClustersMetaResult::getClusters()const
{
return clusters_;
}

View File

@@ -33,7 +33,7 @@ int ListClustersRequest::getPageSize()const
void ListClustersRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
setCoreParameter("PageSize", std::to_string(pageSize));
}
int ListClustersRequest::getPageNumber()const
@@ -44,7 +44,7 @@ int ListClustersRequest::getPageNumber()const
void ListClustersRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListClustersRequest::getAccessKeyId()const
@@ -55,6 +55,6 @@ std::string ListClustersRequest::getAccessKeyId()const
void ListClustersRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -50,6 +50,10 @@ void ListClustersResult::parse(const std::string &payload)
clustersObject.regionId = value["RegionId"].asString();
if(!value["ZoneId"].isNull())
clustersObject.zoneId = value["ZoneId"].asString();
if(!value["VSwitchId"].isNull())
clustersObject.vSwitchId = value["VSwitchId"].asString();
if(!value["VpcId"].isNull())
clustersObject.vpcId = value["VpcId"].asString();
if(!value["Name"].isNull())
clustersObject.name = value["Name"].asString();
if(!value["Description"].isNull())
@@ -78,6 +82,8 @@ void ListClustersResult::parse(const std::string &payload)
clustersObject.imageId = value["ImageId"].asString();
if(!value["Location"].isNull())
clustersObject.location = value["Location"].asString();
if(!value["EhpcVersion"].isNull())
clustersObject.ehpcVersion = value["EhpcVersion"].asString();
auto managersNode = value["Managers"];
if(!managersNode["Total"].isNull())
clustersObject.managers.total = std::stoi(managersNode["Total"].asString());

View File

@@ -33,7 +33,7 @@ int ListCommandsRequest::getPageSize()const
void ListCommandsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string ListCommandsRequest::getClusterId()const
@@ -44,7 +44,7 @@ std::string ListCommandsRequest::getClusterId()const
void ListCommandsRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string ListCommandsRequest::getCommandId()const
@@ -55,7 +55,7 @@ std::string ListCommandsRequest::getCommandId()const
void ListCommandsRequest::setCommandId(const std::string& commandId)
{
commandId_ = commandId;
setParameter("CommandId", commandId);
setCoreParameter("CommandId", commandId);
}
int ListCommandsRequest::getPageNumber()const
@@ -66,7 +66,7 @@ int ListCommandsRequest::getPageNumber()const
void ListCommandsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListCommandsRequest::getAccessKeyId()const
@@ -77,6 +77,6 @@ std::string ListCommandsRequest::getAccessKeyId()const
void ListCommandsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ int ListContainerAppsRequest::getPageSize()const
void ListContainerAppsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
setCoreParameter("PageSize", std::to_string(pageSize));
}
int ListContainerAppsRequest::getPageNumber()const
@@ -44,7 +44,7 @@ int ListContainerAppsRequest::getPageNumber()const
void ListContainerAppsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListContainerAppsRequest::getAccessKeyId()const
@@ -55,6 +55,6 @@ std::string ListContainerAppsRequest::getAccessKeyId()const
void ListContainerAppsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string ListContainerImagesRequest::getContainerType()const
void ListContainerImagesRequest::setContainerType(const std::string& containerType)
{
containerType_ = containerType;
setParameter("ContainerType", containerType);
setCoreParameter("ContainerType", containerType);
}
int ListContainerImagesRequest::getPageSize()const
@@ -44,7 +44,7 @@ int ListContainerImagesRequest::getPageSize()const
void ListContainerImagesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string ListContainerImagesRequest::getClusterId()const
@@ -55,7 +55,7 @@ std::string ListContainerImagesRequest::getClusterId()const
void ListContainerImagesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
int ListContainerImagesRequest::getPageNumber()const
@@ -66,7 +66,7 @@ int ListContainerImagesRequest::getPageNumber()const
void ListContainerImagesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListContainerImagesRequest::getAccessKeyId()const
@@ -77,6 +77,6 @@ std::string ListContainerImagesRequest::getAccessKeyId()const
void ListContainerImagesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

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/ListCpfsFileSystemsRequest.h>
using AlibabaCloud::EHPC::Model::ListCpfsFileSystemsRequest;
ListCpfsFileSystemsRequest::ListCpfsFileSystemsRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "ListCpfsFileSystems")
{}
ListCpfsFileSystemsRequest::~ListCpfsFileSystemsRequest()
{}
int ListCpfsFileSystemsRequest::getPageSize()const
{
return pageSize_;
}
void ListCpfsFileSystemsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int ListCpfsFileSystemsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListCpfsFileSystemsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListCpfsFileSystemsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListCpfsFileSystemsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string ListCpfsFileSystemsRequest::getFileSystemId()const
{
return fileSystemId_;
}
void ListCpfsFileSystemsRequest::setFileSystemId(const std::string& fileSystemId)
{
fileSystemId_ = fileSystemId;
setCoreParameter("FileSystemId", fileSystemId);
}

View File

@@ -0,0 +1,107 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/ListCpfsFileSystemsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
ListCpfsFileSystemsResult::ListCpfsFileSystemsResult() :
ServiceResult()
{}
ListCpfsFileSystemsResult::ListCpfsFileSystemsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCpfsFileSystemsResult::~ListCpfsFileSystemsResult()
{}
void ListCpfsFileSystemsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFileSystemList = value["FileSystemList"]["FileSystems"];
for (auto value : allFileSystemList)
{
FileSystems fileSystemListObject;
if(!value["RegionId"].isNull())
fileSystemListObject.regionId = value["RegionId"].asString();
if(!value["ZoneId"].isNull())
fileSystemListObject.zoneId = value["ZoneId"].asString();
if(!value["FileSystemId"].isNull())
fileSystemListObject.fileSystemId = value["FileSystemId"].asString();
if(!value["CreateTime"].isNull())
fileSystemListObject.createTime = value["CreateTime"].asString();
if(!value["Destription"].isNull())
fileSystemListObject.destription = value["Destription"].asString();
if(!value["ProtocolType"].isNull())
fileSystemListObject.protocolType = value["ProtocolType"].asString();
if(!value["Capacity"].isNull())
fileSystemListObject.capacity = value["Capacity"].asString();
auto allMountTargetList = value["MountTargetList"]["MountTargets"];
for (auto value : allMountTargetList)
{
FileSystems::MountTargets mountTargetListObject;
if(!value["MountTargetDomain"].isNull())
mountTargetListObject.mountTargetDomain = value["MountTargetDomain"].asString();
if(!value["Status"].isNull())
mountTargetListObject.status = value["Status"].asString();
if(!value["NetworkType"].isNull())
mountTargetListObject.networkType = value["NetworkType"].asString();
if(!value["VswId"].isNull())
mountTargetListObject.vswId = value["VswId"].asString();
if(!value["VpcId"].isNull())
mountTargetListObject.vpcId = value["VpcId"].asString();
fileSystemListObject.mountTargetList.push_back(mountTargetListObject);
}
fileSystemList_.push_back(fileSystemListObject);
}
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 ListCpfsFileSystemsResult::getTotalCount()const
{
return totalCount_;
}
int ListCpfsFileSystemsResult::getPageSize()const
{
return pageSize_;
}
int ListCpfsFileSystemsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListCpfsFileSystemsResult::FileSystems> ListCpfsFileSystemsResult::getFileSystemList()const
{
return fileSystemList_;
}

View File

@@ -33,6 +33,6 @@ std::string ListCurrentClientVersionRequest::getAccessKeyId()const
void ListCurrentClientVersionRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string ListCustomImagesRequest::getBaseOsTag()const
void ListCustomImagesRequest::setBaseOsTag(const std::string& baseOsTag)
{
baseOsTag_ = baseOsTag;
setParameter("BaseOsTag", baseOsTag);
setCoreParameter("BaseOsTag", baseOsTag);
}
std::string ListCustomImagesRequest::getAccessKeyId()const
@@ -44,7 +44,7 @@ std::string ListCustomImagesRequest::getAccessKeyId()const
void ListCustomImagesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string ListCustomImagesRequest::getImageOwnerAlias()const
@@ -55,6 +55,6 @@ std::string ListCustomImagesRequest::getImageOwnerAlias()const
void ListCustomImagesRequest::setImageOwnerAlias(const std::string& imageOwnerAlias)
{
imageOwnerAlias_ = imageOwnerAlias;
setParameter("ImageOwnerAlias", imageOwnerAlias);
setCoreParameter("ImageOwnerAlias", imageOwnerAlias);
}

View File

@@ -64,6 +64,8 @@ void ListCustomImagesResult::parse(const std::string &payload)
imagesObject.pricingCycle = value["PricingCycle"].asString();
if(!value["PostInstallScript"].isNull())
imagesObject.postInstallScript = value["PostInstallScript"].asString();
if(!value["Size"].isNull())
imagesObject.size = std::stoi(value["Size"].asString());
auto baseOsTagNode = value["BaseOsTag"];
if(!baseOsTagNode["OsTag"].isNull())
imagesObject.baseOsTag.osTag = baseOsTagNode["OsTag"].asString();

View File

@@ -33,7 +33,7 @@ int ListFileSystemWithMountTargetsRequest::getPageSize()const
void ListFileSystemWithMountTargetsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
setCoreParameter("PageSize", std::to_string(pageSize));
}
int ListFileSystemWithMountTargetsRequest::getPageNumber()const
@@ -44,7 +44,7 @@ int ListFileSystemWithMountTargetsRequest::getPageNumber()const
void ListFileSystemWithMountTargetsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListFileSystemWithMountTargetsRequest::getAccessKeyId()const
@@ -55,6 +55,6 @@ std::string ListFileSystemWithMountTargetsRequest::getAccessKeyId()const
void ListFileSystemWithMountTargetsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,6 +33,6 @@ std::string ListImagesRequest::getAccessKeyId()const
void ListImagesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View 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/ehpc/model/ListInstalledSoftwareRequest.h>
using AlibabaCloud::EHPC::Model::ListInstalledSoftwareRequest;
ListInstalledSoftwareRequest::ListInstalledSoftwareRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "ListInstalledSoftware")
{}
ListInstalledSoftwareRequest::~ListInstalledSoftwareRequest()
{}
std::string ListInstalledSoftwareRequest::getClusterId()const
{
return clusterId_;
}
void ListInstalledSoftwareRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setCoreParameter("ClusterId", clusterId);
}
std::string ListInstalledSoftwareRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListInstalledSoftwareRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("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/ListInstalledSoftwareResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
ListInstalledSoftwareResult::ListInstalledSoftwareResult() :
ServiceResult()
{}
ListInstalledSoftwareResult::ListInstalledSoftwareResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListInstalledSoftwareResult::~ListInstalledSoftwareResult()
{}
void ListInstalledSoftwareResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSoftwareList = value["SoftwareList"]["SoftwareListItem"];
for (auto value : allSoftwareList)
{
SoftwareListItem softwareListObject;
if(!value["SoftwareId"].isNull())
softwareListObject.softwareId = value["SoftwareId"].asString();
if(!value["SoftwareName"].isNull())
softwareListObject.softwareName = value["SoftwareName"].asString();
if(!value["SoftwareVersion"].isNull())
softwareListObject.softwareVersion = value["SoftwareVersion"].asString();
if(!value["SoftwareStatus"].isNull())
softwareListObject.softwareStatus = value["SoftwareStatus"].asString();
softwareList_.push_back(softwareListObject);
}
}
std::vector<ListInstalledSoftwareResult::SoftwareListItem> ListInstalledSoftwareResult::getSoftwareList()const
{
return softwareList_;
}

View File

@@ -37,7 +37,7 @@ void ListInvocationResultsRequest::setInstance(const std::vector<Instance>& inst
for(int i = 0; i!= instance.size(); i++) {
auto obj = instance.at(i);
std::string str ="Instance."+ std::to_string(i);
setParameter(str + ".Id", obj.id);
setCoreParameter(str + ".Id", obj.id);
}
}
@@ -49,7 +49,7 @@ std::string ListInvocationResultsRequest::getInvokeRecordStatus()const
void ListInvocationResultsRequest::setInvokeRecordStatus(const std::string& invokeRecordStatus)
{
invokeRecordStatus_ = invokeRecordStatus;
setParameter("InvokeRecordStatus", invokeRecordStatus);
setCoreParameter("InvokeRecordStatus", invokeRecordStatus);
}
int ListInvocationResultsRequest::getPageSize()const
@@ -60,7 +60,7 @@ int ListInvocationResultsRequest::getPageSize()const
void ListInvocationResultsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string ListInvocationResultsRequest::getClusterId()const
@@ -71,7 +71,7 @@ std::string ListInvocationResultsRequest::getClusterId()const
void ListInvocationResultsRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string ListInvocationResultsRequest::getCommandId()const
@@ -82,7 +82,7 @@ std::string ListInvocationResultsRequest::getCommandId()const
void ListInvocationResultsRequest::setCommandId(const std::string& commandId)
{
commandId_ = commandId;
setParameter("CommandId", commandId);
setCoreParameter("CommandId", commandId);
}
int ListInvocationResultsRequest::getPageNumber()const
@@ -93,7 +93,7 @@ int ListInvocationResultsRequest::getPageNumber()const
void ListInvocationResultsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListInvocationResultsRequest::getAccessKeyId()const
@@ -104,6 +104,6 @@ std::string ListInvocationResultsRequest::getAccessKeyId()const
void ListInvocationResultsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string ListInvocationStatusRequest::getClusterId()const
void ListInvocationStatusRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string ListInvocationStatusRequest::getCommandId()const
@@ -44,7 +44,7 @@ std::string ListInvocationStatusRequest::getCommandId()const
void ListInvocationStatusRequest::setCommandId(const std::string& commandId)
{
commandId_ = commandId;
setParameter("CommandId", commandId);
setCoreParameter("CommandId", commandId);
}
std::string ListInvocationStatusRequest::getAccessKeyId()const
@@ -55,6 +55,6 @@ std::string ListInvocationStatusRequest::getAccessKeyId()const
void ListInvocationStatusRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string ListJobTemplatesRequest::getName()const
void ListJobTemplatesRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
setCoreParameter("Name", name);
}
int ListJobTemplatesRequest::getPageSize()const
@@ -44,7 +44,7 @@ int ListJobTemplatesRequest::getPageSize()const
void ListJobTemplatesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
setCoreParameter("PageSize", std::to_string(pageSize));
}
int ListJobTemplatesRequest::getPageNumber()const
@@ -55,7 +55,7 @@ int ListJobTemplatesRequest::getPageNumber()const
void ListJobTemplatesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListJobTemplatesRequest::getAccessKeyId()const
@@ -66,6 +66,6 @@ std::string ListJobTemplatesRequest::getAccessKeyId()const
void ListJobTemplatesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string ListJobsRequest::getOwner()const
void ListJobsRequest::setOwner(const std::string& owner)
{
owner_ = owner;
setParameter("Owner", owner);
setCoreParameter("Owner", owner);
}
int ListJobsRequest::getPageSize()const
@@ -44,7 +44,7 @@ int ListJobsRequest::getPageSize()const
void ListJobsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string ListJobsRequest::getClusterId()const
@@ -55,7 +55,7 @@ std::string ListJobsRequest::getClusterId()const
void ListJobsRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string ListJobsRequest::getState()const
@@ -66,7 +66,7 @@ std::string ListJobsRequest::getState()const
void ListJobsRequest::setState(const std::string& state)
{
state_ = state;
setParameter("State", state);
setCoreParameter("State", state);
}
std::string ListJobsRequest::getRerunable()const
@@ -77,7 +77,7 @@ std::string ListJobsRequest::getRerunable()const
void ListJobsRequest::setRerunable(const std::string& rerunable)
{
rerunable_ = rerunable;
setParameter("Rerunable", rerunable);
setCoreParameter("Rerunable", rerunable);
}
int ListJobsRequest::getPageNumber()const
@@ -88,7 +88,7 @@ int ListJobsRequest::getPageNumber()const
void ListJobsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListJobsRequest::getAccessKeyId()const
@@ -99,6 +99,6 @@ std::string ListJobsRequest::getAccessKeyId()const
void ListJobsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

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/ListNodesByQueueRequest.h>
using AlibabaCloud::EHPC::Model::ListNodesByQueueRequest;
ListNodesByQueueRequest::ListNodesByQueueRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "ListNodesByQueue")
{}
ListNodesByQueueRequest::~ListNodesByQueueRequest()
{}
std::string ListNodesByQueueRequest::getQueueName()const
{
return queueName_;
}
void ListNodesByQueueRequest::setQueueName(const std::string& queueName)
{
queueName_ = queueName;
setCoreParameter("QueueName", queueName);
}
int ListNodesByQueueRequest::getPageSize()const
{
return pageSize_;
}
void ListNodesByQueueRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string ListNodesByQueueRequest::getClusterId()const
{
return clusterId_;
}
void ListNodesByQueueRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setCoreParameter("ClusterId", clusterId);
}
int ListNodesByQueueRequest::getPageNumber()const
{
return pageNumber_;
}
void ListNodesByQueueRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListNodesByQueueRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListNodesByQueueRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View 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/ehpc/model/ListNodesByQueueResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
ListNodesByQueueResult::ListNodesByQueueResult() :
ServiceResult()
{}
ListNodesByQueueResult::ListNodesByQueueResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListNodesByQueueResult::~ListNodesByQueueResult()
{}
void ListNodesByQueueResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allNodes = value["Nodes"]["NodeInfo"];
for (auto value : allNodes)
{
NodeInfo nodesObject;
if(!value["Id"].isNull())
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())
nodesObject.addTime = value["AddTime"].asString();
if(!value["Expired"].isNull())
nodesObject.expired = value["Expired"].asString() == "true";
if(!value["ExpiredTime"].isNull())
nodesObject.expiredTime = value["ExpiredTime"].asString();
if(!value["SpotStrategy"].isNull())
nodesObject.spotStrategy = value["SpotStrategy"].asString();
if(!value["LockReason"].isNull())
nodesObject.lockReason = value["LockReason"].asString();
if(!value["ImageOwnerAlias"].isNull())
nodesObject.imageOwnerAlias = value["ImageOwnerAlias"].asString();
if(!value["ImageId"].isNull())
nodesObject.imageId = value["ImageId"].asString();
if(!value["Location"].isNull())
nodesObject.location = value["Location"].asString();
if(!value["CreateMode"].isNull())
nodesObject.createMode = value["CreateMode"].asString();
auto totalResourcesNode = value["TotalResources"];
if(!totalResourcesNode["Cpu"].isNull())
nodesObject.totalResources.cpu = std::stoi(totalResourcesNode["Cpu"].asString());
if(!totalResourcesNode["Memory"].isNull())
nodesObject.totalResources.memory = std::stoi(totalResourcesNode["Memory"].asString());
if(!totalResourcesNode["Gpu"].isNull())
nodesObject.totalResources.gpu = std::stoi(totalResourcesNode["Gpu"].asString());
auto usedResourcesNode = value["UsedResources"];
if(!usedResourcesNode["Cpu"].isNull())
nodesObject.usedResources.cpu = std::stoi(usedResourcesNode["Cpu"].asString());
if(!usedResourcesNode["Memory"].isNull())
nodesObject.usedResources.memory = std::stoi(usedResourcesNode["Memory"].asString());
if(!usedResourcesNode["Gpu"].isNull())
nodesObject.usedResources.gpu = std::stoi(usedResourcesNode["Gpu"].asString());
nodes_.push_back(nodesObject);
}
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 ListNodesByQueueResult::getTotalCount()const
{
return totalCount_;
}
int ListNodesByQueueResult::getPageSize()const
{
return pageSize_;
}
int ListNodesByQueueResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListNodesByQueueResult::NodeInfo> ListNodesByQueueResult::getNodes()const
{
return nodes_;
}

View File

@@ -33,7 +33,7 @@ std::string ListNodesNoPagingRequest::getHostName()const
void ListNodesNoPagingRequest::setHostName(const std::string& hostName)
{
hostName_ = hostName;
setParameter("HostName", hostName);
setCoreParameter("HostName", hostName);
}
std::string ListNodesNoPagingRequest::getRole()const
@@ -44,7 +44,7 @@ std::string ListNodesNoPagingRequest::getRole()const
void ListNodesNoPagingRequest::setRole(const std::string& role)
{
role_ = role;
setParameter("Role", role);
setCoreParameter("Role", role);
}
std::string ListNodesNoPagingRequest::getClusterId()const
@@ -55,7 +55,7 @@ std::string ListNodesNoPagingRequest::getClusterId()const
void ListNodesNoPagingRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
bool ListNodesNoPagingRequest::getOnlyDetached()const
@@ -66,7 +66,7 @@ bool ListNodesNoPagingRequest::getOnlyDetached()const
void ListNodesNoPagingRequest::setOnlyDetached(bool onlyDetached)
{
onlyDetached_ = onlyDetached;
setParameter("OnlyDetached", std::to_string(onlyDetached));
setCoreParameter("OnlyDetached", onlyDetached ? "true" : "false");
}
std::string ListNodesNoPagingRequest::getAccessKeyId()const
@@ -77,6 +77,6 @@ std::string ListNodesNoPagingRequest::getAccessKeyId()const
void ListNodesNoPagingRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string ListNodesRequest::getHostName()const
void ListNodesRequest::setHostName(const std::string& hostName)
{
hostName_ = hostName;
setParameter("HostName", hostName);
setCoreParameter("HostName", hostName);
}
std::string ListNodesRequest::getRole()const
@@ -44,7 +44,7 @@ std::string ListNodesRequest::getRole()const
void ListNodesRequest::setRole(const std::string& role)
{
role_ = role;
setParameter("Role", role);
setCoreParameter("Role", role);
}
int ListNodesRequest::getPageSize()const
@@ -55,7 +55,7 @@ int ListNodesRequest::getPageSize()const
void ListNodesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string ListNodesRequest::getClusterId()const
@@ -66,7 +66,7 @@ std::string ListNodesRequest::getClusterId()const
void ListNodesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
int ListNodesRequest::getPageNumber()const
@@ -77,7 +77,7 @@ int ListNodesRequest::getPageNumber()const
void ListNodesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListNodesRequest::getAccessKeyId()const
@@ -88,6 +88,6 @@ std::string ListNodesRequest::getAccessKeyId()const
void ListNodesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string ListPreferredEcsTypesRequest::getSpotStrategy()const
void ListPreferredEcsTypesRequest::setSpotStrategy(const std::string& spotStrategy)
{
spotStrategy_ = spotStrategy;
setParameter("SpotStrategy", spotStrategy);
setCoreParameter("SpotStrategy", spotStrategy);
}
std::string ListPreferredEcsTypesRequest::getZoneId()const
@@ -44,7 +44,7 @@ std::string ListPreferredEcsTypesRequest::getZoneId()const
void ListPreferredEcsTypesRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
setCoreParameter("ZoneId", zoneId);
}
std::string ListPreferredEcsTypesRequest::getInstanceChargeType()const
@@ -55,7 +55,7 @@ std::string ListPreferredEcsTypesRequest::getInstanceChargeType()const
void ListPreferredEcsTypesRequest::setInstanceChargeType(const std::string& instanceChargeType)
{
instanceChargeType_ = instanceChargeType;
setParameter("InstanceChargeType", instanceChargeType);
setCoreParameter("InstanceChargeType", instanceChargeType);
}
std::string ListPreferredEcsTypesRequest::getAccessKeyId()const
@@ -66,6 +66,6 @@ std::string ListPreferredEcsTypesRequest::getAccessKeyId()const
void ListPreferredEcsTypesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string ListQueuesRequest::getClusterId()const
void ListQueuesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string ListQueuesRequest::getAccessKeyId()const
@@ -44,6 +44,6 @@ std::string ListQueuesRequest::getAccessKeyId()const
void ListQueuesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,6 +33,6 @@ std::string ListRegionsRequest::getAccessKeyId()const
void ListRegionsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string ListSoftwaresRequest::getEhpcVersion()const
void ListSoftwaresRequest::setEhpcVersion(const std::string& ehpcVersion)
{
ehpcVersion_ = ehpcVersion;
setParameter("EhpcVersion", ehpcVersion);
setCoreParameter("EhpcVersion", ehpcVersion);
}
std::string ListSoftwaresRequest::getAccessKeyId()const
@@ -44,6 +44,6 @@ std::string ListSoftwaresRequest::getAccessKeyId()const
void ListSoftwaresRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ int ListUsersRequest::getPageSize()const
void ListUsersRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string ListUsersRequest::getClusterId()const
@@ -44,7 +44,7 @@ std::string ListUsersRequest::getClusterId()const
void ListUsersRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
int ListUsersRequest::getPageNumber()const
@@ -55,7 +55,7 @@ int ListUsersRequest::getPageNumber()const
void ListUsersRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListUsersRequest::getAccessKeyId()const
@@ -66,6 +66,6 @@ std::string ListUsersRequest::getAccessKeyId()const
void ListUsersRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ int ListVolumesRequest::getPageSize()const
void ListVolumesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
setCoreParameter("PageSize", std::to_string(pageSize));
}
int ListVolumesRequest::getPageNumber()const
@@ -44,7 +44,7 @@ int ListVolumesRequest::getPageNumber()const
void ListVolumesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListVolumesRequest::getAccessKeyId()const
@@ -55,6 +55,6 @@ std::string ListVolumesRequest::getAccessKeyId()const
void ListVolumesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -60,6 +60,30 @@ void ListVolumesResult::parse(const std::string &payload)
volumesObject.volumeMountpoint = value["VolumeMountpoint"].asString();
if(!value["RemoteDirectory"].isNull())
volumesObject.remoteDirectory = value["RemoteDirectory"].asString();
auto allAdditionalVolumes = value["AdditionalVolumes"]["VolumeInfo"];
for (auto value : allAdditionalVolumes)
{
VolumeInfo::VolumeInfo1 additionalVolumesObject;
if(!value["VolumeType"].isNull())
additionalVolumesObject.volumeType = value["VolumeType"].asString();
if(!value["VolumeId"].isNull())
additionalVolumesObject.volumeId = value["VolumeId"].asString();
if(!value["VolumeProtocol"].isNull())
additionalVolumesObject.volumeProtocol = value["VolumeProtocol"].asString();
if(!value["VolumeMountpoint"].isNull())
additionalVolumesObject.volumeMountpoint = value["VolumeMountpoint"].asString();
if(!value["RemoteDirectory"].isNull())
additionalVolumesObject.remoteDirectory = value["RemoteDirectory"].asString();
if(!value["LocalDirectory"].isNull())
additionalVolumesObject.localDirectory = value["LocalDirectory"].asString();
if(!value["Role"].isNull())
additionalVolumesObject.role = value["Role"].asString();
if(!value["Location"].isNull())
additionalVolumesObject.location = value["Location"].asString();
if(!value["JobQueue"].isNull())
additionalVolumesObject.jobQueue = value["JobQueue"].asString();
volumesObject.additionalVolumes.push_back(additionalVolumesObject);
}
volumes_.push_back(volumesObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -33,7 +33,7 @@ std::string ModifyClusterAttributesRequest::getName()const
void ModifyClusterAttributesRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
setCoreParameter("Name", name);
}
std::string ModifyClusterAttributesRequest::getDescription()const
@@ -44,7 +44,7 @@ std::string ModifyClusterAttributesRequest::getDescription()const
void ModifyClusterAttributesRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
setCoreParameter("Description", description);
}
std::string ModifyClusterAttributesRequest::getClusterId()const
@@ -55,7 +55,7 @@ std::string ModifyClusterAttributesRequest::getClusterId()const
void ModifyClusterAttributesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string ModifyClusterAttributesRequest::getAccessKeyId()const
@@ -66,6 +66,6 @@ std::string ModifyClusterAttributesRequest::getAccessKeyId()const
void ModifyClusterAttributesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string ModifyContainerAppAttributesRequest::getDescription()const
void ModifyContainerAppAttributesRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
setCoreParameter("Description", description);
}
std::string ModifyContainerAppAttributesRequest::getContainerId()const
@@ -44,7 +44,7 @@ std::string ModifyContainerAppAttributesRequest::getContainerId()const
void ModifyContainerAppAttributesRequest::setContainerId(const std::string& containerId)
{
containerId_ = containerId;
setParameter("ContainerId", containerId);
setCoreParameter("ContainerId", containerId);
}
std::string ModifyContainerAppAttributesRequest::getAccessKeyId()const
@@ -55,6 +55,6 @@ std::string ModifyContainerAppAttributesRequest::getAccessKeyId()const
void ModifyContainerAppAttributesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string ModifyImageGatewayConfigRequest::getDefaultRepoLocation()const
void ModifyImageGatewayConfigRequest::setDefaultRepoLocation(const std::string& defaultRepoLocation)
{
defaultRepoLocation_ = defaultRepoLocation;
setParameter("DefaultRepoLocation", defaultRepoLocation);
setCoreParameter("DefaultRepoLocation", defaultRepoLocation);
}
std::string ModifyImageGatewayConfigRequest::getDBPassword()const
@@ -44,7 +44,7 @@ std::string ModifyImageGatewayConfigRequest::getDBPassword()const
void ModifyImageGatewayConfigRequest::setDBPassword(const std::string& dBPassword)
{
dBPassword_ = dBPassword;
setParameter("DBPassword", dBPassword);
setCoreParameter("DBPassword", dBPassword);
}
std::vector<ModifyImageGatewayConfigRequest::Repo> ModifyImageGatewayConfigRequest::getRepo()const
@@ -59,9 +59,9 @@ 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 + ".Auth", obj.auth);
setParameter(str + ".Location", obj.location);
setParameter(str + ".URL", obj.uRL);
setCoreParameter(str + ".Auth", obj.auth);
setCoreParameter(str + ".Location", obj.location);
setCoreParameter(str + ".URL", obj.uRL);
}
}
@@ -73,7 +73,7 @@ std::string ModifyImageGatewayConfigRequest::getDBType()const
void ModifyImageGatewayConfigRequest::setDBType(const std::string& dBType)
{
dBType_ = dBType;
setParameter("DBType", dBType);
setCoreParameter("DBType", dBType);
}
std::string ModifyImageGatewayConfigRequest::getDBUsername()const
@@ -84,7 +84,7 @@ std::string ModifyImageGatewayConfigRequest::getDBUsername()const
void ModifyImageGatewayConfigRequest::setDBUsername(const std::string& dBUsername)
{
dBUsername_ = dBUsername;
setParameter("DBUsername", dBUsername);
setCoreParameter("DBUsername", dBUsername);
}
std::string ModifyImageGatewayConfigRequest::getDBServerInfo()const
@@ -95,7 +95,7 @@ std::string ModifyImageGatewayConfigRequest::getDBServerInfo()const
void ModifyImageGatewayConfigRequest::setDBServerInfo(const std::string& dBServerInfo)
{
dBServerInfo_ = dBServerInfo;
setParameter("DBServerInfo", dBServerInfo);
setCoreParameter("DBServerInfo", dBServerInfo);
}
int ModifyImageGatewayConfigRequest::getPullUpdateTimeout()const
@@ -106,7 +106,7 @@ int ModifyImageGatewayConfigRequest::getPullUpdateTimeout()const
void ModifyImageGatewayConfigRequest::setPullUpdateTimeout(int pullUpdateTimeout)
{
pullUpdateTimeout_ = pullUpdateTimeout;
setParameter("PullUpdateTimeout", std::to_string(pullUpdateTimeout));
setCoreParameter("PullUpdateTimeout", std::to_string(pullUpdateTimeout));
}
std::string ModifyImageGatewayConfigRequest::getClusterId()const
@@ -117,7 +117,7 @@ std::string ModifyImageGatewayConfigRequest::getClusterId()const
void ModifyImageGatewayConfigRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string ModifyImageGatewayConfigRequest::getAccessKeyId()const
@@ -128,7 +128,7 @@ std::string ModifyImageGatewayConfigRequest::getAccessKeyId()const
void ModifyImageGatewayConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string ModifyImageGatewayConfigRequest::getImageExpirationTimeout()const
@@ -139,6 +139,6 @@ std::string ModifyImageGatewayConfigRequest::getImageExpirationTimeout()const
void ModifyImageGatewayConfigRequest::setImageExpirationTimeout(const std::string& imageExpirationTimeout)
{
imageExpirationTimeout_ = imageExpirationTimeout;
setParameter("ImageExpirationTimeout", imageExpirationTimeout);
setCoreParameter("ImageExpirationTimeout", imageExpirationTimeout);
}

View File

@@ -33,7 +33,7 @@ std::string ModifyUserGroupsRequest::getClusterId()const
void ModifyUserGroupsRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::vector<ModifyUserGroupsRequest::User> ModifyUserGroupsRequest::getUser()const
@@ -48,8 +48,8 @@ void ModifyUserGroupsRequest::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 + ".Group", obj.group);
setCoreParameter(str + ".Name", obj.name);
setCoreParameter(str + ".Group", obj.group);
}
}
@@ -61,6 +61,6 @@ std::string ModifyUserGroupsRequest::getAccessKeyId()const
void ModifyUserGroupsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string ModifyUserPasswordsRequest::getClusterId()const
void ModifyUserPasswordsRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::vector<ModifyUserPasswordsRequest::User> ModifyUserPasswordsRequest::getUser()const
@@ -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 + ".Password", obj.password);
setParameter(str + ".Name", obj.name);
setCoreParameter(str + ".Password", obj.password);
setCoreParameter(str + ".Name", obj.name);
}
}
@@ -61,6 +61,6 @@ std::string ModifyUserPasswordsRequest::getAccessKeyId()const
void ModifyUserPasswordsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

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/ModifyVisualServicePasswdRequest.h>
using AlibabaCloud::EHPC::Model::ModifyVisualServicePasswdRequest;
ModifyVisualServicePasswdRequest::ModifyVisualServicePasswdRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "ModifyVisualServicePasswd")
{}
ModifyVisualServicePasswdRequest::~ModifyVisualServicePasswdRequest()
{}
std::string ModifyVisualServicePasswdRequest::getPasswd()const
{
return passwd_;
}
void ModifyVisualServicePasswdRequest::setPasswd(const std::string& passwd)
{
passwd_ = passwd;
setCoreParameter("Passwd", passwd);
}
std::string ModifyVisualServicePasswdRequest::getRunasUserPassword()const
{
return runasUserPassword_;
}
void ModifyVisualServicePasswdRequest::setRunasUserPassword(const std::string& runasUserPassword)
{
runasUserPassword_ = runasUserPassword;
setCoreParameter("RunasUserPassword", runasUserPassword);
}
std::string ModifyVisualServicePasswdRequest::getRunasUser()const
{
return runasUser_;
}
void ModifyVisualServicePasswdRequest::setRunasUser(const std::string& runasUser)
{
runasUser_ = runasUser;
setCoreParameter("RunasUser", runasUser);
}
std::string ModifyVisualServicePasswdRequest::getClusterId()const
{
return clusterId_;
}
void ModifyVisualServicePasswdRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setCoreParameter("ClusterId", clusterId);
}
std::string ModifyVisualServicePasswdRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ModifyVisualServicePasswdRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View 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/ehpc/model/ModifyVisualServicePasswdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
ModifyVisualServicePasswdResult::ModifyVisualServicePasswdResult() :
ServiceResult()
{}
ModifyVisualServicePasswdResult::ModifyVisualServicePasswdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyVisualServicePasswdResult::~ModifyVisualServicePasswdResult()
{}
void ModifyVisualServicePasswdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ModifyVisualServicePasswdResult::getMessage()const
{
return message_;
}

View File

@@ -33,7 +33,7 @@ std::string PullImageRequest::getContainerType()const
void PullImageRequest::setContainerType(const std::string& containerType)
{
containerType_ = containerType;
setParameter("ContainerType", containerType);
setCoreParameter("ContainerType", containerType);
}
std::string PullImageRequest::getClusterId()const
@@ -44,7 +44,7 @@ std::string PullImageRequest::getClusterId()const
void PullImageRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string PullImageRequest::getRepository()const
@@ -55,7 +55,7 @@ std::string PullImageRequest::getRepository()const
void PullImageRequest::setRepository(const std::string& repository)
{
repository_ = repository;
setParameter("Repository", repository);
setCoreParameter("Repository", repository);
}
std::string PullImageRequest::getImageTag()const
@@ -66,7 +66,7 @@ std::string PullImageRequest::getImageTag()const
void PullImageRequest::setImageTag(const std::string& imageTag)
{
imageTag_ = imageTag;
setParameter("ImageTag", imageTag);
setCoreParameter("ImageTag", imageTag);
}
std::string PullImageRequest::getAccessKeyId()const
@@ -77,6 +77,6 @@ std::string PullImageRequest::getAccessKeyId()const
void PullImageRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -25,6 +25,61 @@ RecoverClusterRequest::RecoverClusterRequest() :
RecoverClusterRequest::~RecoverClusterRequest()
{}
std::string RecoverClusterRequest::getImageId()const
{
return imageId_;
}
void RecoverClusterRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setCoreParameter("ImageId", imageId);
}
std::string RecoverClusterRequest::getOsTag()const
{
return osTag_;
}
void RecoverClusterRequest::setOsTag(const std::string& osTag)
{
osTag_ = osTag;
setCoreParameter("OsTag", osTag);
}
std::string RecoverClusterRequest::getClientVersion()const
{
return clientVersion_;
}
void RecoverClusterRequest::setClientVersion(const std::string& clientVersion)
{
clientVersion_ = clientVersion;
setCoreParameter("ClientVersion", clientVersion);
}
std::string RecoverClusterRequest::getAccountType()const
{
return accountType_;
}
void RecoverClusterRequest::setAccountType(const std::string& accountType)
{
accountType_ = accountType;
setCoreParameter("AccountType", accountType);
}
std::string RecoverClusterRequest::getSchedulerType()const
{
return schedulerType_;
}
void RecoverClusterRequest::setSchedulerType(const std::string& schedulerType)
{
schedulerType_ = schedulerType;
setCoreParameter("SchedulerType", schedulerType);
}
std::string RecoverClusterRequest::getClusterId()const
{
return clusterId_;
@@ -33,7 +88,7 @@ std::string RecoverClusterRequest::getClusterId()const
void RecoverClusterRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string RecoverClusterRequest::getAccessKeyId()const
@@ -44,6 +99,17 @@ std::string RecoverClusterRequest::getAccessKeyId()const
void RecoverClusterRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string RecoverClusterRequest::getImageOwnerAlias()const
{
return imageOwnerAlias_;
}
void RecoverClusterRequest::setImageOwnerAlias(const std::string& imageOwnerAlias)
{
imageOwnerAlias_ = imageOwnerAlias;
setCoreParameter("ImageOwnerAlias", imageOwnerAlias);
}

View File

@@ -33,7 +33,7 @@ std::string RerunJobsRequest::getJobs()const
void RerunJobsRequest::setJobs(const std::string& jobs)
{
jobs_ = jobs;
setParameter("Jobs", jobs);
setCoreParameter("Jobs", jobs);
}
std::string RerunJobsRequest::getClusterId()const
@@ -44,7 +44,7 @@ std::string RerunJobsRequest::getClusterId()const
void RerunJobsRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string RerunJobsRequest::getAccessKeyId()const
@@ -55,6 +55,6 @@ std::string RerunJobsRequest::getAccessKeyId()const
void RerunJobsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -37,7 +37,7 @@ void ResetNodesRequest::setInstance(const std::vector<Instance>& instance)
for(int i = 0; i!= instance.size(); i++) {
auto obj = instance.at(i);
std::string str ="Instance."+ std::to_string(i);
setParameter(str + ".Id", obj.id);
setCoreParameter(str + ".Id", obj.id);
}
}
@@ -49,7 +49,7 @@ std::string ResetNodesRequest::getClusterId()const
void ResetNodesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string ResetNodesRequest::getAccessKeyId()const
@@ -60,6 +60,6 @@ std::string ResetNodesRequest::getAccessKeyId()const
void ResetNodesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ int RunCloudMetricProfilingRequest::getDuration()const
void RunCloudMetricProfilingRequest::setDuration(int duration)
{
duration_ = duration;
setParameter("Duration", std::to_string(duration));
setCoreParameter("Duration", std::to_string(duration));
}
std::string RunCloudMetricProfilingRequest::getHostName()const
@@ -44,7 +44,7 @@ std::string RunCloudMetricProfilingRequest::getHostName()const
void RunCloudMetricProfilingRequest::setHostName(const std::string& hostName)
{
hostName_ = hostName;
setParameter("HostName", hostName);
setCoreParameter("HostName", hostName);
}
std::string RunCloudMetricProfilingRequest::getRegionId()const
@@ -55,7 +55,7 @@ std::string RunCloudMetricProfilingRequest::getRegionId()const
void RunCloudMetricProfilingRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
setCoreParameter("RegionId", regionId);
}
int RunCloudMetricProfilingRequest::getProcessId()const
@@ -66,7 +66,7 @@ int RunCloudMetricProfilingRequest::getProcessId()const
void RunCloudMetricProfilingRequest::setProcessId(int processId)
{
processId_ = processId;
setParameter("ProcessId", std::to_string(processId));
setCoreParameter("ProcessId", std::to_string(processId));
}
int RunCloudMetricProfilingRequest::getFreq()const
@@ -77,7 +77,7 @@ int RunCloudMetricProfilingRequest::getFreq()const
void RunCloudMetricProfilingRequest::setFreq(int freq)
{
freq_ = freq;
setParameter("Freq", std::to_string(freq));
setCoreParameter("Freq", std::to_string(freq));
}
std::string RunCloudMetricProfilingRequest::getClusterId()const
@@ -88,7 +88,7 @@ std::string RunCloudMetricProfilingRequest::getClusterId()const
void RunCloudMetricProfilingRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string RunCloudMetricProfilingRequest::getAccessKeyId()const
@@ -99,6 +99,6 @@ std::string RunCloudMetricProfilingRequest::getAccessKeyId()const
void RunCloudMetricProfilingRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ int SetAutoScaleConfigRequest::getShrinkIdleTimes()const
void SetAutoScaleConfigRequest::setShrinkIdleTimes(int shrinkIdleTimes)
{
shrinkIdleTimes_ = shrinkIdleTimes;
setParameter("ShrinkIdleTimes", std::to_string(shrinkIdleTimes));
setCoreParameter("ShrinkIdleTimes", std::to_string(shrinkIdleTimes));
}
int SetAutoScaleConfigRequest::getGrowTimeoutInMinutes()const
@@ -44,7 +44,7 @@ int SetAutoScaleConfigRequest::getGrowTimeoutInMinutes()const
void SetAutoScaleConfigRequest::setGrowTimeoutInMinutes(int growTimeoutInMinutes)
{
growTimeoutInMinutes_ = growTimeoutInMinutes;
setParameter("GrowTimeoutInMinutes", std::to_string(growTimeoutInMinutes));
setCoreParameter("GrowTimeoutInMinutes", std::to_string(growTimeoutInMinutes));
}
std::string SetAutoScaleConfigRequest::getClusterId()const
@@ -55,7 +55,7 @@ std::string SetAutoScaleConfigRequest::getClusterId()const
void SetAutoScaleConfigRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
bool SetAutoScaleConfigRequest::getEnableAutoGrow()const
@@ -66,7 +66,7 @@ bool SetAutoScaleConfigRequest::getEnableAutoGrow()const
void SetAutoScaleConfigRequest::setEnableAutoGrow(bool enableAutoGrow)
{
enableAutoGrow_ = enableAutoGrow;
setParameter("EnableAutoGrow", std::to_string(enableAutoGrow));
setCoreParameter("EnableAutoGrow", enableAutoGrow ? "true" : "false");
}
float SetAutoScaleConfigRequest::getSpotPriceLimit()const
@@ -77,7 +77,7 @@ float SetAutoScaleConfigRequest::getSpotPriceLimit()const
void SetAutoScaleConfigRequest::setSpotPriceLimit(float spotPriceLimit)
{
spotPriceLimit_ = spotPriceLimit;
setParameter("SpotPriceLimit", std::to_string(spotPriceLimit));
setCoreParameter("SpotPriceLimit", std::to_string(spotPriceLimit));
}
bool SetAutoScaleConfigRequest::getEnableAutoShrink()const
@@ -88,7 +88,7 @@ bool SetAutoScaleConfigRequest::getEnableAutoShrink()const
void SetAutoScaleConfigRequest::setEnableAutoShrink(bool enableAutoShrink)
{
enableAutoShrink_ = enableAutoShrink;
setParameter("EnableAutoShrink", std::to_string(enableAutoShrink));
setCoreParameter("EnableAutoShrink", enableAutoShrink ? "true" : "false");
}
std::string SetAutoScaleConfigRequest::getAccessKeyId()const
@@ -99,7 +99,7 @@ std::string SetAutoScaleConfigRequest::getAccessKeyId()const
void SetAutoScaleConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string SetAutoScaleConfigRequest::getSpotStrategy()const
@@ -110,7 +110,7 @@ std::string SetAutoScaleConfigRequest::getSpotStrategy()const
void SetAutoScaleConfigRequest::setSpotStrategy(const std::string& spotStrategy)
{
spotStrategy_ = spotStrategy;
setParameter("SpotStrategy", spotStrategy);
setCoreParameter("SpotStrategy", spotStrategy);
}
int SetAutoScaleConfigRequest::getMaxNodesInCluster()const
@@ -121,7 +121,7 @@ int SetAutoScaleConfigRequest::getMaxNodesInCluster()const
void SetAutoScaleConfigRequest::setMaxNodesInCluster(int maxNodesInCluster)
{
maxNodesInCluster_ = maxNodesInCluster;
setParameter("MaxNodesInCluster", std::to_string(maxNodesInCluster));
setCoreParameter("MaxNodesInCluster", std::to_string(maxNodesInCluster));
}
std::string SetAutoScaleConfigRequest::getExcludeNodes()const
@@ -132,7 +132,7 @@ std::string SetAutoScaleConfigRequest::getExcludeNodes()const
void SetAutoScaleConfigRequest::setExcludeNodes(const std::string& excludeNodes)
{
excludeNodes_ = excludeNodes;
setParameter("ExcludeNodes", excludeNodes);
setCoreParameter("ExcludeNodes", excludeNodes);
}
int SetAutoScaleConfigRequest::getShrinkIntervalInMinutes()const
@@ -143,7 +143,7 @@ int SetAutoScaleConfigRequest::getShrinkIntervalInMinutes()const
void SetAutoScaleConfigRequest::setShrinkIntervalInMinutes(int shrinkIntervalInMinutes)
{
shrinkIntervalInMinutes_ = shrinkIntervalInMinutes;
setParameter("ShrinkIntervalInMinutes", std::to_string(shrinkIntervalInMinutes));
setCoreParameter("ShrinkIntervalInMinutes", std::to_string(shrinkIntervalInMinutes));
}
std::vector<SetAutoScaleConfigRequest::Queues> SetAutoScaleConfigRequest::getQueues()const
@@ -158,12 +158,13 @@ void SetAutoScaleConfigRequest::setQueues(const std::vector<Queues>& queues)
for(int i = 0; i!= queues.size(); i++) {
auto obj = queues.at(i);
std::string str ="Queues."+ std::to_string(i);
setParameter(str + ".SpotStrategy", obj.spotStrategy);
setParameter(str + ".QueueName", obj.queueName);
setParameter(str + ".InstanceType", obj.instanceType);
setParameter(str + ".EnableAutoGrow", std::to_string(obj.enableAutoGrow));
setParameter(str + ".SpotPriceLimit", std::to_string(obj.spotPriceLimit));
setParameter(str + ".EnableAutoShrink", std::to_string(obj.enableAutoShrink));
setCoreParameter(str + ".SpotStrategy", obj.spotStrategy);
setCoreParameter(str + ".QueueName", obj.queueName);
setCoreParameter(str + ".InstanceTypes", std::to_string(obj.instanceTypes));
setCoreParameter(str + ".InstanceType", obj.instanceType);
setCoreParameter(str + ".EnableAutoGrow", obj.enableAutoGrow ? "true" : "false");
setCoreParameter(str + ".SpotPriceLimit", std::to_string(obj.spotPriceLimit));
setCoreParameter(str + ".EnableAutoShrink", obj.enableAutoShrink ? "true" : "false");
}
}
@@ -175,7 +176,7 @@ int SetAutoScaleConfigRequest::getExtraNodesGrowRatio()const
void SetAutoScaleConfigRequest::setExtraNodesGrowRatio(int extraNodesGrowRatio)
{
extraNodesGrowRatio_ = extraNodesGrowRatio;
setParameter("ExtraNodesGrowRatio", std::to_string(extraNodesGrowRatio));
setCoreParameter("ExtraNodesGrowRatio", std::to_string(extraNodesGrowRatio));
}
int SetAutoScaleConfigRequest::getGrowIntervalInMinutes()const
@@ -186,7 +187,7 @@ int SetAutoScaleConfigRequest::getGrowIntervalInMinutes()const
void SetAutoScaleConfigRequest::setGrowIntervalInMinutes(int growIntervalInMinutes)
{
growIntervalInMinutes_ = growIntervalInMinutes;
setParameter("GrowIntervalInMinutes", std::to_string(growIntervalInMinutes));
setCoreParameter("GrowIntervalInMinutes", std::to_string(growIntervalInMinutes));
}
int SetAutoScaleConfigRequest::getGrowRatio()const
@@ -197,6 +198,6 @@ int SetAutoScaleConfigRequest::getGrowRatio()const
void SetAutoScaleConfigRequest::setGrowRatio(int growRatio)
{
growRatio_ = growRatio;
setParameter("GrowRatio", std::to_string(growRatio));
setCoreParameter("GrowRatio", std::to_string(growRatio));
}

View File

@@ -33,7 +33,7 @@ std::string SetJobUserRequest::getRunasUserPassword()const
void SetJobUserRequest::setRunasUserPassword(const std::string& runasUserPassword)
{
runasUserPassword_ = runasUserPassword;
setParameter("RunasUserPassword", runasUserPassword);
setCoreParameter("RunasUserPassword", runasUserPassword);
}
std::string SetJobUserRequest::getRunasUser()const
@@ -44,7 +44,7 @@ std::string SetJobUserRequest::getRunasUser()const
void SetJobUserRequest::setRunasUser(const std::string& runasUser)
{
runasUser_ = runasUser;
setParameter("RunasUser", runasUser);
setCoreParameter("RunasUser", runasUser);
}
std::string SetJobUserRequest::getClusterId()const
@@ -55,7 +55,7 @@ std::string SetJobUserRequest::getClusterId()const
void SetJobUserRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string SetJobUserRequest::getAccessKeyId()const
@@ -66,6 +66,6 @@ std::string SetJobUserRequest::getAccessKeyId()const
void SetJobUserRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/SetQueueRequest.h>
using AlibabaCloud::EHPC::Model::SetQueueRequest;
SetQueueRequest::SetQueueRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "SetQueue")
{}
SetQueueRequest::~SetQueueRequest()
{}
std::string SetQueueRequest::getQueueName()const
{
return queueName_;
}
void SetQueueRequest::setQueueName(const std::string& queueName)
{
queueName_ = queueName;
setCoreParameter("QueueName", queueName);
}
std::vector<SetQueueRequest::Node> SetQueueRequest::getNode()const
{
return node_;
}
void SetQueueRequest::setNode(const std::vector<Node>& node)
{
node_ = node;
int i = 0;
for(int i = 0; i!= node.size(); i++) {
auto obj = node.at(i);
std::string str ="Node."+ std::to_string(i);
setCoreParameter(str + ".Name", obj.name);
}
}
std::string SetQueueRequest::getClusterId()const
{
return clusterId_;
}
void SetQueueRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setCoreParameter("ClusterId", clusterId);
}
std::string SetQueueRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SetQueueRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("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/SetQueueResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
SetQueueResult::SetQueueResult() :
ServiceResult()
{}
SetQueueResult::SetQueueResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetQueueResult::~SetQueueResult()
{}
void SetQueueResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -33,7 +33,7 @@ std::string StartClusterRequest::getClusterId()const
void StartClusterRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string StartClusterRequest::getAccessKeyId()const
@@ -44,6 +44,6 @@ std::string StartClusterRequest::getAccessKeyId()const
void StartClusterRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string StartNodesRequest::getRole()const
void StartNodesRequest::setRole(const std::string& role)
{
role_ = role;
setParameter("Role", role);
setCoreParameter("Role", role);
}
std::vector<StartNodesRequest::Instance> StartNodesRequest::getInstance()const
@@ -48,7 +48,7 @@ void StartNodesRequest::setInstance(const std::vector<Instance>& instance)
for(int i = 0; i!= instance.size(); i++) {
auto obj = instance.at(i);
std::string str ="Instance."+ std::to_string(i);
setParameter(str + ".Id", obj.id);
setCoreParameter(str + ".Id", obj.id);
}
}
@@ -60,7 +60,7 @@ std::string StartNodesRequest::getClusterId()const
void StartNodesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
setCoreParameter("ClusterId", clusterId);
}
std::string StartNodesRequest::getAccessKeyId()const
@@ -71,6 +71,6 @@ std::string StartNodesRequest::getAccessKeyId()const
void StartNodesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

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/StartVisualServiceRequest.h>
using AlibabaCloud::EHPC::Model::StartVisualServiceRequest;
StartVisualServiceRequest::StartVisualServiceRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "StartVisualService")
{}
StartVisualServiceRequest::~StartVisualServiceRequest()
{}
int StartVisualServiceRequest::getPort()const
{
return port_;
}
void StartVisualServiceRequest::setPort(int port)
{
port_ = port;
setCoreParameter("Port", std::to_string(port));
}
std::string StartVisualServiceRequest::getClusterId()const
{
return clusterId_;
}
void StartVisualServiceRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setCoreParameter("ClusterId", clusterId);
}
std::string StartVisualServiceRequest::getCidrIp()const
{
return cidrIp_;
}
void StartVisualServiceRequest::setCidrIp(const std::string& cidrIp)
{
cidrIp_ = cidrIp;
setCoreParameter("CidrIp", cidrIp);
}
std::string StartVisualServiceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void StartVisualServiceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View 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/ehpc/model/StartVisualServiceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
StartVisualServiceResult::StartVisualServiceResult() :
ServiceResult()
{}
StartVisualServiceResult::StartVisualServiceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartVisualServiceResult::~StartVisualServiceResult()
{}
void StartVisualServiceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string StartVisualServiceResult::getMessage()const
{
return message_;
}

Some files were not shown because too many files have changed in this diff Show More