由武进发起的ESS SDK自动发布, 版本号:1.8.1

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2018-05-08 00:13:36 +08:00
parent d29cf439dd
commit 06552e53d8
180 changed files with 776 additions and 484 deletions

BIN
ess/src/model/.DS_Store vendored Normal file

Binary file not shown.

0
ess/src/model/AttachInstancesRequest.cc Normal file → Executable file
View File

0
ess/src/model/AttachInstancesResult.cc Normal file → Executable file
View File

View File

0
ess/src/model/CreateNotificationConfigurationResult.cc Normal file → Executable file
View File

0
ess/src/model/CreateScalingConfigurationRequest.cc Normal file → Executable file
View File

0
ess/src/model/CreateScalingConfigurationResult.cc Normal file → Executable file
View File

11
ess/src/model/CreateScalingGroupRequest.cc Normal file → Executable file
View File

@@ -25,6 +25,17 @@ CreateScalingGroupRequest::CreateScalingGroupRequest() :
CreateScalingGroupRequest::~CreateScalingGroupRequest()
{}
std::string CreateScalingGroupRequest::getMultiAZPolicy()const
{
return multiAZPolicy_;
}
void CreateScalingGroupRequest::setMultiAZPolicy(const std::string& multiAZPolicy)
{
multiAZPolicy_ = multiAZPolicy;
setParameter("MultiAZPolicy", multiAZPolicy);
}
std::string CreateScalingGroupRequest::getDBInstanceIds()const
{
return dBInstanceIds_;

0
ess/src/model/CreateScalingGroupResult.cc Normal file → Executable file
View File

0
ess/src/model/CreateScalingRuleRequest.cc Normal file → Executable file
View File

0
ess/src/model/CreateScalingRuleResult.cc Normal file → Executable file
View File

0
ess/src/model/CreateScheduledTaskRequest.cc Normal file → Executable file
View File

0
ess/src/model/CreateScheduledTaskResult.cc Normal file → Executable file
View File

0
ess/src/model/DeactivateScalingConfigurationRequest.cc Normal file → Executable file
View File

0
ess/src/model/DeactivateScalingConfigurationResult.cc Normal file → Executable file
View File

View File

0
ess/src/model/DeleteNotificationConfigurationResult.cc Normal file → Executable file
View File

0
ess/src/model/DeleteScalingConfigurationRequest.cc Normal file → Executable file
View File

0
ess/src/model/DeleteScalingConfigurationResult.cc Normal file → Executable file
View File

0
ess/src/model/DeleteScalingGroupRequest.cc Normal file → Executable file
View File

0
ess/src/model/DeleteScalingGroupResult.cc Normal file → Executable file
View File

0
ess/src/model/DeleteScalingRuleRequest.cc Normal file → Executable file
View File

0
ess/src/model/DeleteScalingRuleResult.cc Normal file → Executable file
View File

0
ess/src/model/DeleteScheduledTaskRequest.cc Normal file → Executable file
View File

0
ess/src/model/DeleteScheduledTaskResult.cc Normal file → Executable file
View File

View File

@@ -1,60 +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/ess/model/DescribeAccountAttributesRequest.h>
using AlibabaCloud::Ess::Model::DescribeAccountAttributesRequest;
DescribeAccountAttributesRequest::DescribeAccountAttributesRequest() :
RpcServiceRequest("ess", "2014-08-28", "DescribeAccountAttributes")
{}
DescribeAccountAttributesRequest::~DescribeAccountAttributesRequest()
{}
std::string DescribeAccountAttributesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeAccountAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DescribeAccountAttributesRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeAccountAttributesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeAccountAttributesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeAccountAttributesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

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/ess/model/DescribeAccountAttributesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ess;
using namespace AlibabaCloud::Ess::Model;
DescribeAccountAttributesResult::DescribeAccountAttributesResult() :
ServiceResult()
{}
DescribeAccountAttributesResult::DescribeAccountAttributesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAccountAttributesResult::~DescribeAccountAttributesResult()
{}
void DescribeAccountAttributesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["MaxNumberOfScalingGroups"].isNull())
maxNumberOfScalingGroups_ = std::stoi(value["MaxNumberOfScalingGroups"].asString());
if(!value["MaxNumberOfScalingConfigurations"].isNull())
maxNumberOfScalingConfigurations_ = std::stoi(value["MaxNumberOfScalingConfigurations"].asString());
if(!value["MaxNumberOfScalingRules"].isNull())
maxNumberOfScalingRules_ = std::stoi(value["MaxNumberOfScalingRules"].asString());
if(!value["MaxNumberOfScheduledTasks"].isNull())
maxNumberOfScheduledTasks_ = std::stoi(value["MaxNumberOfScheduledTasks"].asString());
if(!value["MaxNumberOfScalingInstances"].isNull())
maxNumberOfScalingInstances_ = std::stoi(value["MaxNumberOfScalingInstances"].asString());
if(!value["MaxNumberOfDBInstances"].isNull())
maxNumberOfDBInstances_ = std::stoi(value["MaxNumberOfDBInstances"].asString());
if(!value["MaxNumberOfLoadBalancers"].isNull())
maxNumberOfLoadBalancers_ = std::stoi(value["MaxNumberOfLoadBalancers"].asString());
if(!value["MaxNumberOfMinSize"].isNull())
maxNumberOfMinSize_ = std::stoi(value["MaxNumberOfMinSize"].asString());
if(!value["MaxNumberOfMaxSize"].isNull())
maxNumberOfMaxSize_ = std::stoi(value["MaxNumberOfMaxSize"].asString());
}
int DescribeAccountAttributesResult::getMaxNumberOfScalingRules()const
{
return maxNumberOfScalingRules_;
}
int DescribeAccountAttributesResult::getMaxNumberOfScalingInstances()const
{
return maxNumberOfScalingInstances_;
}
int DescribeAccountAttributesResult::getMaxNumberOfScheduledTasks()const
{
return maxNumberOfScheduledTasks_;
}
int DescribeAccountAttributesResult::getMaxNumberOfLoadBalancers()const
{
return maxNumberOfLoadBalancers_;
}
int DescribeAccountAttributesResult::getMaxNumberOfMinSize()const
{
return maxNumberOfMinSize_;
}
int DescribeAccountAttributesResult::getMaxNumberOfScalingGroups()const
{
return maxNumberOfScalingGroups_;
}
int DescribeAccountAttributesResult::getMaxNumberOfScalingConfigurations()const
{
return maxNumberOfScalingConfigurations_;
}
int DescribeAccountAttributesResult::getMaxNumberOfDBInstances()const
{
return maxNumberOfDBInstances_;
}
int DescribeAccountAttributesResult::getMaxNumberOfMaxSize()const
{
return maxNumberOfMaxSize_;
}

0
ess/src/model/DescribeAlertConfigRequest.cc Normal file → Executable file
View File

0
ess/src/model/DescribeAlertConfigResult.cc Normal file → Executable file
View File

0
ess/src/model/DescribeCapacityHistoryRequest.cc Normal file → Executable file
View File

0
ess/src/model/DescribeCapacityHistoryResult.cc Normal file → Executable file
View File

0
ess/src/model/DescribeLimitationRequest.cc Normal file → Executable file
View File

0
ess/src/model/DescribeLimitationResult.cc Normal file → Executable file
View File

View File

View File

0
ess/src/model/DescribeNotificationTypesRequest.cc Normal file → Executable file
View File

0
ess/src/model/DescribeNotificationTypesResult.cc Normal file → Executable file
View File

0
ess/src/model/DescribeRegionsRequest.cc Normal file → Executable file
View File

0
ess/src/model/DescribeRegionsResult.cc Normal file → Executable file
View File

0
ess/src/model/DescribeScalingActivitiesRequest.cc Normal file → Executable file
View File

0
ess/src/model/DescribeScalingActivitiesResult.cc Normal file → Executable file
View File

0
ess/src/model/DescribeScalingActivityDetailRequest.cc Normal file → Executable file
View File

0
ess/src/model/DescribeScalingActivityDetailResult.cc Normal file → Executable file
View File

0
ess/src/model/DescribeScalingConfigurationsRequest.cc Normal file → Executable file
View File

0
ess/src/model/DescribeScalingConfigurationsResult.cc Normal file → Executable file
View File

0
ess/src/model/DescribeScalingGroupsRequest.cc Normal file → Executable file
View File

4
ess/src/model/DescribeScalingGroupsResult.cc Normal file → Executable file
View File

@@ -58,6 +58,8 @@ void DescribeScalingGroupsResult::parse(const std::string &payload)
scalingGroupsObject.activeCapacity = std::stoi(value["ActiveCapacity"].asString());
if(!value["StandbyCapacity"].isNull())
scalingGroupsObject.standbyCapacity = std::stoi(value["StandbyCapacity"].asString());
if(!value["ProtectedCapacity"].isNull())
scalingGroupsObject.protectedCapacity = std::stoi(value["ProtectedCapacity"].asString());
if(!value["ActiveScalingConfigurationId"].isNull())
scalingGroupsObject.activeScalingConfigurationId = value["ActiveScalingConfigurationId"].asString();
if(!value["ScalingGroupId"].isNull())
@@ -78,6 +80,8 @@ void DescribeScalingGroupsResult::parse(const std::string &payload)
scalingGroupsObject.vpcId = value["VpcId"].asString();
if(!value["VSwitchId"].isNull())
scalingGroupsObject.vSwitchId = value["VSwitchId"].asString();
if(!value["MultiAZPolicy"].isNull())
scalingGroupsObject.multiAZPolicy = value["MultiAZPolicy"].asString();
auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"];
for (auto value : allVSwitchIds)
scalingGroupsObject.vSwitchIds.push_back(value.asString());

0
ess/src/model/DescribeScalingInstancesRequest.cc Normal file → Executable file
View File

0
ess/src/model/DescribeScalingInstancesResult.cc Normal file → Executable file
View File

0
ess/src/model/DescribeScalingRulesRequest.cc Normal file → Executable file
View File

0
ess/src/model/DescribeScalingRulesResult.cc Normal file → Executable file
View File

0
ess/src/model/DescribeScheduledTasksRequest.cc Normal file → Executable file
View File

0
ess/src/model/DescribeScheduledTasksResult.cc Normal file → Executable file
View File

0
ess/src/model/DetachInstancesRequest.cc Normal file → Executable file
View File

0
ess/src/model/DetachInstancesResult.cc Normal file → Executable file
View File

0
ess/src/model/DisableScalingGroupRequest.cc Normal file → Executable file
View File

0
ess/src/model/DisableScalingGroupResult.cc Normal file → Executable file
View File

0
ess/src/model/EnableScalingGroupRequest.cc Normal file → Executable file
View File

0
ess/src/model/EnableScalingGroupResult.cc Normal file → Executable file
View File

0
ess/src/model/EnterStandbyRequest.cc Normal file → Executable file
View File

0
ess/src/model/EnterStandbyResult.cc Normal file → Executable file
View File

0
ess/src/model/ExecuteScalingRuleRequest.cc Normal file → Executable file
View File

0
ess/src/model/ExecuteScalingRuleResult.cc Normal file → Executable file
View File

0
ess/src/model/ExitStandbyRequest.cc Normal file → Executable file
View File

0
ess/src/model/ExitStandbyResult.cc Normal file → Executable file
View File

0
ess/src/model/ModifyAlertConfigRequest.cc Normal file → Executable file
View File

0
ess/src/model/ModifyAlertConfigResult.cc Normal file → Executable file
View File

View File

0
ess/src/model/ModifyNotificationConfigurationResult.cc Normal file → Executable file
View File

0
ess/src/model/ModifyScalingGroupRequest.cc Normal file → Executable file
View File

0
ess/src/model/ModifyScalingGroupResult.cc Normal file → Executable file
View File

0
ess/src/model/ModifyScalingRuleRequest.cc Normal file → Executable file
View File

0
ess/src/model/ModifyScalingRuleResult.cc Normal file → Executable file
View File

0
ess/src/model/ModifyScheduledTaskRequest.cc Normal file → Executable file
View File

0
ess/src/model/ModifyScheduledTaskResult.cc Normal file → Executable file
View File

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ess/model/RebalanceInstancesRequest.h>
using AlibabaCloud::Ess::Model::RebalanceInstancesRequest;
RebalanceInstancesRequest::RebalanceInstancesRequest() :
RpcServiceRequest("ess", "2014-08-28", "RebalanceInstances")
{}
RebalanceInstancesRequest::~RebalanceInstancesRequest()
{}
long RebalanceInstancesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void RebalanceInstancesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string RebalanceInstancesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void RebalanceInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string RebalanceInstancesRequest::getScalingGroupId()const
{
return scalingGroupId_;
}
void RebalanceInstancesRequest::setScalingGroupId(const std::string& scalingGroupId)
{
scalingGroupId_ = scalingGroupId;
setParameter("ScalingGroupId", scalingGroupId);
}
std::string RebalanceInstancesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void RebalanceInstancesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long RebalanceInstancesRequest::getOwnerId()const
{
return ownerId_;
}
void RebalanceInstancesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string RebalanceInstancesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void RebalanceInstancesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

0
ess/src/model/RemoveInstancesRequest.cc Normal file → Executable file
View File

0
ess/src/model/RemoveInstancesResult.cc Normal file → Executable file
View File

View File

@@ -0,0 +1,94 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ess/model/SetInstancesProtectionRequest.h>
using AlibabaCloud::Ess::Model::SetInstancesProtectionRequest;
SetInstancesProtectionRequest::SetInstancesProtectionRequest() :
RpcServiceRequest("ess", "2014-08-28", "SetInstancesProtection")
{}
SetInstancesProtectionRequest::~SetInstancesProtectionRequest()
{}
std::vector<std::string> SetInstancesProtectionRequest::getInstanceId()const
{
return instanceId_;
}
void SetInstancesProtectionRequest::setInstanceId(const std::vector<std::string>& instanceId)
{
instanceId_ = instanceId;
for(int i = 0; i!= instanceId.size(); i++)
setParameter("InstanceId."+ std::to_string(i), instanceId.at(i));
}
std::string SetInstancesProtectionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void SetInstancesProtectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string SetInstancesProtectionRequest::getScalingGroupId()const
{
return scalingGroupId_;
}
void SetInstancesProtectionRequest::setScalingGroupId(const std::string& scalingGroupId)
{
scalingGroupId_ = scalingGroupId;
setParameter("ScalingGroupId", scalingGroupId);
}
long SetInstancesProtectionRequest::getOwnerId()const
{
return ownerId_;
}
void SetInstancesProtectionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string SetInstancesProtectionRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SetInstancesProtectionRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool SetInstancesProtectionRequest::getProtectedFromScaleIn()const
{
return protectedFromScaleIn_;
}
void SetInstancesProtectionRequest::setProtectedFromScaleIn(bool protectedFromScaleIn)
{
protectedFromScaleIn_ = protectedFromScaleIn;
setParameter("ProtectedFromScaleIn", std::to_string(protectedFromScaleIn));
}

View File

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

0
ess/src/model/VerifyAuthenticationRequest.cc Normal file → Executable file
View File

0
ess/src/model/VerifyAuthenticationResult.cc Normal file → Executable file
View File

0
ess/src/model/VerifyUserRequest.cc Normal file → Executable file
View File

0
ess/src/model/VerifyUserResult.cc Normal file → Executable file
View File