ReleaseClusterHostGroup add support for ReleaseNumber.
This commit is contained in:
@@ -31,21 +31,21 @@ EmrClient::EmrClient(const Credentials &credentials, const ClientConfiguration &
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "emr");
|
||||
}
|
||||
|
||||
EmrClient::EmrClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "emr");
|
||||
}
|
||||
|
||||
EmrClient::EmrClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "emr");
|
||||
}
|
||||
|
||||
EmrClient::~EmrClient()
|
||||
@@ -1635,78 +1635,6 @@ EmrClient::DescribeFlowProjectClusterSettingOutcomeCallable EmrClient::describeF
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EmrClient::DescribeFlowVariableCollectionOutcome EmrClient::describeFlowVariableCollection(const DescribeFlowVariableCollectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeFlowVariableCollectionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeFlowVariableCollectionOutcome(DescribeFlowVariableCollectionResult(outcome.result()));
|
||||
else
|
||||
return DescribeFlowVariableCollectionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EmrClient::describeFlowVariableCollectionAsync(const DescribeFlowVariableCollectionRequest& request, const DescribeFlowVariableCollectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeFlowVariableCollection(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EmrClient::DescribeFlowVariableCollectionOutcomeCallable EmrClient::describeFlowVariableCollectionCallable(const DescribeFlowVariableCollectionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeFlowVariableCollectionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeFlowVariableCollection(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EmrClient::DescribeScalingCommonConfigOutcome EmrClient::describeScalingCommonConfig(const DescribeScalingCommonConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeScalingCommonConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeScalingCommonConfigOutcome(DescribeScalingCommonConfigResult(outcome.result()));
|
||||
else
|
||||
return DescribeScalingCommonConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EmrClient::describeScalingCommonConfigAsync(const DescribeScalingCommonConfigRequest& request, const DescribeScalingCommonConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeScalingCommonConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EmrClient::DescribeScalingCommonConfigOutcomeCallable EmrClient::describeScalingCommonConfigCallable(const DescribeScalingCommonConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeScalingCommonConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeScalingCommonConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EmrClient::DescribeScalingConfigItemV2Outcome EmrClient::describeScalingConfigItemV2(const DescribeScalingConfigItemV2Request &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1887,42 +1815,6 @@ EmrClient::KillFlowJobOutcomeCallable EmrClient::killFlowJobCallable(const KillF
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EmrClient::ListApmApplicationOutcome EmrClient::listApmApplication(const ListApmApplicationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListApmApplicationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListApmApplicationOutcome(ListApmApplicationResult(outcome.result()));
|
||||
else
|
||||
return ListApmApplicationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EmrClient::listApmApplicationAsync(const ListApmApplicationRequest& request, const ListApmApplicationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listApmApplication(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EmrClient::ListApmApplicationOutcomeCallable EmrClient::listApmApplicationCallable(const ListApmApplicationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListApmApplicationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listApmApplication(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EmrClient::ListClusterHostOutcome EmrClient::listClusterHost(const ListClusterHostRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2247,42 +2139,6 @@ EmrClient::ListClusterServiceOutcomeCallable EmrClient::listClusterServiceCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EmrClient::ListClusterServiceComponentOutcome EmrClient::listClusterServiceComponent(const ListClusterServiceComponentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListClusterServiceComponentOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListClusterServiceComponentOutcome(ListClusterServiceComponentResult(outcome.result()));
|
||||
else
|
||||
return ListClusterServiceComponentOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EmrClient::listClusterServiceComponentAsync(const ListClusterServiceComponentRequest& request, const ListClusterServiceComponentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listClusterServiceComponent(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EmrClient::ListClusterServiceComponentOutcomeCallable EmrClient::listClusterServiceComponentCallable(const ListClusterServiceComponentRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListClusterServiceComponentOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listClusterServiceComponent(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EmrClient::ListClusterServiceComponentHealthInfoOutcome EmrClient::listClusterServiceComponentHealthInfo(const ListClusterServiceComponentHealthInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeFlowVariableCollectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DescribeFlowVariableCollectionRequest;
|
||||
|
||||
DescribeFlowVariableCollectionRequest::DescribeFlowVariableCollectionRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeFlowVariableCollection")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFlowVariableCollectionRequest::~DescribeFlowVariableCollectionRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeFlowVariableCollectionRequest::getEntityId()const
|
||||
{
|
||||
return entityId_;
|
||||
}
|
||||
|
||||
void DescribeFlowVariableCollectionRequest::setEntityId(const std::string& entityId)
|
||||
{
|
||||
entityId_ = entityId;
|
||||
setParameter("EntityId", entityId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowVariableCollectionRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeFlowVariableCollectionRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowVariableCollectionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeFlowVariableCollectionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeFlowVariableCollectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DescribeFlowVariableCollectionResult::DescribeFlowVariableCollectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeFlowVariableCollectionResult::DescribeFlowVariableCollectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeFlowVariableCollectionResult::~DescribeFlowVariableCollectionResult()
|
||||
{}
|
||||
|
||||
void DescribeFlowVariableCollectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeFlowVariableCollectionResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeScalingCommonConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DescribeScalingCommonConfigRequest;
|
||||
|
||||
DescribeScalingCommonConfigRequest::DescribeScalingCommonConfigRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeScalingCommonConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeScalingCommonConfigRequest::~DescribeScalingCommonConfigRequest()
|
||||
{}
|
||||
|
||||
long DescribeScalingCommonConfigRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeScalingCommonConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeScalingCommonConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeScalingCommonConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingCommonConfigRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeScalingCommonConfigRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingCommonConfigRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeScalingCommonConfigRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -1,114 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeScalingCommonConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DescribeScalingCommonConfigResult::DescribeScalingCommonConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeScalingCommonConfigResult::DescribeScalingCommonConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeScalingCommonConfigResult::~DescribeScalingCommonConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeScalingCommonConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AutoScalingHookHeartbeatDefaultTime"].isNull())
|
||||
autoScalingHookHeartbeatDefaultTime_ = std::stoi(value["AutoScalingHookHeartbeatDefaultTime"].asString());
|
||||
if(!value["AutoScalingCoolDownTime"].isNull())
|
||||
autoScalingCoolDownTime_ = std::stoi(value["AutoScalingCoolDownTime"].asString());
|
||||
if(!value["AutoScalingMNSScalingThreadSleepTime"].isNull())
|
||||
autoScalingMNSScalingThreadSleepTime_ = std::stol(value["AutoScalingMNSScalingThreadSleepTime"].asString());
|
||||
if(!value["AutoScalingGroupMinSizeLimit"].isNull())
|
||||
autoScalingGroupMinSizeLimit_ = std::stoi(value["AutoScalingGroupMinSizeLimit"].asString());
|
||||
if(!value["AutoScalingGroupMaxSizeLimit"].isNull())
|
||||
autoScalingGroupMaxSizeLimit_ = std::stoi(value["AutoScalingGroupMaxSizeLimit"].asString());
|
||||
if(!value["AutoScalingRuleMinDelayLimit"].isNull())
|
||||
autoScalingRuleMinDelayLimit_ = std::stoi(value["AutoScalingRuleMinDelayLimit"].asString());
|
||||
if(!value["AutoScalingRuleAlarmDelayLimit"].isNull())
|
||||
autoScalingRuleAlarmDelayLimit_ = std::stoi(value["AutoScalingRuleAlarmDelayLimit"].asString());
|
||||
if(!value["AutoScalingRuleAlarmSilentTime"].isNull())
|
||||
autoScalingRuleAlarmSilentTime_ = std::stoi(value["AutoScalingRuleAlarmSilentTime"].asString());
|
||||
if(!value["AutoScalingConfigSystemDiskSize"].isNull())
|
||||
autoScalingConfigSystemDiskSize_ = std::stoi(value["AutoScalingConfigSystemDiskSize"].asString());
|
||||
if(!value["AutoScalingConfigDecommissionQueryInterval"].isNull())
|
||||
autoScalingConfigDecommissionQueryInterval_ = std::stol(value["AutoScalingConfigDecommissionQueryInterval"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeScalingCommonConfigResult::getAutoScalingHookHeartbeatDefaultTime()const
|
||||
{
|
||||
return autoScalingHookHeartbeatDefaultTime_;
|
||||
}
|
||||
|
||||
int DescribeScalingCommonConfigResult::getAutoScalingRuleAlarmDelayLimit()const
|
||||
{
|
||||
return autoScalingRuleAlarmDelayLimit_;
|
||||
}
|
||||
|
||||
int DescribeScalingCommonConfigResult::getAutoScalingGroupMaxSizeLimit()const
|
||||
{
|
||||
return autoScalingGroupMaxSizeLimit_;
|
||||
}
|
||||
|
||||
long DescribeScalingCommonConfigResult::getAutoScalingMNSScalingThreadSleepTime()const
|
||||
{
|
||||
return autoScalingMNSScalingThreadSleepTime_;
|
||||
}
|
||||
|
||||
int DescribeScalingCommonConfigResult::getAutoScalingCoolDownTime()const
|
||||
{
|
||||
return autoScalingCoolDownTime_;
|
||||
}
|
||||
|
||||
int DescribeScalingCommonConfigResult::getAutoScalingRuleMinDelayLimit()const
|
||||
{
|
||||
return autoScalingRuleMinDelayLimit_;
|
||||
}
|
||||
|
||||
long DescribeScalingCommonConfigResult::getAutoScalingConfigDecommissionQueryInterval()const
|
||||
{
|
||||
return autoScalingConfigDecommissionQueryInterval_;
|
||||
}
|
||||
|
||||
int DescribeScalingCommonConfigResult::getAutoScalingRuleAlarmSilentTime()const
|
||||
{
|
||||
return autoScalingRuleAlarmSilentTime_;
|
||||
}
|
||||
|
||||
int DescribeScalingCommonConfigResult::getAutoScalingGroupMinSizeLimit()const
|
||||
{
|
||||
return autoScalingGroupMinSizeLimit_;
|
||||
}
|
||||
|
||||
int DescribeScalingCommonConfigResult::getAutoScalingConfigSystemDiskSize()const
|
||||
{
|
||||
return autoScalingConfigSystemDiskSize_;
|
||||
}
|
||||
|
||||
@@ -1,238 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/ListApmApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::ListApmApplicationRequest;
|
||||
|
||||
ListApmApplicationRequest::ListApmApplicationRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "ListApmApplication")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListApmApplicationRequest::~ListApmApplicationRequest()
|
||||
{}
|
||||
|
||||
long ListApmApplicationRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int ListApmApplicationRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListApmApplicationRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ListApmApplicationRequest::getFinalStatus()const
|
||||
{
|
||||
return finalStatus_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setFinalStatus(const std::string& finalStatus)
|
||||
{
|
||||
finalStatus_ = finalStatus;
|
||||
setParameter("FinalStatus", finalStatus);
|
||||
}
|
||||
|
||||
std::string ListApmApplicationRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int ListApmApplicationRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListApmApplicationRequest::getState()const
|
||||
{
|
||||
return state_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setState(const std::string& state)
|
||||
{
|
||||
state_ = state;
|
||||
setParameter("State", state);
|
||||
}
|
||||
|
||||
long ListApmApplicationRequest::getStartTimeTo()const
|
||||
{
|
||||
return startTimeTo_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setStartTimeTo(long startTimeTo)
|
||||
{
|
||||
startTimeTo_ = startTimeTo;
|
||||
setParameter("StartTimeTo", std::to_string(startTimeTo));
|
||||
}
|
||||
|
||||
std::string ListApmApplicationRequest::getDiagnoseResult()const
|
||||
{
|
||||
return diagnoseResult_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setDiagnoseResult(const std::string& diagnoseResult)
|
||||
{
|
||||
diagnoseResult_ = diagnoseResult;
|
||||
setParameter("DiagnoseResult", diagnoseResult);
|
||||
}
|
||||
|
||||
long ListApmApplicationRequest::getEndTimeFrom()const
|
||||
{
|
||||
return endTimeFrom_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setEndTimeFrom(long endTimeFrom)
|
||||
{
|
||||
endTimeFrom_ = endTimeFrom;
|
||||
setParameter("EndTimeFrom", std::to_string(endTimeFrom));
|
||||
}
|
||||
|
||||
std::string ListApmApplicationRequest::getOrderBy()const
|
||||
{
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setOrderBy(const std::string& orderBy)
|
||||
{
|
||||
orderBy_ = orderBy;
|
||||
setParameter("OrderBy", orderBy);
|
||||
}
|
||||
|
||||
std::string ListApmApplicationRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ListApmApplicationRequest::getJobType()const
|
||||
{
|
||||
return jobType_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setJobType(const std::string& jobType)
|
||||
{
|
||||
jobType_ = jobType;
|
||||
setParameter("JobType", jobType);
|
||||
}
|
||||
|
||||
long ListApmApplicationRequest::getStartTimeFrom()const
|
||||
{
|
||||
return startTimeFrom_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setStartTimeFrom(long startTimeFrom)
|
||||
{
|
||||
startTimeFrom_ = startTimeFrom;
|
||||
setParameter("StartTimeFrom", std::to_string(startTimeFrom));
|
||||
}
|
||||
|
||||
std::string ListApmApplicationRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string ListApmApplicationRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string ListApmApplicationRequest::getUser()const
|
||||
{
|
||||
return user_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setUser(const std::string& user)
|
||||
{
|
||||
user_ = user;
|
||||
setParameter("User", user);
|
||||
}
|
||||
|
||||
long ListApmApplicationRequest::getEndTimeTo()const
|
||||
{
|
||||
return endTimeTo_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setEndTimeTo(long endTimeTo)
|
||||
{
|
||||
endTimeTo_ = endTimeTo;
|
||||
setParameter("EndTimeTo", std::to_string(endTimeTo));
|
||||
}
|
||||
|
||||
std::string ListApmApplicationRequest::getQueue()const
|
||||
{
|
||||
return queue_;
|
||||
}
|
||||
|
||||
void ListApmApplicationRequest::setQueue(const std::string& queue)
|
||||
{
|
||||
queue_ = queue;
|
||||
setParameter("Queue", queue);
|
||||
}
|
||||
|
||||
@@ -1,126 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/ListApmApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
ListApmApplicationResult::ListApmApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListApmApplicationResult::ListApmApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListApmApplicationResult::~ListApmApplicationResult()
|
||||
{}
|
||||
|
||||
void ListApmApplicationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allApmAppInfoListNode = value["ApmAppInfoList"]["ApmAppInfo"];
|
||||
for (auto valueApmAppInfoListApmAppInfo : allApmAppInfoListNode)
|
||||
{
|
||||
ApmAppInfo apmAppInfoListObject;
|
||||
if(!valueApmAppInfoListApmAppInfo["ApplicationId"].isNull())
|
||||
apmAppInfoListObject.applicationId = valueApmAppInfoListApmAppInfo["ApplicationId"].asString();
|
||||
if(!valueApmAppInfoListApmAppInfo["ClusterBizId"].isNull())
|
||||
apmAppInfoListObject.clusterBizId = valueApmAppInfoListApmAppInfo["ClusterBizId"].asString();
|
||||
if(!valueApmAppInfoListApmAppInfo["ApplicationType"].isNull())
|
||||
apmAppInfoListObject.applicationType = valueApmAppInfoListApmAppInfo["ApplicationType"].asString();
|
||||
if(!valueApmAppInfoListApmAppInfo["Name"].isNull())
|
||||
apmAppInfoListObject.name = valueApmAppInfoListApmAppInfo["Name"].asString();
|
||||
if(!valueApmAppInfoListApmAppInfo["State"].isNull())
|
||||
apmAppInfoListObject.state = valueApmAppInfoListApmAppInfo["State"].asString();
|
||||
if(!valueApmAppInfoListApmAppInfo["FinalStatus"].isNull())
|
||||
apmAppInfoListObject.finalStatus = valueApmAppInfoListApmAppInfo["FinalStatus"].asString();
|
||||
if(!valueApmAppInfoListApmAppInfo["Queue"].isNull())
|
||||
apmAppInfoListObject.queue = valueApmAppInfoListApmAppInfo["Queue"].asString();
|
||||
if(!valueApmAppInfoListApmAppInfo["User"].isNull())
|
||||
apmAppInfoListObject.user = valueApmAppInfoListApmAppInfo["User"].asString();
|
||||
if(!valueApmAppInfoListApmAppInfo["AllocatedVcore"].isNull())
|
||||
apmAppInfoListObject.allocatedVcore = std::stol(valueApmAppInfoListApmAppInfo["AllocatedVcore"].asString());
|
||||
if(!valueApmAppInfoListApmAppInfo["AllocatedMemory"].isNull())
|
||||
apmAppInfoListObject.allocatedMemory = std::stol(valueApmAppInfoListApmAppInfo["AllocatedMemory"].asString());
|
||||
if(!valueApmAppInfoListApmAppInfo["Progress"].isNull())
|
||||
apmAppInfoListObject.progress = std::stof(valueApmAppInfoListApmAppInfo["Progress"].asString());
|
||||
if(!valueApmAppInfoListApmAppInfo["VcoreSeconds"].isNull())
|
||||
apmAppInfoListObject.vcoreSeconds = std::stol(valueApmAppInfoListApmAppInfo["VcoreSeconds"].asString());
|
||||
if(!valueApmAppInfoListApmAppInfo["MemorySeconds"].isNull())
|
||||
apmAppInfoListObject.memorySeconds = std::stol(valueApmAppInfoListApmAppInfo["MemorySeconds"].asString());
|
||||
if(!valueApmAppInfoListApmAppInfo["StartTime"].isNull())
|
||||
apmAppInfoListObject.startTime = std::stol(valueApmAppInfoListApmAppInfo["StartTime"].asString());
|
||||
if(!valueApmAppInfoListApmAppInfo["SubmitTime"].isNull())
|
||||
apmAppInfoListObject.submitTime = std::stol(valueApmAppInfoListApmAppInfo["SubmitTime"].asString());
|
||||
if(!valueApmAppInfoListApmAppInfo["FinishedTime"].isNull())
|
||||
apmAppInfoListObject.finishedTime = std::stol(valueApmAppInfoListApmAppInfo["FinishedTime"].asString());
|
||||
if(!valueApmAppInfoListApmAppInfo["Duration"].isNull())
|
||||
apmAppInfoListObject.duration = std::stoi(valueApmAppInfoListApmAppInfo["Duration"].asString());
|
||||
if(!valueApmAppInfoListApmAppInfo["Diagnostics"].isNull())
|
||||
apmAppInfoListObject.diagnostics = valueApmAppInfoListApmAppInfo["Diagnostics"].asString();
|
||||
if(!valueApmAppInfoListApmAppInfo["ClusterUsagePercent"].isNull())
|
||||
apmAppInfoListObject.clusterUsagePercent = std::stof(valueApmAppInfoListApmAppInfo["ClusterUsagePercent"].asString());
|
||||
if(!valueApmAppInfoListApmAppInfo["QueueUsagePercent"].isNull())
|
||||
apmAppInfoListObject.queueUsagePercent = std::stof(valueApmAppInfoListApmAppInfo["QueueUsagePercent"].asString());
|
||||
if(!valueApmAppInfoListApmAppInfo["RunningContainers"].isNull())
|
||||
apmAppInfoListObject.runningContainers = std::stoi(valueApmAppInfoListApmAppInfo["RunningContainers"].asString());
|
||||
if(!valueApmAppInfoListApmAppInfo["RunningDuration"].isNull())
|
||||
apmAppInfoListObject.runningDuration = std::stoi(valueApmAppInfoListApmAppInfo["RunningDuration"].asString());
|
||||
if(!valueApmAppInfoListApmAppInfo["ResourceRequests"].isNull())
|
||||
apmAppInfoListObject.resourceRequests = valueApmAppInfoListApmAppInfo["ResourceRequests"].asString();
|
||||
if(!valueApmAppInfoListApmAppInfo["DiagnoseResult"].isNull())
|
||||
apmAppInfoListObject.diagnoseResult = valueApmAppInfoListApmAppInfo["DiagnoseResult"].asString();
|
||||
if(!valueApmAppInfoListApmAppInfo["DiagnoseCode"].isNull())
|
||||
apmAppInfoListObject.diagnoseCode = valueApmAppInfoListApmAppInfo["DiagnoseCode"].asString();
|
||||
apmAppInfoList_.push_back(apmAppInfoListObject);
|
||||
}
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListApmApplicationResult::ApmAppInfo> ListApmApplicationResult::getApmAppInfoList()const
|
||||
{
|
||||
return apmAppInfoList_;
|
||||
}
|
||||
|
||||
int ListApmApplicationResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListApmApplicationResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int ListApmApplicationResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
@@ -1,139 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/ListClusterServiceComponentRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::ListClusterServiceComponentRequest;
|
||||
|
||||
ListClusterServiceComponentRequest::ListClusterServiceComponentRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "ListClusterServiceComponent")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListClusterServiceComponentRequest::~ListClusterServiceComponentRequest()
|
||||
{}
|
||||
|
||||
long ListClusterServiceComponentRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ListClusterServiceComponentRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ListClusterServiceComponentRequest::getPodName()const
|
||||
{
|
||||
return podName_;
|
||||
}
|
||||
|
||||
void ListClusterServiceComponentRequest::setPodName(const std::string& podName)
|
||||
{
|
||||
podName_ = podName;
|
||||
setParameter("PodName", podName);
|
||||
}
|
||||
|
||||
std::string ListClusterServiceComponentRequest::getComponentName()const
|
||||
{
|
||||
return componentName_;
|
||||
}
|
||||
|
||||
void ListClusterServiceComponentRequest::setComponentName(const std::string& componentName)
|
||||
{
|
||||
componentName_ = componentName;
|
||||
setParameter("ComponentName", componentName);
|
||||
}
|
||||
|
||||
std::string ListClusterServiceComponentRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListClusterServiceComponentRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int ListClusterServiceComponentRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListClusterServiceComponentRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListClusterServiceComponentRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListClusterServiceComponentRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ListClusterServiceComponentRequest::getComponentStatus()const
|
||||
{
|
||||
return componentStatus_;
|
||||
}
|
||||
|
||||
void ListClusterServiceComponentRequest::setComponentStatus(const std::string& componentStatus)
|
||||
{
|
||||
componentStatus_ = componentStatus;
|
||||
setParameter("ComponentStatus", componentStatus);
|
||||
}
|
||||
|
||||
std::string ListClusterServiceComponentRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListClusterServiceComponentRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int ListClusterServiceComponentRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListClusterServiceComponentRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListClusterServiceComponentRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void ListClusterServiceComponentRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
@@ -1,108 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/ListClusterServiceComponentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
ListClusterServiceComponentResult::ListClusterServiceComponentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListClusterServiceComponentResult::ListClusterServiceComponentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListClusterServiceComponentResult::~ListClusterServiceComponentResult()
|
||||
{}
|
||||
|
||||
void ListClusterServiceComponentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allComponentListNode = value["ComponentList"]["Component"];
|
||||
for (auto valueComponentListComponent : allComponentListNode)
|
||||
{
|
||||
Component componentListObject;
|
||||
if(!valueComponentListComponent["ServiceName"].isNull())
|
||||
componentListObject.serviceName = valueComponentListComponent["ServiceName"].asString();
|
||||
if(!valueComponentListComponent["ServiceDisplayName"].isNull())
|
||||
componentListObject.serviceDisplayName = valueComponentListComponent["ServiceDisplayName"].asString();
|
||||
if(!valueComponentListComponent["ComponentName"].isNull())
|
||||
componentListObject.componentName = valueComponentListComponent["ComponentName"].asString();
|
||||
if(!valueComponentListComponent["ComponentDisplayName"].isNull())
|
||||
componentListObject.componentDisplayName = valueComponentListComponent["ComponentDisplayName"].asString();
|
||||
if(!valueComponentListComponent["Status"].isNull())
|
||||
componentListObject.status = valueComponentListComponent["Status"].asString();
|
||||
if(!valueComponentListComponent["NeedRestart"].isNull())
|
||||
componentListObject.needRestart = valueComponentListComponent["NeedRestart"].asString() == "true";
|
||||
if(!valueComponentListComponent["ServerStatus"].isNull())
|
||||
componentListObject.serverStatus = valueComponentListComponent["ServerStatus"].asString();
|
||||
if(!valueComponentListComponent["PodName"].isNull())
|
||||
componentListObject.podName = valueComponentListComponent["PodName"].asString();
|
||||
if(!valueComponentListComponent["PublicIp"].isNull())
|
||||
componentListObject.publicIp = valueComponentListComponent["PublicIp"].asString();
|
||||
if(!valueComponentListComponent["PrivateIp"].isNull())
|
||||
componentListObject.privateIp = valueComponentListComponent["PrivateIp"].asString();
|
||||
if(!valueComponentListComponent["Role"].isNull())
|
||||
componentListObject.role = valueComponentListComponent["Role"].asString();
|
||||
if(!valueComponentListComponent["CommissionStatus"].isNull())
|
||||
componentListObject.commissionStatus = valueComponentListComponent["CommissionStatus"].asString();
|
||||
if(!valueComponentListComponent["DesiredCount"].isNull())
|
||||
componentListObject.desiredCount = std::stoi(valueComponentListComponent["DesiredCount"].asString());
|
||||
if(!valueComponentListComponent["Namespace"].isNull())
|
||||
componentListObject._namespace = valueComponentListComponent["Namespace"].asString();
|
||||
if(!valueComponentListComponent["WorkloadType"].isNull())
|
||||
componentListObject.workloadType = valueComponentListComponent["WorkloadType"].asString();
|
||||
if(!valueComponentListComponent["WorkloadName"].isNull())
|
||||
componentListObject.workloadName = valueComponentListComponent["WorkloadName"].asString();
|
||||
componentList_.push_back(componentListObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListClusterServiceComponentResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListClusterServiceComponentResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int ListClusterServiceComponentResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::vector<ListClusterServiceComponentResult::Component> ListClusterServiceComponentResult::getComponentList()const
|
||||
{
|
||||
return componentList_;
|
||||
}
|
||||
|
||||
@@ -38,6 +38,17 @@ void ReleaseClusterHostGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
bool ReleaseClusterHostGroupRequest::getEnableGracefulDecommission()const
|
||||
{
|
||||
return enableGracefulDecommission_;
|
||||
}
|
||||
|
||||
void ReleaseClusterHostGroupRequest::setEnableGracefulDecommission(bool enableGracefulDecommission)
|
||||
{
|
||||
enableGracefulDecommission_ = enableGracefulDecommission;
|
||||
setParameter("EnableGracefulDecommission", enableGracefulDecommission ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ReleaseClusterHostGroupRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
@@ -93,3 +104,25 @@ void ReleaseClusterHostGroupRequest::setInstanceIdList(const std::string& instan
|
||||
setParameter("InstanceIdList", instanceIdList);
|
||||
}
|
||||
|
||||
int ReleaseClusterHostGroupRequest::getReleaseNumber()const
|
||||
{
|
||||
return releaseNumber_;
|
||||
}
|
||||
|
||||
void ReleaseClusterHostGroupRequest::setReleaseNumber(int releaseNumber)
|
||||
{
|
||||
releaseNumber_ = releaseNumber;
|
||||
setParameter("ReleaseNumber", std::to_string(releaseNumber));
|
||||
}
|
||||
|
||||
int ReleaseClusterHostGroupRequest::getDecommissionTimeout()const
|
||||
{
|
||||
return decommissionTimeout_;
|
||||
}
|
||||
|
||||
void ReleaseClusterHostGroupRequest::setDecommissionTimeout(int decommissionTimeout)
|
||||
{
|
||||
decommissionTimeout_ = decommissionTimeout;
|
||||
setParameter("DecommissionTimeout", std::to_string(decommissionTimeout));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user