@@ -35,10 +35,13 @@ AddContainerAppResult::~AddContainerAppResult()
|
||||
|
||||
void AddContainerAppResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allContainerId = value["ContainerId"]["ContainerId"];
|
||||
for (const auto &item : allContainerId)
|
||||
|
||||
@@ -35,10 +35,13 @@ AddLocalNodesResult::~AddLocalNodesResult()
|
||||
|
||||
void AddLocalNodesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstanceIds = value["InstanceIds"]["InstanceId"];
|
||||
for (const auto &item : allInstanceIds)
|
||||
|
||||
@@ -124,6 +124,17 @@ void AddNodesRequest::setImageOwnerAlias(const std::string& imageOwnerAlias)
|
||||
setCoreParameter("ImageOwnerAlias", imageOwnerAlias);
|
||||
}
|
||||
|
||||
std::string AddNodesRequest::getSystemDiskType()const
|
||||
{
|
||||
return systemDiskType_;
|
||||
}
|
||||
|
||||
void AddNodesRequest::setSystemDiskType(const std::string& systemDiskType)
|
||||
{
|
||||
systemDiskType_ = systemDiskType;
|
||||
setCoreParameter("SystemDiskType", systemDiskType);
|
||||
}
|
||||
|
||||
std::string AddNodesRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ AddNodesResult::~AddNodesResult()
|
||||
|
||||
void AddNodesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstanceIds = value["InstanceIds"]["InstanceId"];
|
||||
for (const auto &item : allInstanceIds)
|
||||
|
||||
@@ -35,10 +35,13 @@ AddQueueResult::~AddQueueResult()
|
||||
|
||||
void AddQueueResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ AddUsersResult::~AddUsersResult()
|
||||
|
||||
void AddUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -214,6 +214,17 @@ void CreateClusterRequest::setDeployMode(const std::string& deployMode)
|
||||
setCoreParameter("DeployMode", deployMode);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getSystemDiskType()const
|
||||
{
|
||||
return systemDiskType_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setSystemDiskType(const std::string& systemDiskType)
|
||||
{
|
||||
systemDiskType_ = systemDiskType;
|
||||
setCoreParameter("SystemDiskType", systemDiskType);
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getEcsOrderManagerCount()const
|
||||
{
|
||||
return ecsOrderManagerCount_;
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateClusterResult::~CreateClusterResult()
|
||||
|
||||
void CreateClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
|
||||
71
ehpc/src/model/CreateGWSClusterRequest.cc
Normal file
71
ehpc/src/model/CreateGWSClusterRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/CreateGWSClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::CreateGWSClusterRequest;
|
||||
|
||||
CreateGWSClusterRequest::CreateGWSClusterRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "CreateGWSCluster")
|
||||
{}
|
||||
|
||||
CreateGWSClusterRequest::~CreateGWSClusterRequest()
|
||||
{}
|
||||
|
||||
std::string CreateGWSClusterRequest::getClusterType()const
|
||||
{
|
||||
return clusterType_;
|
||||
}
|
||||
|
||||
void CreateGWSClusterRequest::setClusterType(const std::string& clusterType)
|
||||
{
|
||||
clusterType_ = clusterType;
|
||||
setCoreParameter("ClusterType", clusterType);
|
||||
}
|
||||
|
||||
std::string CreateGWSClusterRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateGWSClusterRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setCoreParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateGWSClusterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateGWSClusterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateGWSClusterRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateGWSClusterRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
55
ehpc/src/model/CreateGWSClusterResult.cc
Normal file
55
ehpc/src/model/CreateGWSClusterResult.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateGWSClusterResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
60
ehpc/src/model/CreateGWSImageRequest.cc
Normal file
60
ehpc/src/model/CreateGWSImageRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/CreateGWSImageRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::CreateGWSImageRequest;
|
||||
|
||||
CreateGWSImageRequest::CreateGWSImageRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "CreateGWSImage")
|
||||
{}
|
||||
|
||||
CreateGWSImageRequest::~CreateGWSImageRequest()
|
||||
{}
|
||||
|
||||
std::string CreateGWSImageRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateGWSImageRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateGWSImageRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateGWSImageRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateGWSImageRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateGWSImageRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
55
ehpc/src/model/CreateGWSImageResult.cc
Normal file
55
ehpc/src/model/CreateGWSImageResult.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ImageId"].isNull())
|
||||
imageId_ = value["ImageId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateGWSImageResult::getImageId()const
|
||||
{
|
||||
return imageId_;
|
||||
}
|
||||
|
||||
214
ehpc/src/model/CreateGWSInstanceRequest.cc
Normal file
214
ehpc/src/model/CreateGWSInstanceRequest.cc
Normal file
@@ -0,0 +1,214 @@
|
||||
/*
|
||||
* 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")
|
||||
{}
|
||||
|
||||
CreateGWSInstanceRequest::~CreateGWSInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateGWSInstanceRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateGWSInstanceRequest::setPeriod(const std::string& period)
|
||||
{
|
||||
period_ = period;
|
||||
setCoreParameter("Period", period);
|
||||
}
|
||||
|
||||
std::string CreateGWSInstanceRequest::getImageId()const
|
||||
{
|
||||
return imageId_;
|
||||
}
|
||||
|
||||
void CreateGWSInstanceRequest::setImageId(const std::string& imageId)
|
||||
{
|
||||
imageId_ = imageId;
|
||||
setCoreParameter("ImageId", imageId);
|
||||
}
|
||||
|
||||
bool CreateGWSInstanceRequest::getAllocatePublicAddress()const
|
||||
{
|
||||
return allocatePublicAddress_;
|
||||
}
|
||||
|
||||
void CreateGWSInstanceRequest::setAllocatePublicAddress(bool allocatePublicAddress)
|
||||
{
|
||||
allocatePublicAddress_ = allocatePublicAddress;
|
||||
setCoreParameter("AllocatePublicAddress", allocatePublicAddress ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateGWSInstanceRequest::getAppList()const
|
||||
{
|
||||
return appList_;
|
||||
}
|
||||
|
||||
void CreateGWSInstanceRequest::setAppList(const std::string& appList)
|
||||
{
|
||||
appList_ = appList;
|
||||
setCoreParameter("AppList", appList);
|
||||
}
|
||||
|
||||
int CreateGWSInstanceRequest::getInternetMaxBandwidthOut()const
|
||||
{
|
||||
return internetMaxBandwidthOut_;
|
||||
}
|
||||
|
||||
void CreateGWSInstanceRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut)
|
||||
{
|
||||
internetMaxBandwidthOut_ = internetMaxBandwidthOut;
|
||||
setCoreParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut));
|
||||
}
|
||||
|
||||
std::string CreateGWSInstanceRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateGWSInstanceRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateGWSInstanceRequest::getWorkMode()const
|
||||
{
|
||||
return workMode_;
|
||||
}
|
||||
|
||||
void CreateGWSInstanceRequest::setWorkMode(const std::string& workMode)
|
||||
{
|
||||
workMode_ = workMode;
|
||||
setCoreParameter("WorkMode", workMode);
|
||||
}
|
||||
|
||||
std::string CreateGWSInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateGWSInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateGWSInstanceRequest::getPeriodUnit()const
|
||||
{
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
void CreateGWSInstanceRequest::setPeriodUnit(const std::string& periodUnit)
|
||||
{
|
||||
periodUnit_ = periodUnit;
|
||||
setCoreParameter("PeriodUnit", periodUnit);
|
||||
}
|
||||
|
||||
bool CreateGWSInstanceRequest::getAutoRenew()const
|
||||
{
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
void CreateGWSInstanceRequest::setAutoRenew(bool autoRenew)
|
||||
{
|
||||
autoRenew_ = autoRenew;
|
||||
setCoreParameter("AutoRenew", autoRenew ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateGWSInstanceRequest::getSystemDiskCategory()const
|
||||
{
|
||||
return systemDiskCategory_;
|
||||
}
|
||||
|
||||
void CreateGWSInstanceRequest::setSystemDiskCategory(const std::string& systemDiskCategory)
|
||||
{
|
||||
systemDiskCategory_ = systemDiskCategory;
|
||||
setCoreParameter("SystemDiskCategory", systemDiskCategory);
|
||||
}
|
||||
|
||||
std::string CreateGWSInstanceRequest::getInternetChargeType()const
|
||||
{
|
||||
return internetChargeType_;
|
||||
}
|
||||
|
||||
void CreateGWSInstanceRequest::setInternetChargeType(const std::string& internetChargeType)
|
||||
{
|
||||
internetChargeType_ = internetChargeType;
|
||||
setCoreParameter("InternetChargeType", internetChargeType);
|
||||
}
|
||||
|
||||
int CreateGWSInstanceRequest::getSystemDiskSize()const
|
||||
{
|
||||
return systemDiskSize_;
|
||||
}
|
||||
|
||||
void CreateGWSInstanceRequest::setSystemDiskSize(int systemDiskSize)
|
||||
{
|
||||
systemDiskSize_ = systemDiskSize;
|
||||
setCoreParameter("SystemDiskSize", std::to_string(systemDiskSize));
|
||||
}
|
||||
|
||||
std::string CreateGWSInstanceRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateGWSInstanceRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateGWSInstanceRequest::getInstanceType()const
|
||||
{
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
void CreateGWSInstanceRequest::setInstanceType(const std::string& instanceType)
|
||||
{
|
||||
instanceType_ = instanceType;
|
||||
setCoreParameter("InstanceType", instanceType);
|
||||
}
|
||||
|
||||
std::string CreateGWSInstanceRequest::getInstanceChargeType()const
|
||||
{
|
||||
return instanceChargeType_;
|
||||
}
|
||||
|
||||
void CreateGWSInstanceRequest::setInstanceChargeType(const std::string& instanceChargeType)
|
||||
{
|
||||
instanceChargeType_ = instanceChargeType;
|
||||
setCoreParameter("InstanceChargeType", instanceChargeType);
|
||||
}
|
||||
|
||||
int CreateGWSInstanceRequest::getInternetMaxBandwidthIn()const
|
||||
{
|
||||
return internetMaxBandwidthIn_;
|
||||
}
|
||||
|
||||
void CreateGWSInstanceRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn)
|
||||
{
|
||||
internetMaxBandwidthIn_ = internetMaxBandwidthIn;
|
||||
setCoreParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn));
|
||||
}
|
||||
|
||||
55
ehpc/src/model/CreateGWSInstanceResult.cc
Normal file
55
ehpc/src/model/CreateGWSInstanceResult.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateGWSInstanceResult::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
@@ -262,15 +262,24 @@ void CreateHybridClusterRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
setCoreParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateHybridClusterRequest::getNodes()const
|
||||
std::vector<CreateHybridClusterRequest::Nodes> CreateHybridClusterRequest::getNodes()const
|
||||
{
|
||||
return nodes_;
|
||||
}
|
||||
|
||||
void CreateHybridClusterRequest::setNodes(const std::string& nodes)
|
||||
void CreateHybridClusterRequest::setNodes(const std::vector<Nodes>& nodes)
|
||||
{
|
||||
nodes_ = nodes;
|
||||
setCoreParameter("Nodes", nodes);
|
||||
int i = 0;
|
||||
for(int i = 0; i!= nodes.size(); i++) {
|
||||
auto obj = nodes.at(i);
|
||||
std::string str ="Nodes."+ std::to_string(i);
|
||||
setCoreParameter(str + ".IpAddress", obj.ipAddress);
|
||||
setCoreParameter(str + ".HostName", obj.hostName);
|
||||
setCoreParameter(str + ".Role", obj.role);
|
||||
setCoreParameter(str + ".AccountType", obj.accountType);
|
||||
setCoreParameter(str + ".SchedulerType", obj.schedulerType);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<CreateHybridClusterRequest::Application> CreateHybridClusterRequest::getApplication()const
|
||||
@@ -355,6 +364,17 @@ void CreateHybridClusterRequest::setZoneId(const std::string& zoneId)
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
bool CreateHybridClusterRequest::getSchedulerPreInstall()const
|
||||
{
|
||||
return schedulerPreInstall_;
|
||||
}
|
||||
|
||||
void CreateHybridClusterRequest::setSchedulerPreInstall(bool schedulerPreInstall)
|
||||
{
|
||||
schedulerPreInstall_ = schedulerPreInstall;
|
||||
setCoreParameter("SchedulerPreInstall", schedulerPreInstall ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateHybridClusterRequest::getLocation()const
|
||||
{
|
||||
return location_;
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateHybridClusterResult::~CreateHybridClusterResult()
|
||||
|
||||
void CreateHybridClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateJobFileResult::~CreateJobFileResult()
|
||||
|
||||
void CreateJobFileResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TemplateId"].isNull())
|
||||
templateId_ = value["TemplateId"].asString();
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateJobTemplateResult::~CreateJobTemplateResult()
|
||||
|
||||
void CreateJobTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TemplateId"].isNull())
|
||||
templateId_ = value["TemplateId"].asString();
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteClusterResult::~DeleteClusterResult()
|
||||
|
||||
void DeleteClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteContainerAppsResult::~DeleteContainerAppsResult()
|
||||
|
||||
void DeleteContainerAppsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
49
ehpc/src/model/DeleteGWSClusterRequest.cc
Normal file
49
ehpc/src/model/DeleteGWSClusterRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/DeleteGWSClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::DeleteGWSClusterRequest;
|
||||
|
||||
DeleteGWSClusterRequest::DeleteGWSClusterRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "DeleteGWSCluster")
|
||||
{}
|
||||
|
||||
DeleteGWSClusterRequest::~DeleteGWSClusterRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteGWSClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteGWSClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DeleteGWSClusterRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteGWSClusterRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
48
ehpc/src/model/DeleteGWSClusterResult.cc
Normal file
48
ehpc/src/model/DeleteGWSClusterResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
49
ehpc/src/model/DeleteGWSInstanceRequest.cc
Normal file
49
ehpc/src/model/DeleteGWSInstanceRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/DeleteGWSInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::DeleteGWSInstanceRequest;
|
||||
|
||||
DeleteGWSInstanceRequest::DeleteGWSInstanceRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "DeleteGWSInstance")
|
||||
{}
|
||||
|
||||
DeleteGWSInstanceRequest::~DeleteGWSInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteGWSInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteGWSInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteGWSInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteGWSInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
48
ehpc/src/model/DeleteGWSInstanceResult.cc
Normal file
48
ehpc/src/model/DeleteGWSInstanceResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteImageResult::~DeleteImageResult()
|
||||
|
||||
void DeleteImageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteJobTemplatesResult::~DeleteJobTemplatesResult()
|
||||
|
||||
void DeleteJobTemplatesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteJobsResult::~DeleteJobsResult()
|
||||
|
||||
void DeleteJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteNodesResult::~DeleteNodesResult()
|
||||
|
||||
void DeleteNodesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteQueueResult::~DeleteQueueResult()
|
||||
|
||||
void DeleteQueueResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteUsersResult::~DeleteUsersResult()
|
||||
|
||||
void DeleteUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeAutoScaleConfigResult::~DescribeAutoScaleConfigResult()
|
||||
|
||||
void DescribeAutoScaleConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Uid"].isNull())
|
||||
uid_ = value["Uid"].asString();
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeClusterResult::~DescribeClusterResult()
|
||||
|
||||
void DescribeClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto clusterInfoNode = value["ClusterInfo"];
|
||||
if(!clusterInfoNode["Id"].isNull())
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeContainerAppResult::~DescribeContainerAppResult()
|
||||
|
||||
void DescribeContainerAppResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto containerAppInfoNode = value["ContainerAppInfo"];
|
||||
if(!containerAppInfoNode["Id"].isNull())
|
||||
|
||||
71
ehpc/src/model/DescribeGWSClustersRequest.cc
Normal file
71
ehpc/src/model/DescribeGWSClustersRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/DescribeGWSClustersRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::DescribeGWSClustersRequest;
|
||||
|
||||
DescribeGWSClustersRequest::DescribeGWSClustersRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "DescribeGWSClusters")
|
||||
{}
|
||||
|
||||
DescribeGWSClustersRequest::~DescribeGWSClustersRequest()
|
||||
{}
|
||||
|
||||
int DescribeGWSClustersRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeGWSClustersRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeGWSClustersRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeGWSClustersRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int DescribeGWSClustersRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeGWSClustersRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeGWSClustersRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeGWSClustersRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
97
ehpc/src/model/DescribeGWSClustersResult.cc
Normal file
97
ehpc/src/model/DescribeGWSClustersResult.cc
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* 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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allClusters = value["Clusters"]["ClusterInfo"];
|
||||
for (auto value : allClusters)
|
||||
{
|
||||
ClusterInfo clustersObject;
|
||||
if(!value["ClusterId"].isNull())
|
||||
clustersObject.clusterId = value["ClusterId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
clustersObject.status = value["Status"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
clustersObject.createTime = value["CreateTime"].asString();
|
||||
if(!value["VpcId"].isNull())
|
||||
clustersObject.vpcId = value["VpcId"].asString();
|
||||
if(!value["InstanceCount"].isNull())
|
||||
clustersObject.instanceCount = std::stoi(value["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_;
|
||||
}
|
||||
|
||||
60
ehpc/src/model/DescribeGWSImagesRequest.cc
Normal file
60
ehpc/src/model/DescribeGWSImagesRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/DescribeGWSImagesRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::DescribeGWSImagesRequest;
|
||||
|
||||
DescribeGWSImagesRequest::DescribeGWSImagesRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "DescribeGWSImages")
|
||||
{}
|
||||
|
||||
DescribeGWSImagesRequest::~DescribeGWSImagesRequest()
|
||||
{}
|
||||
|
||||
int DescribeGWSImagesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeGWSImagesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeGWSImagesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeGWSImagesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeGWSImagesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeGWSImagesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
94
ehpc/src/model/DescribeGWSImagesResult.cc
Normal file
94
ehpc/src/model/DescribeGWSImagesResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allImages = value["Images"]["ImageInfo"];
|
||||
for (auto value : allImages)
|
||||
{
|
||||
ImageInfo imagesObject;
|
||||
if(!value["ImageId"].isNull())
|
||||
imagesObject.imageId = value["ImageId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
imagesObject.status = value["Status"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
imagesObject.createTime = value["CreateTime"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
imagesObject.name = value["Name"].asString();
|
||||
if(!value["ImageType"].isNull())
|
||||
imagesObject.imageType = value["ImageType"].asString();
|
||||
if(!value["Progress"].isNull())
|
||||
imagesObject.progress = value["Progress"].asString();
|
||||
if(!value["Size"].isNull())
|
||||
imagesObject.size = std::stoi(value["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_;
|
||||
}
|
||||
|
||||
82
ehpc/src/model/DescribeGWSInstancesRequest.cc
Normal file
82
ehpc/src/model/DescribeGWSInstancesRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/DescribeGWSInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::DescribeGWSInstancesRequest;
|
||||
|
||||
DescribeGWSInstancesRequest::DescribeGWSInstancesRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "DescribeGWSInstances")
|
||||
{}
|
||||
|
||||
DescribeGWSInstancesRequest::~DescribeGWSInstancesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeGWSInstancesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeGWSInstancesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
int DescribeGWSInstancesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeGWSInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeGWSInstancesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeGWSInstancesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int DescribeGWSInstancesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeGWSInstancesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeGWSInstancesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeGWSInstancesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
110
ehpc/src/model/DescribeGWSInstancesResult.cc
Normal file
110
ehpc/src/model/DescribeGWSInstancesResult.cc
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* 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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstances = value["Instances"]["InstanceInfo"];
|
||||
for (auto value : allInstances)
|
||||
{
|
||||
InstanceInfo instancesObject;
|
||||
if(!value["ClusterId"].isNull())
|
||||
instancesObject.clusterId = value["ClusterId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
instancesObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["InstanceType"].isNull())
|
||||
instancesObject.instanceType = value["InstanceType"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
instancesObject.status = value["Status"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
instancesObject.createTime = value["CreateTime"].asString();
|
||||
if(!value["ExpireTime"].isNull())
|
||||
instancesObject.expireTime = value["ExpireTime"].asString();
|
||||
if(!value["WorkMode"].isNull())
|
||||
instancesObject.workMode = value["WorkMode"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
instancesObject.name = value["Name"].asString();
|
||||
if(!value["UserName"].isNull())
|
||||
instancesObject.userName = value["UserName"].asString();
|
||||
auto allAppList = value["AppList"]["AppInfo"];
|
||||
for (auto value : allAppList)
|
||||
{
|
||||
InstanceInfo::AppInfo appListObject;
|
||||
if(!value["AppName"].isNull())
|
||||
appListObject.appName = value["AppName"].asString();
|
||||
if(!value["AppPath"].isNull())
|
||||
appListObject.appPath = value["AppPath"].asString();
|
||||
if(!value["AppArgs"].isNull())
|
||||
appListObject.appArgs = value["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_;
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeImageGatewayConfigResult::~DescribeImageGatewayConfigResult()
|
||||
|
||||
void DescribeImageGatewayConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto imagegwNode = value["Imagegw"];
|
||||
if(!imagegwNode["DefaultImageLocation"].isNull())
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeImagePriceResult::~DescribeImagePriceResult()
|
||||
|
||||
void DescribeImagePriceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ImageId"].isNull())
|
||||
imageId_ = value["ImageId"].asString();
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeImageResult::~DescribeImageResult()
|
||||
|
||||
void DescribeImageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto imageInfoNode = value["ImageInfo"];
|
||||
if(!imageInfoNode["System"].isNull())
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeJobResult::~DescribeJobResult()
|
||||
|
||||
void DescribeJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto messageNode = value["Message"];
|
||||
if(!messageNode["JobInfo"].isNull())
|
||||
|
||||
49
ehpc/src/model/DescribeNFSClientStatusRequest.cc
Normal file
49
ehpc/src/model/DescribeNFSClientStatusRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/DescribeNFSClientStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::DescribeNFSClientStatusRequest;
|
||||
|
||||
DescribeNFSClientStatusRequest::DescribeNFSClientStatusRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "DescribeNFSClientStatus")
|
||||
{}
|
||||
|
||||
DescribeNFSClientStatusRequest::~DescribeNFSClientStatusRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeNFSClientStatusRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeNFSClientStatusRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeNFSClientStatusRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeNFSClientStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
67
ehpc/src/model/DescribeNFSClientStatusResult.cc
Normal file
67
ehpc/src/model/DescribeNFSClientStatusResult.cc
Normal file
@@ -0,0 +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/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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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_;
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribePriceResult::~DescribePriceResult()
|
||||
|
||||
void DescribePriceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPrices = value["Prices"]["PriceInfo"];
|
||||
for (auto value : allPrices)
|
||||
|
||||
@@ -35,10 +35,13 @@ EditJobTemplateResult::~EditJobTemplateResult()
|
||||
|
||||
void EditJobTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TemplateId"].isNull())
|
||||
templateId_ = value["TemplateId"].asString();
|
||||
|
||||
@@ -35,10 +35,13 @@ GetAccountingReportResult::~GetAccountingReportResult()
|
||||
|
||||
void GetAccountingReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Metrics"].isNull())
|
||||
metrics_ = value["Metrics"].asString();
|
||||
|
||||
@@ -35,10 +35,13 @@ GetAutoScaleConfigResult::~GetAutoScaleConfigResult()
|
||||
|
||||
void GetAutoScaleConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allQueues = value["Queues"]["QueueInfo"];
|
||||
for (auto value : allQueues)
|
||||
@@ -46,6 +49,8 @@ void GetAutoScaleConfigResult::parse(const std::string &payload)
|
||||
QueueInfo queuesObject;
|
||||
if(!value["QueueName"].isNull())
|
||||
queuesObject.queueName = value["QueueName"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
queuesObject.resourceGroupId = value["ResourceGroupId"].asString();
|
||||
if(!value["InstanceType"].isNull())
|
||||
queuesObject.instanceType = value["InstanceType"].asString();
|
||||
if(!value["SpotStrategy"].isNull())
|
||||
|
||||
@@ -35,10 +35,13 @@ GetCloudMetricLogsResult::~GetCloudMetricLogsResult()
|
||||
|
||||
void GetCloudMetricLogsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allMetricLogs = value["MetricLogs"]["MetricLog"];
|
||||
for (auto value : allMetricLogs)
|
||||
|
||||
@@ -35,10 +35,13 @@ GetCloudMetricProfilingResult::~GetCloudMetricProfilingResult()
|
||||
|
||||
void GetCloudMetricProfilingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSvgUrls = value["SvgUrls"]["SvgInfo"];
|
||||
for (auto value : allSvgUrls)
|
||||
|
||||
@@ -35,10 +35,13 @@ GetClusterVolumesResult::~GetClusterVolumesResult()
|
||||
|
||||
void GetClusterVolumesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allVolumes = value["Volumes"]["VolumeInfo"];
|
||||
for (auto value : allVolumes)
|
||||
|
||||
60
ehpc/src/model/GetGWSConnectTicketRequest.cc
Normal file
60
ehpc/src/model/GetGWSConnectTicketRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/GetGWSConnectTicketRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::GetGWSConnectTicketRequest;
|
||||
|
||||
GetGWSConnectTicketRequest::GetGWSConnectTicketRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "GetGWSConnectTicket")
|
||||
{}
|
||||
|
||||
GetGWSConnectTicketRequest::~GetGWSConnectTicketRequest()
|
||||
{}
|
||||
|
||||
std::string GetGWSConnectTicketRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetGWSConnectTicketRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetGWSConnectTicketRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void GetGWSConnectTicketRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setCoreParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string GetGWSConnectTicketRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetGWSConnectTicketRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
55
ehpc/src/model/GetGWSConnectTicketResult.cc
Normal file
55
ehpc/src/model/GetGWSConnectTicketResult.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Ticket"].isNull())
|
||||
ticket_ = value["Ticket"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetGWSConnectTicketResult::getTicket()const
|
||||
{
|
||||
return ticket_;
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ GetHybridClusterConfigResult::~GetHybridClusterConfigResult()
|
||||
|
||||
void GetHybridClusterConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterConfig"].isNull())
|
||||
clusterConfig_ = value["ClusterConfig"].asString();
|
||||
|
||||
@@ -35,10 +35,13 @@ GetVisualServiceStatusResult::~GetVisualServiceStatusResult()
|
||||
|
||||
void GetVisualServiceStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
49
ehpc/src/model/InstallNFSClientRequest.cc
Normal file
49
ehpc/src/model/InstallNFSClientRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/InstallNFSClientRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::InstallNFSClientRequest;
|
||||
|
||||
InstallNFSClientRequest::InstallNFSClientRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "InstallNFSClient")
|
||||
{}
|
||||
|
||||
InstallNFSClientRequest::~InstallNFSClientRequest()
|
||||
{}
|
||||
|
||||
std::string InstallNFSClientRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void InstallNFSClientRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string InstallNFSClientRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void InstallNFSClientRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
55
ehpc/src/model/InstallNFSClientResult.cc
Normal file
55
ehpc/src/model/InstallNFSClientResult.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/InstallNFSClientResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
InstallNFSClientResult::InstallNFSClientResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InstallNFSClientResult::InstallNFSClientResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InstallNFSClientResult::~InstallNFSClientResult()
|
||||
{}
|
||||
|
||||
void InstallNFSClientResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["InvokeId"].isNull())
|
||||
invokeId_ = value["InvokeId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string InstallNFSClientResult::getInvokeId()const
|
||||
{
|
||||
return invokeId_;
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ InstallSoftwareResult::~InstallSoftwareResult()
|
||||
|
||||
void InstallSoftwareResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ InvokeShellCommandResult::~InvokeShellCommandResult()
|
||||
|
||||
void InvokeShellCommandResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstanceIds = value["InstanceIds"]["InstanceId"];
|
||||
for (const auto &item : allInstanceIds)
|
||||
|
||||
@@ -47,6 +47,17 @@ void ListAvailableEcsTypesRequest::setZoneId(const std::string& zoneId)
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
bool ListAvailableEcsTypesRequest::getShowSoldOut()const
|
||||
{
|
||||
return showSoldOut_;
|
||||
}
|
||||
|
||||
void ListAvailableEcsTypesRequest::setShowSoldOut(bool showSoldOut)
|
||||
{
|
||||
showSoldOut_ = showSoldOut;
|
||||
setCoreParameter("ShowSoldOut", showSoldOut ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListAvailableEcsTypesRequest::getInstanceChargeType()const
|
||||
{
|
||||
return instanceChargeType_;
|
||||
|
||||
@@ -35,10 +35,13 @@ ListAvailableEcsTypesResult::~ListAvailableEcsTypesResult()
|
||||
|
||||
void ListAvailableEcsTypesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstanceTypeFamilies = value["InstanceTypeFamilies"]["InstanceTypeFamilyInfo"];
|
||||
for (auto value : allInstanceTypeFamilies)
|
||||
@@ -72,6 +75,8 @@ void ListAvailableEcsTypesResult::parse(const std::string &payload)
|
||||
typesObject.instanceTypeId = value["InstanceTypeId"].asString();
|
||||
if(!value["GPUSpec"].isNull())
|
||||
typesObject.gPUSpec = value["GPUSpec"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
typesObject.status = value["Status"].asString();
|
||||
instanceTypeFamiliesObject.types.push_back(typesObject);
|
||||
}
|
||||
instanceTypeFamilies_.push_back(instanceTypeFamiliesObject);
|
||||
|
||||
@@ -35,10 +35,13 @@ ListAvailableFileSystemTypesResult::~ListAvailableFileSystemTypesResult()
|
||||
|
||||
void ListAvailableFileSystemTypesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFileSystemTypeList = value["FileSystemTypeList"]["FileSystemTypes"];
|
||||
for (auto value : allFileSystemTypeList)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListCloudMetricProfilingsResult::~ListCloudMetricProfilingsResult()
|
||||
|
||||
void ListCloudMetricProfilingsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allProfilings = value["Profilings"]["ProfilingInfo"];
|
||||
for (auto value : allProfilings)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListClusterLogsResult::~ListClusterLogsResult()
|
||||
|
||||
void ListClusterLogsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLogs = value["Logs"]["LogInfo"];
|
||||
for (auto value : allLogs)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListClustersMetaResult::~ListClustersMetaResult()
|
||||
|
||||
void ListClustersMetaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allClusters = value["Clusters"]["ClusterInfoSimple"];
|
||||
for (auto value : allClusters)
|
||||
@@ -52,6 +55,8 @@ void ListClustersMetaResult::parse(const std::string &payload)
|
||||
clustersObject.description = value["Description"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
clustersObject.status = value["Status"].asString();
|
||||
if(!value["Location"].isNull())
|
||||
clustersObject.location = value["Location"].asString();
|
||||
clusters_.push_back(clustersObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
@@ -35,10 +35,13 @@ ListClustersResult::~ListClustersResult()
|
||||
|
||||
void ListClustersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allClusters = value["Clusters"]["ClusterInfoSimple"];
|
||||
for (auto value : allClusters)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListCommandsResult::~ListCommandsResult()
|
||||
|
||||
void ListCommandsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCommands = value["Commands"]["Command"];
|
||||
for (auto value : allCommands)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListContainerAppsResult::~ListContainerAppsResult()
|
||||
|
||||
void ListContainerAppsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allContainerApps = value["ContainerApps"]["ContainerAppsItem"];
|
||||
for (auto value : allContainerApps)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListContainerImagesResult::~ListContainerImagesResult()
|
||||
|
||||
void ListContainerImagesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allImages = value["Images"]["ImagesItem"];
|
||||
for (auto value : allImages)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListCpfsFileSystemsResult::~ListCpfsFileSystemsResult()
|
||||
|
||||
void ListCpfsFileSystemsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFileSystemList = value["FileSystemList"]["FileSystems"];
|
||||
for (auto value : allFileSystemList)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListCurrentClientVersionResult::~ListCurrentClientVersionResult()
|
||||
|
||||
void ListCurrentClientVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClientVersion"].isNull())
|
||||
clientVersion_ = value["ClientVersion"].asString();
|
||||
|
||||
@@ -35,10 +35,13 @@ ListCustomImagesResult::~ListCustomImagesResult()
|
||||
|
||||
void ListCustomImagesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allImages = value["Images"]["ImageInfo"];
|
||||
for (auto value : allImages)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListFileSystemWithMountTargetsResult::~ListFileSystemWithMountTargetsResult()
|
||||
|
||||
void ListFileSystemWithMountTargetsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFileSystemList = value["FileSystemList"]["FileSystems"];
|
||||
for (auto value : allFileSystemList)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListImagesResult::~ListImagesResult()
|
||||
|
||||
void ListImagesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allOsTags = value["OsTags"]["OsInfo"];
|
||||
for (auto value : allOsTags)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListInstalledSoftwareResult::~ListInstalledSoftwareResult()
|
||||
|
||||
void ListInstalledSoftwareResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSoftwareList = value["SoftwareList"]["SoftwareListItem"];
|
||||
for (auto value : allSoftwareList)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListInvocationResultsResult::~ListInvocationResultsResult()
|
||||
|
||||
void ListInvocationResultsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInvocationResults = value["InvocationResults"]["InvocationResult"];
|
||||
for (auto value : allInvocationResults)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListInvocationStatusResult::~ListInvocationStatusResult()
|
||||
|
||||
void ListInvocationStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInvokeInstances = value["InvokeInstances"]["InvokeInstance"];
|
||||
for (auto value : allInvokeInstances)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListJobTemplatesResult::~ListJobTemplatesResult()
|
||||
|
||||
void ListJobTemplatesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTemplates = value["Templates"]["JobTemplates"];
|
||||
for (auto value : allTemplates)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListJobsResult::~ListJobsResult()
|
||||
|
||||
void ListJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allJobs = value["Jobs"]["JobInfo"];
|
||||
for (auto value : allJobs)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListNodesByQueueResult::~ListNodesByQueueResult()
|
||||
|
||||
void ListNodesByQueueResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNodes = value["Nodes"]["NodeInfo"];
|
||||
for (auto value : allNodes)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListNodesNoPagingResult::~ListNodesNoPagingResult()
|
||||
|
||||
void ListNodesNoPagingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNodes = value["Nodes"]["NodeInfo"];
|
||||
for (auto value : allNodes)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListNodesResult::~ListNodesResult()
|
||||
|
||||
void ListNodesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNodes = value["Nodes"]["NodeInfo"];
|
||||
for (auto value : allNodes)
|
||||
@@ -50,6 +53,8 @@ void ListNodesResult::parse(const std::string &payload)
|
||||
nodesObject.regionId = value["RegionId"].asString();
|
||||
if(!value["HostName"].isNull())
|
||||
nodesObject.hostName = value["HostName"].asString();
|
||||
if(!value["IpAddress"].isNull())
|
||||
nodesObject.ipAddress = value["IpAddress"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
nodesObject.status = value["Status"].asString();
|
||||
if(!value["Version"].isNull())
|
||||
|
||||
@@ -35,10 +35,13 @@ ListPreferredEcsTypesResult::~ListPreferredEcsTypesResult()
|
||||
|
||||
void ListPreferredEcsTypesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSeries = value["Series"]["SeriesInfo"];
|
||||
for (auto value : allSeries)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListQueuesResult::~ListQueuesResult()
|
||||
|
||||
void ListQueuesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allQueues = value["Queues"]["QueueInfo"];
|
||||
for (auto value : allQueues)
|
||||
@@ -48,6 +51,10 @@ void ListQueuesResult::parse(const std::string &payload)
|
||||
queuesObject.queueName = value["QueueName"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
queuesObject.type = value["Type"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
queuesObject.resourceGroupId = value["ResourceGroupId"].asString();
|
||||
if(!value["ComputeInstanceType"].isNull())
|
||||
queuesObject.computeInstanceType = value["ComputeInstanceType"].asString();
|
||||
queues_.push_back(queuesObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ListRegionsResult::~ListRegionsResult()
|
||||
|
||||
void ListRegionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegions = value["Regions"]["RegionInfo"];
|
||||
for (auto value : allRegions)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListSoftwaresResult::~ListSoftwaresResult()
|
||||
|
||||
void ListSoftwaresResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSoftwares = value["Softwares"]["SoftwareInfo"];
|
||||
for (auto value : allSoftwares)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListUsersResult::~ListUsersResult()
|
||||
|
||||
void ListUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUsers = value["Users"]["UserInfo"];
|
||||
for (auto value : allUsers)
|
||||
|
||||
@@ -35,10 +35,13 @@ ListVolumesResult::~ListVolumesResult()
|
||||
|
||||
void ListVolumesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allVolumes = value["Volumes"]["VolumeInfo"];
|
||||
for (auto value : allVolumes)
|
||||
|
||||
@@ -35,10 +35,13 @@ ModifyClusterAttributesResult::~ModifyClusterAttributesResult()
|
||||
|
||||
void ModifyClusterAttributesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ ModifyContainerAppAttributesResult::~ModifyContainerAppAttributesResult()
|
||||
|
||||
void ModifyContainerAppAttributesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ ModifyImageGatewayConfigResult::~ModifyImageGatewayConfigResult()
|
||||
|
||||
void ModifyImageGatewayConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ ModifyUserGroupsResult::~ModifyUserGroupsResult()
|
||||
|
||||
void ModifyUserGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ ModifyUserPasswordsResult::~ModifyUserPasswordsResult()
|
||||
|
||||
void ModifyUserPasswordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ ModifyVisualServicePasswdResult::~ModifyVisualServicePasswdResult()
|
||||
|
||||
void ModifyVisualServicePasswdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
71
ehpc/src/model/MountNFSRequest.cc
Normal file
71
ehpc/src/model/MountNFSRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/MountNFSRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::MountNFSRequest;
|
||||
|
||||
MountNFSRequest::MountNFSRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "MountNFS")
|
||||
{}
|
||||
|
||||
MountNFSRequest::~MountNFSRequest()
|
||||
{}
|
||||
|
||||
std::string MountNFSRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void MountNFSRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string MountNFSRequest::getNfsDir()const
|
||||
{
|
||||
return nfsDir_;
|
||||
}
|
||||
|
||||
void MountNFSRequest::setNfsDir(const std::string& nfsDir)
|
||||
{
|
||||
nfsDir_ = nfsDir;
|
||||
setCoreParameter("NfsDir", nfsDir);
|
||||
}
|
||||
|
||||
std::string MountNFSRequest::getMountDir()const
|
||||
{
|
||||
return mountDir_;
|
||||
}
|
||||
|
||||
void MountNFSRequest::setMountDir(const std::string& mountDir)
|
||||
{
|
||||
mountDir_ = mountDir;
|
||||
setCoreParameter("MountDir", mountDir);
|
||||
}
|
||||
|
||||
std::string MountNFSRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void MountNFSRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
55
ehpc/src/model/MountNFSResult.cc
Normal file
55
ehpc/src/model/MountNFSResult.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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/MountNFSResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
MountNFSResult::MountNFSResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
MountNFSResult::MountNFSResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
MountNFSResult::~MountNFSResult()
|
||||
{}
|
||||
|
||||
void MountNFSResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["InvokeId"].isNull())
|
||||
invokeId_ = value["InvokeId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string MountNFSResult::getInvokeId()const
|
||||
{
|
||||
return invokeId_;
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ PullImageResult::~PullImageResult()
|
||||
|
||||
void PullImageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
38
ehpc/src/model/QueryServicePackAndPriceRequest.cc
Normal file
38
ehpc/src/model/QueryServicePackAndPriceRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/QueryServicePackAndPriceRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::QueryServicePackAndPriceRequest;
|
||||
|
||||
QueryServicePackAndPriceRequest::QueryServicePackAndPriceRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "QueryServicePackAndPrice")
|
||||
{}
|
||||
|
||||
QueryServicePackAndPriceRequest::~QueryServicePackAndPriceRequest()
|
||||
{}
|
||||
|
||||
std::string QueryServicePackAndPriceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryServicePackAndPriceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
116
ehpc/src/model/QueryServicePackAndPriceResult.cc
Normal file
116
ehpc/src/model/QueryServicePackAndPriceResult.cc
Normal file
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
* 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/QueryServicePackAndPriceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
QueryServicePackAndPriceResult::QueryServicePackAndPriceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryServicePackAndPriceResult::QueryServicePackAndPriceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryServicePackAndPriceResult::~QueryServicePackAndPriceResult()
|
||||
{}
|
||||
|
||||
void QueryServicePackAndPriceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allServicePack = value["ServicePack"]["ServicePackInfo"];
|
||||
for (auto value : allServicePack)
|
||||
{
|
||||
ServicePackInfo servicePackObject;
|
||||
if(!value["InstanceName"].isNull())
|
||||
servicePackObject.instanceName = value["InstanceName"].asString();
|
||||
if(!value["Capacity"].isNull())
|
||||
servicePackObject.capacity = std::stoi(value["Capacity"].asString());
|
||||
if(!value["StartTime"].isNull())
|
||||
servicePackObject.startTime = std::stoi(value["StartTime"].asString());
|
||||
if(!value["EndTime"].isNull())
|
||||
servicePackObject.endTime = std::stoi(value["EndTime"].asString());
|
||||
servicePack_.push_back(servicePackObject);
|
||||
}
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["TradePrice"].isNull())
|
||||
tradePrice_ = std::stof(value["TradePrice"].asString());
|
||||
if(!value["OriginalPrice"].isNull())
|
||||
originalPrice_ = std::stof(value["OriginalPrice"].asString());
|
||||
if(!value["DiscountPrice"].isNull())
|
||||
discountPrice_ = std::stof(value["DiscountPrice"].asString());
|
||||
if(!value["Currency"].isNull())
|
||||
currency_ = value["Currency"].asString();
|
||||
if(!value["OriginalAmount"].isNull())
|
||||
originalAmount_ = std::stoi(value["OriginalAmount"].asString());
|
||||
if(!value["ChargeAmount"].isNull())
|
||||
chargeAmount_ = std::stoi(value["ChargeAmount"].asString());
|
||||
|
||||
}
|
||||
|
||||
float QueryServicePackAndPriceResult::getOriginalPrice()const
|
||||
{
|
||||
return originalPrice_;
|
||||
}
|
||||
|
||||
float QueryServicePackAndPriceResult::getDiscountPrice()const
|
||||
{
|
||||
return discountPrice_;
|
||||
}
|
||||
|
||||
std::string QueryServicePackAndPriceResult::getCurrency()const
|
||||
{
|
||||
return currency_;
|
||||
}
|
||||
|
||||
std::vector<QueryServicePackAndPriceResult::ServicePackInfo> QueryServicePackAndPriceResult::getServicePack()const
|
||||
{
|
||||
return servicePack_;
|
||||
}
|
||||
|
||||
std::string QueryServicePackAndPriceResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
float QueryServicePackAndPriceResult::getTradePrice()const
|
||||
{
|
||||
return tradePrice_;
|
||||
}
|
||||
|
||||
int QueryServicePackAndPriceResult::getOriginalAmount()const
|
||||
{
|
||||
return originalAmount_;
|
||||
}
|
||||
|
||||
int QueryServicePackAndPriceResult::getChargeAmount()const
|
||||
{
|
||||
return chargeAmount_;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user