ReleaseClusterHostGroup add support for ReleaseNumber.

This commit is contained in:
sdk-team
2022-05-09 03:06:31 +00:00
parent db5500f960
commit 73610fe6e9
23 changed files with 50 additions and 1676 deletions

View File

@@ -1,3 +1,7 @@
2022-05-09 Version: 1.36.1123
- ReleaseClusterHostGroup add support for ReleaseNumber.
- ReleaseClusterHostGroup add support for Decommission Gracefully.
2022-05-06 Version: 1.36.1122
- Add DescribeAppKey interface.

View File

@@ -1 +1 @@
1.36.1122
1.36.1123

View File

@@ -109,10 +109,6 @@ set(emr_public_header_model
include/alibabacloud/emr/model/DescribeFlowProjectResult.h
include/alibabacloud/emr/model/DescribeFlowProjectClusterSettingRequest.h
include/alibabacloud/emr/model/DescribeFlowProjectClusterSettingResult.h
include/alibabacloud/emr/model/DescribeFlowVariableCollectionRequest.h
include/alibabacloud/emr/model/DescribeFlowVariableCollectionResult.h
include/alibabacloud/emr/model/DescribeScalingCommonConfigRequest.h
include/alibabacloud/emr/model/DescribeScalingCommonConfigResult.h
include/alibabacloud/emr/model/DescribeScalingConfigItemV2Request.h
include/alibabacloud/emr/model/DescribeScalingConfigItemV2Result.h
include/alibabacloud/emr/model/DescribeScalingGroupInstanceV2Request.h
@@ -123,8 +119,6 @@ set(emr_public_header_model
include/alibabacloud/emr/model/JoinResourceGroupResult.h
include/alibabacloud/emr/model/KillFlowJobRequest.h
include/alibabacloud/emr/model/KillFlowJobResult.h
include/alibabacloud/emr/model/ListApmApplicationRequest.h
include/alibabacloud/emr/model/ListApmApplicationResult.h
include/alibabacloud/emr/model/ListClusterHostRequest.h
include/alibabacloud/emr/model/ListClusterHostResult.h
include/alibabacloud/emr/model/ListClusterHostComponentRequest.h
@@ -143,8 +137,6 @@ set(emr_public_header_model
include/alibabacloud/emr/model/ListClusterOperationTaskResult.h
include/alibabacloud/emr/model/ListClusterServiceRequest.h
include/alibabacloud/emr/model/ListClusterServiceResult.h
include/alibabacloud/emr/model/ListClusterServiceComponentRequest.h
include/alibabacloud/emr/model/ListClusterServiceComponentResult.h
include/alibabacloud/emr/model/ListClusterServiceComponentHealthInfoRequest.h
include/alibabacloud/emr/model/ListClusterServiceComponentHealthInfoResult.h
include/alibabacloud/emr/model/ListClusterServiceConfigHistoryRequest.h
@@ -346,10 +338,6 @@ set(emr_src
src/model/DescribeFlowProjectResult.cc
src/model/DescribeFlowProjectClusterSettingRequest.cc
src/model/DescribeFlowProjectClusterSettingResult.cc
src/model/DescribeFlowVariableCollectionRequest.cc
src/model/DescribeFlowVariableCollectionResult.cc
src/model/DescribeScalingCommonConfigRequest.cc
src/model/DescribeScalingCommonConfigResult.cc
src/model/DescribeScalingConfigItemV2Request.cc
src/model/DescribeScalingConfigItemV2Result.cc
src/model/DescribeScalingGroupInstanceV2Request.cc
@@ -360,8 +348,6 @@ set(emr_src
src/model/JoinResourceGroupResult.cc
src/model/KillFlowJobRequest.cc
src/model/KillFlowJobResult.cc
src/model/ListApmApplicationRequest.cc
src/model/ListApmApplicationResult.cc
src/model/ListClusterHostRequest.cc
src/model/ListClusterHostResult.cc
src/model/ListClusterHostComponentRequest.cc
@@ -380,8 +366,6 @@ set(emr_src
src/model/ListClusterOperationTaskResult.cc
src/model/ListClusterServiceRequest.cc
src/model/ListClusterServiceResult.cc
src/model/ListClusterServiceComponentRequest.cc
src/model/ListClusterServiceComponentResult.cc
src/model/ListClusterServiceComponentHealthInfoRequest.cc
src/model/ListClusterServiceComponentHealthInfoResult.cc
src/model/ListClusterServiceConfigHistoryRequest.cc

View File

@@ -110,10 +110,6 @@
#include "model/DescribeFlowProjectResult.h"
#include "model/DescribeFlowProjectClusterSettingRequest.h"
#include "model/DescribeFlowProjectClusterSettingResult.h"
#include "model/DescribeFlowVariableCollectionRequest.h"
#include "model/DescribeFlowVariableCollectionResult.h"
#include "model/DescribeScalingCommonConfigRequest.h"
#include "model/DescribeScalingCommonConfigResult.h"
#include "model/DescribeScalingConfigItemV2Request.h"
#include "model/DescribeScalingConfigItemV2Result.h"
#include "model/DescribeScalingGroupInstanceV2Request.h"
@@ -124,8 +120,6 @@
#include "model/JoinResourceGroupResult.h"
#include "model/KillFlowJobRequest.h"
#include "model/KillFlowJobResult.h"
#include "model/ListApmApplicationRequest.h"
#include "model/ListApmApplicationResult.h"
#include "model/ListClusterHostRequest.h"
#include "model/ListClusterHostResult.h"
#include "model/ListClusterHostComponentRequest.h"
@@ -144,8 +138,6 @@
#include "model/ListClusterOperationTaskResult.h"
#include "model/ListClusterServiceRequest.h"
#include "model/ListClusterServiceResult.h"
#include "model/ListClusterServiceComponentRequest.h"
#include "model/ListClusterServiceComponentResult.h"
#include "model/ListClusterServiceComponentHealthInfoRequest.h"
#include "model/ListClusterServiceComponentHealthInfoResult.h"
#include "model/ListClusterServiceConfigHistoryRequest.h"
@@ -397,12 +389,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeFlowProjectClusterSettingResult> DescribeFlowProjectClusterSettingOutcome;
typedef std::future<DescribeFlowProjectClusterSettingOutcome> DescribeFlowProjectClusterSettingOutcomeCallable;
typedef std::function<void(const EmrClient*, const Model::DescribeFlowProjectClusterSettingRequest&, const DescribeFlowProjectClusterSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFlowProjectClusterSettingAsyncHandler;
typedef Outcome<Error, Model::DescribeFlowVariableCollectionResult> DescribeFlowVariableCollectionOutcome;
typedef std::future<DescribeFlowVariableCollectionOutcome> DescribeFlowVariableCollectionOutcomeCallable;
typedef std::function<void(const EmrClient*, const Model::DescribeFlowVariableCollectionRequest&, const DescribeFlowVariableCollectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFlowVariableCollectionAsyncHandler;
typedef Outcome<Error, Model::DescribeScalingCommonConfigResult> DescribeScalingCommonConfigOutcome;
typedef std::future<DescribeScalingCommonConfigOutcome> DescribeScalingCommonConfigOutcomeCallable;
typedef std::function<void(const EmrClient*, const Model::DescribeScalingCommonConfigRequest&, const DescribeScalingCommonConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeScalingCommonConfigAsyncHandler;
typedef Outcome<Error, Model::DescribeScalingConfigItemV2Result> DescribeScalingConfigItemV2Outcome;
typedef std::future<DescribeScalingConfigItemV2Outcome> DescribeScalingConfigItemV2OutcomeCallable;
typedef std::function<void(const EmrClient*, const Model::DescribeScalingConfigItemV2Request&, const DescribeScalingConfigItemV2Outcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeScalingConfigItemV2AsyncHandler;
@@ -418,9 +404,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::KillFlowJobResult> KillFlowJobOutcome;
typedef std::future<KillFlowJobOutcome> KillFlowJobOutcomeCallable;
typedef std::function<void(const EmrClient*, const Model::KillFlowJobRequest&, const KillFlowJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> KillFlowJobAsyncHandler;
typedef Outcome<Error, Model::ListApmApplicationResult> ListApmApplicationOutcome;
typedef std::future<ListApmApplicationOutcome> ListApmApplicationOutcomeCallable;
typedef std::function<void(const EmrClient*, const Model::ListApmApplicationRequest&, const ListApmApplicationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListApmApplicationAsyncHandler;
typedef Outcome<Error, Model::ListClusterHostResult> ListClusterHostOutcome;
typedef std::future<ListClusterHostOutcome> ListClusterHostOutcomeCallable;
typedef std::function<void(const EmrClient*, const Model::ListClusterHostRequest&, const ListClusterHostOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListClusterHostAsyncHandler;
@@ -448,9 +431,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListClusterServiceResult> ListClusterServiceOutcome;
typedef std::future<ListClusterServiceOutcome> ListClusterServiceOutcomeCallable;
typedef std::function<void(const EmrClient*, const Model::ListClusterServiceRequest&, const ListClusterServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListClusterServiceAsyncHandler;
typedef Outcome<Error, Model::ListClusterServiceComponentResult> ListClusterServiceComponentOutcome;
typedef std::future<ListClusterServiceComponentOutcome> ListClusterServiceComponentOutcomeCallable;
typedef std::function<void(const EmrClient*, const Model::ListClusterServiceComponentRequest&, const ListClusterServiceComponentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListClusterServiceComponentAsyncHandler;
typedef Outcome<Error, Model::ListClusterServiceComponentHealthInfoResult> ListClusterServiceComponentHealthInfoOutcome;
typedef std::future<ListClusterServiceComponentHealthInfoOutcome> ListClusterServiceComponentHealthInfoOutcomeCallable;
typedef std::function<void(const EmrClient*, const Model::ListClusterServiceComponentHealthInfoRequest&, const ListClusterServiceComponentHealthInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListClusterServiceComponentHealthInfoAsyncHandler;
@@ -753,12 +733,6 @@ namespace AlibabaCloud
DescribeFlowProjectClusterSettingOutcome describeFlowProjectClusterSetting(const Model::DescribeFlowProjectClusterSettingRequest &request)const;
void describeFlowProjectClusterSettingAsync(const Model::DescribeFlowProjectClusterSettingRequest& request, const DescribeFlowProjectClusterSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeFlowProjectClusterSettingOutcomeCallable describeFlowProjectClusterSettingCallable(const Model::DescribeFlowProjectClusterSettingRequest& request) const;
DescribeFlowVariableCollectionOutcome describeFlowVariableCollection(const Model::DescribeFlowVariableCollectionRequest &request)const;
void describeFlowVariableCollectionAsync(const Model::DescribeFlowVariableCollectionRequest& request, const DescribeFlowVariableCollectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeFlowVariableCollectionOutcomeCallable describeFlowVariableCollectionCallable(const Model::DescribeFlowVariableCollectionRequest& request) const;
DescribeScalingCommonConfigOutcome describeScalingCommonConfig(const Model::DescribeScalingCommonConfigRequest &request)const;
void describeScalingCommonConfigAsync(const Model::DescribeScalingCommonConfigRequest& request, const DescribeScalingCommonConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeScalingCommonConfigOutcomeCallable describeScalingCommonConfigCallable(const Model::DescribeScalingCommonConfigRequest& request) const;
DescribeScalingConfigItemV2Outcome describeScalingConfigItemV2(const Model::DescribeScalingConfigItemV2Request &request)const;
void describeScalingConfigItemV2Async(const Model::DescribeScalingConfigItemV2Request& request, const DescribeScalingConfigItemV2AsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeScalingConfigItemV2OutcomeCallable describeScalingConfigItemV2Callable(const Model::DescribeScalingConfigItemV2Request& request) const;
@@ -774,9 +748,6 @@ namespace AlibabaCloud
KillFlowJobOutcome killFlowJob(const Model::KillFlowJobRequest &request)const;
void killFlowJobAsync(const Model::KillFlowJobRequest& request, const KillFlowJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
KillFlowJobOutcomeCallable killFlowJobCallable(const Model::KillFlowJobRequest& request) const;
ListApmApplicationOutcome listApmApplication(const Model::ListApmApplicationRequest &request)const;
void listApmApplicationAsync(const Model::ListApmApplicationRequest& request, const ListApmApplicationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListApmApplicationOutcomeCallable listApmApplicationCallable(const Model::ListApmApplicationRequest& request) const;
ListClusterHostOutcome listClusterHost(const Model::ListClusterHostRequest &request)const;
void listClusterHostAsync(const Model::ListClusterHostRequest& request, const ListClusterHostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListClusterHostOutcomeCallable listClusterHostCallable(const Model::ListClusterHostRequest& request) const;
@@ -804,9 +775,6 @@ namespace AlibabaCloud
ListClusterServiceOutcome listClusterService(const Model::ListClusterServiceRequest &request)const;
void listClusterServiceAsync(const Model::ListClusterServiceRequest& request, const ListClusterServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListClusterServiceOutcomeCallable listClusterServiceCallable(const Model::ListClusterServiceRequest& request) const;
ListClusterServiceComponentOutcome listClusterServiceComponent(const Model::ListClusterServiceComponentRequest &request)const;
void listClusterServiceComponentAsync(const Model::ListClusterServiceComponentRequest& request, const ListClusterServiceComponentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListClusterServiceComponentOutcomeCallable listClusterServiceComponentCallable(const Model::ListClusterServiceComponentRequest& request) const;
ListClusterServiceComponentHealthInfoOutcome listClusterServiceComponentHealthInfo(const Model::ListClusterServiceComponentHealthInfoRequest &request)const;
void listClusterServiceComponentHealthInfoAsync(const Model::ListClusterServiceComponentHealthInfoRequest& request, const ListClusterServiceComponentHealthInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListClusterServiceComponentHealthInfoOutcomeCallable listClusterServiceComponentHealthInfoCallable(const Model::ListClusterServiceComponentHealthInfoRequest& request) const;

View File

@@ -1,54 +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.
*/
#ifndef ALIBABACLOUD_EMR_MODEL_DESCRIBEFLOWVARIABLECOLLECTIONREQUEST_H_
#define ALIBABACLOUD_EMR_MODEL_DESCRIBEFLOWVARIABLECOLLECTIONREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/emr/EmrExport.h>
namespace AlibabaCloud
{
namespace Emr
{
namespace Model
{
class ALIBABACLOUD_EMR_EXPORT DescribeFlowVariableCollectionRequest : public RpcServiceRequest
{
public:
DescribeFlowVariableCollectionRequest();
~DescribeFlowVariableCollectionRequest();
std::string getEntityId()const;
void setEntityId(const std::string& entityId);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
private:
std::string entityId_;
std::string resourceGroupId_;
std::string regionId_;
};
}
}
}
#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBEFLOWVARIABLECOLLECTIONREQUEST_H_

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EMR_MODEL_DESCRIBEFLOWVARIABLECOLLECTIONRESULT_H_
#define ALIBABACLOUD_EMR_MODEL_DESCRIBEFLOWVARIABLECOLLECTIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/emr/EmrExport.h>
namespace AlibabaCloud
{
namespace Emr
{
namespace Model
{
class ALIBABACLOUD_EMR_EXPORT DescribeFlowVariableCollectionResult : public ServiceResult
{
public:
DescribeFlowVariableCollectionResult();
explicit DescribeFlowVariableCollectionResult(const std::string &payload);
~DescribeFlowVariableCollectionResult();
std::string getResult()const;
protected:
void parse(const std::string &payload);
private:
std::string result_;
};
}
}
}
#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBEFLOWVARIABLECOLLECTIONRESULT_H_

View File

@@ -1,57 +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.
*/
#ifndef ALIBABACLOUD_EMR_MODEL_DESCRIBESCALINGCOMMONCONFIGREQUEST_H_
#define ALIBABACLOUD_EMR_MODEL_DESCRIBESCALINGCOMMONCONFIGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/emr/EmrExport.h>
namespace AlibabaCloud
{
namespace Emr
{
namespace Model
{
class ALIBABACLOUD_EMR_EXPORT DescribeScalingCommonConfigRequest : public RpcServiceRequest
{
public:
DescribeScalingCommonConfigRequest();
~DescribeScalingCommonConfigRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string resourceGroupId_;
std::string regionId_;
};
}
}
}
#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBESCALINGCOMMONCONFIGREQUEST_H_

View File

@@ -1,69 +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.
*/
#ifndef ALIBABACLOUD_EMR_MODEL_DESCRIBESCALINGCOMMONCONFIGRESULT_H_
#define ALIBABACLOUD_EMR_MODEL_DESCRIBESCALINGCOMMONCONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/emr/EmrExport.h>
namespace AlibabaCloud
{
namespace Emr
{
namespace Model
{
class ALIBABACLOUD_EMR_EXPORT DescribeScalingCommonConfigResult : public ServiceResult
{
public:
DescribeScalingCommonConfigResult();
explicit DescribeScalingCommonConfigResult(const std::string &payload);
~DescribeScalingCommonConfigResult();
int getAutoScalingHookHeartbeatDefaultTime()const;
int getAutoScalingRuleAlarmDelayLimit()const;
int getAutoScalingGroupMaxSizeLimit()const;
long getAutoScalingMNSScalingThreadSleepTime()const;
int getAutoScalingCoolDownTime()const;
int getAutoScalingRuleMinDelayLimit()const;
long getAutoScalingConfigDecommissionQueryInterval()const;
int getAutoScalingRuleAlarmSilentTime()const;
int getAutoScalingGroupMinSizeLimit()const;
int getAutoScalingConfigSystemDiskSize()const;
protected:
void parse(const std::string &payload);
private:
int autoScalingHookHeartbeatDefaultTime_;
int autoScalingRuleAlarmDelayLimit_;
int autoScalingGroupMaxSizeLimit_;
long autoScalingMNSScalingThreadSleepTime_;
int autoScalingCoolDownTime_;
int autoScalingRuleMinDelayLimit_;
long autoScalingConfigDecommissionQueryInterval_;
int autoScalingRuleAlarmSilentTime_;
int autoScalingGroupMinSizeLimit_;
int autoScalingConfigSystemDiskSize_;
};
}
}
}
#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBESCALINGCOMMONCONFIGRESULT_H_

View File

@@ -1,102 +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.
*/
#ifndef ALIBABACLOUD_EMR_MODEL_LISTAPMAPPLICATIONREQUEST_H_
#define ALIBABACLOUD_EMR_MODEL_LISTAPMAPPLICATIONREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/emr/EmrExport.h>
namespace AlibabaCloud
{
namespace Emr
{
namespace Model
{
class ALIBABACLOUD_EMR_EXPORT ListApmApplicationRequest : public RpcServiceRequest
{
public:
ListApmApplicationRequest();
~ListApmApplicationRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getFinalStatus()const;
void setFinalStatus(const std::string& finalStatus);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getState()const;
void setState(const std::string& state);
long getStartTimeTo()const;
void setStartTimeTo(long startTimeTo);
std::string getDiagnoseResult()const;
void setDiagnoseResult(const std::string& diagnoseResult);
long getEndTimeFrom()const;
void setEndTimeFrom(long endTimeFrom);
std::string getOrderBy()const;
void setOrderBy(const std::string& orderBy);
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
std::string getJobType()const;
void setJobType(const std::string& jobType);
long getStartTimeFrom()const;
void setStartTimeFrom(long startTimeFrom);
std::string getAppId()const;
void setAppId(const std::string& appId);
std::string getName()const;
void setName(const std::string& name);
std::string getUser()const;
void setUser(const std::string& user);
long getEndTimeTo()const;
void setEndTimeTo(long endTimeTo);
std::string getQueue()const;
void setQueue(const std::string& queue);
private:
long resourceOwnerId_;
int pageNumber_;
std::string accessKeyId_;
std::string finalStatus_;
std::string regionId_;
int pageSize_;
std::string state_;
long startTimeTo_;
std::string diagnoseResult_;
long endTimeFrom_;
std::string orderBy_;
std::string clusterId_;
std::string jobType_;
long startTimeFrom_;
std::string appId_;
std::string name_;
std::string user_;
long endTimeTo_;
std::string queue_;
};
}
}
}
#endif // !ALIBABACLOUD_EMR_MODEL_LISTAPMAPPLICATIONREQUEST_H_

View File

@@ -1,85 +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.
*/
#ifndef ALIBABACLOUD_EMR_MODEL_LISTAPMAPPLICATIONRESULT_H_
#define ALIBABACLOUD_EMR_MODEL_LISTAPMAPPLICATIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/emr/EmrExport.h>
namespace AlibabaCloud
{
namespace Emr
{
namespace Model
{
class ALIBABACLOUD_EMR_EXPORT ListApmApplicationResult : public ServiceResult
{
public:
struct ApmAppInfo
{
float queueUsagePercent;
long allocatedMemory;
std::string resourceRequests;
std::string user;
std::string diagnostics;
long finishedTime;
std::string name;
std::string clusterBizId;
int runningDuration;
long memorySeconds;
std::string finalStatus;
std::string queue;
long allocatedVcore;
float clusterUsagePercent;
float progress;
long vcoreSeconds;
long startTime;
int runningContainers;
int duration;
long submitTime;
std::string diagnoseCode;
std::string applicationType;
std::string state;
std::string applicationId;
std::string diagnoseResult;
};
ListApmApplicationResult();
explicit ListApmApplicationResult(const std::string &payload);
~ListApmApplicationResult();
std::vector<ApmAppInfo> getApmAppInfoList()const;
int getPageSize()const;
int getPageNumber()const;
int getTotal()const;
protected:
void parse(const std::string &payload);
private:
std::vector<ApmAppInfo> apmAppInfoList_;
int pageSize_;
int pageNumber_;
int total_;
};
}
}
}
#endif // !ALIBABACLOUD_EMR_MODEL_LISTAPMAPPLICATIONRESULT_H_

View File

@@ -1,75 +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.
*/
#ifndef ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSERVICECOMPONENTREQUEST_H_
#define ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSERVICECOMPONENTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/emr/EmrExport.h>
namespace AlibabaCloud
{
namespace Emr
{
namespace Model
{
class ALIBABACLOUD_EMR_EXPORT ListClusterServiceComponentRequest : public RpcServiceRequest
{
public:
ListClusterServiceComponentRequest();
~ListClusterServiceComponentRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getPodName()const;
void setPodName(const std::string& podName);
std::string getComponentName()const;
void setComponentName(const std::string& componentName);
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getComponentStatus()const;
void setComponentStatus(const std::string& componentStatus);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getServiceName()const;
void setServiceName(const std::string& serviceName);
private:
long resourceOwnerId_;
std::string podName_;
std::string componentName_;
std::string clusterId_;
int pageNumber_;
std::string accessKeyId_;
std::string componentStatus_;
std::string regionId_;
int pageSize_;
std::string serviceName_;
};
}
}
}
#endif // !ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSERVICECOMPONENTREQUEST_H_

View File

@@ -1,76 +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.
*/
#ifndef ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSERVICECOMPONENTRESULT_H_
#define ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSERVICECOMPONENTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/emr/EmrExport.h>
namespace AlibabaCloud
{
namespace Emr
{
namespace Model
{
class ALIBABACLOUD_EMR_EXPORT ListClusterServiceComponentResult : public ServiceResult
{
public:
struct Component
{
std::string status;
std::string componentDisplayName;
std::string publicIp;
std::string workloadType;
std::string _namespace;
int desiredCount;
std::string commissionStatus;
std::string serviceDisplayName;
std::string role;
std::string podName;
std::string workloadName;
std::string serviceName;
std::string privateIp;
std::string serverStatus;
bool needRestart;
std::string componentName;
};
ListClusterServiceComponentResult();
explicit ListClusterServiceComponentResult(const std::string &payload);
~ListClusterServiceComponentResult();
int getPageSize()const;
int getPageNumber()const;
int getTotal()const;
std::vector<Component> getComponentList()const;
protected:
void parse(const std::string &payload);
private:
int pageSize_;
int pageNumber_;
int total_;
std::vector<Component> componentList_;
};
}
}
}
#endif // !ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSERVICECOMPONENTRESULT_H_

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
bool getEnableGracefulDecommission()const;
void setEnableGracefulDecommission(bool enableGracefulDecommission);
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
std::string getAccessKeyId()const;
@@ -47,14 +49,21 @@ namespace AlibabaCloud
void setHostGroupId(const std::string& hostGroupId);
std::string getInstanceIdList()const;
void setInstanceIdList(const std::string& instanceIdList);
int getReleaseNumber()const;
void setReleaseNumber(int releaseNumber);
int getDecommissionTimeout()const;
void setDecommissionTimeout(int decommissionTimeout);
private:
long resourceOwnerId_;
bool enableGracefulDecommission_;
std::string clusterId_;
std::string accessKeyId_;
std::string regionId_;
std::string hostGroupId_;
std::string instanceIdList_;
int releaseNumber_;
int decommissionTimeout_;
};
}

View File

@@ -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();

View File

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

View File

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

View File

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

View File

@@ -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_;
}

View File

@@ -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);
}

View File

@@ -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_;
}

View File

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

View File

@@ -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_;
}

View File

@@ -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));
}