RunInstances support AutoSnapshotPolicyId.

This commit is contained in:
sdk-team
2019-10-22 16:51:54 +08:00
parent c9f3f1182e
commit bba9532ea7
41 changed files with 83 additions and 2595 deletions

View File

@@ -86,8 +86,6 @@
#include "model/CreateDeploymentSetResult.h"
#include "model/CreateDiskRequest.h"
#include "model/CreateDiskResult.h"
#include "model/CreateFleetRequest.h"
#include "model/CreateFleetResult.h"
#include "model/CreateForwardEntryRequest.h"
#include "model/CreateForwardEntryResult.h"
#include "model/CreateHaVipRequest.h"
@@ -144,8 +142,6 @@
#include "model/DeleteDeploymentSetResult.h"
#include "model/DeleteDiskRequest.h"
#include "model/DeleteDiskResult.h"
#include "model/DeleteFleetRequest.h"
#include "model/DeleteFleetResult.h"
#include "model/DeleteForwardEntryRequest.h"
#include "model/DeleteForwardEntryResult.h"
#include "model/DeleteHaVipRequest.h"
@@ -236,12 +232,6 @@
#include "model/DescribeEipMonitorDataResult.h"
#include "model/DescribeEniMonitorDataRequest.h"
#include "model/DescribeEniMonitorDataResult.h"
#include "model/DescribeFleetHistoryRequest.h"
#include "model/DescribeFleetHistoryResult.h"
#include "model/DescribeFleetInstancesRequest.h"
#include "model/DescribeFleetInstancesResult.h"
#include "model/DescribeFleetsRequest.h"
#include "model/DescribeFleetsResult.h"
#include "model/DescribeForwardTableEntriesRequest.h"
#include "model/DescribeForwardTableEntriesResult.h"
#include "model/DescribeHaVipsRequest.h"
@@ -434,8 +424,6 @@
#include "model/ModifyDiskSpecResult.h"
#include "model/ModifyEipAddressAttributeRequest.h"
#include "model/ModifyEipAddressAttributeResult.h"
#include "model/ModifyFleetRequest.h"
#include "model/ModifyFleetResult.h"
#include "model/ModifyForwardEntryRequest.h"
#include "model/ModifyForwardEntryResult.h"
#include "model/ModifyHaVipAttributeRequest.h"
@@ -673,9 +661,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateDiskResult> CreateDiskOutcome;
typedef std::future<CreateDiskOutcome> CreateDiskOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateDiskRequest&, const CreateDiskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDiskAsyncHandler;
typedef Outcome<Error, Model::CreateFleetResult> CreateFleetOutcome;
typedef std::future<CreateFleetOutcome> CreateFleetOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateFleetRequest&, const CreateFleetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFleetAsyncHandler;
typedef Outcome<Error, Model::CreateForwardEntryResult> CreateForwardEntryOutcome;
typedef std::future<CreateForwardEntryOutcome> CreateForwardEntryOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateForwardEntryRequest&, const CreateForwardEntryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateForwardEntryAsyncHandler;
@@ -760,9 +745,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteDiskResult> DeleteDiskOutcome;
typedef std::future<DeleteDiskOutcome> DeleteDiskOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DeleteDiskRequest&, const DeleteDiskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDiskAsyncHandler;
typedef Outcome<Error, Model::DeleteFleetResult> DeleteFleetOutcome;
typedef std::future<DeleteFleetOutcome> DeleteFleetOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DeleteFleetRequest&, const DeleteFleetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFleetAsyncHandler;
typedef Outcome<Error, Model::DeleteForwardEntryResult> DeleteForwardEntryOutcome;
typedef std::future<DeleteForwardEntryOutcome> DeleteForwardEntryOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DeleteForwardEntryRequest&, const DeleteForwardEntryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteForwardEntryAsyncHandler;
@@ -898,15 +880,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeEniMonitorDataResult> DescribeEniMonitorDataOutcome;
typedef std::future<DescribeEniMonitorDataOutcome> DescribeEniMonitorDataOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeEniMonitorDataRequest&, const DescribeEniMonitorDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEniMonitorDataAsyncHandler;
typedef Outcome<Error, Model::DescribeFleetHistoryResult> DescribeFleetHistoryOutcome;
typedef std::future<DescribeFleetHistoryOutcome> DescribeFleetHistoryOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeFleetHistoryRequest&, const DescribeFleetHistoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFleetHistoryAsyncHandler;
typedef Outcome<Error, Model::DescribeFleetInstancesResult> DescribeFleetInstancesOutcome;
typedef std::future<DescribeFleetInstancesOutcome> DescribeFleetInstancesOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeFleetInstancesRequest&, const DescribeFleetInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFleetInstancesAsyncHandler;
typedef Outcome<Error, Model::DescribeFleetsResult> DescribeFleetsOutcome;
typedef std::future<DescribeFleetsOutcome> DescribeFleetsOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeFleetsRequest&, const DescribeFleetsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFleetsAsyncHandler;
typedef Outcome<Error, Model::DescribeForwardTableEntriesResult> DescribeForwardTableEntriesOutcome;
typedef std::future<DescribeForwardTableEntriesOutcome> DescribeForwardTableEntriesOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeForwardTableEntriesRequest&, const DescribeForwardTableEntriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeForwardTableEntriesAsyncHandler;
@@ -1195,9 +1168,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyEipAddressAttributeResult> ModifyEipAddressAttributeOutcome;
typedef std::future<ModifyEipAddressAttributeOutcome> ModifyEipAddressAttributeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyEipAddressAttributeRequest&, const ModifyEipAddressAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyEipAddressAttributeAsyncHandler;
typedef Outcome<Error, Model::ModifyFleetResult> ModifyFleetOutcome;
typedef std::future<ModifyFleetOutcome> ModifyFleetOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyFleetRequest&, const ModifyFleetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyFleetAsyncHandler;
typedef Outcome<Error, Model::ModifyForwardEntryResult> ModifyForwardEntryOutcome;
typedef std::future<ModifyForwardEntryOutcome> ModifyForwardEntryOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyForwardEntryRequest&, const ModifyForwardEntryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyForwardEntryAsyncHandler;
@@ -1497,9 +1467,6 @@ namespace AlibabaCloud
CreateDiskOutcome createDisk(const Model::CreateDiskRequest &request)const;
void createDiskAsync(const Model::CreateDiskRequest& request, const CreateDiskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDiskOutcomeCallable createDiskCallable(const Model::CreateDiskRequest& request) const;
CreateFleetOutcome createFleet(const Model::CreateFleetRequest &request)const;
void createFleetAsync(const Model::CreateFleetRequest& request, const CreateFleetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateFleetOutcomeCallable createFleetCallable(const Model::CreateFleetRequest& request) const;
CreateForwardEntryOutcome createForwardEntry(const Model::CreateForwardEntryRequest &request)const;
void createForwardEntryAsync(const Model::CreateForwardEntryRequest& request, const CreateForwardEntryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateForwardEntryOutcomeCallable createForwardEntryCallable(const Model::CreateForwardEntryRequest& request) const;
@@ -1584,9 +1551,6 @@ namespace AlibabaCloud
DeleteDiskOutcome deleteDisk(const Model::DeleteDiskRequest &request)const;
void deleteDiskAsync(const Model::DeleteDiskRequest& request, const DeleteDiskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDiskOutcomeCallable deleteDiskCallable(const Model::DeleteDiskRequest& request) const;
DeleteFleetOutcome deleteFleet(const Model::DeleteFleetRequest &request)const;
void deleteFleetAsync(const Model::DeleteFleetRequest& request, const DeleteFleetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteFleetOutcomeCallable deleteFleetCallable(const Model::DeleteFleetRequest& request) const;
DeleteForwardEntryOutcome deleteForwardEntry(const Model::DeleteForwardEntryRequest &request)const;
void deleteForwardEntryAsync(const Model::DeleteForwardEntryRequest& request, const DeleteForwardEntryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteForwardEntryOutcomeCallable deleteForwardEntryCallable(const Model::DeleteForwardEntryRequest& request) const;
@@ -1722,15 +1686,6 @@ namespace AlibabaCloud
DescribeEniMonitorDataOutcome describeEniMonitorData(const Model::DescribeEniMonitorDataRequest &request)const;
void describeEniMonitorDataAsync(const Model::DescribeEniMonitorDataRequest& request, const DescribeEniMonitorDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeEniMonitorDataOutcomeCallable describeEniMonitorDataCallable(const Model::DescribeEniMonitorDataRequest& request) const;
DescribeFleetHistoryOutcome describeFleetHistory(const Model::DescribeFleetHistoryRequest &request)const;
void describeFleetHistoryAsync(const Model::DescribeFleetHistoryRequest& request, const DescribeFleetHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeFleetHistoryOutcomeCallable describeFleetHistoryCallable(const Model::DescribeFleetHistoryRequest& request) const;
DescribeFleetInstancesOutcome describeFleetInstances(const Model::DescribeFleetInstancesRequest &request)const;
void describeFleetInstancesAsync(const Model::DescribeFleetInstancesRequest& request, const DescribeFleetInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeFleetInstancesOutcomeCallable describeFleetInstancesCallable(const Model::DescribeFleetInstancesRequest& request) const;
DescribeFleetsOutcome describeFleets(const Model::DescribeFleetsRequest &request)const;
void describeFleetsAsync(const Model::DescribeFleetsRequest& request, const DescribeFleetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeFleetsOutcomeCallable describeFleetsCallable(const Model::DescribeFleetsRequest& request) const;
DescribeForwardTableEntriesOutcome describeForwardTableEntries(const Model::DescribeForwardTableEntriesRequest &request)const;
void describeForwardTableEntriesAsync(const Model::DescribeForwardTableEntriesRequest& request, const DescribeForwardTableEntriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeForwardTableEntriesOutcomeCallable describeForwardTableEntriesCallable(const Model::DescribeForwardTableEntriesRequest& request) const;
@@ -2019,9 +1974,6 @@ namespace AlibabaCloud
ModifyEipAddressAttributeOutcome modifyEipAddressAttribute(const Model::ModifyEipAddressAttributeRequest &request)const;
void modifyEipAddressAttributeAsync(const Model::ModifyEipAddressAttributeRequest& request, const ModifyEipAddressAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyEipAddressAttributeOutcomeCallable modifyEipAddressAttributeCallable(const Model::ModifyEipAddressAttributeRequest& request) const;
ModifyFleetOutcome modifyFleet(const Model::ModifyFleetRequest &request)const;
void modifyFleetAsync(const Model::ModifyFleetRequest& request, const ModifyFleetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyFleetOutcomeCallable modifyFleetCallable(const Model::ModifyFleetRequest& request) const;
ModifyForwardEntryOutcome modifyForwardEntry(const Model::ModifyForwardEntryRequest &request)const;
void modifyForwardEntryAsync(const Model::ModifyForwardEntryRequest& request, const ModifyForwardEntryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyForwardEntryOutcomeCallable modifyForwardEntryCallable(const Model::ModifyForwardEntryRequest& request) const;

View File

@@ -1,131 +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_ECS_MODEL_CREATEFLEETREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_CREATEFLEETREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT CreateFleetRequest : public RpcServiceRequest
{
struct LaunchTemplateConfig
{
std::string instanceType;
double maxPrice;
std::string vSwitchId;
double weightedCapacity;
int priority;
};
public:
CreateFleetRequest();
~CreateFleetRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getFleetType()const;
void setFleetType(const std::string& fleetType);
std::string getDescription()const;
void setDescription(const std::string& description);
bool getTerminateInstancesWithExpiration()const;
void setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration);
std::string getOnDemandTargetCapacity()const;
void setOnDemandTargetCapacity(const std::string& onDemandTargetCapacity);
std::string getFleetName()const;
void setFleetName(const std::string& fleetName);
std::string getSpotAllocationStrategy()const;
void setSpotAllocationStrategy(const std::string& spotAllocationStrategy);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
bool getTerminateInstances()const;
void setTerminateInstances(bool terminateInstances);
std::string getDefaultTargetCapacityType()const;
void setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType);
std::string getExcessCapacityTerminationPolicy()const;
void setExcessCapacityTerminationPolicy(const std::string& excessCapacityTerminationPolicy);
std::vector<LaunchTemplateConfig> getLaunchTemplateConfig()const;
void setLaunchTemplateConfig(const std::vector<LaunchTemplateConfig>& launchTemplateConfig);
std::string getValidUntil()const;
void setValidUntil(const std::string& validUntil);
std::string getFillGapWithOnDemand()const;
void setFillGapWithOnDemand(const std::string& fillGapWithOnDemand);
std::string getSpotInstanceInterruptionBehavior()const;
void setSpotInstanceInterruptionBehavior(const std::string& spotInstanceInterruptionBehavior);
std::string getLaunchTemplateId()const;
void setLaunchTemplateId(const std::string& launchTemplateId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
int getSpotInstancePoolsToUseCount()const;
void setSpotInstancePoolsToUseCount(int spotInstancePoolsToUseCount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getLaunchTemplateVersion()const;
void setLaunchTemplateVersion(const std::string& launchTemplateVersion);
std::string getTotalTargetCapacity()const;
void setTotalTargetCapacity(const std::string& totalTargetCapacity);
std::string getOnDemandAllocationStrategy()const;
void setOnDemandAllocationStrategy(const std::string& onDemandAllocationStrategy);
std::string getSpotTargetCapacity()const;
void setSpotTargetCapacity(const std::string& spotTargetCapacity);
std::string getValidFrom()const;
void setValidFrom(const std::string& validFrom);
float getMaxSpotPrice()const;
void setMaxSpotPrice(float maxSpotPrice);
private:
long resourceOwnerId_;
std::string fleetType_;
std::string description_;
bool terminateInstancesWithExpiration_;
std::string onDemandTargetCapacity_;
std::string fleetName_;
std::string spotAllocationStrategy_;
std::string regionId_;
bool terminateInstances_;
std::string defaultTargetCapacityType_;
std::string excessCapacityTerminationPolicy_;
std::vector<LaunchTemplateConfig> launchTemplateConfig_;
std::string validUntil_;
std::string fillGapWithOnDemand_;
std::string spotInstanceInterruptionBehavior_;
std::string launchTemplateId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
int spotInstancePoolsToUseCount_;
long ownerId_;
std::string launchTemplateVersion_;
std::string totalTargetCapacity_;
std::string onDemandAllocationStrategy_;
std::string spotTargetCapacity_;
std::string validFrom_;
float maxSpotPrice_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEFLEETREQUEST_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_ECS_MODEL_CREATEFLEETRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_CREATEFLEETRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT CreateFleetResult : public ServiceResult
{
public:
CreateFleetResult();
explicit CreateFleetResult(const std::string &payload);
~CreateFleetResult();
std::string getFleetId()const;
protected:
void parse(const std::string &payload);
private:
std::string fleetId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEFLEETRESULT_H_

View File

@@ -1,66 +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_ECS_MODEL_DELETEFLEETREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DELETEFLEETREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT DeleteFleetRequest : public RpcServiceRequest
{
public:
DeleteFleetRequest();
~DeleteFleetRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
bool getTerminateInstances()const;
void setTerminateInstances(bool terminateInstances);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getFleetId()const;
void setFleetId(const std::string& fleetId);
private:
long resourceOwnerId_;
std::string regionId_;
bool terminateInstances_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string fleetId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DELETEFLEETREQUEST_H_

View File

@@ -1,49 +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_ECS_MODEL_DELETEFLEETRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_DELETEFLEETRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT DeleteFleetResult : public ServiceResult
{
public:
DeleteFleetResult();
explicit DeleteFleetResult(const std::string &payload);
~DeleteFleetResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DELETEFLEETRESULT_H_

View File

@@ -1,63 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETHISTORYREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETHISTORYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT DescribeFleetHistoryRequest : public RpcServiceRequest
{
public:
DescribeFleetHistoryRequest();
~DescribeFleetHistoryRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getFleetId()const;
void setFleetId(const std::string& fleetId);
private:
long resourceOwnerId_;
std::string regionId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string fleetId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETHISTORYREQUEST_H_

View File

@@ -1,70 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETHISTORYRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETHISTORYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT DescribeFleetHistoryResult : public ServiceResult
{
public:
struct FleetHistory
{
struct ActivityDetail
{
float status;
std::string detail;
};
std::string status;
std::vector<FleetHistory::ActivityDetail> activityDetails;
std::string taskId;
std::string startTime;
std::string lastEventTime;
};
DescribeFleetHistoryResult();
explicit DescribeFleetHistoryResult(const std::string &payload);
~DescribeFleetHistoryResult();
int getTotalCount()const;
int getPageSize()const;
int getPageNumber()const;
std::vector<FleetHistory> getFleetHistorys()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
int pageNumber_;
std::vector<FleetHistory> fleetHistorys_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETHISTORYRESULT_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_ECS_MODEL_DESCRIBEFLEETINSTANCESREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT DescribeFleetInstancesRequest : public RpcServiceRequest
{
public:
DescribeFleetInstancesRequest();
~DescribeFleetInstancesRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getFleetId()const;
void setFleetId(const std::string& fleetId);
private:
long resourceOwnerId_;
int pageNumber_;
std::string regionId_;
int pageSize_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string fleetId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESREQUEST_H_

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.
*/
#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT DescribeFleetInstancesResult : public ServiceResult
{
public:
struct Instance
{
std::string status;
bool isSpot;
bool ioOptimized;
std::string instanceId;
int memory;
std::string zoneNo;
int cores;
std::string izNo;
bool osType;
bool networkType;
std::string creationTime;
std::string regionId;
std::string instanceType;
};
DescribeFleetInstancesResult();
explicit DescribeFleetInstancesResult(const std::string &payload);
~DescribeFleetInstancesResult();
std::vector<Instance> getInstances()const;
int getTotalCount()const;
int getPageSize()const;
int getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Instance> instances_;
int totalCount_;
int pageSize_;
int pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESRESULT_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_ECS_MODEL_DESCRIBEFLEETSREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT DescribeFleetsRequest : public RpcServiceRequest
{
public:
DescribeFleetsRequest();
~DescribeFleetsRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getFleetName()const;
void setFleetName(const std::string& fleetName);
std::vector<std::string> getFleetStatus()const;
void setFleetStatus(const std::vector<std::string>& fleetStatus);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::vector<std::string> getFleetId()const;
void setFleetId(const std::vector<std::string>& fleetId);
private:
long resourceOwnerId_;
int pageNumber_;
std::string fleetName_;
std::vector<std::string> fleetStatus_;
std::string regionId_;
int pageSize_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::vector<std::string> fleetId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSREQUEST_H_

View File

@@ -1,105 +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_ECS_MODEL_DESCRIBEFLEETSRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT DescribeFleetsResult : public ServiceResult
{
public:
struct Fleet
{
struct SpotOptions
{
std::string allocationStrategy;
std::string instanceInterruptionBehavior;
int instancePoolsToUseCount;
};
struct OnDemandOptions
{
std::string allocationStrategy;
};
struct TargetCapacitySpecification
{
std::string defaultTargetCapacityType;
float totalTargetCapacity;
float onDemandTargetCapacity;
float spotTargetCapacity;
bool fillGapWithOnDemand;
};
struct LaunchTemplateConfig
{
float weightedCapacity;
float priority;
std::string instanceType;
float maxPrice;
std::string vSWitchId;
};
std::string status;
TargetCapacitySpecification targetCapacitySpecification;
OnDemandOptions onDemandOptions;
std::string excessCapacityTerminationPolicy;
std::string fleetType;
SpotOptions spotOptions;
std::vector<Fleet::LaunchTemplateConfig> launchTemplateConfigs;
std::string launchTemplateId;
std::string validUntil;
bool terminateInstancesWithExpiration;
std::string fleetName;
std::string state;
std::string fleetId;
std::string launchTemplateVersion;
std::string creationTime;
std::string validFrom;
float maxSpotPrice;
std::string regionId;
bool terminateInstances;
};
DescribeFleetsResult();
explicit DescribeFleetsResult(const std::string &payload);
~DescribeFleetsResult();
std::vector<Fleet> getFleets()const;
int getTotalCount()const;
int getPageSize()const;
int getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Fleet> fleets_;
int totalCount_;
int pageSize_;
int pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSRESULT_H_

View File

@@ -39,6 +39,8 @@ namespace AlibabaCloud
void setResourceOwnerId(long resourceOwnerId);
std::string getInvokeStatus()const;
void setInvokeStatus(const std::string& invokeStatus);
bool getIncludeOutput()const;
void setIncludeOutput(bool includeOutput);
std::string getCommandId()const;
void setCommandId(const std::string& commandId);
long getPageNumber()const;
@@ -69,6 +71,7 @@ namespace AlibabaCloud
private:
long resourceOwnerId_;
std::string invokeStatus_;
bool includeOutput_;
std::string commandId_;
long pageNumber_;
std::string regionId_;

View File

@@ -39,6 +39,8 @@ namespace AlibabaCloud
std::string finishTime;
std::string instanceId;
std::string instanceInvokeStatus;
std::string output;
long exitCode;
std::string creationTime;
std::string startTime;
};

View File

@@ -69,6 +69,8 @@ namespace AlibabaCloud
void setSystemDiskCategory(const std::string& systemDiskCategory);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
int getCapacity()const;
void setCapacity(int capacity);
std::string getSystemDiskPerformanceLevel()const;
void setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel);
std::string getDataDisk4Category()const;
@@ -122,6 +124,7 @@ namespace AlibabaCloud
int internetMaxBandwidthOut_;
std::string systemDiskCategory_;
std::string platform_;
int capacity_;
std::string systemDiskPerformanceLevel_;
std::string dataDisk4Category_;
std::string dataDisk4PerformanceLevel_;

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
void setDiskName(const std::string& diskName);
bool getDeleteAutoSnapshot()const;
void setDeleteAutoSnapshot(bool deleteAutoSnapshot);
std::vector<std::string> getDiskIds()const;
void setDiskIds(const std::vector<std::string>& diskIds);
std::string getDiskId()const;
void setDiskId(const std::string& diskId);
bool getDeleteWithInstance()const;
@@ -61,6 +63,7 @@ namespace AlibabaCloud
std::string description_;
std::string diskName_;
bool deleteAutoSnapshot_;
std::vector<std::string> diskIds_;
std::string diskId_;
bool deleteWithInstance_;
bool enableAutoSnapshot_;

View File

@@ -1,84 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYFLEETREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_MODIFYFLEETREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT ModifyFleetRequest : public RpcServiceRequest
{
public:
ModifyFleetRequest();
~ModifyFleetRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
bool getTerminateInstancesWithExpiration()const;
void setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration);
std::string getOnDemandTargetCapacity()const;
void setOnDemandTargetCapacity(const std::string& onDemandTargetCapacity);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getDefaultTargetCapacityType()const;
void setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType);
std::string getExcessCapacityTerminationPolicy()const;
void setExcessCapacityTerminationPolicy(const std::string& excessCapacityTerminationPolicy);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getFleetId()const;
void setFleetId(const std::string& fleetId);
std::string getTotalTargetCapacity()const;
void setTotalTargetCapacity(const std::string& totalTargetCapacity);
std::string getSpotTargetCapacity()const;
void setSpotTargetCapacity(const std::string& spotTargetCapacity);
float getMaxSpotPrice()const;
void setMaxSpotPrice(float maxSpotPrice);
private:
long resourceOwnerId_;
bool terminateInstancesWithExpiration_;
std::string onDemandTargetCapacity_;
std::string regionId_;
std::string defaultTargetCapacityType_;
std::string excessCapacityTerminationPolicy_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string fleetId_;
std::string totalTargetCapacity_;
std::string spotTargetCapacity_;
float maxSpotPrice_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYFLEETREQUEST_H_

View File

@@ -1,49 +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_ECS_MODEL_MODIFYFLEETRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_MODIFYFLEETRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT ModifyFleetResult : public ServiceResult
{
public:
ModifyFleetResult();
explicit ModifyFleetResult(const std::string &payload);
~ModifyFleetResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYFLEETRESULT_H_

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
void setClientToken(const std::string& clientToken);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getRegionId()const;
@@ -72,6 +74,7 @@ namespace AlibabaCloud
long resourceOwnerId_;
std::string clientToken_;
std::string description_;
std::string platform_;
std::string resourceGroupId_;
std::string regionId_;
std::string scope_;

View File

@@ -55,6 +55,7 @@ namespace AlibabaCloud
std::string device;
bool deleteWithInstance;
std::string performanceLevel;
std::string autoSnapshotPolicyId;
};
public:
@@ -89,6 +90,8 @@ namespace AlibabaCloud
void setStorageSetPartitionNumber(int storageSetPartitionNumber);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
std::string getSystemDiskAutoSnapshotPolicyId()const;
void setSystemDiskAutoSnapshotPolicyId(const std::string& systemDiskAutoSnapshotPolicyId);
int getAutoRenewPeriod()const;
void setAutoRenewPeriod(int autoRenewPeriod);
int getPeriod()const;
@@ -209,6 +212,7 @@ namespace AlibabaCloud
std::string password_;
int storageSetPartitionNumber_;
std::vector<Tag> tag_;
std::string systemDiskAutoSnapshotPolicyId_;
int autoRenewPeriod_;
int period_;
bool dryRun_;