Generated 2017-07-14 for EHPC.

This commit is contained in:
sdk-team
2022-09-14 03:34:52 +00:00
parent 469ca3633e
commit 1b0c1eab88
445 changed files with 3492 additions and 31722 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,95 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/AddContainerAppRequest.h>
using AlibabaCloud::EHPC::Model::AddContainerAppRequest;
AddContainerAppRequest::AddContainerAppRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "AddContainerApp")
{
setMethod(HttpRequest::Method::Get);
}
AddContainerAppRequest::~AddContainerAppRequest()
{}
std::string AddContainerAppRequest::getDescription()const
{
return description_;
}
void AddContainerAppRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string AddContainerAppRequest::getRepository()const
{
return repository_;
}
void AddContainerAppRequest::setRepository(const std::string& repository)
{
repository_ = repository;
setParameter("Repository", repository);
}
std::string AddContainerAppRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddContainerAppRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AddContainerAppRequest::getContainerType()const
{
return containerType_;
}
void AddContainerAppRequest::setContainerType(const std::string& containerType)
{
containerType_ = containerType;
setParameter("ContainerType", containerType);
}
std::string AddContainerAppRequest::getName()const
{
return name_;
}
void AddContainerAppRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string AddContainerAppRequest::getImageTag()const
{
return imageTag_;
}
void AddContainerAppRequest::setImageTag(const std::string& imageTag)
{
imageTag_ = imageTag;
setParameter("ImageTag", imageTag);
}

View File

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

View File

@@ -1,110 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/AddExistedNodesRequest.h>
using AlibabaCloud::EHPC::Model::AddExistedNodesRequest;
AddExistedNodesRequest::AddExistedNodesRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "AddExistedNodes")
{
setMethod(HttpRequest::Method::Get);
}
AddExistedNodesRequest::~AddExistedNodesRequest()
{}
std::string AddExistedNodesRequest::getImageId()const
{
return imageId_;
}
void AddExistedNodesRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
}
std::vector<AddExistedNodesRequest::Instance> AddExistedNodesRequest::getInstance()const
{
return instance_;
}
void AddExistedNodesRequest::setInstance(const std::vector<Instance>& instance)
{
instance_ = instance;
for(int dep1 = 0; dep1!= instance.size(); dep1++) {
auto instanceObj = instance.at(dep1);
std::string instanceObjStr = "Instance." + std::to_string(dep1 + 1);
setParameter(instanceObjStr + ".Id", instanceObj.id);
}
}
std::string AddExistedNodesRequest::getClientToken()const
{
return clientToken_;
}
void AddExistedNodesRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string AddExistedNodesRequest::getClusterId()const
{
return clusterId_;
}
void AddExistedNodesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string AddExistedNodesRequest::getJobQueue()const
{
return jobQueue_;
}
void AddExistedNodesRequest::setJobQueue(const std::string& jobQueue)
{
jobQueue_ = jobQueue;
setParameter("JobQueue", jobQueue);
}
std::string AddExistedNodesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddExistedNodesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AddExistedNodesRequest::getImageOwnerAlias()const
{
return imageOwnerAlias_;
}
void AddExistedNodesRequest::setImageOwnerAlias(const std::string& imageOwnerAlias)
{
imageOwnerAlias_ = imageOwnerAlias;
setParameter("ImageOwnerAlias", imageOwnerAlias);
}

View File

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

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/AddLocalNodesRequest.h>
using AlibabaCloud::EHPC::Model::AddLocalNodesRequest;
AddLocalNodesRequest::AddLocalNodesRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "AddLocalNodes")
{
setMethod(HttpRequest::Method::Get);
}
AddLocalNodesRequest::~AddLocalNodesRequest()
{}
std::string AddLocalNodesRequest::getClusterId()const
{
return clusterId_;
}
void AddLocalNodesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string AddLocalNodesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddLocalNodesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AddLocalNodesRequest::getNodes()const
{
return nodes_;
}
void AddLocalNodesRequest::setNodes(const std::string& nodes)
{
nodes_ = nodes;
setParameter("Nodes", nodes);
}

View File

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

View File

@@ -1,359 +1,90 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/AddNodesRequest.h>
using AlibabaCloud::EHPC::Model::AddNodesRequest;
AddNodesRequest::AddNodesRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "AddNodes")
{
setMethod(HttpRequest::Method::Get);
}
AddNodesRequest::~AddNodesRequest()
{}
std::string AddNodesRequest::getImageId()const
{
return imageId_;
*/
#include <alibabacloud/ehpc/model/AddNodesRequest.h>
using AlibabaCloud::EHPC::Model::AddNodesRequest;
AddNodesRequest::AddNodesRequest()
: RpcServiceRequest("ehpc", "2017-07-14", "AddNodes") {
setMethod(HttpRequest::Method::Get);
}
void AddNodesRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
AddNodesRequest::~AddNodesRequest() {}
std::string AddNodesRequest::getImageId() const {
return imageId_;
}
std::string AddNodesRequest::getSystemDiskLevel()const
{
return systemDiskLevel_;
void AddNodesRequest::setImageId(const std::string &imageId) {
imageId_ = imageId;
setParameter(std::string("ImageId"), imageId);
}
void AddNodesRequest::setSystemDiskLevel(const std::string& systemDiskLevel)
{
systemDiskLevel_ = systemDiskLevel;
setParameter("SystemDiskLevel", systemDiskLevel);
int AddNodesRequest::getCount() const {
return count_;
}
std::string AddNodesRequest::getClientToken()const
{
return clientToken_;
void AddNodesRequest::setCount(int count) {
count_ = count;
setParameter(std::string("Count"), std::to_string(count));
}
void AddNodesRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
std::string AddNodesRequest::getClusterId() const {
return clusterId_;
}
bool AddNodesRequest::getAllocatePublicAddress()const
{
return allocatePublicAddress_;
void AddNodesRequest::setClusterId(const std::string &clusterId) {
clusterId_ = clusterId;
setParameter(std::string("ClusterId"), clusterId);
}
void AddNodesRequest::setAllocatePublicAddress(bool allocatePublicAddress)
{
allocatePublicAddress_ = allocatePublicAddress;
setParameter("AllocatePublicAddress", allocatePublicAddress ? "true" : "false");
std::string AddNodesRequest::getComputeSpotStrategy() const {
return computeSpotStrategy_;
}
int AddNodesRequest::getInternetMaxBandWidthOut()const
{
return internetMaxBandWidthOut_;
void AddNodesRequest::setComputeSpotStrategy(const std::string &computeSpotStrategy) {
computeSpotStrategy_ = computeSpotStrategy;
setParameter(std::string("ComputeSpotStrategy"), computeSpotStrategy);
}
void AddNodesRequest::setInternetMaxBandWidthOut(int internetMaxBandWidthOut)
{
internetMaxBandWidthOut_ = internetMaxBandWidthOut;
setParameter("InternetMaxBandWidthOut", std::to_string(internetMaxBandWidthOut));
std::string AddNodesRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string AddNodesRequest::getJobQueue()const
{
return jobQueue_;
void AddNodesRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void AddNodesRequest::setJobQueue(const std::string& jobQueue)
{
jobQueue_ = jobQueue;
setParameter("JobQueue", jobQueue);
std::string AddNodesRequest::getImageOwnerAlias() const {
return imageOwnerAlias_;
}
std::string AddNodesRequest::getAccessKeyId()const
{
return accessKeyId_;
void AddNodesRequest::setImageOwnerAlias(const std::string &imageOwnerAlias) {
imageOwnerAlias_ = imageOwnerAlias;
setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias);
}
void AddNodesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string AddNodesRequest::getComputeSpotPriceLimit() const {
return computeSpotPriceLimit_;
}
std::string AddNodesRequest::getImageOwnerAlias()const
{
return imageOwnerAlias_;
}
void AddNodesRequest::setImageOwnerAlias(const std::string& imageOwnerAlias)
{
imageOwnerAlias_ = imageOwnerAlias;
setParameter("ImageOwnerAlias", imageOwnerAlias);
}
std::string AddNodesRequest::getSystemDiskType()const
{
return systemDiskType_;
}
void AddNodesRequest::setSystemDiskType(const std::string& systemDiskType)
{
systemDiskType_ = systemDiskType;
setParameter("SystemDiskType", systemDiskType);
}
int AddNodesRequest::getMinCount()const
{
return minCount_;
}
void AddNodesRequest::setMinCount(int minCount)
{
minCount_ = minCount;
setParameter("MinCount", std::to_string(minCount));
}
int AddNodesRequest::getSystemDiskSize()const
{
return systemDiskSize_;
}
void AddNodesRequest::setSystemDiskSize(int systemDiskSize)
{
systemDiskSize_ = systemDiskSize;
setParameter("SystemDiskSize", std::to_string(systemDiskSize));
}
std::string AddNodesRequest::getInstanceType()const
{
return instanceType_;
}
void AddNodesRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setParameter("InstanceType", instanceType);
}
std::string AddNodesRequest::getHostNamePrefix()const
{
return hostNamePrefix_;
}
void AddNodesRequest::setHostNamePrefix(const std::string& hostNamePrefix)
{
hostNamePrefix_ = hostNamePrefix;
setParameter("HostNamePrefix", hostNamePrefix);
}
std::string AddNodesRequest::getComputeSpotPriceLimit()const
{
return computeSpotPriceLimit_;
}
void AddNodesRequest::setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit)
{
computeSpotPriceLimit_ = computeSpotPriceLimit;
setParameter("ComputeSpotPriceLimit", computeSpotPriceLimit);
}
int AddNodesRequest::getAutoRenewPeriod()const
{
return autoRenewPeriod_;
}
void AddNodesRequest::setAutoRenewPeriod(int autoRenewPeriod)
{
autoRenewPeriod_ = autoRenewPeriod;
setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
}
int AddNodesRequest::getPeriod()const
{
return period_;
}
void AddNodesRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
}
int AddNodesRequest::getCount()const
{
return count_;
}
void AddNodesRequest::setCount(int count)
{
count_ = count;
setParameter("Count", std::to_string(count));
}
std::string AddNodesRequest::getClusterId()const
{
return clusterId_;
}
void AddNodesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string AddNodesRequest::getComputeSpotStrategy()const
{
return computeSpotStrategy_;
}
void AddNodesRequest::setComputeSpotStrategy(const std::string& computeSpotStrategy)
{
computeSpotStrategy_ = computeSpotStrategy;
setParameter("ComputeSpotStrategy", computeSpotStrategy);
}
std::string AddNodesRequest::getHostNameSuffix()const
{
return hostNameSuffix_;
}
void AddNodesRequest::setHostNameSuffix(const std::string& hostNameSuffix)
{
hostNameSuffix_ = hostNameSuffix;
setParameter("HostNameSuffix", hostNameSuffix);
}
bool AddNodesRequest::getSync()const
{
return sync_;
}
void AddNodesRequest::setSync(bool sync)
{
sync_ = sync;
setParameter("Sync", sync ? "true" : "false");
}
std::string AddNodesRequest::getVSwitchId()const
{
return vSwitchId_;
}
void AddNodesRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
}
std::string AddNodesRequest::getPeriodUnit()const
{
return periodUnit_;
}
void AddNodesRequest::setPeriodUnit(const std::string& periodUnit)
{
periodUnit_ = periodUnit;
setParameter("PeriodUnit", periodUnit);
}
bool AddNodesRequest::getComputeEnableHt()const
{
return computeEnableHt_;
}
void AddNodesRequest::setComputeEnableHt(bool computeEnableHt)
{
computeEnableHt_ = computeEnableHt;
setParameter("ComputeEnableHt", computeEnableHt ? "true" : "false");
}
std::string AddNodesRequest::getAutoRenew()const
{
return autoRenew_;
}
void AddNodesRequest::setAutoRenew(const std::string& autoRenew)
{
autoRenew_ = autoRenew;
setParameter("AutoRenew", autoRenew);
}
std::string AddNodesRequest::getEcsChargeType()const
{
return ecsChargeType_;
}
void AddNodesRequest::setEcsChargeType(const std::string& ecsChargeType)
{
ecsChargeType_ = ecsChargeType;
setParameter("EcsChargeType", ecsChargeType);
}
std::string AddNodesRequest::getInternetChargeType()const
{
return internetChargeType_;
}
void AddNodesRequest::setInternetChargeType(const std::string& internetChargeType)
{
internetChargeType_ = internetChargeType;
setParameter("InternetChargeType", internetChargeType);
}
std::string AddNodesRequest::getCreateMode()const
{
return createMode_;
}
void AddNodesRequest::setCreateMode(const std::string& createMode)
{
createMode_ = createMode;
setParameter("CreateMode", createMode);
}
std::string AddNodesRequest::getZoneId()const
{
return zoneId_;
}
void AddNodesRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
int AddNodesRequest::getInternetMaxBandWidthIn()const
{
return internetMaxBandWidthIn_;
}
void AddNodesRequest::setInternetMaxBandWidthIn(int internetMaxBandWidthIn)
{
internetMaxBandWidthIn_ = internetMaxBandWidthIn;
setParameter("InternetMaxBandWidthIn", std::to_string(internetMaxBandWidthIn));
void AddNodesRequest::setComputeSpotPriceLimit(const std::string &computeSpotPriceLimit) {
computeSpotPriceLimit_ = computeSpotPriceLimit;
setParameter(std::string("ComputeSpotPriceLimit"), computeSpotPriceLimit);
}

View File

@@ -42,16 +42,9 @@ void AddNodesResult::parse(const std::string &payload)
auto allInstanceIds = value["InstanceIds"]["InstanceId"];
for (const auto &item : allInstanceIds)
instanceIds_.push_back(item.asString());
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
}
std::string AddNodesResult::getTaskId()const
{
return taskId_;
}
std::vector<std::string> AddNodesResult::getInstanceIds()const
{
return instanceIds_;

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/AddQueueRequest.h>
using AlibabaCloud::EHPC::Model::AddQueueRequest;
AddQueueRequest::AddQueueRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "AddQueue")
{
setMethod(HttpRequest::Method::Get);
}
AddQueueRequest::~AddQueueRequest()
{}
std::string AddQueueRequest::getQueueName()const
{
return queueName_;
}
void AddQueueRequest::setQueueName(const std::string& queueName)
{
queueName_ = queueName;
setParameter("QueueName", queueName);
}
std::string AddQueueRequest::getClusterId()const
{
return clusterId_;
}
void AddQueueRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string AddQueueRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddQueueRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/AddSecurityGroupRequest.h>
using AlibabaCloud::EHPC::Model::AddSecurityGroupRequest;
AddSecurityGroupRequest::AddSecurityGroupRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "AddSecurityGroup")
{
setMethod(HttpRequest::Method::Get);
}
AddSecurityGroupRequest::~AddSecurityGroupRequest()
{}
std::string AddSecurityGroupRequest::getClientToken()const
{
return clientToken_;
}
void AddSecurityGroupRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string AddSecurityGroupRequest::getSecurityGroupId()const
{
return securityGroupId_;
}
void AddSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId)
{
securityGroupId_ = securityGroupId;
setParameter("SecurityGroupId", securityGroupId);
}
std::string AddSecurityGroupRequest::getClusterId()const
{
return clusterId_;
}
void AddSecurityGroupRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string AddSecurityGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -1,68 +1,69 @@
/*
* 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/AddUsersRequest.h>
using AlibabaCloud::EHPC::Model::AddUsersRequest;
AddUsersRequest::AddUsersRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "AddUsers")
{
setMethod(HttpRequest::Method::Get);
}
AddUsersRequest::~AddUsersRequest()
{}
std::string AddUsersRequest::getClusterId()const
{
return clusterId_;
*/
#include <alibabacloud/ehpc/model/AddUsersRequest.h>
using AlibabaCloud::EHPC::Model::AddUsersRequest;
AddUsersRequest::AddUsersRequest()
: RpcServiceRequest("ehpc", "2017-07-14", "AddUsers") {
setMethod(HttpRequest::Method::Get);
}
void AddUsersRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
AddUsersRequest::~AddUsersRequest() {}
std::string AddUsersRequest::getClusterId() const {
return clusterId_;
}
std::string AddUsersRequest::getAccessKeyId()const
{
return accessKeyId_;
void AddUsersRequest::setClusterId(const std::string &clusterId) {
clusterId_ = clusterId;
setParameter(std::string("ClusterId"), clusterId);
}
void AddUsersRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string AddUsersRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::vector<AddUsersRequest::User> AddUsersRequest::getUser()const
{
return user_;
void AddUsersRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void AddUsersRequest::setUser(const std::vector<User>& user)
{
user_ = user;
for(int dep1 = 0; dep1!= user.size(); dep1++) {
auto userObj = user.at(dep1);
std::string userObjStr = "User." + std::to_string(dep1 + 1);
setParameter(userObjStr + ".Password", userObj.password);
setParameter(userObjStr + ".Name", userObj.name);
setParameter(userObjStr + ".Group", userObj.group);
}
bool AddUsersRequest::getReleaseInstance() const {
return releaseInstance_;
}
void AddUsersRequest::setReleaseInstance(bool releaseInstance) {
releaseInstance_ = releaseInstance;
setParameter(std::string("ReleaseInstance"), releaseInstance ? "true" : "false");
}
std::vector<AddUsersRequest::User> AddUsersRequest::getUser() const {
return user_;
}
void AddUsersRequest::setUser(const std::vector<AddUsersRequest::User> &user) {
user_ = user;
for(int dep1 = 0; dep1 != user.size(); dep1++) {
auto userObj = user.at(dep1);
std::string userObjStr = std::string("User") + "." + std::to_string(dep1 + 1);
setParameter(userObjStr + ".Password", userObj.password);
setParameter(userObjStr + ".Name", userObj.name);
setParameter(userObjStr + ".Group", userObj.group);
}
}

View File

@@ -1,326 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/ApplyNodesRequest.h>
using AlibabaCloud::EHPC::Model::ApplyNodesRequest;
ApplyNodesRequest::ApplyNodesRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "ApplyNodes")
{
setMethod(HttpRequest::Method::Get);
}
ApplyNodesRequest::~ApplyNodesRequest()
{}
std::string ApplyNodesRequest::getImageId()const
{
return imageId_;
}
void ApplyNodesRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
}
int ApplyNodesRequest::getMemory()const
{
return memory_;
}
void ApplyNodesRequest::setMemory(int memory)
{
memory_ = memory;
setParameter("Memory", std::to_string(memory));
}
std::string ApplyNodesRequest::getSystemDiskLevel()const
{
return systemDiskLevel_;
}
void ApplyNodesRequest::setSystemDiskLevel(const std::string& systemDiskLevel)
{
systemDiskLevel_ = systemDiskLevel;
setParameter("SystemDiskLevel", systemDiskLevel);
}
bool ApplyNodesRequest::getAllocatePublicAddress()const
{
return allocatePublicAddress_;
}
void ApplyNodesRequest::setAllocatePublicAddress(bool allocatePublicAddress)
{
allocatePublicAddress_ = allocatePublicAddress;
setParameter("AllocatePublicAddress", allocatePublicAddress ? "true" : "false");
}
int ApplyNodesRequest::getInternetMaxBandWidthOut()const
{
return internetMaxBandWidthOut_;
}
void ApplyNodesRequest::setInternetMaxBandWidthOut(int internetMaxBandWidthOut)
{
internetMaxBandWidthOut_ = internetMaxBandWidthOut;
setParameter("InternetMaxBandWidthOut", std::to_string(internetMaxBandWidthOut));
}
std::string ApplyNodesRequest::getResourceAmountType()const
{
return resourceAmountType_;
}
void ApplyNodesRequest::setResourceAmountType(const std::string& resourceAmountType)
{
resourceAmountType_ = resourceAmountType;
setParameter("ResourceAmountType", resourceAmountType);
}
bool ApplyNodesRequest::getStrictResourceProvision()const
{
return strictResourceProvision_;
}
void ApplyNodesRequest::setStrictResourceProvision(bool strictResourceProvision)
{
strictResourceProvision_ = strictResourceProvision;
setParameter("StrictResourceProvision", strictResourceProvision ? "true" : "false");
}
std::string ApplyNodesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ApplyNodesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ApplyNodesRequest::getSystemDiskType()const
{
return systemDiskType_;
}
void ApplyNodesRequest::setSystemDiskType(const std::string& systemDiskType)
{
systemDiskType_ = systemDiskType;
setParameter("SystemDiskType", systemDiskType);
}
int ApplyNodesRequest::getCores()const
{
return cores_;
}
void ApplyNodesRequest::setCores(int cores)
{
cores_ = cores;
setParameter("Cores", std::to_string(cores));
}
int ApplyNodesRequest::getSystemDiskSize()const
{
return systemDiskSize_;
}
void ApplyNodesRequest::setSystemDiskSize(int systemDiskSize)
{
systemDiskSize_ = systemDiskSize;
setParameter("SystemDiskSize", std::to_string(systemDiskSize));
}
std::vector<ApplyNodesRequest::ZoneInfos> ApplyNodesRequest::getZoneInfos()const
{
return zoneInfos_;
}
void ApplyNodesRequest::setZoneInfos(const std::vector<ZoneInfos>& zoneInfos)
{
zoneInfos_ = zoneInfos;
for(int dep1 = 0; dep1!= zoneInfos.size(); dep1++) {
auto zoneInfosObj = zoneInfos.at(dep1);
std::string zoneInfosObjStr = "ZoneInfos." + std::to_string(dep1 + 1);
setParameter(zoneInfosObjStr + ".VSwitchId", zoneInfosObj.vSwitchId);
setParameter(zoneInfosObjStr + ".ZoneId", zoneInfosObj.zoneId);
}
}
std::string ApplyNodesRequest::getHostNamePrefix()const
{
return hostNamePrefix_;
}
void ApplyNodesRequest::setHostNamePrefix(const std::string& hostNamePrefix)
{
hostNamePrefix_ = hostNamePrefix;
setParameter("HostNamePrefix", hostNamePrefix);
}
float ApplyNodesRequest::getComputeSpotPriceLimit()const
{
return computeSpotPriceLimit_;
}
void ApplyNodesRequest::setComputeSpotPriceLimit(float computeSpotPriceLimit)
{
computeSpotPriceLimit_ = computeSpotPriceLimit;
setParameter("ComputeSpotPriceLimit", std::to_string(computeSpotPriceLimit));
}
std::string ApplyNodesRequest::getClusterId()const
{
return clusterId_;
}
void ApplyNodesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string ApplyNodesRequest::getComputeSpotStrategy()const
{
return computeSpotStrategy_;
}
void ApplyNodesRequest::setComputeSpotStrategy(const std::string& computeSpotStrategy)
{
computeSpotStrategy_ = computeSpotStrategy;
setParameter("ComputeSpotStrategy", computeSpotStrategy);
}
std::string ApplyNodesRequest::getHostNameSuffix()const
{
return hostNameSuffix_;
}
void ApplyNodesRequest::setHostNameSuffix(const std::string& hostNameSuffix)
{
hostNameSuffix_ = hostNameSuffix;
setParameter("HostNameSuffix", hostNameSuffix);
}
std::string ApplyNodesRequest::getPriorityStrategy()const
{
return priorityStrategy_;
}
void ApplyNodesRequest::setPriorityStrategy(const std::string& priorityStrategy)
{
priorityStrategy_ = priorityStrategy;
setParameter("PriorityStrategy", priorityStrategy);
}
std::string ApplyNodesRequest::getInstanceFamilyLevel()const
{
return instanceFamilyLevel_;
}
void ApplyNodesRequest::setInstanceFamilyLevel(const std::string& instanceFamilyLevel)
{
instanceFamilyLevel_ = instanceFamilyLevel;
setParameter("InstanceFamilyLevel", instanceFamilyLevel);
}
int ApplyNodesRequest::getRound()const
{
return round_;
}
void ApplyNodesRequest::setRound(int round)
{
round_ = round;
setParameter("Round", std::to_string(round));
}
std::string ApplyNodesRequest::getInternetChargeType()const
{
return internetChargeType_;
}
void ApplyNodesRequest::setInternetChargeType(const std::string& internetChargeType)
{
internetChargeType_ = internetChargeType;
setParameter("InternetChargeType", internetChargeType);
}
int ApplyNodesRequest::getInterval()const
{
return interval_;
}
void ApplyNodesRequest::setInterval(int interval)
{
interval_ = interval;
setParameter("Interval", std::to_string(interval));
}
std::vector<ApplyNodesRequest::InstanceTypeModel> ApplyNodesRequest::getInstanceTypeModel()const
{
return instanceTypeModel_;
}
void ApplyNodesRequest::setInstanceTypeModel(const std::vector<InstanceTypeModel>& instanceTypeModel)
{
instanceTypeModel_ = instanceTypeModel;
for(int dep1 = 0; dep1!= instanceTypeModel.size(); dep1++) {
auto instanceTypeModelObj = instanceTypeModel.at(dep1);
std::string instanceTypeModelObjStr = "InstanceTypeModel." + std::to_string(dep1 + 1);
setParameter(instanceTypeModelObjStr + ".MaxPrice", std::to_string(instanceTypeModelObj.maxPrice));
setParameter(instanceTypeModelObjStr + ".TargetImageId", instanceTypeModelObj.targetImageId);
setParameter(instanceTypeModelObjStr + ".InstanceType", instanceTypeModelObj.instanceType);
}
}
int ApplyNodesRequest::getInternetMaxBandWidthIn()const
{
return internetMaxBandWidthIn_;
}
void ApplyNodesRequest::setInternetMaxBandWidthIn(int internetMaxBandWidthIn)
{
internetMaxBandWidthIn_ = internetMaxBandWidthIn;
setParameter("InternetMaxBandWidthIn", std::to_string(internetMaxBandWidthIn));
}
int ApplyNodesRequest::getTargetCapacity()const
{
return targetCapacity_;
}
void ApplyNodesRequest::setTargetCapacity(int targetCapacity)
{
targetCapacity_ = targetCapacity;
setParameter("TargetCapacity", std::to_string(targetCapacity));
}
bool ApplyNodesRequest::getStrictSatisfiedTargetCapacity()const
{
return strictSatisfiedTargetCapacity_;
}
void ApplyNodesRequest::setStrictSatisfiedTargetCapacity(bool strictSatisfiedTargetCapacity)
{
strictSatisfiedTargetCapacity_ = strictSatisfiedTargetCapacity;
setParameter("StrictSatisfiedTargetCapacity", strictSatisfiedTargetCapacity ? "true" : "false");
}

View File

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

View File

@@ -1,637 +1,328 @@
/*
* 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/CreateClusterRequest.h>
using AlibabaCloud::EHPC::Model::CreateClusterRequest;
CreateClusterRequest::CreateClusterRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "CreateCluster")
{
setMethod(HttpRequest::Method::Get);
}
CreateClusterRequest::~CreateClusterRequest()
{}
std::vector<CreateClusterRequest::AdditionalVolumes> CreateClusterRequest::getAdditionalVolumes()const
{
return additionalVolumes_;
}
void CreateClusterRequest::setAdditionalVolumes(const std::vector<AdditionalVolumes>& additionalVolumes)
{
additionalVolumes_ = additionalVolumes;
for(int dep1 = 0; dep1!= additionalVolumes.size(); dep1++) {
auto additionalVolumesObj = additionalVolumes.at(dep1);
std::string additionalVolumesObjStr = "AdditionalVolumes." + std::to_string(dep1 + 1);
setParameter(additionalVolumesObjStr + ".VolumeType", additionalVolumesObj.volumeType);
setParameter(additionalVolumesObjStr + ".VolumeProtocol", additionalVolumesObj.volumeProtocol);
setParameter(additionalVolumesObjStr + ".LocalDirectory", additionalVolumesObj.localDirectory);
setParameter(additionalVolumesObjStr + ".RemoteDirectory", additionalVolumesObj.remoteDirectory);
for(int dep2 = 0; dep2!= additionalVolumesObj.roles.size(); dep2++) {
auto rolesObj = additionalVolumesObj.roles.at(dep2);
std::string rolesObjStr = additionalVolumesObjStr + "Roles." + std::to_string(dep2 + 1);
setParameter(rolesObjStr + ".Name", rolesObj.name);
}
setParameter(additionalVolumesObjStr + ".VolumeId", additionalVolumesObj.volumeId);
setParameter(additionalVolumesObjStr + ".VolumeMountpoint", additionalVolumesObj.volumeMountpoint);
setParameter(additionalVolumesObjStr + ".Location", additionalVolumesObj.location);
setParameter(additionalVolumesObjStr + ".JobQueue", additionalVolumesObj.jobQueue);
}
}
std::string CreateClusterRequest::getEcsOrderManagerInstanceType()const
{
return ecsOrderManagerInstanceType_;
}
void CreateClusterRequest::setEcsOrderManagerInstanceType(const std::string& ecsOrderManagerInstanceType)
{
ecsOrderManagerInstanceType_ = ecsOrderManagerInstanceType;
setParameter("EcsOrderManagerInstanceType", ecsOrderManagerInstanceType);
}
std::string CreateClusterRequest::getKeyPairName()const
{
return keyPairName_;
}
void CreateClusterRequest::setKeyPairName(const std::string& keyPairName)
{
keyPairName_ = keyPairName;
setParameter("KeyPairName", keyPairName);
}
std::string CreateClusterRequest::getSecurityGroupName()const
{
return securityGroupName_;
}
void CreateClusterRequest::setSecurityGroupName(const std::string& securityGroupName)
{
securityGroupName_ = securityGroupName;
setParameter("SecurityGroupName", securityGroupName);
}
std::string CreateClusterRequest::getImageOwnerAlias()const
{
return imageOwnerAlias_;
}
void CreateClusterRequest::setImageOwnerAlias(const std::string& imageOwnerAlias)
{
imageOwnerAlias_ = imageOwnerAlias;
setParameter("ImageOwnerAlias", imageOwnerAlias);
}
std::string CreateClusterRequest::getDeployMode()const
{
return deployMode_;
}
void CreateClusterRequest::setDeployMode(const std::string& deployMode)
{
deployMode_ = deployMode;
setParameter("DeployMode", deployMode);
}
int CreateClusterRequest::getEcsOrderManagerCount()const
{
return ecsOrderManagerCount_;
}
void CreateClusterRequest::setEcsOrderManagerCount(int ecsOrderManagerCount)
{
ecsOrderManagerCount_ = ecsOrderManagerCount;
setParameter("EcsOrderManagerCount", std::to_string(ecsOrderManagerCount));
}
std::string CreateClusterRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateClusterRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateClusterRequest::getPassword()const
{
return password_;
}
void CreateClusterRequest::setPassword(const std::string& password)
{
password_ = password;
setParameter("Password", password);
}
int CreateClusterRequest::getEcsOrderLoginCount()const
{
return ecsOrderLoginCount_;
}
*/
void CreateClusterRequest::setEcsOrderLoginCount(int ecsOrderLoginCount)
{
ecsOrderLoginCount_ = ecsOrderLoginCount;
setParameter("EcsOrderLoginCount", std::to_string(ecsOrderLoginCount));
}
bool CreateClusterRequest::getWithoutElasticIp()const
{
return withoutElasticIp_;
}
void CreateClusterRequest::setWithoutElasticIp(bool withoutElasticIp)
{
withoutElasticIp_ = withoutElasticIp;
setParameter("WithoutElasticIp", withoutElasticIp ? "true" : "false");
}
#include <alibabacloud/ehpc/model/CreateClusterRequest.h>
std::string CreateClusterRequest::getRemoteVisEnable()const
{
return remoteVisEnable_;
}
void CreateClusterRequest::setRemoteVisEnable(const std::string& remoteVisEnable)
{
remoteVisEnable_ = remoteVisEnable;
setParameter("RemoteVisEnable", remoteVisEnable);
}
int CreateClusterRequest::getSystemDiskSize()const
{
return systemDiskSize_;
}
using AlibabaCloud::EHPC::Model::CreateClusterRequest;
void CreateClusterRequest::setSystemDiskSize(int systemDiskSize)
{
systemDiskSize_ = systemDiskSize;
setParameter("SystemDiskSize", std::to_string(systemDiskSize));
CreateClusterRequest::CreateClusterRequest()
: RpcServiceRequest("ehpc", "2017-07-14", "CreateCluster") {
setMethod(HttpRequest::Method::Get);
}
std::string CreateClusterRequest::getComputeSpotPriceLimit()const
{
return computeSpotPriceLimit_;
}
void CreateClusterRequest::setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit)
{
computeSpotPriceLimit_ = computeSpotPriceLimit;
setParameter("ComputeSpotPriceLimit", computeSpotPriceLimit);
}
int CreateClusterRequest::getAutoRenewPeriod()const
{
return autoRenewPeriod_;
}
void CreateClusterRequest::setAutoRenewPeriod(int autoRenewPeriod)
{
autoRenewPeriod_ = autoRenewPeriod;
setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
}
int CreateClusterRequest::getPeriod()const
{
return period_;
}
void CreateClusterRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
}
std::string CreateClusterRequest::getRemoteDirectory()const
{
return remoteDirectory_;
}
void CreateClusterRequest::setRemoteDirectory(const std::string& remoteDirectory)
{
remoteDirectory_ = remoteDirectory;
setParameter("RemoteDirectory", remoteDirectory);
}
int CreateClusterRequest::getEcsOrderComputeCount()const
{
return ecsOrderComputeCount_;
}
void CreateClusterRequest::setEcsOrderComputeCount(int ecsOrderComputeCount)
{
ecsOrderComputeCount_ = ecsOrderComputeCount;
setParameter("EcsOrderComputeCount", std::to_string(ecsOrderComputeCount));
}
std::string CreateClusterRequest::getComputeSpotStrategy()const
{
return computeSpotStrategy_;
}
void CreateClusterRequest::setComputeSpotStrategy(const std::string& computeSpotStrategy)
{
computeSpotStrategy_ = computeSpotStrategy;
setParameter("ComputeSpotStrategy", computeSpotStrategy);
}
std::vector<CreateClusterRequest::PostInstallScript> CreateClusterRequest::getPostInstallScript()const
{
return postInstallScript_;
}
void CreateClusterRequest::setPostInstallScript(const std::vector<PostInstallScript>& postInstallScript)
{
postInstallScript_ = postInstallScript;
for(int dep1 = 0; dep1!= postInstallScript.size(); dep1++) {
auto postInstallScriptObj = postInstallScript.at(dep1);
std::string postInstallScriptObjStr = "PostInstallScript." + std::to_string(dep1 + 1);
setParameter(postInstallScriptObjStr + ".Args", postInstallScriptObj.args);
setParameter(postInstallScriptObjStr + ".Url", postInstallScriptObj.url);
}
}
CreateClusterRequest::~CreateClusterRequest() {}
std::string CreateClusterRequest::getVSwitchId()const
{
return vSwitchId_;
std::string CreateClusterRequest::getSccClusterId() const {
return sccClusterId_;
}
void CreateClusterRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
void CreateClusterRequest::setSccClusterId(const std::string &sccClusterId) {
sccClusterId_ = sccClusterId;
setParameter(std::string("SccClusterId"), sccClusterId);
}
std::string CreateClusterRequest::getPeriodUnit()const
{
return periodUnit_;
std::string CreateClusterRequest::getImageId() const {
return imageId_;
}
void CreateClusterRequest::setPeriodUnit(const std::string& periodUnit)
{
periodUnit_ = periodUnit;
setParameter("PeriodUnit", periodUnit);
void CreateClusterRequest::setImageId(const std::string &imageId) {
imageId_ = imageId;
setParameter(std::string("ImageId"), imageId);
}
bool CreateClusterRequest::getComputeEnableHt()const
{
return computeEnableHt_;
std::string CreateClusterRequest::getEcsOrderManagerInstanceType() const {
return ecsOrderManagerInstanceType_;
}
void CreateClusterRequest::setComputeEnableHt(bool computeEnableHt)
{
computeEnableHt_ = computeEnableHt;
setParameter("ComputeEnableHt", computeEnableHt ? "true" : "false");
void CreateClusterRequest::setEcsOrderManagerInstanceType(const std::string &ecsOrderManagerInstanceType) {
ecsOrderManagerInstanceType_ = ecsOrderManagerInstanceType;
setParameter(std::string("EcsOrder.Manager.InstanceType"), ecsOrderManagerInstanceType);
}
std::string CreateClusterRequest::getAutoRenew()const
{
return autoRenew_;
std::string CreateClusterRequest::getEhpcVersion() const {
return ehpcVersion_;
}
void CreateClusterRequest::setAutoRenew(const std::string& autoRenew)
{
autoRenew_ = autoRenew;
setParameter("AutoRenew", autoRenew);
void CreateClusterRequest::setEhpcVersion(const std::string &ehpcVersion) {
ehpcVersion_ = ehpcVersion;
setParameter(std::string("EhpcVersion"), ehpcVersion);
}
std::string CreateClusterRequest::getName()const
{
return name_;
std::string CreateClusterRequest::getAccountType() const {
return accountType_;
}
void CreateClusterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
void CreateClusterRequest::setAccountType(const std::string &accountType) {
accountType_ = accountType;
setParameter(std::string("AccountType"), accountType);
}
std::string CreateClusterRequest::getVolumeId()const
{
return volumeId_;
std::string CreateClusterRequest::getSecurityGroupId() const {
return securityGroupId_;
}
void CreateClusterRequest::setVolumeId(const std::string& volumeId)
{
volumeId_ = volumeId;
setParameter("VolumeId", volumeId);
void CreateClusterRequest::setSecurityGroupId(const std::string &securityGroupId) {
securityGroupId_ = securityGroupId;
setParameter(std::string("SecurityGroupId"), securityGroupId);
}
std::string CreateClusterRequest::getZoneId()const
{
return zoneId_;
std::string CreateClusterRequest::getDescription() const {
return description_;
}
void CreateClusterRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
void CreateClusterRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string CreateClusterRequest::getSccClusterId()const
{
return sccClusterId_;
std::string CreateClusterRequest::getKeyPairName() const {
return keyPairName_;
}
void CreateClusterRequest::setSccClusterId(const std::string& sccClusterId)
{
sccClusterId_ = sccClusterId;
setParameter("SccClusterId", sccClusterId);
void CreateClusterRequest::setKeyPairName(const std::string &keyPairName) {
keyPairName_ = keyPairName;
setParameter(std::string("KeyPairName"), keyPairName);
}
std::string CreateClusterRequest::getImageId()const
{
return imageId_;
std::string CreateClusterRequest::getSecurityGroupName() const {
return securityGroupName_;
}
void CreateClusterRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
void CreateClusterRequest::setSecurityGroupName(const std::string &securityGroupName) {
securityGroupName_ = securityGroupName;
setParameter(std::string("SecurityGroupName"), securityGroupName);
}
std::string CreateClusterRequest::getSystemDiskLevel()const
{
return systemDiskLevel_;
std::string CreateClusterRequest::getEcsOrderComputeInstanceType() const {
return ecsOrderComputeInstanceType_;
}
void CreateClusterRequest::setSystemDiskLevel(const std::string& systemDiskLevel)
{
systemDiskLevel_ = systemDiskLevel;
setParameter("SystemDiskLevel", systemDiskLevel);
void CreateClusterRequest::setEcsOrderComputeInstanceType(const std::string &ecsOrderComputeInstanceType) {
ecsOrderComputeInstanceType_ = ecsOrderComputeInstanceType;
setParameter(std::string("EcsOrder.Compute.InstanceType"), ecsOrderComputeInstanceType);
}
std::string CreateClusterRequest::getClientToken()const
{
return clientToken_;
std::string CreateClusterRequest::getAccessKeyId() const {
return accessKeyId_;
}
void CreateClusterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
void CreateClusterRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string CreateClusterRequest::getEhpcVersion()const
{
return ehpcVersion_;
std::string CreateClusterRequest::getImageOwnerAlias() const {
return imageOwnerAlias_;
}
void CreateClusterRequest::setEhpcVersion(const std::string& ehpcVersion)
{
ehpcVersion_ = ehpcVersion;
setParameter("EhpcVersion", ehpcVersion);
void CreateClusterRequest::setImageOwnerAlias(const std::string &imageOwnerAlias) {
imageOwnerAlias_ = imageOwnerAlias;
setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias);
}
std::string CreateClusterRequest::getAccountType()const
{
return accountType_;
std::string CreateClusterRequest::getVolumeType() const {
return volumeType_;
}
void CreateClusterRequest::setAccountType(const std::string& accountType)
{
accountType_ = accountType;
setParameter("AccountType", accountType);
void CreateClusterRequest::setVolumeType(const std::string &volumeType) {
volumeType_ = volumeType;
setParameter(std::string("VolumeType"), volumeType);
}
std::string CreateClusterRequest::getSecurityGroupId()const
{
return securityGroupId_;
int CreateClusterRequest::getEcsOrderManagerCount() const {
return ecsOrderManagerCount_;
}
void CreateClusterRequest::setSecurityGroupId(const std::string& securityGroupId)
{
securityGroupId_ = securityGroupId;
setParameter("SecurityGroupId", securityGroupId);
void CreateClusterRequest::setEcsOrderManagerCount(int ecsOrderManagerCount) {
ecsOrderManagerCount_ = ecsOrderManagerCount;
setParameter(std::string("EcsOrder.Manager.Count"), std::to_string(ecsOrderManagerCount));
}
std::string CreateClusterRequest::getDescription()const
{
return description_;
std::string CreateClusterRequest::getPassword() const {
return password_;
}
void CreateClusterRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
void CreateClusterRequest::setPassword(const std::string &password) {
password_ = password;
setParameter(std::string("Password"), password);
}
std::string CreateClusterRequest::getEcsOrderComputeInstanceType()const
{
return ecsOrderComputeInstanceType_;
int CreateClusterRequest::getEcsOrderLoginCount() const {
return ecsOrderLoginCount_;
}
void CreateClusterRequest::setEcsOrderComputeInstanceType(const std::string& ecsOrderComputeInstanceType)
{
ecsOrderComputeInstanceType_ = ecsOrderComputeInstanceType;
setParameter("EcsOrderComputeInstanceType", ecsOrderComputeInstanceType);
void CreateClusterRequest::setEcsOrderLoginCount(int ecsOrderLoginCount) {
ecsOrderLoginCount_ = ecsOrderLoginCount;
setParameter(std::string("EcsOrder.Login.Count"), std::to_string(ecsOrderLoginCount));
}
std::string CreateClusterRequest::getJobQueue()const
{
return jobQueue_;
std::string CreateClusterRequest::getComputeSpotPriceLimit() const {
return computeSpotPriceLimit_;
}
void CreateClusterRequest::setJobQueue(const std::string& jobQueue)
{
jobQueue_ = jobQueue;
setParameter("JobQueue", jobQueue);
void CreateClusterRequest::setComputeSpotPriceLimit(const std::string &computeSpotPriceLimit) {
computeSpotPriceLimit_ = computeSpotPriceLimit;
setParameter(std::string("ComputeSpotPriceLimit"), computeSpotPriceLimit);
}
std::string CreateClusterRequest::getAccessKeyId()const
{
return accessKeyId_;
std::string CreateClusterRequest::getVolumeProtocol() const {
return volumeProtocol_;
}
void CreateClusterRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
void CreateClusterRequest::setVolumeProtocol(const std::string &volumeProtocol) {
volumeProtocol_ = volumeProtocol;
setParameter(std::string("VolumeProtocol"), volumeProtocol);
}
std::string CreateClusterRequest::getVolumeType()const
{
return volumeType_;
std::string CreateClusterRequest::getOsTag() const {
return osTag_;
}
void CreateClusterRequest::setVolumeType(const std::string& volumeType)
{
volumeType_ = volumeType;
setParameter("VolumeType", volumeType);
void CreateClusterRequest::setOsTag(const std::string &osTag) {
osTag_ = osTag;
setParameter(std::string("OsTag"), osTag);
}
std::string CreateClusterRequest::getSystemDiskType()const
{
return systemDiskType_;
std::string CreateClusterRequest::getRemoteDirectory() const {
return remoteDirectory_;
}
void CreateClusterRequest::setSystemDiskType(const std::string& systemDiskType)
{
systemDiskType_ = systemDiskType;
setParameter("SystemDiskType", systemDiskType);
void CreateClusterRequest::setRemoteDirectory(const std::string &remoteDirectory) {
remoteDirectory_ = remoteDirectory;
setParameter(std::string("RemoteDirectory"), remoteDirectory);
}
std::string CreateClusterRequest::getVolumeProtocol()const
{
return volumeProtocol_;
int CreateClusterRequest::getEcsOrderComputeCount() const {
return ecsOrderComputeCount_;
}
void CreateClusterRequest::setVolumeProtocol(const std::string& volumeProtocol)
{
volumeProtocol_ = volumeProtocol;
setParameter("VolumeProtocol", volumeProtocol);
void CreateClusterRequest::setEcsOrderComputeCount(int ecsOrderComputeCount) {
ecsOrderComputeCount_ = ecsOrderComputeCount;
setParameter(std::string("EcsOrder.Compute.Count"), std::to_string(ecsOrderComputeCount));
}
std::string CreateClusterRequest::getClientVersion()const
{
return clientVersion_;
std::string CreateClusterRequest::getComputeSpotStrategy() const {
return computeSpotStrategy_;
}
void CreateClusterRequest::setClientVersion(const std::string& clientVersion)
{
clientVersion_ = clientVersion;
setParameter("ClientVersion", clientVersion);
void CreateClusterRequest::setComputeSpotStrategy(const std::string &computeSpotStrategy) {
computeSpotStrategy_ = computeSpotStrategy;
setParameter(std::string("ComputeSpotStrategy"), computeSpotStrategy);
}
std::string CreateClusterRequest::getOsTag()const
{
return osTag_;
std::string CreateClusterRequest::getVSwitchId() const {
return vSwitchId_;
}
void CreateClusterRequest::setOsTag(const std::string& osTag)
{
osTag_ = osTag;
setParameter("OsTag", osTag);
void CreateClusterRequest::setVSwitchId(const std::string &vSwitchId) {
vSwitchId_ = vSwitchId;
setParameter(std::string("VSwitchId"), vSwitchId);
}
std::string CreateClusterRequest::getClusterVersion()const
{
return clusterVersion_;
std::vector<CreateClusterRequest::Application> CreateClusterRequest::getApplication() const {
return application_;
}
void CreateClusterRequest::setClusterVersion(const std::string& clusterVersion)
{
clusterVersion_ = clusterVersion;
setParameter("ClusterVersion", clusterVersion);
void CreateClusterRequest::setApplication(const std::vector<CreateClusterRequest::Application> &application) {
application_ = application;
for(int dep1 = 0; dep1 != application.size(); dep1++) {
auto applicationObj = application.at(dep1);
std::string applicationObjStr = std::string("Application") + "." + std::to_string(dep1 + 1);
setParameter(applicationObjStr + ".Tag", applicationObj.tag);
}
}
bool CreateClusterRequest::getIsComputeEss()const
{
return isComputeEss_;
std::string CreateClusterRequest::getEcsChargeType() const {
return ecsChargeType_;
}
void CreateClusterRequest::setIsComputeEss(bool isComputeEss)
{
isComputeEss_ = isComputeEss;
setParameter("IsComputeEss", isComputeEss ? "true" : "false");
void CreateClusterRequest::setEcsChargeType(const std::string &ecsChargeType) {
ecsChargeType_ = ecsChargeType;
setParameter(std::string("EcsChargeType"), ecsChargeType);
}
std::vector<CreateClusterRequest::Application> CreateClusterRequest::getApplication()const
{
return application_;
std::string CreateClusterRequest::getVpcId() const {
return vpcId_;
}
void CreateClusterRequest::setApplication(const std::vector<Application>& application)
{
application_ = application;
for(int dep1 = 0; dep1!= application.size(); dep1++) {
auto applicationObj = application.at(dep1);
std::string applicationObjStr = "Application." + std::to_string(dep1 + 1);
setParameter(applicationObjStr + ".Tag", applicationObj.tag);
}
void CreateClusterRequest::setVpcId(const std::string &vpcId) {
vpcId_ = vpcId;
setParameter(std::string("VpcId"), vpcId);
}
std::string CreateClusterRequest::getEcsChargeType()const
{
return ecsChargeType_;
bool CreateClusterRequest::getHaEnable() const {
return haEnable_;
}
void CreateClusterRequest::setEcsChargeType(const std::string& ecsChargeType)
{
ecsChargeType_ = ecsChargeType;
setParameter("EcsChargeType", ecsChargeType);
void CreateClusterRequest::setHaEnable(bool haEnable) {
haEnable_ = haEnable;
setParameter(std::string("HaEnable"), haEnable ? "true" : "false");
}
std::string CreateClusterRequest::getInputFileUrl()const
{
return inputFileUrl_;
std::string CreateClusterRequest::getName() const {
return name_;
}
void CreateClusterRequest::setInputFileUrl(const std::string& inputFileUrl)
{
inputFileUrl_ = inputFileUrl;
setParameter("InputFileUrl", inputFileUrl);
void CreateClusterRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}
std::string CreateClusterRequest::getVpcId()const
{
return vpcId_;
std::string CreateClusterRequest::getSchedulerType() const {
return schedulerType_;
}
void CreateClusterRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
void CreateClusterRequest::setSchedulerType(const std::string &schedulerType) {
schedulerType_ = schedulerType;
setParameter(std::string("SchedulerType"), schedulerType);
}
bool CreateClusterRequest::getHaEnable()const
{
return haEnable_;
std::string CreateClusterRequest::getVolumeId() const {
return volumeId_;
}
void CreateClusterRequest::setHaEnable(bool haEnable)
{
haEnable_ = haEnable;
setParameter("HaEnable", haEnable ? "true" : "false");
void CreateClusterRequest::setVolumeId(const std::string &volumeId) {
volumeId_ = volumeId;
setParameter(std::string("VolumeId"), volumeId);
}
std::string CreateClusterRequest::getSchedulerType()const
{
return schedulerType_;
std::string CreateClusterRequest::getVolumeMountpoint() const {
return volumeMountpoint_;
}
void CreateClusterRequest::setSchedulerType(const std::string& schedulerType)
{
schedulerType_ = schedulerType;
setParameter("SchedulerType", schedulerType);
void CreateClusterRequest::setVolumeMountpoint(const std::string &volumeMountpoint) {
volumeMountpoint_ = volumeMountpoint;
setParameter(std::string("VolumeMountpoint"), volumeMountpoint);
}
std::string CreateClusterRequest::getVolumeMountpoint()const
{
return volumeMountpoint_;
std::string CreateClusterRequest::getEcsOrderLoginInstanceType() const {
return ecsOrderLoginInstanceType_;
}
void CreateClusterRequest::setVolumeMountpoint(const std::string& volumeMountpoint)
{
volumeMountpoint_ = volumeMountpoint;
setParameter("VolumeMountpoint", volumeMountpoint);
void CreateClusterRequest::setEcsOrderLoginInstanceType(const std::string &ecsOrderLoginInstanceType) {
ecsOrderLoginInstanceType_ = ecsOrderLoginInstanceType;
setParameter(std::string("EcsOrder.Login.InstanceType"), ecsOrderLoginInstanceType);
}
std::string CreateClusterRequest::getEcsOrderLoginInstanceType()const
{
return ecsOrderLoginInstanceType_;
std::string CreateClusterRequest::getZoneId() const {
return zoneId_;
}
void CreateClusterRequest::setEcsOrderLoginInstanceType(const std::string& ecsOrderLoginInstanceType)
{
ecsOrderLoginInstanceType_ = ecsOrderLoginInstanceType;
setParameter("EcsOrderLoginInstanceType", ecsOrderLoginInstanceType);
void CreateClusterRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setParameter(std::string("ZoneId"), zoneId);
}

View File

@@ -41,16 +41,9 @@ void CreateClusterResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["ClusterId"].isNull())
clusterId_ = value["ClusterId"].asString();
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
}
std::string CreateClusterResult::getTaskId()const
{
return taskId_;
}
std::string CreateClusterResult::getClusterId()const
{
return clusterId_;

View File

@@ -1,84 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/CreateGWSClusterRequest.h>
using AlibabaCloud::EHPC::Model::CreateGWSClusterRequest;
CreateGWSClusterRequest::CreateGWSClusterRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "CreateGWSCluster")
{
setMethod(HttpRequest::Method::Get);
}
CreateGWSClusterRequest::~CreateGWSClusterRequest()
{}
std::string CreateGWSClusterRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateGWSClusterRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateGWSClusterRequest::getClusterType()const
{
return clusterType_;
}
void CreateGWSClusterRequest::setClusterType(const std::string& clusterType)
{
clusterType_ = clusterType;
setParameter("ClusterType", clusterType);
}
std::string CreateGWSClusterRequest::getVSwitchId()const
{
return vSwitchId_;
}
void CreateGWSClusterRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
}
std::string CreateGWSClusterRequest::getVpcId()const
{
return vpcId_;
}
void CreateGWSClusterRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
}
std::string CreateGWSClusterRequest::getName()const
{
return name_;
}
void CreateGWSClusterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

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

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/CreateGWSImageRequest.h>
using AlibabaCloud::EHPC::Model::CreateGWSImageRequest;
CreateGWSImageRequest::CreateGWSImageRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "CreateGWSImage")
{
setMethod(HttpRequest::Method::Get);
}
CreateGWSImageRequest::~CreateGWSImageRequest()
{}
std::string CreateGWSImageRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateGWSImageRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateGWSImageRequest::getInstanceId()const
{
return instanceId_;
}
void CreateGWSImageRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string CreateGWSImageRequest::getName()const
{
return name_;
}
void CreateGWSImageRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

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

View File

@@ -1,227 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/CreateGWSInstanceRequest.h>
using AlibabaCloud::EHPC::Model::CreateGWSInstanceRequest;
CreateGWSInstanceRequest::CreateGWSInstanceRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "CreateGWSInstance")
{
setMethod(HttpRequest::Method::Get);
}
CreateGWSInstanceRequest::~CreateGWSInstanceRequest()
{}
std::string CreateGWSInstanceRequest::getImageId()const
{
return imageId_;
}
void CreateGWSInstanceRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
}
bool CreateGWSInstanceRequest::getAllocatePublicAddress()const
{
return allocatePublicAddress_;
}
void CreateGWSInstanceRequest::setAllocatePublicAddress(bool allocatePublicAddress)
{
allocatePublicAddress_ = allocatePublicAddress;
setParameter("AllocatePublicAddress", allocatePublicAddress ? "true" : "false");
}
std::string CreateGWSInstanceRequest::getAppList()const
{
return appList_;
}
void CreateGWSInstanceRequest::setAppList(const std::string& appList)
{
appList_ = appList;
setParameter("AppList", appList);
}
int CreateGWSInstanceRequest::getInternetMaxBandwidthOut()const
{
return internetMaxBandwidthOut_;
}
void CreateGWSInstanceRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut)
{
internetMaxBandwidthOut_ = internetMaxBandwidthOut;
setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut));
}
std::string CreateGWSInstanceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateGWSInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateGWSInstanceRequest::getSystemDiskCategory()const
{
return systemDiskCategory_;
}
void CreateGWSInstanceRequest::setSystemDiskCategory(const std::string& systemDiskCategory)
{
systemDiskCategory_ = systemDiskCategory;
setParameter("SystemDiskCategory", systemDiskCategory);
}
int CreateGWSInstanceRequest::getSystemDiskSize()const
{
return systemDiskSize_;
}
void CreateGWSInstanceRequest::setSystemDiskSize(int systemDiskSize)
{
systemDiskSize_ = systemDiskSize;
setParameter("SystemDiskSize", std::to_string(systemDiskSize));
}
std::string CreateGWSInstanceRequest::getInstanceType()const
{
return instanceType_;
}
void CreateGWSInstanceRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setParameter("InstanceType", instanceType);
}
std::string CreateGWSInstanceRequest::getInstanceChargeType()const
{
return instanceChargeType_;
}
void CreateGWSInstanceRequest::setInstanceChargeType(const std::string& instanceChargeType)
{
instanceChargeType_ = instanceChargeType;
setParameter("InstanceChargeType", instanceChargeType);
}
std::string CreateGWSInstanceRequest::getPeriod()const
{
return period_;
}
void CreateGWSInstanceRequest::setPeriod(const std::string& period)
{
period_ = period;
setParameter("Period", period);
}
std::string CreateGWSInstanceRequest::getClusterId()const
{
return clusterId_;
}
void CreateGWSInstanceRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string CreateGWSInstanceRequest::getWorkMode()const
{
return workMode_;
}
void CreateGWSInstanceRequest::setWorkMode(const std::string& workMode)
{
workMode_ = workMode;
setParameter("WorkMode", workMode);
}
std::string CreateGWSInstanceRequest::getVSwitchId()const
{
return vSwitchId_;
}
void CreateGWSInstanceRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
}
std::string CreateGWSInstanceRequest::getPeriodUnit()const
{
return periodUnit_;
}
void CreateGWSInstanceRequest::setPeriodUnit(const std::string& periodUnit)
{
periodUnit_ = periodUnit;
setParameter("PeriodUnit", periodUnit);
}
bool CreateGWSInstanceRequest::getAutoRenew()const
{
return autoRenew_;
}
void CreateGWSInstanceRequest::setAutoRenew(bool autoRenew)
{
autoRenew_ = autoRenew;
setParameter("AutoRenew", autoRenew ? "true" : "false");
}
std::string CreateGWSInstanceRequest::getInternetChargeType()const
{
return internetChargeType_;
}
void CreateGWSInstanceRequest::setInternetChargeType(const std::string& internetChargeType)
{
internetChargeType_ = internetChargeType;
setParameter("InternetChargeType", internetChargeType);
}
std::string CreateGWSInstanceRequest::getName()const
{
return name_;
}
void CreateGWSInstanceRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
int CreateGWSInstanceRequest::getInternetMaxBandwidthIn()const
{
return internetMaxBandwidthIn_;
}
void CreateGWSInstanceRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn)
{
internetMaxBandwidthIn_ = internetMaxBandwidthIn;
setParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn));
}

View File

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

View File

@@ -1,453 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/CreateHybridClusterRequest.h>
using AlibabaCloud::EHPC::Model::CreateHybridClusterRequest;
CreateHybridClusterRequest::CreateHybridClusterRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "CreateHybridCluster")
{
setMethod(HttpRequest::Method::Get);
}
CreateHybridClusterRequest::~CreateHybridClusterRequest()
{}
std::string CreateHybridClusterRequest::getKeyPairName()const
{
return keyPairName_;
}
void CreateHybridClusterRequest::setKeyPairName(const std::string& keyPairName)
{
keyPairName_ = keyPairName;
setParameter("KeyPairName", keyPairName);
}
bool CreateHybridClusterRequest::getMultiOs()const
{
return multiOs_;
}
void CreateHybridClusterRequest::setMultiOs(bool multiOs)
{
multiOs_ = multiOs;
setParameter("MultiOs", multiOs ? "true" : "false");
}
std::string CreateHybridClusterRequest::getSecurityGroupName()const
{
return securityGroupName_;
}
void CreateHybridClusterRequest::setSecurityGroupName(const std::string& securityGroupName)
{
securityGroupName_ = securityGroupName;
setParameter("SecurityGroupName", securityGroupName);
}
std::string CreateHybridClusterRequest::getOnPremiseVolumeRemotePath()const
{
return onPremiseVolumeRemotePath_;
}
void CreateHybridClusterRequest::setOnPremiseVolumeRemotePath(const std::string& onPremiseVolumeRemotePath)
{
onPremiseVolumeRemotePath_ = onPremiseVolumeRemotePath;
setParameter("OnPremiseVolumeRemotePath", onPremiseVolumeRemotePath);
}
std::string CreateHybridClusterRequest::getImageOwnerAlias()const
{
return imageOwnerAlias_;
}
void CreateHybridClusterRequest::setImageOwnerAlias(const std::string& imageOwnerAlias)
{
imageOwnerAlias_ = imageOwnerAlias;
setParameter("ImageOwnerAlias", imageOwnerAlias);
}
std::string CreateHybridClusterRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateHybridClusterRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateHybridClusterRequest::getPassword()const
{
return password_;
}
void CreateHybridClusterRequest::setPassword(const std::string& password)
{
password_ = password;
setParameter("Password", password);
}
float CreateHybridClusterRequest::getComputeSpotPriceLimit()const
{
return computeSpotPriceLimit_;
}
void CreateHybridClusterRequest::setComputeSpotPriceLimit(float computeSpotPriceLimit)
{
computeSpotPriceLimit_ = computeSpotPriceLimit;
setParameter("ComputeSpotPriceLimit", std::to_string(computeSpotPriceLimit));
}
std::string CreateHybridClusterRequest::getOnPremiseVolumeLocalPath()const
{
return onPremiseVolumeLocalPath_;
}
void CreateHybridClusterRequest::setOnPremiseVolumeLocalPath(const std::string& onPremiseVolumeLocalPath)
{
onPremiseVolumeLocalPath_ = onPremiseVolumeLocalPath;
setParameter("OnPremiseVolumeLocalPath", onPremiseVolumeLocalPath);
}
std::string CreateHybridClusterRequest::getRemoteDirectory()const
{
return remoteDirectory_;
}
void CreateHybridClusterRequest::setRemoteDirectory(const std::string& remoteDirectory)
{
remoteDirectory_ = remoteDirectory;
setParameter("RemoteDirectory", remoteDirectory);
}
std::string CreateHybridClusterRequest::getComputeSpotStrategy()const
{
return computeSpotStrategy_;
}
void CreateHybridClusterRequest::setComputeSpotStrategy(const std::string& computeSpotStrategy)
{
computeSpotStrategy_ = computeSpotStrategy;
setParameter("ComputeSpotStrategy", computeSpotStrategy);
}
std::vector<CreateHybridClusterRequest::PostInstallScript> CreateHybridClusterRequest::getPostInstallScript()const
{
return postInstallScript_;
}
void CreateHybridClusterRequest::setPostInstallScript(const std::vector<PostInstallScript>& postInstallScript)
{
postInstallScript_ = postInstallScript;
for(int dep1 = 0; dep1!= postInstallScript.size(); dep1++) {
auto postInstallScriptObj = postInstallScript.at(dep1);
std::string postInstallScriptObjStr = "PostInstallScript." + std::to_string(dep1 + 1);
setParameter(postInstallScriptObjStr + ".Args", postInstallScriptObj.args);
setParameter(postInstallScriptObjStr + ".Url", postInstallScriptObj.url);
}
}
std::string CreateHybridClusterRequest::getVSwitchId()const
{
return vSwitchId_;
}
void CreateHybridClusterRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
}
std::string CreateHybridClusterRequest::getDomain()const
{
return domain_;
}
void CreateHybridClusterRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string CreateHybridClusterRequest::getName()const
{
return name_;
}
void CreateHybridClusterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateHybridClusterRequest::getVolumeId()const
{
return volumeId_;
}
void CreateHybridClusterRequest::setVolumeId(const std::string& volumeId)
{
volumeId_ = volumeId;
setParameter("VolumeId", volumeId);
}
std::string CreateHybridClusterRequest::getZoneId()const
{
return zoneId_;
}
void CreateHybridClusterRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string CreateHybridClusterRequest::getImageId()const
{
return imageId_;
}
void CreateHybridClusterRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
}
std::string CreateHybridClusterRequest::getClientToken()const
{
return clientToken_;
}
void CreateHybridClusterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateHybridClusterRequest::getEhpcVersion()const
{
return ehpcVersion_;
}
void CreateHybridClusterRequest::setEhpcVersion(const std::string& ehpcVersion)
{
ehpcVersion_ = ehpcVersion;
setParameter("EhpcVersion", ehpcVersion);
}
std::string CreateHybridClusterRequest::getSecurityGroupId()const
{
return securityGroupId_;
}
void CreateHybridClusterRequest::setSecurityGroupId(const std::string& securityGroupId)
{
securityGroupId_ = securityGroupId;
setParameter("SecurityGroupId", securityGroupId);
}
std::string CreateHybridClusterRequest::getDescription()const
{
return description_;
}
void CreateHybridClusterRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateHybridClusterRequest::getEcsOrderComputeInstanceType()const
{
return ecsOrderComputeInstanceType_;
}
void CreateHybridClusterRequest::setEcsOrderComputeInstanceType(const std::string& ecsOrderComputeInstanceType)
{
ecsOrderComputeInstanceType_ = ecsOrderComputeInstanceType;
setParameter("EcsOrderComputeInstanceType", ecsOrderComputeInstanceType);
}
std::string CreateHybridClusterRequest::getJobQueue()const
{
return jobQueue_;
}
void CreateHybridClusterRequest::setJobQueue(const std::string& jobQueue)
{
jobQueue_ = jobQueue;
setParameter("JobQueue", jobQueue);
}
std::string CreateHybridClusterRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateHybridClusterRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateHybridClusterRequest::getVolumeType()const
{
return volumeType_;
}
void CreateHybridClusterRequest::setVolumeType(const std::string& volumeType)
{
volumeType_ = volumeType;
setParameter("VolumeType", volumeType);
}
std::string CreateHybridClusterRequest::getOnPremiseVolumeMountPoint()const
{
return onPremiseVolumeMountPoint_;
}
void CreateHybridClusterRequest::setOnPremiseVolumeMountPoint(const std::string& onPremiseVolumeMountPoint)
{
onPremiseVolumeMountPoint_ = onPremiseVolumeMountPoint;
setParameter("OnPremiseVolumeMountPoint", onPremiseVolumeMountPoint);
}
std::string CreateHybridClusterRequest::getOnPremiseVolumeProtocol()const
{
return onPremiseVolumeProtocol_;
}
void CreateHybridClusterRequest::setOnPremiseVolumeProtocol(const std::string& onPremiseVolumeProtocol)
{
onPremiseVolumeProtocol_ = onPremiseVolumeProtocol;
setParameter("OnPremiseVolumeProtocol", onPremiseVolumeProtocol);
}
std::string CreateHybridClusterRequest::getVolumeProtocol()const
{
return volumeProtocol_;
}
void CreateHybridClusterRequest::setVolumeProtocol(const std::string& volumeProtocol)
{
volumeProtocol_ = volumeProtocol;
setParameter("VolumeProtocol", volumeProtocol);
}
std::string CreateHybridClusterRequest::getClientVersion()const
{
return clientVersion_;
}
void CreateHybridClusterRequest::setClientVersion(const std::string& clientVersion)
{
clientVersion_ = clientVersion;
setParameter("ClientVersion", clientVersion);
}
std::string CreateHybridClusterRequest::getOsTag()const
{
return osTag_;
}
void CreateHybridClusterRequest::setOsTag(const std::string& osTag)
{
osTag_ = osTag;
setParameter("OsTag", osTag);
}
std::vector<CreateHybridClusterRequest::Nodes> CreateHybridClusterRequest::getNodes()const
{
return nodes_;
}
void CreateHybridClusterRequest::setNodes(const std::vector<Nodes>& nodes)
{
nodes_ = nodes;
for(int dep1 = 0; dep1!= nodes.size(); dep1++) {
auto nodesObj = nodes.at(dep1);
std::string nodesObjStr = "Nodes." + std::to_string(dep1 + 1);
setParameter(nodesObjStr + ".IpAddress", nodesObj.ipAddress);
setParameter(nodesObjStr + ".HostName", nodesObj.hostName);
setParameter(nodesObjStr + ".Role", nodesObj.role);
setParameter(nodesObjStr + ".AccountType", nodesObj.accountType);
setParameter(nodesObjStr + ".SchedulerType", nodesObj.schedulerType);
}
}
std::vector<CreateHybridClusterRequest::Application> CreateHybridClusterRequest::getApplication()const
{
return application_;
}
void CreateHybridClusterRequest::setApplication(const std::vector<Application>& application)
{
application_ = application;
for(int dep1 = 0; dep1!= application.size(); dep1++) {
auto applicationObj = application.at(dep1);
std::string applicationObjStr = "Application." + std::to_string(dep1 + 1);
setParameter(applicationObjStr + ".Tag", applicationObj.tag);
}
}
std::string CreateHybridClusterRequest::getVpcId()const
{
return vpcId_;
}
void CreateHybridClusterRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
}
std::string CreateHybridClusterRequest::getVolumeMountpoint()const
{
return volumeMountpoint_;
}
void CreateHybridClusterRequest::setVolumeMountpoint(const std::string& volumeMountpoint)
{
volumeMountpoint_ = volumeMountpoint;
setParameter("VolumeMountpoint", volumeMountpoint);
}
bool CreateHybridClusterRequest::getSchedulerPreInstall()const
{
return schedulerPreInstall_;
}
void CreateHybridClusterRequest::setSchedulerPreInstall(bool schedulerPreInstall)
{
schedulerPreInstall_ = schedulerPreInstall;
setParameter("SchedulerPreInstall", schedulerPreInstall ? "true" : "false");
}
std::string CreateHybridClusterRequest::getLocation()const
{
return location_;
}
void CreateHybridClusterRequest::setLocation(const std::string& location)
{
location_ = location;
setParameter("Location", location);
}

View File

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

View File

@@ -1,95 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/CreateJobFileRequest.h>
using AlibabaCloud::EHPC::Model::CreateJobFileRequest;
CreateJobFileRequest::CreateJobFileRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "CreateJobFile")
{
setMethod(HttpRequest::Method::Get);
}
CreateJobFileRequest::~CreateJobFileRequest()
{}
std::string CreateJobFileRequest::getTargetFile()const
{
return targetFile_;
}
void CreateJobFileRequest::setTargetFile(const std::string& targetFile)
{
targetFile_ = targetFile;
setParameter("TargetFile", targetFile);
}
std::string CreateJobFileRequest::getRunasUserPassword()const
{
return runasUserPassword_;
}
void CreateJobFileRequest::setRunasUserPassword(const std::string& runasUserPassword)
{
runasUserPassword_ = runasUserPassword;
setParameter("RunasUserPassword", runasUserPassword);
}
std::string CreateJobFileRequest::getRunasUser()const
{
return runasUser_;
}
void CreateJobFileRequest::setRunasUser(const std::string& runasUser)
{
runasUser_ = runasUser;
setParameter("RunasUser", runasUser);
}
std::string CreateJobFileRequest::getClusterId()const
{
return clusterId_;
}
void CreateJobFileRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string CreateJobFileRequest::getContent()const
{
return content_;
}
void CreateJobFileRequest::setContent(const std::string& content)
{
content_ = content;
setParameter("Content", content);
}
std::string CreateJobFileRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateJobFileRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -1,44 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/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());
}

View File

@@ -1,227 +1,135 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/CreateJobTemplateRequest.h>
using AlibabaCloud::EHPC::Model::CreateJobTemplateRequest;
CreateJobTemplateRequest::CreateJobTemplateRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "CreateJobTemplate")
{
setMethod(HttpRequest::Method::Get);
}
CreateJobTemplateRequest::~CreateJobTemplateRequest()
{}
std::string CreateJobTemplateRequest::getStderrRedirectPath()const
{
return stderrRedirectPath_;
*/
#include <alibabacloud/ehpc/model/CreateJobTemplateRequest.h>
using AlibabaCloud::EHPC::Model::CreateJobTemplateRequest;
CreateJobTemplateRequest::CreateJobTemplateRequest()
: RpcServiceRequest("ehpc", "2017-07-14", "CreateJobTemplate") {
setMethod(HttpRequest::Method::Get);
}
void CreateJobTemplateRequest::setStderrRedirectPath(const std::string& stderrRedirectPath)
{
stderrRedirectPath_ = stderrRedirectPath;
setParameter("StderrRedirectPath", stderrRedirectPath);
CreateJobTemplateRequest::~CreateJobTemplateRequest() {}
std::string CreateJobTemplateRequest::getStderrRedirectPath() const {
return stderrRedirectPath_;
}
std::string CreateJobTemplateRequest::getClockTime()const
{
return clockTime_;
void CreateJobTemplateRequest::setStderrRedirectPath(const std::string &stderrRedirectPath) {
stderrRedirectPath_ = stderrRedirectPath;
setParameter(std::string("StderrRedirectPath"), stderrRedirectPath);
}
void CreateJobTemplateRequest::setClockTime(const std::string& clockTime)
{
clockTime_ = clockTime;
setParameter("ClockTime", clockTime);
std::string CreateJobTemplateRequest::getCommandLine() const {
return commandLine_;
}
std::string CreateJobTemplateRequest::getCommandLine()const
{
return commandLine_;
void CreateJobTemplateRequest::setCommandLine(const std::string &commandLine) {
commandLine_ = commandLine;
setParameter(std::string("CommandLine"), commandLine);
}
void CreateJobTemplateRequest::setCommandLine(const std::string& commandLine)
{
commandLine_ = commandLine;
setParameter("CommandLine", commandLine);
std::string CreateJobTemplateRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string CreateJobTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
void CreateJobTemplateRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void CreateJobTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string CreateJobTemplateRequest::getArrayRequest() const {
return arrayRequest_;
}
std::string CreateJobTemplateRequest::getArrayRequest()const
{
return arrayRequest_;
void CreateJobTemplateRequest::setArrayRequest(const std::string &arrayRequest) {
arrayRequest_ = arrayRequest;
setParameter(std::string("ArrayRequest"), arrayRequest);
}
void CreateJobTemplateRequest::setArrayRequest(const std::string& arrayRequest)
{
arrayRequest_ = arrayRequest;
setParameter("ArrayRequest", arrayRequest);
std::string CreateJobTemplateRequest::getPackagePath() const {
return packagePath_;
}
std::string CreateJobTemplateRequest::getPackagePath()const
{
return packagePath_;
void CreateJobTemplateRequest::setPackagePath(const std::string &packagePath) {
packagePath_ = packagePath;
setParameter(std::string("PackagePath"), packagePath);
}
void CreateJobTemplateRequest::setPackagePath(const std::string& packagePath)
{
packagePath_ = packagePath;
setParameter("PackagePath", packagePath);
std::string CreateJobTemplateRequest::getRegionId() const {
return regionId_;
}
std::string CreateJobTemplateRequest::getMem()const
{
return mem_;
void CreateJobTemplateRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void CreateJobTemplateRequest::setMem(const std::string& mem)
{
mem_ = mem;
setParameter("Mem", mem);
std::string CreateJobTemplateRequest::getStdoutRedirectPath() const {
return stdoutRedirectPath_;
}
std::string CreateJobTemplateRequest::getStdoutRedirectPath()const
{
return stdoutRedirectPath_;
void CreateJobTemplateRequest::setStdoutRedirectPath(const std::string &stdoutRedirectPath) {
stdoutRedirectPath_ = stdoutRedirectPath;
setParameter(std::string("StdoutRedirectPath"), stdoutRedirectPath);
}
void CreateJobTemplateRequest::setStdoutRedirectPath(const std::string& stdoutRedirectPath)
{
stdoutRedirectPath_ = stdoutRedirectPath;
setParameter("StdoutRedirectPath", stdoutRedirectPath);
std::string CreateJobTemplateRequest::getVariables() const {
return variables_;
}
std::string CreateJobTemplateRequest::getVariables()const
{
return variables_;
void CreateJobTemplateRequest::setVariables(const std::string &variables) {
variables_ = variables;
setParameter(std::string("Variables"), variables);
}
void CreateJobTemplateRequest::setVariables(const std::string& variables)
{
variables_ = variables;
setParameter("Variables", variables);
std::string CreateJobTemplateRequest::getRunasUser() const {
return runasUser_;
}
std::string CreateJobTemplateRequest::getRunasUser()const
{
return runasUser_;
void CreateJobTemplateRequest::setRunasUser(const std::string &runasUser) {
runasUser_ = runasUser;
setParameter(std::string("RunasUser"), runasUser);
}
void CreateJobTemplateRequest::setRunasUser(const std::string& runasUser)
{
runasUser_ = runasUser;
setParameter("RunasUser", runasUser);
bool CreateJobTemplateRequest::getReRunable() const {
return reRunable_;
}
bool CreateJobTemplateRequest::getReRunable()const
{
return reRunable_;
void CreateJobTemplateRequest::setReRunable(bool reRunable) {
reRunable_ = reRunable;
setParameter(std::string("ReRunable"), reRunable ? "true" : "false");
}
void CreateJobTemplateRequest::setReRunable(bool reRunable)
{
reRunable_ = reRunable;
setParameter("ReRunable", reRunable ? "true" : "false");
int CreateJobTemplateRequest::getPriority() const {
return priority_;
}
int CreateJobTemplateRequest::getThread()const
{
return thread_;
void CreateJobTemplateRequest::setPriority(int priority) {
priority_ = priority;
setParameter(std::string("Priority"), std::to_string(priority));
}
void CreateJobTemplateRequest::setThread(int thread)
{
thread_ = thread;
setParameter("Thread", std::to_string(thread));
std::string CreateJobTemplateRequest::getName() const {
return name_;
}
int CreateJobTemplateRequest::getPriority()const
{
return priority_;
}
void CreateJobTemplateRequest::setPriority(int priority)
{
priority_ = priority;
setParameter("Priority", std::to_string(priority));
}
int CreateJobTemplateRequest::getGpu()const
{
return gpu_;
}
void CreateJobTemplateRequest::setGpu(int gpu)
{
gpu_ = gpu;
setParameter("Gpu", std::to_string(gpu));
}
int CreateJobTemplateRequest::getNode()const
{
return node_;
}
void CreateJobTemplateRequest::setNode(int node)
{
node_ = node;
setParameter("Node", std::to_string(node));
}
int CreateJobTemplateRequest::getTask()const
{
return task_;
}
void CreateJobTemplateRequest::setTask(int task)
{
task_ = task;
setParameter("Task", std::to_string(task));
}
std::string CreateJobTemplateRequest::getName()const
{
return name_;
}
void CreateJobTemplateRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateJobTemplateRequest::getQueue()const
{
return queue_;
}
void CreateJobTemplateRequest::setQueue(const std::string& queue)
{
queue_ = queue;
setParameter("Queue", queue);
void CreateJobTemplateRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}

View File

@@ -1,62 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DeleteClusterRequest.h>
using AlibabaCloud::EHPC::Model::DeleteClusterRequest;
DeleteClusterRequest::DeleteClusterRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DeleteCluster")
{
setMethod(HttpRequest::Method::Get);
}
DeleteClusterRequest::~DeleteClusterRequest()
{}
std::string DeleteClusterRequest::getClusterId()const
{
return clusterId_;
*/
#include <alibabacloud/ehpc/model/DeleteClusterRequest.h>
using AlibabaCloud::EHPC::Model::DeleteClusterRequest;
DeleteClusterRequest::DeleteClusterRequest()
: RpcServiceRequest("ehpc", "2017-07-14", "DeleteCluster") {
setMethod(HttpRequest::Method::Get);
}
void DeleteClusterRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
DeleteClusterRequest::~DeleteClusterRequest() {}
std::string DeleteClusterRequest::getClusterId() const {
return clusterId_;
}
std::string DeleteClusterRequest::getAccessKeyId()const
{
return accessKeyId_;
void DeleteClusterRequest::setClusterId(const std::string &clusterId) {
clusterId_ = clusterId;
setParameter(std::string("ClusterId"), clusterId);
}
void DeleteClusterRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string DeleteClusterRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string DeleteClusterRequest::getReleaseInstance()const
{
return releaseInstance_;
void DeleteClusterRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void DeleteClusterRequest::setReleaseInstance(const std::string& releaseInstance)
{
releaseInstance_ = releaseInstance;
setParameter("ReleaseInstance", releaseInstance);
std::string DeleteClusterRequest::getReleaseInstance() const {
return releaseInstance_;
}
void DeleteClusterRequest::setReleaseInstance(const std::string &releaseInstance) {
releaseInstance_ = releaseInstance;
setParameter(std::string("ReleaseInstance"), releaseInstance);
}

View File

@@ -39,13 +39,6 @@ void DeleteClusterResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
}
std::string DeleteClusterResult::getTaskId()const
{
return taskId_;
}

View File

@@ -1,55 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DeleteContainerAppsRequest.h>
using AlibabaCloud::EHPC::Model::DeleteContainerAppsRequest;
DeleteContainerAppsRequest::DeleteContainerAppsRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DeleteContainerApps")
{
setMethod(HttpRequest::Method::Get);
}
DeleteContainerAppsRequest::~DeleteContainerAppsRequest()
{}
std::vector<DeleteContainerAppsRequest::ContainerApp> DeleteContainerAppsRequest::getContainerApp()const
{
return containerApp_;
}
void DeleteContainerAppsRequest::setContainerApp(const std::vector<ContainerApp>& containerApp)
{
containerApp_ = containerApp;
for(int dep1 = 0; dep1!= containerApp.size(); dep1++) {
auto containerAppObj = containerApp.at(dep1);
std::string containerAppObjStr = "ContainerApp." + std::to_string(dep1 + 1);
setParameter(containerAppObjStr + ".Id", containerAppObj.id);
}
}
std::string DeleteContainerAppsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteContainerAppsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DeleteGWSClusterRequest.h>
using AlibabaCloud::EHPC::Model::DeleteGWSClusterRequest;
DeleteGWSClusterRequest::DeleteGWSClusterRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DeleteGWSCluster")
{
setMethod(HttpRequest::Method::Get);
}
DeleteGWSClusterRequest::~DeleteGWSClusterRequest()
{}
std::string DeleteGWSClusterRequest::getClusterId()const
{
return clusterId_;
}
void DeleteGWSClusterRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DeleteGWSClusterRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteGWSClusterRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DeleteGWSInstanceRequest.h>
using AlibabaCloud::EHPC::Model::DeleteGWSInstanceRequest;
DeleteGWSInstanceRequest::DeleteGWSInstanceRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DeleteGWSInstance")
{
setMethod(HttpRequest::Method::Get);
}
DeleteGWSInstanceRequest::~DeleteGWSInstanceRequest()
{}
std::string DeleteGWSInstanceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteGWSInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DeleteGWSInstanceRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteGWSInstanceRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

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

View File

@@ -1,84 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DeleteImageRequest.h>
using AlibabaCloud::EHPC::Model::DeleteImageRequest;
DeleteImageRequest::DeleteImageRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DeleteImage")
{
setMethod(HttpRequest::Method::Get);
}
DeleteImageRequest::~DeleteImageRequest()
{}
std::string DeleteImageRequest::getClusterId()const
{
return clusterId_;
}
void DeleteImageRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DeleteImageRequest::getRepository()const
{
return repository_;
}
void DeleteImageRequest::setRepository(const std::string& repository)
{
repository_ = repository;
setParameter("Repository", repository);
}
std::string DeleteImageRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteImageRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DeleteImageRequest::getContainerType()const
{
return containerType_;
}
void DeleteImageRequest::setContainerType(const std::string& containerType)
{
containerType_ = containerType;
setParameter("ContainerType", containerType);
}
std::string DeleteImageRequest::getImageTag()const
{
return imageTag_;
}
void DeleteImageRequest::setImageTag(const std::string& imageTag)
{
imageTag_ = imageTag;
setParameter("ImageTag", imageTag);
}

View File

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

View File

@@ -1,51 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DeleteJobTemplatesRequest.h>
using AlibabaCloud::EHPC::Model::DeleteJobTemplatesRequest;
DeleteJobTemplatesRequest::DeleteJobTemplatesRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DeleteJobTemplates")
{
setMethod(HttpRequest::Method::Get);
}
DeleteJobTemplatesRequest::~DeleteJobTemplatesRequest()
{}
std::string DeleteJobTemplatesRequest::getTemplates()const
{
return templates_;
*/
#include <alibabacloud/ehpc/model/DeleteJobTemplatesRequest.h>
using AlibabaCloud::EHPC::Model::DeleteJobTemplatesRequest;
DeleteJobTemplatesRequest::DeleteJobTemplatesRequest()
: RpcServiceRequest("ehpc", "2017-07-14", "DeleteJobTemplates") {
setMethod(HttpRequest::Method::Get);
}
void DeleteJobTemplatesRequest::setTemplates(const std::string& templates)
{
templates_ = templates;
setParameter("Templates", templates);
DeleteJobTemplatesRequest::~DeleteJobTemplatesRequest() {}
std::string DeleteJobTemplatesRequest::getTemplates() const {
return templates_;
}
std::string DeleteJobTemplatesRequest::getAccessKeyId()const
{
return accessKeyId_;
void DeleteJobTemplatesRequest::setTemplates(const std::string &templates) {
templates_ = templates;
setParameter(std::string("Templates"), templates);
}
void DeleteJobTemplatesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string DeleteJobTemplatesRequest::getAccessKeyId() const {
return accessKeyId_;
}
void DeleteJobTemplatesRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string DeleteJobTemplatesRequest::getRegionId() const {
return regionId_;
}
void DeleteJobTemplatesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

@@ -1,62 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DeleteJobsRequest.h>
using AlibabaCloud::EHPC::Model::DeleteJobsRequest;
DeleteJobsRequest::DeleteJobsRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DeleteJobs")
{
setMethod(HttpRequest::Method::Get);
}
DeleteJobsRequest::~DeleteJobsRequest()
{}
std::string DeleteJobsRequest::getJobs()const
{
return jobs_;
*/
#include <alibabacloud/ehpc/model/DeleteJobsRequest.h>
using AlibabaCloud::EHPC::Model::DeleteJobsRequest;
DeleteJobsRequest::DeleteJobsRequest()
: RpcServiceRequest("ehpc", "2017-07-14", "DeleteJobs") {
setMethod(HttpRequest::Method::Get);
}
void DeleteJobsRequest::setJobs(const std::string& jobs)
{
jobs_ = jobs;
setParameter("Jobs", jobs);
DeleteJobsRequest::~DeleteJobsRequest() {}
std::string DeleteJobsRequest::getJobs() const {
return jobs_;
}
std::string DeleteJobsRequest::getClusterId()const
{
return clusterId_;
void DeleteJobsRequest::setJobs(const std::string &jobs) {
jobs_ = jobs;
setParameter(std::string("Jobs"), jobs);
}
void DeleteJobsRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
std::string DeleteJobsRequest::getClusterId() const {
return clusterId_;
}
std::string DeleteJobsRequest::getAccessKeyId()const
{
return accessKeyId_;
void DeleteJobsRequest::setClusterId(const std::string &clusterId) {
clusterId_ = clusterId;
setParameter(std::string("ClusterId"), clusterId);
}
void DeleteJobsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string DeleteJobsRequest::getAccessKeyId() const {
return accessKeyId_;
}
void DeleteJobsRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}

View File

@@ -1,88 +1,67 @@
/*
* 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/DeleteNodesRequest.h>
using AlibabaCloud::EHPC::Model::DeleteNodesRequest;
DeleteNodesRequest::DeleteNodesRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DeleteNodes")
{
setMethod(HttpRequest::Method::Get);
}
DeleteNodesRequest::~DeleteNodesRequest()
{}
std::vector<DeleteNodesRequest::Instance> DeleteNodesRequest::getInstance()const
{
return instance_;
*/
#include <alibabacloud/ehpc/model/DeleteNodesRequest.h>
using AlibabaCloud::EHPC::Model::DeleteNodesRequest;
DeleteNodesRequest::DeleteNodesRequest()
: RpcServiceRequest("ehpc", "2017-07-14", "DeleteNodes") {
setMethod(HttpRequest::Method::Get);
}
void DeleteNodesRequest::setInstance(const std::vector<Instance>& instance)
{
instance_ = instance;
for(int dep1 = 0; dep1!= instance.size(); dep1++) {
auto instanceObj = instance.at(dep1);
std::string instanceObjStr = "Instance." + std::to_string(dep1 + 1);
setParameter(instanceObjStr + ".Id", instanceObj.id);
}
DeleteNodesRequest::~DeleteNodesRequest() {}
std::vector<DeleteNodesRequest::Instance> DeleteNodesRequest::getInstance() const {
return instance_;
}
std::string DeleteNodesRequest::getClusterId()const
{
return clusterId_;
void DeleteNodesRequest::setInstance(const std::vector<DeleteNodesRequest::Instance> &instance) {
instance_ = instance;
for(int dep1 = 0; dep1 != instance.size(); dep1++) {
auto instanceObj = instance.at(dep1);
std::string instanceObjStr = std::string("Instance") + "." + std::to_string(dep1 + 1);
setParameter(instanceObjStr + ".Id", instanceObj.id);
}
}
void DeleteNodesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
std::string DeleteNodesRequest::getClusterId() const {
return clusterId_;
}
bool DeleteNodesRequest::getSync()const
{
return sync_;
void DeleteNodesRequest::setClusterId(const std::string &clusterId) {
clusterId_ = clusterId;
setParameter(std::string("ClusterId"), clusterId);
}
void DeleteNodesRequest::setSync(bool sync)
{
sync_ = sync;
setParameter("Sync", sync ? "true" : "false");
std::string DeleteNodesRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string DeleteNodesRequest::getAccessKeyId()const
{
return accessKeyId_;
void DeleteNodesRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void DeleteNodesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
bool DeleteNodesRequest::getReleaseInstance() const {
return releaseInstance_;
}
bool DeleteNodesRequest::getReleaseInstance()const
{
return releaseInstance_;
}
void DeleteNodesRequest::setReleaseInstance(bool releaseInstance)
{
releaseInstance_ = releaseInstance;
setParameter("ReleaseInstance", releaseInstance ? "true" : "false");
void DeleteNodesRequest::setReleaseInstance(bool releaseInstance) {
releaseInstance_ = releaseInstance;
setParameter(std::string("ReleaseInstance"), releaseInstance ? "true" : "false");
}

View File

@@ -39,13 +39,6 @@ void DeleteNodesResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
}
std::string DeleteNodesResult::getTaskId()const
{
return taskId_;
}

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DeleteQueueRequest.h>
using AlibabaCloud::EHPC::Model::DeleteQueueRequest;
DeleteQueueRequest::DeleteQueueRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DeleteQueue")
{
setMethod(HttpRequest::Method::Get);
}
DeleteQueueRequest::~DeleteQueueRequest()
{}
std::string DeleteQueueRequest::getQueueName()const
{
return queueName_;
}
void DeleteQueueRequest::setQueueName(const std::string& queueName)
{
queueName_ = queueName;
setParameter("QueueName", queueName);
}
std::string DeleteQueueRequest::getClusterId()const
{
return clusterId_;
}
void DeleteQueueRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DeleteQueueRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteQueueRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -1,44 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/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

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DeleteSecurityGroupRequest.h>
using AlibabaCloud::EHPC::Model::DeleteSecurityGroupRequest;
DeleteSecurityGroupRequest::DeleteSecurityGroupRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DeleteSecurityGroup")
{
setMethod(HttpRequest::Method::Get);
}
DeleteSecurityGroupRequest::~DeleteSecurityGroupRequest()
{}
std::string DeleteSecurityGroupRequest::getSecurityGroupId()const
{
return securityGroupId_;
}
void DeleteSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId)
{
securityGroupId_ = securityGroupId;
setParameter("SecurityGroupId", securityGroupId);
}
std::string DeleteSecurityGroupRequest::getClusterId()const
{
return clusterId_;
}
void DeleteSecurityGroupRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DeleteSecurityGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -1,66 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DeleteUsersRequest.h>
using AlibabaCloud::EHPC::Model::DeleteUsersRequest;
DeleteUsersRequest::DeleteUsersRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DeleteUsers")
{
setMethod(HttpRequest::Method::Get);
}
DeleteUsersRequest::~DeleteUsersRequest()
{}
std::string DeleteUsersRequest::getClusterId()const
{
return clusterId_;
*/
#include <alibabacloud/ehpc/model/DeleteUsersRequest.h>
using AlibabaCloud::EHPC::Model::DeleteUsersRequest;
DeleteUsersRequest::DeleteUsersRequest()
: RpcServiceRequest("ehpc", "2017-07-14", "DeleteUsers") {
setMethod(HttpRequest::Method::Get);
}
void DeleteUsersRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
DeleteUsersRequest::~DeleteUsersRequest() {}
std::string DeleteUsersRequest::getClusterId() const {
return clusterId_;
}
std::string DeleteUsersRequest::getAccessKeyId()const
{
return accessKeyId_;
void DeleteUsersRequest::setClusterId(const std::string &clusterId) {
clusterId_ = clusterId;
setParameter(std::string("ClusterId"), clusterId);
}
void DeleteUsersRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string DeleteUsersRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::vector<DeleteUsersRequest::User> DeleteUsersRequest::getUser()const
{
return user_;
void DeleteUsersRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void DeleteUsersRequest::setUser(const std::vector<User>& user)
{
user_ = user;
for(int dep1 = 0; dep1!= user.size(); dep1++) {
auto userObj = user.at(dep1);
std::string userObjStr = "User." + std::to_string(dep1 + 1);
setParameter(userObjStr + ".Name", userObj.name);
}
std::vector<DeleteUsersRequest::User> DeleteUsersRequest::getUser() const {
return user_;
}
void DeleteUsersRequest::setUser(const std::vector<DeleteUsersRequest::User> &user) {
user_ = user;
for(int dep1 = 0; dep1 != user.size(); dep1++) {
auto userObj = user.at(dep1);
std::string userObjStr = std::string("User") + "." + std::to_string(dep1 + 1);
setParameter(userObjStr + ".Name", userObj.name);
}
}

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DescribeAutoScaleConfigRequest.h>
using AlibabaCloud::EHPC::Model::DescribeAutoScaleConfigRequest;
DescribeAutoScaleConfigRequest::DescribeAutoScaleConfigRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DescribeAutoScaleConfig")
{
setMethod(HttpRequest::Method::Get);
}
DescribeAutoScaleConfigRequest::~DescribeAutoScaleConfigRequest()
{}
std::string DescribeAutoScaleConfigRequest::getClusterId()const
{
return clusterId_;
}
void DescribeAutoScaleConfigRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DescribeAutoScaleConfigRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeAutoScaleConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -1,149 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DescribeAutoScaleConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
DescribeAutoScaleConfigResult::DescribeAutoScaleConfigResult() :
ServiceResult()
{}
DescribeAutoScaleConfigResult::DescribeAutoScaleConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAutoScaleConfigResult::~DescribeAutoScaleConfigResult()
{}
void DescribeAutoScaleConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Uid"].isNull())
uid_ = value["Uid"].asString();
if(!value["ClusterId"].isNull())
clusterId_ = value["ClusterId"].asString();
if(!value["ClusterType"].isNull())
clusterType_ = value["ClusterType"].asString();
if(!value["EnableAutoGrow"].isNull())
enableAutoGrow_ = value["EnableAutoGrow"].asString() == "true";
if(!value["EnableAutoShrink"].isNull())
enableAutoShrink_ = value["EnableAutoShrink"].asString() == "true";
if(!value["GrowIntervalInMinutes"].isNull())
growIntervalInMinutes_ = std::stoi(value["GrowIntervalInMinutes"].asString());
if(!value["ShrinkIntervalInMinutes"].isNull())
shrinkIntervalInMinutes_ = std::stoi(value["ShrinkIntervalInMinutes"].asString());
if(!value["ShrinkIdleTimes"].isNull())
shrinkIdleTimes_ = std::stoi(value["ShrinkIdleTimes"].asString());
if(!value["GrowTimeoutInMinutes"].isNull())
growTimeoutInMinutes_ = std::stoi(value["GrowTimeoutInMinutes"].asString());
if(!value["ExtraNodesGrowRatio"].isNull())
extraNodesGrowRatio_ = std::stoi(value["ExtraNodesGrowRatio"].asString());
if(!value["GrowRatio"].isNull())
growRatio_ = std::stoi(value["GrowRatio"].asString());
if(!value["MaxNodesInCluster"].isNull())
maxNodesInCluster_ = std::stoi(value["MaxNodesInCluster"].asString());
if(!value["ExcludeNodes"].isNull())
excludeNodes_ = value["ExcludeNodes"].asString();
if(!value["SpotStrategy"].isNull())
spotStrategy_ = value["SpotStrategy"].asString();
if(!value["SpotPriceLimit"].isNull())
spotPriceLimit_ = value["SpotPriceLimit"].asString();
}
int DescribeAutoScaleConfigResult::getExtraNodesGrowRatio()const
{
return extraNodesGrowRatio_;
}
bool DescribeAutoScaleConfigResult::getEnableAutoGrow()const
{
return enableAutoGrow_;
}
std::string DescribeAutoScaleConfigResult::getClusterId()const
{
return clusterId_;
}
int DescribeAutoScaleConfigResult::getShrinkIdleTimes()const
{
return shrinkIdleTimes_;
}
int DescribeAutoScaleConfigResult::getMaxNodesInCluster()const
{
return maxNodesInCluster_;
}
std::string DescribeAutoScaleConfigResult::getClusterType()const
{
return clusterType_;
}
bool DescribeAutoScaleConfigResult::getEnableAutoShrink()const
{
return enableAutoShrink_;
}
int DescribeAutoScaleConfigResult::getGrowRatio()const
{
return growRatio_;
}
int DescribeAutoScaleConfigResult::getGrowIntervalInMinutes()const
{
return growIntervalInMinutes_;
}
std::string DescribeAutoScaleConfigResult::getUid()const
{
return uid_;
}
int DescribeAutoScaleConfigResult::getGrowTimeoutInMinutes()const
{
return growTimeoutInMinutes_;
}
int DescribeAutoScaleConfigResult::getShrinkIntervalInMinutes()const
{
return shrinkIntervalInMinutes_;
}
std::string DescribeAutoScaleConfigResult::getSpotPriceLimit()const
{
return spotPriceLimit_;
}
std::string DescribeAutoScaleConfigResult::getExcludeNodes()const
{
return excludeNodes_;
}
std::string DescribeAutoScaleConfigResult::getSpotStrategy()const
{
return spotStrategy_;
}

View File

@@ -1,51 +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/DescribeClusterRequest.h>
using AlibabaCloud::EHPC::Model::DescribeClusterRequest;
DescribeClusterRequest::DescribeClusterRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DescribeCluster")
{
setMethod(HttpRequest::Method::Get);
}
DescribeClusterRequest::~DescribeClusterRequest()
{}
std::string DescribeClusterRequest::getClusterId()const
{
return clusterId_;
*/
#include <alibabacloud/ehpc/model/DescribeClusterRequest.h>
using AlibabaCloud::EHPC::Model::DescribeClusterRequest;
DescribeClusterRequest::DescribeClusterRequest()
: RpcServiceRequest("ehpc", "2017-07-14", "DescribeCluster") {
setMethod(HttpRequest::Method::Get);
}
void DescribeClusterRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
DescribeClusterRequest::~DescribeClusterRequest() {}
std::string DescribeClusterRequest::getClusterId() const {
return clusterId_;
}
std::string DescribeClusterRequest::getAccessKeyId()const
{
return accessKeyId_;
void DescribeClusterRequest::setClusterId(const std::string &clusterId) {
clusterId_ = clusterId;
setParameter(std::string("ClusterId"), clusterId);
}
void DescribeClusterRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string DescribeClusterRequest::getAccessKeyId() const {
return accessKeyId_;
}
void DescribeClusterRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}

View File

@@ -40,62 +40,52 @@ void DescribeClusterResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto clusterInfoNode = value["ClusterInfo"];
if(!clusterInfoNode["Id"].isNull())
clusterInfo_.id = clusterInfoNode["Id"].asString();
if(!clusterInfoNode["RegionId"].isNull())
clusterInfo_.regionId = clusterInfoNode["RegionId"].asString();
if(!clusterInfoNode["Name"].isNull())
clusterInfo_.name = clusterInfoNode["Name"].asString();
if(!clusterInfoNode["Description"].isNull())
clusterInfo_.description = clusterInfoNode["Description"].asString();
if(!clusterInfoNode["Status"].isNull())
clusterInfo_.status = clusterInfoNode["Status"].asString();
if(!clusterInfoNode["SchedulerType"].isNull())
clusterInfo_.schedulerType = clusterInfoNode["SchedulerType"].asString();
if(!clusterInfoNode["KeyPairName"].isNull())
clusterInfo_.keyPairName = clusterInfoNode["KeyPairName"].asString();
if(!clusterInfoNode["EcsChargeType"].isNull())
clusterInfo_.ecsChargeType = clusterInfoNode["EcsChargeType"].asString();
if(!clusterInfoNode["SccClusterId"].isNull())
clusterInfo_.sccClusterId = clusterInfoNode["SccClusterId"].asString();
if(!clusterInfoNode["SecurityGroupId"].isNull())
clusterInfo_.securityGroupId = clusterInfoNode["SecurityGroupId"].asString();
if(!clusterInfoNode["CreateTime"].isNull())
clusterInfo_.createTime = clusterInfoNode["CreateTime"].asString();
if(!clusterInfoNode["ImageOwnerAlias"].isNull())
clusterInfo_.imageOwnerAlias = clusterInfoNode["ImageOwnerAlias"].asString();
if(!clusterInfoNode["RemoteDirectory"].isNull())
clusterInfo_.remoteDirectory = clusterInfoNode["RemoteDirectory"].asString();
if(!clusterInfoNode["VolumeMountpoint"].isNull())
clusterInfo_.volumeMountpoint = clusterInfoNode["VolumeMountpoint"].asString();
if(!clusterInfoNode["OsTag"].isNull())
clusterInfo_.osTag = clusterInfoNode["OsTag"].asString();
if(!clusterInfoNode["AccountType"].isNull())
clusterInfo_.accountType = clusterInfoNode["AccountType"].asString();
if(!clusterInfoNode["SchedulerType"].isNull())
clusterInfo_.schedulerType = clusterInfoNode["SchedulerType"].asString();
if(!clusterInfoNode["CreateTime"].isNull())
clusterInfo_.createTime = clusterInfoNode["CreateTime"].asString();
if(!clusterInfoNode["SecurityGroupId"].isNull())
clusterInfo_.securityGroupId = clusterInfoNode["SecurityGroupId"].asString();
if(!clusterInfoNode["VpcId"].isNull())
clusterInfo_.vpcId = clusterInfoNode["VpcId"].asString();
if(!clusterInfoNode["VSwitchId"].isNull())
clusterInfo_.vSwitchId = clusterInfoNode["VSwitchId"].asString();
if(!clusterInfoNode["VolumeType"].isNull())
clusterInfo_.volumeType = clusterInfoNode["VolumeType"].asString();
if(!clusterInfoNode["VolumeId"].isNull())
clusterInfo_.volumeId = clusterInfoNode["VolumeId"].asString();
if(!clusterInfoNode["VolumeProtocol"].isNull())
clusterInfo_.volumeProtocol = clusterInfoNode["VolumeProtocol"].asString();
if(!clusterInfoNode["VolumeMountpoint"].isNull())
clusterInfo_.volumeMountpoint = clusterInfoNode["VolumeMountpoint"].asString();
if(!clusterInfoNode["RemoteDirectory"].isNull())
clusterInfo_.remoteDirectory = clusterInfoNode["RemoteDirectory"].asString();
if(!clusterInfoNode["DeployMode"].isNull())
clusterInfo_.deployMode = clusterInfoNode["DeployMode"].asString();
if(!clusterInfoNode["RegionId"].isNull())
clusterInfo_.regionId = clusterInfoNode["RegionId"].asString();
if(!clusterInfoNode["VSwitchId"].isNull())
clusterInfo_.vSwitchId = clusterInfoNode["VSwitchId"].asString();
if(!clusterInfoNode["Description"].isNull())
clusterInfo_.description = clusterInfoNode["Description"].asString();
if(!clusterInfoNode["VolumeId"].isNull())
clusterInfo_.volumeId = clusterInfoNode["VolumeId"].asString();
if(!clusterInfoNode["HaEnable"].isNull())
clusterInfo_.haEnable = clusterInfoNode["HaEnable"].asString() == "true";
if(!clusterInfoNode["EcsChargeType"].isNull())
clusterInfo_.ecsChargeType = clusterInfoNode["EcsChargeType"].asString();
if(!clusterInfoNode["KeyPairName"].isNull())
clusterInfo_.keyPairName = clusterInfoNode["KeyPairName"].asString();
if(!clusterInfoNode["SccClusterId"].isNull())
clusterInfo_.sccClusterId = clusterInfoNode["SccClusterId"].asString();
if(!clusterInfoNode["ClientVersion"].isNull())
clusterInfo_.clientVersion = clusterInfoNode["ClientVersion"].asString();
if(!clusterInfoNode["ImageOwnerAlias"].isNull())
clusterInfo_.imageOwnerAlias = clusterInfoNode["ImageOwnerAlias"].asString();
if(!clusterInfoNode["Name"].isNull())
clusterInfo_.name = clusterInfoNode["Name"].asString();
if(!clusterInfoNode["ImageId"].isNull())
clusterInfo_.imageId = clusterInfoNode["ImageId"].asString();
if(!clusterInfoNode["Location"].isNull())
clusterInfo_.location = clusterInfoNode["Location"].asString();
if(!clusterInfoNode["BaseOsTag"].isNull())
clusterInfo_.baseOsTag = clusterInfoNode["BaseOsTag"].asString();
if(!clusterInfoNode["ImageName"].isNull())
clusterInfo_.imageName = clusterInfoNode["ImageName"].asString();
if(!clusterInfoNode["VolumeType"].isNull())
clusterInfo_.volumeType = clusterInfoNode["VolumeType"].asString();
if(!clusterInfoNode["Id"].isNull())
clusterInfo_.id = clusterInfoNode["Id"].asString();
if(!clusterInfoNode["ClientVersion"].isNull())
clusterInfo_.clientVersion = clusterInfoNode["ClientVersion"].asString();
auto allApplicationsNode = clusterInfoNode["Applications"]["ApplicationInfo"];
for (auto clusterInfoNodeApplicationsApplicationInfo : allApplicationsNode)
{
@@ -108,32 +98,22 @@ void DescribeClusterResult::parse(const std::string &payload)
applicationInfoObject.version = clusterInfoNodeApplicationsApplicationInfo["Version"].asString();
clusterInfo_.applications.push_back(applicationInfoObject);
}
auto allPostInstallScriptsNode = clusterInfoNode["PostInstallScripts"]["PostInstallScriptInfo"];
for (auto clusterInfoNodePostInstallScriptsPostInstallScriptInfo : allPostInstallScriptsNode)
{
ClusterInfo::PostInstallScriptInfo postInstallScriptInfoObject;
if(!clusterInfoNodePostInstallScriptsPostInstallScriptInfo["Url"].isNull())
postInstallScriptInfoObject.url = clusterInfoNodePostInstallScriptsPostInstallScriptInfo["Url"].asString();
if(!clusterInfoNodePostInstallScriptsPostInstallScriptInfo["Args"].isNull())
postInstallScriptInfoObject.args = clusterInfoNodePostInstallScriptsPostInstallScriptInfo["Args"].asString();
clusterInfo_.postInstallScripts.push_back(postInstallScriptInfoObject);
}
auto ecsInfoNode = clusterInfoNode["EcsInfo"];
auto managerNode = ecsInfoNode["Manager"];
if(!managerNode["Count"].isNull())
clusterInfo_.ecsInfo.manager.count = std::stoi(managerNode["Count"].asString());
if(!managerNode["InstanceType"].isNull())
clusterInfo_.ecsInfo.manager.instanceType = managerNode["InstanceType"].asString();
if(!managerNode["Count"].isNull())
clusterInfo_.ecsInfo.manager.count = std::stoi(managerNode["Count"].asString());
auto computeNode = ecsInfoNode["Compute"];
if(!computeNode["Count"].isNull())
clusterInfo_.ecsInfo.compute.count = std::stoi(computeNode["Count"].asString());
if(!computeNode["InstanceType"].isNull())
clusterInfo_.ecsInfo.compute.instanceType = computeNode["InstanceType"].asString();
if(!computeNode["Count"].isNull())
clusterInfo_.ecsInfo.compute.count = std::stoi(computeNode["Count"].asString());
auto loginNode = ecsInfoNode["Login"];
if(!loginNode["Count"].isNull())
clusterInfo_.ecsInfo.login.count = std::stoi(loginNode["Count"].asString());
if(!loginNode["InstanceType"].isNull())
clusterInfo_.ecsInfo.login.instanceType = loginNode["InstanceType"].asString();
if(!loginNode["Count"].isNull())
clusterInfo_.ecsInfo.login.count = std::stoi(loginNode["Count"].asString());
}

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DescribeContainerAppRequest.h>
using AlibabaCloud::EHPC::Model::DescribeContainerAppRequest;
DescribeContainerAppRequest::DescribeContainerAppRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DescribeContainerApp")
{
setMethod(HttpRequest::Method::Get);
}
DescribeContainerAppRequest::~DescribeContainerAppRequest()
{}
std::string DescribeContainerAppRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeContainerAppRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeContainerAppRequest::getContainerId()const
{
return containerId_;
}
void DescribeContainerAppRequest::setContainerId(const std::string& containerId)
{
containerId_ = containerId;
setParameter("ContainerId", containerId);
}

View File

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

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DescribeGWSClusterPolicyRequest.h>
using AlibabaCloud::EHPC::Model::DescribeGWSClusterPolicyRequest;
DescribeGWSClusterPolicyRequest::DescribeGWSClusterPolicyRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DescribeGWSClusterPolicy")
{
setMethod(HttpRequest::Method::Post);
}
DescribeGWSClusterPolicyRequest::~DescribeGWSClusterPolicyRequest()
{}
std::string DescribeGWSClusterPolicyRequest::getClusterId()const
{
return clusterId_;
}
void DescribeGWSClusterPolicyRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DescribeGWSClusterPolicyRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeGWSClusterPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool DescribeGWSClusterPolicyRequest::getAsyncMode()const
{
return asyncMode_;
}
void DescribeGWSClusterPolicyRequest::setAsyncMode(bool asyncMode)
{
asyncMode_ = asyncMode;
setParameter("AsyncMode", asyncMode ? "true" : "false");
}
std::string DescribeGWSClusterPolicyRequest::getTaskId()const
{
return taskId_;
}
void DescribeGWSClusterPolicyRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}

View File

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

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DescribeGWSClustersRequest.h>
using AlibabaCloud::EHPC::Model::DescribeGWSClustersRequest;
DescribeGWSClustersRequest::DescribeGWSClustersRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DescribeGWSClusters")
{
setMethod(HttpRequest::Method::Get);
}
DescribeGWSClustersRequest::~DescribeGWSClustersRequest()
{}
std::string DescribeGWSClustersRequest::getClusterId()const
{
return clusterId_;
}
void DescribeGWSClustersRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
int DescribeGWSClustersRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeGWSClustersRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeGWSClustersRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeGWSClustersRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
int DescribeGWSClustersRequest::getPageSize()const
{
return pageSize_;
}
void DescribeGWSClustersRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

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

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DescribeGWSImagesRequest.h>
using AlibabaCloud::EHPC::Model::DescribeGWSImagesRequest;
DescribeGWSImagesRequest::DescribeGWSImagesRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DescribeGWSImages")
{
setMethod(HttpRequest::Method::Get);
}
DescribeGWSImagesRequest::~DescribeGWSImagesRequest()
{}
int DescribeGWSImagesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeGWSImagesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeGWSImagesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeGWSImagesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
int DescribeGWSImagesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeGWSImagesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

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

View File

@@ -1,106 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DescribeGWSInstancesRequest.h>
using AlibabaCloud::EHPC::Model::DescribeGWSInstancesRequest;
DescribeGWSInstancesRequest::DescribeGWSInstancesRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DescribeGWSInstances")
{
setMethod(HttpRequest::Method::Get);
}
DescribeGWSInstancesRequest::~DescribeGWSInstancesRequest()
{}
std::string DescribeGWSInstancesRequest::getClusterId()const
{
return clusterId_;
}
void DescribeGWSInstancesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
int DescribeGWSInstancesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeGWSInstancesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeGWSInstancesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeGWSInstancesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeGWSInstancesRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeGWSInstancesRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
int DescribeGWSInstancesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeGWSInstancesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
long DescribeGWSInstancesRequest::getUserUid()const
{
return userUid_;
}
void DescribeGWSInstancesRequest::setUserUid(long userUid)
{
userUid_ = userUid;
setParameter("UserUid", std::to_string(userUid));
}
std::string DescribeGWSInstancesRequest::getUserName()const
{
return userName_;
}
void DescribeGWSInstancesRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

@@ -1,106 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DescribeGWSInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
DescribeGWSInstancesResult::DescribeGWSInstancesResult() :
ServiceResult()
{}
DescribeGWSInstancesResult::DescribeGWSInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGWSInstancesResult::~DescribeGWSInstancesResult()
{}
void DescribeGWSInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allInstancesNode = value["Instances"]["InstanceInfo"];
for (auto valueInstancesInstanceInfo : allInstancesNode)
{
InstanceInfo instancesObject;
if(!valueInstancesInstanceInfo["ClusterId"].isNull())
instancesObject.clusterId = valueInstancesInstanceInfo["ClusterId"].asString();
if(!valueInstancesInstanceInfo["InstanceId"].isNull())
instancesObject.instanceId = valueInstancesInstanceInfo["InstanceId"].asString();
if(!valueInstancesInstanceInfo["InstanceType"].isNull())
instancesObject.instanceType = valueInstancesInstanceInfo["InstanceType"].asString();
if(!valueInstancesInstanceInfo["Status"].isNull())
instancesObject.status = valueInstancesInstanceInfo["Status"].asString();
if(!valueInstancesInstanceInfo["CreateTime"].isNull())
instancesObject.createTime = valueInstancesInstanceInfo["CreateTime"].asString();
if(!valueInstancesInstanceInfo["ExpireTime"].isNull())
instancesObject.expireTime = valueInstancesInstanceInfo["ExpireTime"].asString();
if(!valueInstancesInstanceInfo["WorkMode"].isNull())
instancesObject.workMode = valueInstancesInstanceInfo["WorkMode"].asString();
if(!valueInstancesInstanceInfo["Name"].isNull())
instancesObject.name = valueInstancesInstanceInfo["Name"].asString();
if(!valueInstancesInstanceInfo["UserName"].isNull())
instancesObject.userName = valueInstancesInstanceInfo["UserName"].asString();
auto allAppListNode = valueInstancesInstanceInfo["AppList"]["AppInfo"];
for (auto valueInstancesInstanceInfoAppListAppInfo : allAppListNode)
{
InstanceInfo::AppInfo appListObject;
if(!valueInstancesInstanceInfoAppListAppInfo["AppName"].isNull())
appListObject.appName = valueInstancesInstanceInfoAppListAppInfo["AppName"].asString();
if(!valueInstancesInstanceInfoAppListAppInfo["AppPath"].isNull())
appListObject.appPath = valueInstancesInstanceInfoAppListAppInfo["AppPath"].asString();
if(!valueInstancesInstanceInfoAppListAppInfo["AppArgs"].isNull())
appListObject.appArgs = valueInstancesInstanceInfoAppListAppInfo["AppArgs"].asString();
instancesObject.appList.push_back(appListObject);
}
instances_.push_back(instancesObject);
}
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());
}
std::vector<DescribeGWSInstancesResult::InstanceInfo> DescribeGWSInstancesResult::getInstances()const
{
return instances_;
}
int DescribeGWSInstancesResult::getTotalCount()const
{
return totalCount_;
}
int DescribeGWSInstancesResult::getPageSize()const
{
return pageSize_;
}
int DescribeGWSInstancesResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DescribeImageGatewayConfigRequest.h>
using AlibabaCloud::EHPC::Model::DescribeImageGatewayConfigRequest;
DescribeImageGatewayConfigRequest::DescribeImageGatewayConfigRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DescribeImageGatewayConfig")
{
setMethod(HttpRequest::Method::Get);
}
DescribeImageGatewayConfigRequest::~DescribeImageGatewayConfigRequest()
{}
std::string DescribeImageGatewayConfigRequest::getClusterId()const
{
return clusterId_;
}
void DescribeImageGatewayConfigRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DescribeImageGatewayConfigRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeImageGatewayConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -1,74 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DescribeImageGatewayConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
DescribeImageGatewayConfigResult::DescribeImageGatewayConfigResult() :
ServiceResult()
{}
DescribeImageGatewayConfigResult::DescribeImageGatewayConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeImageGatewayConfigResult::~DescribeImageGatewayConfigResult()
{}
void DescribeImageGatewayConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto imagegwNode = value["Imagegw"];
if(!imagegwNode["DefaultImageLocation"].isNull())
imagegw_.defaultImageLocation = imagegwNode["DefaultImageLocation"].asString();
if(!imagegwNode["PullUpdateTimeout"].isNull())
imagegw_.pullUpdateTimeout = std::stol(imagegwNode["PullUpdateTimeout"].asString());
if(!imagegwNode["MongoDBURI"].isNull())
imagegw_.mongoDBURI = imagegwNode["MongoDBURI"].asString();
if(!imagegwNode["ImageExpirationTimeout"].isNull())
imagegw_.imageExpirationTimeout = imagegwNode["ImageExpirationTimeout"].asString();
if(!imagegwNode["UpdateDateTime"].isNull())
imagegw_.updateDateTime = imagegwNode["UpdateDateTime"].asString();
auto allLocationsNode = imagegwNode["Locations"]["LocationInfo"];
for (auto imagegwNodeLocationsLocationInfo : allLocationsNode)
{
Imagegw::LocationInfo locationInfoObject;
if(!imagegwNodeLocationsLocationInfo["Location"].isNull())
locationInfoObject.location = imagegwNodeLocationsLocationInfo["Location"].asString();
if(!imagegwNodeLocationsLocationInfo["RemoteType"].isNull())
locationInfoObject.remoteType = imagegwNodeLocationsLocationInfo["RemoteType"].asString();
if(!imagegwNodeLocationsLocationInfo["Authentication"].isNull())
locationInfoObject.authentication = imagegwNodeLocationsLocationInfo["Authentication"].asString();
if(!imagegwNodeLocationsLocationInfo["URL"].isNull())
locationInfoObject.uRL = imagegwNodeLocationsLocationInfo["URL"].asString();
imagegw_.locations.push_back(locationInfoObject);
}
}
DescribeImageGatewayConfigResult::Imagegw DescribeImageGatewayConfigResult::getImagegw()const
{
return imagegw_;
}

View File

@@ -1,106 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DescribeImagePriceRequest.h>
using AlibabaCloud::EHPC::Model::DescribeImagePriceRequest;
DescribeImagePriceRequest::DescribeImagePriceRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DescribeImagePrice")
{
setMethod(HttpRequest::Method::Get);
}
DescribeImagePriceRequest::~DescribeImagePriceRequest()
{}
int DescribeImagePriceRequest::getPeriod()const
{
return period_;
}
void DescribeImagePriceRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
}
int DescribeImagePriceRequest::getAmount()const
{
return amount_;
}
void DescribeImagePriceRequest::setAmount(int amount)
{
amount_ = amount;
setParameter("Amount", std::to_string(amount));
}
std::string DescribeImagePriceRequest::getImageId()const
{
return imageId_;
}
void DescribeImagePriceRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
}
std::string DescribeImagePriceRequest::getSkuCode()const
{
return skuCode_;
}
void DescribeImagePriceRequest::setSkuCode(const std::string& skuCode)
{
skuCode_ = skuCode;
setParameter("SkuCode", skuCode);
}
std::string DescribeImagePriceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeImagePriceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeImagePriceRequest::getPriceUnit()const
{
return priceUnit_;
}
void DescribeImagePriceRequest::setPriceUnit(const std::string& priceUnit)
{
priceUnit_ = priceUnit;
setParameter("PriceUnit", priceUnit);
}
std::string DescribeImagePriceRequest::getOrderType()const
{
return orderType_;
}
void DescribeImagePriceRequest::setOrderType(const std::string& orderType)
{
orderType_ = orderType;
setParameter("OrderType", orderType);
}

View File

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

View File

@@ -1,84 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DescribeImageRequest.h>
using AlibabaCloud::EHPC::Model::DescribeImageRequest;
DescribeImageRequest::DescribeImageRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DescribeImage")
{
setMethod(HttpRequest::Method::Get);
}
DescribeImageRequest::~DescribeImageRequest()
{}
std::string DescribeImageRequest::getClusterId()const
{
return clusterId_;
}
void DescribeImageRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DescribeImageRequest::getRepository()const
{
return repository_;
}
void DescribeImageRequest::setRepository(const std::string& repository)
{
repository_ = repository;
setParameter("Repository", repository);
}
std::string DescribeImageRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeImageRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeImageRequest::getContainerType()const
{
return containerType_;
}
void DescribeImageRequest::setContainerType(const std::string& containerType)
{
containerType_ = containerType;
setParameter("ContainerType", containerType);
}
std::string DescribeImageRequest::getImageTag()const
{
return imageTag_;
}
void DescribeImageRequest::setImageTag(const std::string& imageTag)
{
imageTag_ = imageTag;
setParameter("ImageTag", imageTag);
}

View File

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

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DescribeJobRequest.h>
using AlibabaCloud::EHPC::Model::DescribeJobRequest;
DescribeJobRequest::DescribeJobRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DescribeJob")
{
setMethod(HttpRequest::Method::Get);
}
DescribeJobRequest::~DescribeJobRequest()
{}
std::string DescribeJobRequest::getClusterId()const
{
return clusterId_;
}
void DescribeJobRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DescribeJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeJobRequest::getJobId()const
{
return jobId_;
}
void DescribeJobRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setParameter("JobId", jobId);
}

View File

@@ -1,52 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/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

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DescribeNFSClientStatusRequest.h>
using AlibabaCloud::EHPC::Model::DescribeNFSClientStatusRequest;
DescribeNFSClientStatusRequest::DescribeNFSClientStatusRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DescribeNFSClientStatus")
{
setMethod(HttpRequest::Method::Get);
}
DescribeNFSClientStatusRequest::~DescribeNFSClientStatusRequest()
{}
std::string DescribeNFSClientStatusRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeNFSClientStatusRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeNFSClientStatusRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeNFSClientStatusRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

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

View File

@@ -1,97 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DescribePriceRequest.h>
using AlibabaCloud::EHPC::Model::DescribePriceRequest;
DescribePriceRequest::DescribePriceRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "DescribePrice")
{
setMethod(HttpRequest::Method::Get);
}
DescribePriceRequest::~DescribePriceRequest()
{}
std::vector<DescribePriceRequest::Commodities> DescribePriceRequest::getCommodities()const
{
return commodities_;
}
void DescribePriceRequest::setCommodities(const std::vector<Commodities>& commodities)
{
commodities_ = commodities;
for(int dep1 = 0; dep1!= commodities.size(); dep1++) {
auto commoditiesObj = commodities.at(dep1);
std::string commoditiesObjStr = "Commodities." + std::to_string(dep1 + 1);
setParameter(commoditiesObjStr + ".Amount", std::to_string(commoditiesObj.amount));
setParameter(commoditiesObjStr + ".Period", std::to_string(commoditiesObj.period));
setParameter(commoditiesObjStr + ".NodeType", commoditiesObj.nodeType);
setParameter(commoditiesObjStr + ".SystemDiskCategory", commoditiesObj.systemDiskCategory);
setParameter(commoditiesObjStr + ".InternetChargeType", commoditiesObj.internetChargeType);
setParameter(commoditiesObjStr + ".SystemDiskPerformanceLevel", commoditiesObj.systemDiskPerformanceLevel);
setParameter(commoditiesObjStr + ".SystemDiskSize", std::to_string(commoditiesObj.systemDiskSize));
setParameter(commoditiesObjStr + ".InternetMaxBandWidthOut", std::to_string(commoditiesObj.internetMaxBandWidthOut));
setParameter(commoditiesObjStr + ".InstanceType", commoditiesObj.instanceType);
setParameter(commoditiesObjStr + ".NetworkType", commoditiesObj.networkType);
}
}
std::string DescribePriceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribePriceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribePriceRequest::getPriceUnit()const
{
return priceUnit_;
}
void DescribePriceRequest::setPriceUnit(const std::string& priceUnit)
{
priceUnit_ = priceUnit;
setParameter("PriceUnit", priceUnit);
}
std::string DescribePriceRequest::getChargeType()const
{
return chargeType_;
}
void DescribePriceRequest::setChargeType(const std::string& chargeType)
{
chargeType_ = chargeType;
setParameter("ChargeType", chargeType);
}
std::string DescribePriceRequest::getOrderType()const
{
return orderType_;
}
void DescribePriceRequest::setOrderType(const std::string& orderType)
{
orderType_ = orderType;
setParameter("OrderType", orderType);
}

View File

@@ -1,70 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/DescribePriceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
DescribePriceResult::DescribePriceResult() :
ServiceResult()
{}
DescribePriceResult::DescribePriceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribePriceResult::~DescribePriceResult()
{}
void DescribePriceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPricesNode = value["Prices"]["PriceInfo"];
for (auto valuePricesPriceInfo : allPricesNode)
{
PriceInfo pricesObject;
if(!valuePricesPriceInfo["NodeType"].isNull())
pricesObject.nodeType = valuePricesPriceInfo["NodeType"].asString();
if(!valuePricesPriceInfo["OriginalPrice"].isNull())
pricesObject.originalPrice = std::stof(valuePricesPriceInfo["OriginalPrice"].asString());
if(!valuePricesPriceInfo["TradePrice"].isNull())
pricesObject.tradePrice = std::stof(valuePricesPriceInfo["TradePrice"].asString());
if(!valuePricesPriceInfo["Currency"].isNull())
pricesObject.currency = valuePricesPriceInfo["Currency"].asString();
prices_.push_back(pricesObject);
}
if(!value["TotalTradePrice"].isNull())
totalTradePrice_ = std::stof(value["TotalTradePrice"].asString());
}
std::vector<DescribePriceResult::PriceInfo> DescribePriceResult::getPrices()const
{
return prices_;
}
float DescribePriceResult::getTotalTradePrice()const
{
return totalTradePrice_;
}

View File

@@ -1,53 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/EcdDeleteDesktopsRequest.h>
using AlibabaCloud::EHPC::Model::EcdDeleteDesktopsRequest;
EcdDeleteDesktopsRequest::EcdDeleteDesktopsRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "EcdDeleteDesktops")
{
setMethod(HttpRequest::Method::Get);
}
EcdDeleteDesktopsRequest::~EcdDeleteDesktopsRequest()
{}
std::string EcdDeleteDesktopsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void EcdDeleteDesktopsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::vector<std::string> EcdDeleteDesktopsRequest::getDesktopId()const
{
return desktopId_;
}
void EcdDeleteDesktopsRequest::setDesktopId(const std::vector<std::string>& desktopId)
{
desktopId_ = desktopId;
for(int dep1 = 0; dep1!= desktopId.size(); dep1++) {
setParameter("DesktopId."+ std::to_string(dep1), desktopId.at(dep1));
}
}

View File

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

View File

@@ -1,238 +1,144 @@
/*
* 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/EditJobTemplateRequest.h>
using AlibabaCloud::EHPC::Model::EditJobTemplateRequest;
EditJobTemplateRequest::EditJobTemplateRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "EditJobTemplate")
{
setMethod(HttpRequest::Method::Get);
}
EditJobTemplateRequest::~EditJobTemplateRequest()
{}
std::string EditJobTemplateRequest::getStderrRedirectPath()const
{
return stderrRedirectPath_;
*/
#include <alibabacloud/ehpc/model/EditJobTemplateRequest.h>
using AlibabaCloud::EHPC::Model::EditJobTemplateRequest;
EditJobTemplateRequest::EditJobTemplateRequest()
: RpcServiceRequest("ehpc", "2017-07-14", "EditJobTemplate") {
setMethod(HttpRequest::Method::Get);
}
void EditJobTemplateRequest::setStderrRedirectPath(const std::string& stderrRedirectPath)
{
stderrRedirectPath_ = stderrRedirectPath;
setParameter("StderrRedirectPath", stderrRedirectPath);
EditJobTemplateRequest::~EditJobTemplateRequest() {}
std::string EditJobTemplateRequest::getStderrRedirectPath() const {
return stderrRedirectPath_;
}
std::string EditJobTemplateRequest::getClockTime()const
{
return clockTime_;
void EditJobTemplateRequest::setStderrRedirectPath(const std::string &stderrRedirectPath) {
stderrRedirectPath_ = stderrRedirectPath;
setParameter(std::string("StderrRedirectPath"), stderrRedirectPath);
}
void EditJobTemplateRequest::setClockTime(const std::string& clockTime)
{
clockTime_ = clockTime;
setParameter("ClockTime", clockTime);
std::string EditJobTemplateRequest::getCommandLine() const {
return commandLine_;
}
std::string EditJobTemplateRequest::getCommandLine()const
{
return commandLine_;
void EditJobTemplateRequest::setCommandLine(const std::string &commandLine) {
commandLine_ = commandLine;
setParameter(std::string("CommandLine"), commandLine);
}
void EditJobTemplateRequest::setCommandLine(const std::string& commandLine)
{
commandLine_ = commandLine;
setParameter("CommandLine", commandLine);
std::string EditJobTemplateRequest::getAccessKeyId() const {
return accessKeyId_;
}
std::string EditJobTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
void EditJobTemplateRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
void EditJobTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string EditJobTemplateRequest::getArrayRequest() const {
return arrayRequest_;
}
std::string EditJobTemplateRequest::getArrayRequest()const
{
return arrayRequest_;
void EditJobTemplateRequest::setArrayRequest(const std::string &arrayRequest) {
arrayRequest_ = arrayRequest;
setParameter(std::string("ArrayRequest"), arrayRequest);
}
void EditJobTemplateRequest::setArrayRequest(const std::string& arrayRequest)
{
arrayRequest_ = arrayRequest;
setParameter("ArrayRequest", arrayRequest);
std::string EditJobTemplateRequest::getPackagePath() const {
return packagePath_;
}
std::string EditJobTemplateRequest::getPackagePath()const
{
return packagePath_;
void EditJobTemplateRequest::setPackagePath(const std::string &packagePath) {
packagePath_ = packagePath;
setParameter(std::string("PackagePath"), packagePath);
}
void EditJobTemplateRequest::setPackagePath(const std::string& packagePath)
{
packagePath_ = packagePath;
setParameter("PackagePath", packagePath);
std::string EditJobTemplateRequest::getRegionId() const {
return regionId_;
}
std::string EditJobTemplateRequest::getMem()const
{
return mem_;
void EditJobTemplateRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void EditJobTemplateRequest::setMem(const std::string& mem)
{
mem_ = mem;
setParameter("Mem", mem);
std::string EditJobTemplateRequest::getStdoutRedirectPath() const {
return stdoutRedirectPath_;
}
std::string EditJobTemplateRequest::getStdoutRedirectPath()const
{
return stdoutRedirectPath_;
void EditJobTemplateRequest::setStdoutRedirectPath(const std::string &stdoutRedirectPath) {
stdoutRedirectPath_ = stdoutRedirectPath;
setParameter(std::string("StdoutRedirectPath"), stdoutRedirectPath);
}
void EditJobTemplateRequest::setStdoutRedirectPath(const std::string& stdoutRedirectPath)
{
stdoutRedirectPath_ = stdoutRedirectPath;
setParameter("StdoutRedirectPath", stdoutRedirectPath);
std::string EditJobTemplateRequest::getVariables() const {
return variables_;
}
std::string EditJobTemplateRequest::getVariables()const
{
return variables_;
void EditJobTemplateRequest::setVariables(const std::string &variables) {
variables_ = variables;
setParameter(std::string("Variables"), variables);
}
void EditJobTemplateRequest::setVariables(const std::string& variables)
{
variables_ = variables;
setParameter("Variables", variables);
std::string EditJobTemplateRequest::getRunasUser() const {
return runasUser_;
}
std::string EditJobTemplateRequest::getRunasUser()const
{
return runasUser_;
void EditJobTemplateRequest::setRunasUser(const std::string &runasUser) {
runasUser_ = runasUser;
setParameter(std::string("RunasUser"), runasUser);
}
void EditJobTemplateRequest::setRunasUser(const std::string& runasUser)
{
runasUser_ = runasUser;
setParameter("RunasUser", runasUser);
bool EditJobTemplateRequest::getReRunable() const {
return reRunable_;
}
bool EditJobTemplateRequest::getReRunable()const
{
return reRunable_;
void EditJobTemplateRequest::setReRunable(bool reRunable) {
reRunable_ = reRunable;
setParameter(std::string("ReRunable"), reRunable ? "true" : "false");
}
void EditJobTemplateRequest::setReRunable(bool reRunable)
{
reRunable_ = reRunable;
setParameter("ReRunable", reRunable ? "true" : "false");
std::string EditJobTemplateRequest::getTemplateId() const {
return templateId_;
}
int EditJobTemplateRequest::getThread()const
{
return thread_;
void EditJobTemplateRequest::setTemplateId(const std::string &templateId) {
templateId_ = templateId;
setParameter(std::string("TemplateId"), templateId);
}
void EditJobTemplateRequest::setThread(int thread)
{
thread_ = thread;
setParameter("Thread", std::to_string(thread));
int EditJobTemplateRequest::getPriority() const {
return priority_;
}
std::string EditJobTemplateRequest::getTemplateId()const
{
return templateId_;
void EditJobTemplateRequest::setPriority(int priority) {
priority_ = priority;
setParameter(std::string("Priority"), std::to_string(priority));
}
void EditJobTemplateRequest::setTemplateId(const std::string& templateId)
{
templateId_ = templateId;
setParameter("TemplateId", templateId);
std::string EditJobTemplateRequest::getName() const {
return name_;
}
int EditJobTemplateRequest::getPriority()const
{
return priority_;
}
void EditJobTemplateRequest::setPriority(int priority)
{
priority_ = priority;
setParameter("Priority", std::to_string(priority));
}
int EditJobTemplateRequest::getGpu()const
{
return gpu_;
}
void EditJobTemplateRequest::setGpu(int gpu)
{
gpu_ = gpu;
setParameter("Gpu", std::to_string(gpu));
}
int EditJobTemplateRequest::getNode()const
{
return node_;
}
void EditJobTemplateRequest::setNode(int node)
{
node_ = node;
setParameter("Node", std::to_string(node));
}
int EditJobTemplateRequest::getTask()const
{
return task_;
}
void EditJobTemplateRequest::setTask(int task)
{
task_ = task;
setParameter("Task", std::to_string(task));
}
std::string EditJobTemplateRequest::getName()const
{
return name_;
}
void EditJobTemplateRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string EditJobTemplateRequest::getQueue()const
{
return queue_;
}
void EditJobTemplateRequest::setQueue(const std::string& queue)
{
queue_ = queue;
setParameter("Queue", queue);
void EditJobTemplateRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}

View File

@@ -1,139 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/GetAccountingReportRequest.h>
using AlibabaCloud::EHPC::Model::GetAccountingReportRequest;
GetAccountingReportRequest::GetAccountingReportRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "GetAccountingReport")
{
setMethod(HttpRequest::Method::Get);
}
GetAccountingReportRequest::~GetAccountingReportRequest()
{}
std::string GetAccountingReportRequest::getReportType()const
{
return reportType_;
}
void GetAccountingReportRequest::setReportType(const std::string& reportType)
{
reportType_ = reportType;
setParameter("ReportType", reportType);
}
int GetAccountingReportRequest::getEndTime()const
{
return endTime_;
}
void GetAccountingReportRequest::setEndTime(int endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
std::string GetAccountingReportRequest::getFilterValue()const
{
return filterValue_;
}
void GetAccountingReportRequest::setFilterValue(const std::string& filterValue)
{
filterValue_ = filterValue;
setParameter("FilterValue", filterValue);
}
std::string GetAccountingReportRequest::getDim()const
{
return dim_;
}
void GetAccountingReportRequest::setDim(const std::string& dim)
{
dim_ = dim;
setParameter("Dim", dim);
}
std::string GetAccountingReportRequest::getClusterId()const
{
return clusterId_;
}
void GetAccountingReportRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
int GetAccountingReportRequest::getStartTime()const
{
return startTime_;
}
void GetAccountingReportRequest::setStartTime(int startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
int GetAccountingReportRequest::getPageNumber()const
{
return pageNumber_;
}
void GetAccountingReportRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string GetAccountingReportRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetAccountingReportRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string GetAccountingReportRequest::getJobId()const
{
return jobId_;
}
void GetAccountingReportRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setParameter("JobId", jobId);
}
int GetAccountingReportRequest::getPageSize()const
{
return pageSize_;
}
void GetAccountingReportRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -1,87 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/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());
auto allData = value["Data"]["Data"];
for (const auto &item : allData)
data_.push_back(item.asString());
if(!value["Metrics"].isNull())
metrics_ = value["Metrics"].asString();
if(!value["TotalCoreTime"].isNull())
totalCoreTime_ = std::stoi(value["TotalCoreTime"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
std::string GetAccountingReportResult::getMetrics()const
{
return metrics_;
}
int GetAccountingReportResult::getTotalCount()const
{
return totalCount_;
}
int GetAccountingReportResult::getPageSize()const
{
return pageSize_;
}
int GetAccountingReportResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<std::string> GetAccountingReportResult::getData()const
{
return data_;
}
int GetAccountingReportResult::getTotalCoreTime()const
{
return totalCoreTime_;
}

View File

@@ -1,51 +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/GetAutoScaleConfigRequest.h>
using AlibabaCloud::EHPC::Model::GetAutoScaleConfigRequest;
GetAutoScaleConfigRequest::GetAutoScaleConfigRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "GetAutoScaleConfig")
{
setMethod(HttpRequest::Method::Get);
}
GetAutoScaleConfigRequest::~GetAutoScaleConfigRequest()
{}
std::string GetAutoScaleConfigRequest::getClusterId()const
{
return clusterId_;
*/
#include <alibabacloud/ehpc/model/GetAutoScaleConfigRequest.h>
using AlibabaCloud::EHPC::Model::GetAutoScaleConfigRequest;
GetAutoScaleConfigRequest::GetAutoScaleConfigRequest()
: RpcServiceRequest("ehpc", "2017-07-14", "GetAutoScaleConfig") {
setMethod(HttpRequest::Method::Get);
}
void GetAutoScaleConfigRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
GetAutoScaleConfigRequest::~GetAutoScaleConfigRequest() {}
std::string GetAutoScaleConfigRequest::getClusterId() const {
return clusterId_;
}
std::string GetAutoScaleConfigRequest::getAccessKeyId()const
{
return accessKeyId_;
void GetAutoScaleConfigRequest::setClusterId(const std::string &clusterId) {
clusterId_ = clusterId;
setParameter(std::string("ClusterId"), clusterId);
}
void GetAutoScaleConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
std::string GetAutoScaleConfigRequest::getAccessKeyId() const {
return accessKeyId_;
}
void GetAutoScaleConfigRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}

View File

@@ -39,92 +39,32 @@ void GetAutoScaleConfigResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allQueuesNode = value["Queues"]["QueueInfo"];
for (auto valueQueuesQueueInfo : allQueuesNode)
{
QueueInfo queuesObject;
if(!valueQueuesQueueInfo["QueueName"].isNull())
queuesObject.queueName = valueQueuesQueueInfo["QueueName"].asString();
if(!valueQueuesQueueInfo["ResourceGroupId"].isNull())
queuesObject.resourceGroupId = valueQueuesQueueInfo["ResourceGroupId"].asString();
if(!valueQueuesQueueInfo["InstanceType"].isNull())
queuesObject.instanceType = valueQueuesQueueInfo["InstanceType"].asString();
if(!valueQueuesQueueInfo["SpotStrategy"].isNull())
queuesObject.spotStrategy = valueQueuesQueueInfo["SpotStrategy"].asString();
if(!valueQueuesQueueInfo["SpotPriceLimit"].isNull())
queuesObject.spotPriceLimit = std::stof(valueQueuesQueueInfo["SpotPriceLimit"].asString());
if(!valueQueuesQueueInfo["EnableAutoGrow"].isNull())
queuesObject.enableAutoGrow = valueQueuesQueueInfo["EnableAutoGrow"].asString() == "true";
if(!valueQueuesQueueInfo["EnableAutoShrink"].isNull())
queuesObject.enableAutoShrink = valueQueuesQueueInfo["EnableAutoShrink"].asString() == "true";
if(!valueQueuesQueueInfo["MaxNodesInQueue"].isNull())
queuesObject.maxNodesInQueue = std::stoi(valueQueuesQueueInfo["MaxNodesInQueue"].asString());
if(!valueQueuesQueueInfo["MinNodesInQueue"].isNull())
queuesObject.minNodesInQueue = std::stoi(valueQueuesQueueInfo["MinNodesInQueue"].asString());
if(!valueQueuesQueueInfo["QueueImageId"].isNull())
queuesObject.queueImageId = valueQueuesQueueInfo["QueueImageId"].asString();
if(!valueQueuesQueueInfo["HostNamePrefix"].isNull())
queuesObject.hostNamePrefix = valueQueuesQueueInfo["HostNamePrefix"].asString();
if(!valueQueuesQueueInfo["HostNameSuffix"].isNull())
queuesObject.hostNameSuffix = valueQueuesQueueInfo["HostNameSuffix"].asString();
if(!valueQueuesQueueInfo["SystemDiskSize"].isNull())
queuesObject.systemDiskSize = std::stoi(valueQueuesQueueInfo["SystemDiskSize"].asString());
if(!valueQueuesQueueInfo["SystemDiskCategory"].isNull())
queuesObject.systemDiskCategory = valueQueuesQueueInfo["SystemDiskCategory"].asString();
if(!valueQueuesQueueInfo["SystemDiskLevel"].isNull())
queuesObject.systemDiskLevel = valueQueuesQueueInfo["SystemDiskLevel"].asString();
auto allInstanceTypesNode = valueQueuesQueueInfo["InstanceTypes"]["InstanceTypeInfo"];
for (auto valueQueuesQueueInfoInstanceTypesInstanceTypeInfo : allInstanceTypesNode)
{
QueueInfo::InstanceTypeInfo instanceTypesObject;
if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["InstanceType"].isNull())
instanceTypesObject.instanceType = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["InstanceType"].asString();
if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["SpotStrategy"].isNull())
instanceTypesObject.spotStrategy = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["SpotStrategy"].asString();
if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["SpotPriceLimit"].isNull())
instanceTypesObject.spotPriceLimit = std::stof(valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["SpotPriceLimit"].asString());
if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["ZoneId"].isNull())
instanceTypesObject.zoneId = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["ZoneId"].asString();
if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["VSwitchId"].isNull())
instanceTypesObject.vSwitchId = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["VSwitchId"].asString();
if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["HostNamePrefix"].isNull())
instanceTypesObject.hostNamePrefix = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["HostNamePrefix"].asString();
queuesObject.instanceTypes.push_back(instanceTypesObject);
}
queues_.push_back(queuesObject);
}
if(!value["Uid"].isNull())
uid_ = value["Uid"].asString();
if(!value["ClusterId"].isNull())
clusterId_ = value["ClusterId"].asString();
if(!value["MaxNodesInCluster"].isNull())
maxNodesInCluster_ = std::stoi(value["MaxNodesInCluster"].asString());
if(!value["GrowTimeoutInMinutes"].isNull())
growTimeoutInMinutes_ = std::stoi(value["GrowTimeoutInMinutes"].asString());
if(!value["EnableAutoShrink"].isNull())
enableAutoShrink_ = value["EnableAutoShrink"].asString() == "true";
if(!value["ClusterType"].isNull())
clusterType_ = value["ClusterType"].asString();
if(!value["EnableAutoGrow"].isNull())
enableAutoGrow_ = value["EnableAutoGrow"].asString() == "true";
if(!value["EnableAutoShrink"].isNull())
enableAutoShrink_ = value["EnableAutoShrink"].asString() == "true";
if(!value["ExcludeNodes"].isNull())
excludeNodes_ = value["ExcludeNodes"].asString();
if(!value["GrowIntervalInMinutes"].isNull())
growIntervalInMinutes_ = std::stoi(value["GrowIntervalInMinutes"].asString());
if(!value["ShrinkIntervalInMinutes"].isNull())
shrinkIntervalInMinutes_ = std::stoi(value["ShrinkIntervalInMinutes"].asString());
if(!value["ShrinkIdleTimes"].isNull())
shrinkIdleTimes_ = std::stoi(value["ShrinkIdleTimes"].asString());
if(!value["GrowTimeoutInMinutes"].isNull())
growTimeoutInMinutes_ = std::stoi(value["GrowTimeoutInMinutes"].asString());
if(!value["ExtraNodesGrowRatio"].isNull())
extraNodesGrowRatio_ = std::stoi(value["ExtraNodesGrowRatio"].asString());
if(!value["GrowRatio"].isNull())
growRatio_ = std::stoi(value["GrowRatio"].asString());
if(!value["MaxNodesInCluster"].isNull())
maxNodesInCluster_ = std::stoi(value["MaxNodesInCluster"].asString());
if(!value["ExcludeNodes"].isNull())
excludeNodes_ = value["ExcludeNodes"].asString();
if(!value["SpotStrategy"].isNull())
spotStrategy_ = value["SpotStrategy"].asString();
if(!value["SpotPriceLimit"].isNull())
spotPriceLimit_ = std::stof(value["SpotPriceLimit"].asString());
if(!value["ImageId"].isNull())
imageId_ = value["ImageId"].asString();
if(!value["Uid"].isNull())
uid_ = value["Uid"].asString();
if(!value["ClusterId"].isNull())
clusterId_ = value["ClusterId"].asString();
}
@@ -143,19 +83,14 @@ std::string GetAutoScaleConfigResult::getClusterId()const
return clusterId_;
}
int GetAutoScaleConfigResult::getShrinkIdleTimes()const
{
return shrinkIdleTimes_;
}
int GetAutoScaleConfigResult::getMaxNodesInCluster()const
{
return maxNodesInCluster_;
}
std::string GetAutoScaleConfigResult::getClusterType()const
int GetAutoScaleConfigResult::getShrinkIdleTimes()const
{
return clusterType_;
return shrinkIdleTimes_;
}
bool GetAutoScaleConfigResult::getEnableAutoShrink()const
@@ -163,6 +98,11 @@ bool GetAutoScaleConfigResult::getEnableAutoShrink()const
return enableAutoShrink_;
}
std::string GetAutoScaleConfigResult::getClusterType()const
{
return clusterType_;
}
int GetAutoScaleConfigResult::getGrowRatio()const
{
return growRatio_;
@@ -183,33 +123,13 @@ int GetAutoScaleConfigResult::getGrowTimeoutInMinutes()const
return growTimeoutInMinutes_;
}
std::string GetAutoScaleConfigResult::getImageId()const
{
return imageId_;
}
int GetAutoScaleConfigResult::getShrinkIntervalInMinutes()const
{
return shrinkIntervalInMinutes_;
}
float GetAutoScaleConfigResult::getSpotPriceLimit()const
{
return spotPriceLimit_;
}
std::vector<GetAutoScaleConfigResult::QueueInfo> GetAutoScaleConfigResult::getQueues()const
{
return queues_;
}
std::string GetAutoScaleConfigResult::getExcludeNodes()const
{
return excludeNodes_;
}
std::string GetAutoScaleConfigResult::getSpotStrategy()const
{
return spotStrategy_;
}

View File

@@ -1,139 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/GetCloudMetricLogsRequest.h>
using AlibabaCloud::EHPC::Model::GetCloudMetricLogsRequest;
GetCloudMetricLogsRequest::GetCloudMetricLogsRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "GetCloudMetricLogs")
{
setMethod(HttpRequest::Method::Get);
}
GetCloudMetricLogsRequest::~GetCloudMetricLogsRequest()
{}
std::string GetCloudMetricLogsRequest::getMetricScope()const
{
return metricScope_;
}
void GetCloudMetricLogsRequest::setMetricScope(const std::string& metricScope)
{
metricScope_ = metricScope;
setParameter("MetricScope", metricScope);
}
std::string GetCloudMetricLogsRequest::getClusterId()const
{
return clusterId_;
}
void GetCloudMetricLogsRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
int GetCloudMetricLogsRequest::getAggregationInterval()const
{
return aggregationInterval_;
}
void GetCloudMetricLogsRequest::setAggregationInterval(int aggregationInterval)
{
aggregationInterval_ = aggregationInterval;
setParameter("AggregationInterval", std::to_string(aggregationInterval));
}
bool GetCloudMetricLogsRequest::getReverse()const
{
return reverse_;
}
void GetCloudMetricLogsRequest::setReverse(bool reverse)
{
reverse_ = reverse;
setParameter("Reverse", reverse ? "true" : "false");
}
std::string GetCloudMetricLogsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetCloudMetricLogsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string GetCloudMetricLogsRequest::getAggregationType()const
{
return aggregationType_;
}
void GetCloudMetricLogsRequest::setAggregationType(const std::string& aggregationType)
{
aggregationType_ = aggregationType;
setParameter("AggregationType", aggregationType);
}
std::string GetCloudMetricLogsRequest::getFilter()const
{
return filter_;
}
void GetCloudMetricLogsRequest::setFilter(const std::string& filter)
{
filter_ = filter;
setParameter("Filter", filter);
}
std::string GetCloudMetricLogsRequest::getMetricCategories()const
{
return metricCategories_;
}
void GetCloudMetricLogsRequest::setMetricCategories(const std::string& metricCategories)
{
metricCategories_ = metricCategories;
setParameter("MetricCategories", metricCategories);
}
int GetCloudMetricLogsRequest::getFrom()const
{
return from_;
}
void GetCloudMetricLogsRequest::setFrom(int from)
{
from_ = from;
setParameter("From", std::to_string(from));
}
int GetCloudMetricLogsRequest::getTo()const
{
return to_;
}
void GetCloudMetricLogsRequest::setTo(int to)
{
to_ = to;
setParameter("To", std::to_string(to));
}

View File

@@ -1,67 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/GetCloudMetricLogsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
GetCloudMetricLogsResult::GetCloudMetricLogsResult() :
ServiceResult()
{}
GetCloudMetricLogsResult::GetCloudMetricLogsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetCloudMetricLogsResult::~GetCloudMetricLogsResult()
{}
void GetCloudMetricLogsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allMetricLogsNode = value["MetricLogs"]["MetricLog"];
for (auto valueMetricLogsMetricLog : allMetricLogsNode)
{
MetricLog metricLogsObject;
if(!valueMetricLogsMetricLog["Time"].isNull())
metricLogsObject.time = std::stoi(valueMetricLogsMetricLog["Time"].asString());
if(!valueMetricLogsMetricLog["InstanceId"].isNull())
metricLogsObject.instanceId = valueMetricLogsMetricLog["InstanceId"].asString();
if(!valueMetricLogsMetricLog["Hostname"].isNull())
metricLogsObject.hostname = valueMetricLogsMetricLog["Hostname"].asString();
if(!valueMetricLogsMetricLog["NetworkInterface"].isNull())
metricLogsObject.networkInterface = valueMetricLogsMetricLog["NetworkInterface"].asString();
if(!valueMetricLogsMetricLog["DiskDevice"].isNull())
metricLogsObject.diskDevice = valueMetricLogsMetricLog["DiskDevice"].asString();
if(!valueMetricLogsMetricLog["MetricData"].isNull())
metricLogsObject.metricData = valueMetricLogsMetricLog["MetricData"].asString();
metricLogs_.push_back(metricLogsObject);
}
}
std::vector<GetCloudMetricLogsResult::MetricLog> GetCloudMetricLogsResult::getMetricLogs()const
{
return metricLogs_;
}

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/GetCloudMetricProfilingRequest.h>
using AlibabaCloud::EHPC::Model::GetCloudMetricProfilingRequest;
GetCloudMetricProfilingRequest::GetCloudMetricProfilingRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "GetCloudMetricProfiling")
{
setMethod(HttpRequest::Method::Get);
}
GetCloudMetricProfilingRequest::~GetCloudMetricProfilingRequest()
{}
std::string GetCloudMetricProfilingRequest::getClusterId()const
{
return clusterId_;
}
void GetCloudMetricProfilingRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string GetCloudMetricProfilingRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetCloudMetricProfilingRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string GetCloudMetricProfilingRequest::getRegionId()const
{
return regionId_;
}
void GetCloudMetricProfilingRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string GetCloudMetricProfilingRequest::getProfilingId()const
{
return profilingId_;
}
void GetCloudMetricProfilingRequest::setProfilingId(const std::string& profilingId)
{
profilingId_ = profilingId;
setParameter("ProfilingId", profilingId);
}

View File

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

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/GetClusterVolumesRequest.h>
using AlibabaCloud::EHPC::Model::GetClusterVolumesRequest;
GetClusterVolumesRequest::GetClusterVolumesRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "GetClusterVolumes")
{
setMethod(HttpRequest::Method::Get);
}
GetClusterVolumesRequest::~GetClusterVolumesRequest()
{}
std::string GetClusterVolumesRequest::getClusterId()const
{
return clusterId_;
}
void GetClusterVolumesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string GetClusterVolumesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetClusterVolumesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -1,88 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/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 allVolumesNode = value["Volumes"]["VolumeInfo"];
for (auto valueVolumesVolumeInfo : allVolumesNode)
{
VolumeInfo volumesObject;
if(!valueVolumesVolumeInfo["VolumeId"].isNull())
volumesObject.volumeId = valueVolumesVolumeInfo["VolumeId"].asString();
if(!valueVolumesVolumeInfo["VolumeType"].isNull())
volumesObject.volumeType = valueVolumesVolumeInfo["VolumeType"].asString();
if(!valueVolumesVolumeInfo["VolumeProtocol"].isNull())
volumesObject.volumeProtocol = valueVolumesVolumeInfo["VolumeProtocol"].asString();
if(!valueVolumesVolumeInfo["VolumeMountpoint"].isNull())
volumesObject.volumeMountpoint = valueVolumesVolumeInfo["VolumeMountpoint"].asString();
if(!valueVolumesVolumeInfo["RemoteDirectory"].isNull())
volumesObject.remoteDirectory = valueVolumesVolumeInfo["RemoteDirectory"].asString();
if(!valueVolumesVolumeInfo["LocalDirectory"].isNull())
volumesObject.localDirectory = valueVolumesVolumeInfo["LocalDirectory"].asString();
if(!valueVolumesVolumeInfo["Location"].isNull())
volumesObject.location = valueVolumesVolumeInfo["Location"].asString();
if(!valueVolumesVolumeInfo["JobQueue"].isNull())
volumesObject.jobQueue = valueVolumesVolumeInfo["JobQueue"].asString();
if(!valueVolumesVolumeInfo["MustKeep"].isNull())
volumesObject.mustKeep = valueVolumesVolumeInfo["MustKeep"].asString() == "true";
auto allRolesNode = valueVolumesVolumeInfo["Roles"]["RoleInfo"];
for (auto valueVolumesVolumeInfoRolesRoleInfo : allRolesNode)
{
VolumeInfo::RoleInfo rolesObject;
if(!valueVolumesVolumeInfoRolesRoleInfo["Name"].isNull())
rolesObject.name = valueVolumesVolumeInfoRolesRoleInfo["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

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/GetGWSConnectTicketRequest.h>
using AlibabaCloud::EHPC::Model::GetGWSConnectTicketRequest;
GetGWSConnectTicketRequest::GetGWSConnectTicketRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "GetGWSConnectTicket")
{
setMethod(HttpRequest::Method::Get);
}
GetGWSConnectTicketRequest::~GetGWSConnectTicketRequest()
{}
std::string GetGWSConnectTicketRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetGWSConnectTicketRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string GetGWSConnectTicketRequest::getInstanceId()const
{
return instanceId_;
}
void GetGWSConnectTicketRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string GetGWSConnectTicketRequest::getAppName()const
{
return appName_;
}
void GetGWSConnectTicketRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}

View File

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

View File

@@ -1,95 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/GetHealthMonitorLogsRequest.h>
using AlibabaCloud::EHPC::Model::GetHealthMonitorLogsRequest;
GetHealthMonitorLogsRequest::GetHealthMonitorLogsRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "GetHealthMonitorLogs")
{
setMethod(HttpRequest::Method::Get);
}
GetHealthMonitorLogsRequest::~GetHealthMonitorLogsRequest()
{}
int GetHealthMonitorLogsRequest::getEndTime()const
{
return endTime_;
}
void GetHealthMonitorLogsRequest::setEndTime(int endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
std::string GetHealthMonitorLogsRequest::getClusterId()const
{
return clusterId_;
}
void GetHealthMonitorLogsRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
int GetHealthMonitorLogsRequest::getStartTime()const
{
return startTime_;
}
void GetHealthMonitorLogsRequest::setStartTime(int startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string GetHealthMonitorLogsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetHealthMonitorLogsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool GetHealthMonitorLogsRequest::getEnableReverse()const
{
return enableReverse_;
}
void GetHealthMonitorLogsRequest::setEnableReverse(bool enableReverse)
{
enableReverse_ = enableReverse;
setParameter("EnableReverse", enableReverse ? "true" : "false");
}
std::string GetHealthMonitorLogsRequest::getFilter()const
{
return filter_;
}
void GetHealthMonitorLogsRequest::setFilter(const std::string& filter)
{
filter_ = filter;
setParameter("Filter", filter);
}

View File

@@ -1,87 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/GetHealthMonitorLogsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
GetHealthMonitorLogsResult::GetHealthMonitorLogsResult() :
ServiceResult()
{}
GetHealthMonitorLogsResult::GetHealthMonitorLogsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetHealthMonitorLogsResult::~GetHealthMonitorLogsResult()
{}
void GetHealthMonitorLogsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLogInfoNode = value["LogInfo"]["Logs"];
for (auto valueLogInfoLogs : allLogInfoNode)
{
Logs logInfoObject;
if(!valueLogInfoLogs["HealthId"].isNull())
logInfoObject.healthId = valueLogInfoLogs["HealthId"].asString();
if(!valueLogInfoLogs["HostName"].isNull())
logInfoObject.hostName = valueLogInfoLogs["HostName"].asString();
if(!valueLogInfoLogs["InstanceId"].isNull())
logInfoObject.instanceId = valueLogInfoLogs["InstanceId"].asString();
if(!valueLogInfoLogs["ItemDescription"].isNull())
logInfoObject.itemDescription = valueLogInfoLogs["ItemDescription"].asString();
if(!valueLogInfoLogs["ItemName"].isNull())
logInfoObject.itemName = valueLogInfoLogs["ItemName"].asString();
if(!valueLogInfoLogs["Level"].isNull())
logInfoObject.level = valueLogInfoLogs["Level"].asString();
if(!valueLogInfoLogs["SceneDescription"].isNull())
logInfoObject.sceneDescription = valueLogInfoLogs["SceneDescription"].asString();
if(!valueLogInfoLogs["SceneName"].isNull())
logInfoObject.sceneName = valueLogInfoLogs["SceneName"].asString();
if(!valueLogInfoLogs["Time"].isNull())
logInfoObject.time = std::stoi(valueLogInfoLogs["Time"].asString());
auto allCheckListNode = valueLogInfoLogs["CheckList"]["CheckListItem"];
for (auto valueLogInfoLogsCheckListCheckListItem : allCheckListNode)
{
Logs::CheckListItem checkListObject;
if(!valueLogInfoLogsCheckListCheckListItem["CheckDescription"].isNull())
checkListObject.checkDescription = valueLogInfoLogsCheckListCheckListItem["CheckDescription"].asString();
if(!valueLogInfoLogsCheckListCheckListItem["CheckInfo"].isNull())
checkListObject.checkInfo = valueLogInfoLogsCheckListCheckListItem["CheckInfo"].asString();
if(!valueLogInfoLogsCheckListCheckListItem["CheckName"].isNull())
checkListObject.checkName = valueLogInfoLogsCheckListCheckListItem["CheckName"].asString();
if(!valueLogInfoLogsCheckListCheckListItem["CheckSolution"].isNull())
checkListObject.checkSolution = valueLogInfoLogsCheckListCheckListItem["CheckSolution"].asString();
logInfoObject.checkList.push_back(checkListObject);
}
logInfo_.push_back(logInfoObject);
}
}
std::vector<GetHealthMonitorLogsResult::Logs> GetHealthMonitorLogsResult::getLogInfo()const
{
return logInfo_;
}

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/GetHybridClusterConfigRequest.h>
using AlibabaCloud::EHPC::Model::GetHybridClusterConfigRequest;
GetHybridClusterConfigRequest::GetHybridClusterConfigRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "GetHybridClusterConfig")
{
setMethod(HttpRequest::Method::Get);
}
GetHybridClusterConfigRequest::~GetHybridClusterConfigRequest()
{}
std::string GetHybridClusterConfigRequest::getClusterId()const
{
return clusterId_;
}
void GetHybridClusterConfigRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string GetHybridClusterConfigRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetHybridClusterConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string GetHybridClusterConfigRequest::getNode()const
{
return node_;
}
void GetHybridClusterConfigRequest::setNode(const std::string& node)
{
node_ = node;
setParameter("Node", node);
}

View File

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

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/GetIfEcsTypeSupportHtConfigRequest.h>
using AlibabaCloud::EHPC::Model::GetIfEcsTypeSupportHtConfigRequest;
GetIfEcsTypeSupportHtConfigRequest::GetIfEcsTypeSupportHtConfigRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "GetIfEcsTypeSupportHtConfig")
{
setMethod(HttpRequest::Method::Get);
}
GetIfEcsTypeSupportHtConfigRequest::~GetIfEcsTypeSupportHtConfigRequest()
{}
std::string GetIfEcsTypeSupportHtConfigRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetIfEcsTypeSupportHtConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string GetIfEcsTypeSupportHtConfigRequest::getInstanceType()const
{
return instanceType_;
}
void GetIfEcsTypeSupportHtConfigRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setParameter("InstanceType", instanceType);
}

View File

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

View File

@@ -1,77 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/GetSchedulerInfoRequest.h>
using AlibabaCloud::EHPC::Model::GetSchedulerInfoRequest;
GetSchedulerInfoRequest::GetSchedulerInfoRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "GetSchedulerInfo")
{
setMethod(HttpRequest::Method::Get);
}
GetSchedulerInfoRequest::~GetSchedulerInfoRequest()
{}
std::string GetSchedulerInfoRequest::getClusterId()const
{
return clusterId_;
}
void GetSchedulerInfoRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string GetSchedulerInfoRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetSchedulerInfoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::vector<GetSchedulerInfoRequest::Scheduler> GetSchedulerInfoRequest::getScheduler()const
{
return scheduler_;
}
void GetSchedulerInfoRequest::setScheduler(const std::vector<Scheduler>& scheduler)
{
scheduler_ = scheduler;
for(int dep1 = 0; dep1!= scheduler.size(); dep1++) {
auto schedulerObj = scheduler.at(dep1);
std::string schedulerObjStr = "Scheduler." + std::to_string(dep1 + 1);
setParameter(schedulerObjStr + ".SchedName", schedulerObj.schedName);
}
}
std::string GetSchedulerInfoRequest::getRegionId()const
{
return regionId_;
}
void GetSchedulerInfoRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

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

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/GetVisualServiceStatusRequest.h>
using AlibabaCloud::EHPC::Model::GetVisualServiceStatusRequest;
GetVisualServiceStatusRequest::GetVisualServiceStatusRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "GetVisualServiceStatus")
{
setMethod(HttpRequest::Method::Get);
}
GetVisualServiceStatusRequest::~GetVisualServiceStatusRequest()
{}
std::string GetVisualServiceStatusRequest::getClusterId()const
{
return clusterId_;
}
void GetVisualServiceStatusRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string GetVisualServiceStatusRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetVisualServiceStatusRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/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

@@ -1,117 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/GetWorkbenchTokenRequest.h>
using AlibabaCloud::EHPC::Model::GetWorkbenchTokenRequest;
GetWorkbenchTokenRequest::GetWorkbenchTokenRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "GetWorkbenchToken")
{
setMethod(HttpRequest::Method::Get);
}
GetWorkbenchTokenRequest::~GetWorkbenchTokenRequest()
{}
std::string GetWorkbenchTokenRequest::getClusterId()const
{
return clusterId_;
}
void GetWorkbenchTokenRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string GetWorkbenchTokenRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetWorkbenchTokenRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string GetWorkbenchTokenRequest::getUserPassword()const
{
return userPassword_;
}
void GetWorkbenchTokenRequest::setUserPassword(const std::string& userPassword)
{
userPassword_ = userPassword;
setParameter("UserPassword", userPassword);
}
std::string GetWorkbenchTokenRequest::getInstanceId()const
{
return instanceId_;
}
void GetWorkbenchTokenRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
int GetWorkbenchTokenRequest::getPort()const
{
return port_;
}
void GetWorkbenchTokenRequest::setPort(int port)
{
port_ = port;
setParameter("Port", std::to_string(port));
}
std::string GetWorkbenchTokenRequest::getAccountSessionTicket()const
{
return accountSessionTicket_;
}
void GetWorkbenchTokenRequest::setAccountSessionTicket(const std::string& accountSessionTicket)
{
accountSessionTicket_ = accountSessionTicket;
setParameter("AccountSessionTicket", accountSessionTicket);
}
std::string GetWorkbenchTokenRequest::getAccountUid()const
{
return accountUid_;
}
void GetWorkbenchTokenRequest::setAccountUid(const std::string& accountUid)
{
accountUid_ = accountUid;
setParameter("AccountUid", accountUid);
}
std::string GetWorkbenchTokenRequest::getUserName()const
{
return userName_;
}
void GetWorkbenchTokenRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

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

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