diff --git a/CHANGELOG b/CHANGELOG index c6f3d5a6e..6e909e922 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2019-10-22 Version 1.36.154 +- RunInstances support AutoSnapshotPolicyId. + 2019-10-22 Version 1.36.153 - Supported ExternalId IMM. diff --git a/VERSION b/VERSION index f7625a0ab..748e252bd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.153 \ No newline at end of file +1.36.154 \ No newline at end of file diff --git a/ecs/CMakeLists.txt b/ecs/CMakeLists.txt index edfe43fd9..1a5e7fd70 100644 --- a/ecs/CMakeLists.txt +++ b/ecs/CMakeLists.txt @@ -85,8 +85,6 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/CreateDeploymentSetResult.h include/alibabacloud/ecs/model/CreateDiskRequest.h include/alibabacloud/ecs/model/CreateDiskResult.h - include/alibabacloud/ecs/model/CreateFleetRequest.h - include/alibabacloud/ecs/model/CreateFleetResult.h include/alibabacloud/ecs/model/CreateForwardEntryRequest.h include/alibabacloud/ecs/model/CreateForwardEntryResult.h include/alibabacloud/ecs/model/CreateHaVipRequest.h @@ -143,8 +141,6 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/DeleteDeploymentSetResult.h include/alibabacloud/ecs/model/DeleteDiskRequest.h include/alibabacloud/ecs/model/DeleteDiskResult.h - include/alibabacloud/ecs/model/DeleteFleetRequest.h - include/alibabacloud/ecs/model/DeleteFleetResult.h include/alibabacloud/ecs/model/DeleteForwardEntryRequest.h include/alibabacloud/ecs/model/DeleteForwardEntryResult.h include/alibabacloud/ecs/model/DeleteHaVipRequest.h @@ -235,12 +231,6 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/DescribeEipMonitorDataResult.h include/alibabacloud/ecs/model/DescribeEniMonitorDataRequest.h include/alibabacloud/ecs/model/DescribeEniMonitorDataResult.h - include/alibabacloud/ecs/model/DescribeFleetHistoryRequest.h - include/alibabacloud/ecs/model/DescribeFleetHistoryResult.h - include/alibabacloud/ecs/model/DescribeFleetInstancesRequest.h - include/alibabacloud/ecs/model/DescribeFleetInstancesResult.h - include/alibabacloud/ecs/model/DescribeFleetsRequest.h - include/alibabacloud/ecs/model/DescribeFleetsResult.h include/alibabacloud/ecs/model/DescribeForwardTableEntriesRequest.h include/alibabacloud/ecs/model/DescribeForwardTableEntriesResult.h include/alibabacloud/ecs/model/DescribeHaVipsRequest.h @@ -433,8 +423,6 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/ModifyDiskSpecResult.h include/alibabacloud/ecs/model/ModifyEipAddressAttributeRequest.h include/alibabacloud/ecs/model/ModifyEipAddressAttributeResult.h - include/alibabacloud/ecs/model/ModifyFleetRequest.h - include/alibabacloud/ecs/model/ModifyFleetResult.h include/alibabacloud/ecs/model/ModifyForwardEntryRequest.h include/alibabacloud/ecs/model/ModifyForwardEntryResult.h include/alibabacloud/ecs/model/ModifyHaVipAttributeRequest.h @@ -634,8 +622,6 @@ set(ecs_src src/model/CreateDeploymentSetResult.cc src/model/CreateDiskRequest.cc src/model/CreateDiskResult.cc - src/model/CreateFleetRequest.cc - src/model/CreateFleetResult.cc src/model/CreateForwardEntryRequest.cc src/model/CreateForwardEntryResult.cc src/model/CreateHaVipRequest.cc @@ -692,8 +678,6 @@ set(ecs_src src/model/DeleteDeploymentSetResult.cc src/model/DeleteDiskRequest.cc src/model/DeleteDiskResult.cc - src/model/DeleteFleetRequest.cc - src/model/DeleteFleetResult.cc src/model/DeleteForwardEntryRequest.cc src/model/DeleteForwardEntryResult.cc src/model/DeleteHaVipRequest.cc @@ -784,12 +768,6 @@ set(ecs_src src/model/DescribeEipMonitorDataResult.cc src/model/DescribeEniMonitorDataRequest.cc src/model/DescribeEniMonitorDataResult.cc - src/model/DescribeFleetHistoryRequest.cc - src/model/DescribeFleetHistoryResult.cc - src/model/DescribeFleetInstancesRequest.cc - src/model/DescribeFleetInstancesResult.cc - src/model/DescribeFleetsRequest.cc - src/model/DescribeFleetsResult.cc src/model/DescribeForwardTableEntriesRequest.cc src/model/DescribeForwardTableEntriesResult.cc src/model/DescribeHaVipsRequest.cc @@ -982,8 +960,6 @@ set(ecs_src src/model/ModifyDiskSpecResult.cc src/model/ModifyEipAddressAttributeRequest.cc src/model/ModifyEipAddressAttributeResult.cc - src/model/ModifyFleetRequest.cc - src/model/ModifyFleetResult.cc src/model/ModifyForwardEntryRequest.cc src/model/ModifyForwardEntryResult.cc src/model/ModifyHaVipAttributeRequest.cc diff --git a/ecs/include/alibabacloud/ecs/EcsClient.h b/ecs/include/alibabacloud/ecs/EcsClient.h index 886ad3443..dd342d64c 100644 --- a/ecs/include/alibabacloud/ecs/EcsClient.h +++ b/ecs/include/alibabacloud/ecs/EcsClient.h @@ -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 CreateDiskOutcome; typedef std::future CreateDiskOutcomeCallable; typedef std::function&)> CreateDiskAsyncHandler; - typedef Outcome CreateFleetOutcome; - typedef std::future CreateFleetOutcomeCallable; - typedef std::function&)> CreateFleetAsyncHandler; typedef Outcome CreateForwardEntryOutcome; typedef std::future CreateForwardEntryOutcomeCallable; typedef std::function&)> CreateForwardEntryAsyncHandler; @@ -760,9 +745,6 @@ namespace AlibabaCloud typedef Outcome DeleteDiskOutcome; typedef std::future DeleteDiskOutcomeCallable; typedef std::function&)> DeleteDiskAsyncHandler; - typedef Outcome DeleteFleetOutcome; - typedef std::future DeleteFleetOutcomeCallable; - typedef std::function&)> DeleteFleetAsyncHandler; typedef Outcome DeleteForwardEntryOutcome; typedef std::future DeleteForwardEntryOutcomeCallable; typedef std::function&)> DeleteForwardEntryAsyncHandler; @@ -898,15 +880,6 @@ namespace AlibabaCloud typedef Outcome DescribeEniMonitorDataOutcome; typedef std::future DescribeEniMonitorDataOutcomeCallable; typedef std::function&)> DescribeEniMonitorDataAsyncHandler; - typedef Outcome DescribeFleetHistoryOutcome; - typedef std::future DescribeFleetHistoryOutcomeCallable; - typedef std::function&)> DescribeFleetHistoryAsyncHandler; - typedef Outcome DescribeFleetInstancesOutcome; - typedef std::future DescribeFleetInstancesOutcomeCallable; - typedef std::function&)> DescribeFleetInstancesAsyncHandler; - typedef Outcome DescribeFleetsOutcome; - typedef std::future DescribeFleetsOutcomeCallable; - typedef std::function&)> DescribeFleetsAsyncHandler; typedef Outcome DescribeForwardTableEntriesOutcome; typedef std::future DescribeForwardTableEntriesOutcomeCallable; typedef std::function&)> DescribeForwardTableEntriesAsyncHandler; @@ -1195,9 +1168,6 @@ namespace AlibabaCloud typedef Outcome ModifyEipAddressAttributeOutcome; typedef std::future ModifyEipAddressAttributeOutcomeCallable; typedef std::function&)> ModifyEipAddressAttributeAsyncHandler; - typedef Outcome ModifyFleetOutcome; - typedef std::future ModifyFleetOutcomeCallable; - typedef std::function&)> ModifyFleetAsyncHandler; typedef Outcome ModifyForwardEntryOutcome; typedef std::future ModifyForwardEntryOutcomeCallable; typedef std::function&)> 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& context = nullptr) const; ModifyForwardEntryOutcomeCallable modifyForwardEntryCallable(const Model::ModifyForwardEntryRequest& request) const; diff --git a/ecs/include/alibabacloud/ecs/model/CreateFleetRequest.h b/ecs/include/alibabacloud/ecs/model/CreateFleetRequest.h deleted file mode 100644 index 05de16625..000000000 --- a/ecs/include/alibabacloud/ecs/model/CreateFleetRequest.h +++ /dev/null @@ -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 -#include -#include -#include - -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 getLaunchTemplateConfig()const; - void setLaunchTemplateConfig(const std::vector& 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_; - 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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateFleetResult.h b/ecs/include/alibabacloud/ecs/model/CreateFleetResult.h deleted file mode 100644 index 60cd790a3..000000000 --- a/ecs/include/alibabacloud/ecs/model/CreateFleetResult.h +++ /dev/null @@ -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 -#include -#include -#include -#include - -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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteFleetRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteFleetRequest.h deleted file mode 100644 index 109afa420..000000000 --- a/ecs/include/alibabacloud/ecs/model/DeleteFleetRequest.h +++ /dev/null @@ -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 -#include -#include -#include - -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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteFleetResult.h b/ecs/include/alibabacloud/ecs/model/DeleteFleetResult.h deleted file mode 100644 index 8ace1b019..000000000 --- a/ecs/include/alibabacloud/ecs/model/DeleteFleetResult.h +++ /dev/null @@ -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 -#include -#include -#include -#include - -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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeFleetHistoryRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeFleetHistoryRequest.h deleted file mode 100644 index 0dfaa5e9a..000000000 --- a/ecs/include/alibabacloud/ecs/model/DescribeFleetHistoryRequest.h +++ /dev/null @@ -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 -#include -#include -#include - -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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeFleetHistoryResult.h b/ecs/include/alibabacloud/ecs/model/DescribeFleetHistoryResult.h deleted file mode 100644 index 1249c9219..000000000 --- a/ecs/include/alibabacloud/ecs/model/DescribeFleetHistoryResult.h +++ /dev/null @@ -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 -#include -#include -#include -#include - -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 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 getFleetHistorys()const; - - protected: - void parse(const std::string &payload); - private: - int totalCount_; - int pageSize_; - int pageNumber_; - std::vector fleetHistorys_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETHISTORYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeFleetInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeFleetInstancesRequest.h deleted file mode 100644 index a5719ed24..000000000 --- a/ecs/include/alibabacloud/ecs/model/DescribeFleetInstancesRequest.h +++ /dev/null @@ -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 -#include -#include -#include - -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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeFleetInstancesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeFleetInstancesResult.h deleted file mode 100644 index cf12d531a..000000000 --- a/ecs/include/alibabacloud/ecs/model/DescribeFleetInstancesResult.h +++ /dev/null @@ -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 -#include -#include -#include -#include - -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 getInstances()const; - int getTotalCount()const; - int getPageSize()const; - int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: - std::vector instances_; - int totalCount_; - int pageSize_; - int pageNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeFleetsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeFleetsRequest.h deleted file mode 100644 index b4f674509..000000000 --- a/ecs/include/alibabacloud/ecs/model/DescribeFleetsRequest.h +++ /dev/null @@ -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 -#include -#include -#include - -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 getFleetStatus()const; - void setFleetStatus(const std::vector& 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 getFleetId()const; - void setFleetId(const std::vector& fleetId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string fleetName_; - std::vector fleetStatus_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector fleetId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeFleetsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeFleetsResult.h deleted file mode 100644 index 30a3cad2a..000000000 --- a/ecs/include/alibabacloud/ecs/model/DescribeFleetsResult.h +++ /dev/null @@ -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 -#include -#include -#include -#include - -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 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 getFleets()const; - int getTotalCount()const; - int getPageSize()const; - int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: - std::vector fleets_; - int totalCount_; - int pageSize_; - int pageNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h index 43fe81e9a..6137ce215 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h @@ -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_; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInvocationsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInvocationsResult.h index 910e78d1f..b4d0e241a 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInvocationsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInvocationsResult.h @@ -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; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribePriceRequest.h b/ecs/include/alibabacloud/ecs/model/DescribePriceRequest.h index 25929a84a..d385bca5b 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribePriceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribePriceRequest.h @@ -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_; diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h index 5563fc0cd..48d8fe326 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setDiskName(const std::string& diskName); bool getDeleteAutoSnapshot()const; void setDeleteAutoSnapshot(bool deleteAutoSnapshot); + std::vector getDiskIds()const; + void setDiskIds(const std::vector& 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 diskIds_; std::string diskId_; bool deleteWithInstance_; bool enableAutoSnapshot_; diff --git a/ecs/include/alibabacloud/ecs/model/ModifyFleetRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyFleetRequest.h deleted file mode 100644 index 41e9bdd07..000000000 --- a/ecs/include/alibabacloud/ecs/model/ModifyFleetRequest.h +++ /dev/null @@ -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 -#include -#include -#include - -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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyFleetResult.h b/ecs/include/alibabacloud/ecs/model/ModifyFleetResult.h deleted file mode 100644 index 0f6889fb2..000000000 --- a/ecs/include/alibabacloud/ecs/model/ModifyFleetResult.h +++ /dev/null @@ -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 -#include -#include -#include -#include - -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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h b/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h index d1d0d2850..6ad755119 100644 --- a/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h +++ b/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h @@ -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_; diff --git a/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h index 31d7b227f..0b9303478 100644 --- a/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h @@ -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 getTag()const; void setTag(const std::vector& 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_; + std::string systemDiskAutoSnapshotPolicyId_; int autoRenewPeriod_; int period_; bool dryRun_; diff --git a/ecs/src/EcsClient.cc b/ecs/src/EcsClient.cc index 88e9bd8da..b4270f99f 100644 --- a/ecs/src/EcsClient.cc +++ b/ecs/src/EcsClient.cc @@ -1203,42 +1203,6 @@ EcsClient::CreateDiskOutcomeCallable EcsClient::createDiskCallable(const CreateD return task->get_future(); } -EcsClient::CreateFleetOutcome EcsClient::createFleet(const CreateFleetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateFleetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateFleetOutcome(CreateFleetResult(outcome.result())); - else - return CreateFleetOutcome(outcome.error()); -} - -void EcsClient::createFleetAsync(const CreateFleetRequest& request, const CreateFleetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createFleet(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::CreateFleetOutcomeCallable EcsClient::createFleetCallable(const CreateFleetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createFleet(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::CreateForwardEntryOutcome EcsClient::createForwardEntry(const CreateForwardEntryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2247,42 +2211,6 @@ EcsClient::DeleteDiskOutcomeCallable EcsClient::deleteDiskCallable(const DeleteD return task->get_future(); } -EcsClient::DeleteFleetOutcome EcsClient::deleteFleet(const DeleteFleetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteFleetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteFleetOutcome(DeleteFleetResult(outcome.result())); - else - return DeleteFleetOutcome(outcome.error()); -} - -void EcsClient::deleteFleetAsync(const DeleteFleetRequest& request, const DeleteFleetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteFleet(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::DeleteFleetOutcomeCallable EcsClient::deleteFleetCallable(const DeleteFleetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteFleet(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::DeleteForwardEntryOutcome EcsClient::deleteForwardEntry(const DeleteForwardEntryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3903,114 +3831,6 @@ EcsClient::DescribeEniMonitorDataOutcomeCallable EcsClient::describeEniMonitorDa return task->get_future(); } -EcsClient::DescribeFleetHistoryOutcome EcsClient::describeFleetHistory(const DescribeFleetHistoryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeFleetHistoryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeFleetHistoryOutcome(DescribeFleetHistoryResult(outcome.result())); - else - return DescribeFleetHistoryOutcome(outcome.error()); -} - -void EcsClient::describeFleetHistoryAsync(const DescribeFleetHistoryRequest& request, const DescribeFleetHistoryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeFleetHistory(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::DescribeFleetHistoryOutcomeCallable EcsClient::describeFleetHistoryCallable(const DescribeFleetHistoryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeFleetHistory(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EcsClient::DescribeFleetInstancesOutcome EcsClient::describeFleetInstances(const DescribeFleetInstancesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeFleetInstancesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeFleetInstancesOutcome(DescribeFleetInstancesResult(outcome.result())); - else - return DescribeFleetInstancesOutcome(outcome.error()); -} - -void EcsClient::describeFleetInstancesAsync(const DescribeFleetInstancesRequest& request, const DescribeFleetInstancesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeFleetInstances(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::DescribeFleetInstancesOutcomeCallable EcsClient::describeFleetInstancesCallable(const DescribeFleetInstancesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeFleetInstances(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EcsClient::DescribeFleetsOutcome EcsClient::describeFleets(const DescribeFleetsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeFleetsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeFleetsOutcome(DescribeFleetsResult(outcome.result())); - else - return DescribeFleetsOutcome(outcome.error()); -} - -void EcsClient::describeFleetsAsync(const DescribeFleetsRequest& request, const DescribeFleetsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeFleets(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::DescribeFleetsOutcomeCallable EcsClient::describeFleetsCallable(const DescribeFleetsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeFleets(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::DescribeForwardTableEntriesOutcome EcsClient::describeForwardTableEntries(const DescribeForwardTableEntriesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7467,42 +7287,6 @@ EcsClient::ModifyEipAddressAttributeOutcomeCallable EcsClient::modifyEipAddressA return task->get_future(); } -EcsClient::ModifyFleetOutcome EcsClient::modifyFleet(const ModifyFleetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyFleetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyFleetOutcome(ModifyFleetResult(outcome.result())); - else - return ModifyFleetOutcome(outcome.error()); -} - -void EcsClient::modifyFleetAsync(const ModifyFleetRequest& request, const ModifyFleetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyFleet(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::ModifyFleetOutcomeCallable EcsClient::modifyFleetCallable(const ModifyFleetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyFleet(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::ModifyForwardEntryOutcome EcsClient::modifyForwardEntry(const ModifyForwardEntryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ecs/src/model/CreateFleetRequest.cc b/ecs/src/model/CreateFleetRequest.cc deleted file mode 100644 index fa8110104..000000000 --- a/ecs/src/model/CreateFleetRequest.cc +++ /dev/null @@ -1,322 +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 - -using AlibabaCloud::Ecs::Model::CreateFleetRequest; - -CreateFleetRequest::CreateFleetRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateFleet") -{} - -CreateFleetRequest::~CreateFleetRequest() -{} - -long CreateFleetRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void CreateFleetRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string CreateFleetRequest::getFleetType()const -{ - return fleetType_; -} - -void CreateFleetRequest::setFleetType(const std::string& fleetType) -{ - fleetType_ = fleetType; - setCoreParameter("FleetType", fleetType); -} - -std::string CreateFleetRequest::getDescription()const -{ - return description_; -} - -void CreateFleetRequest::setDescription(const std::string& description) -{ - description_ = description; - setCoreParameter("Description", description); -} - -bool CreateFleetRequest::getTerminateInstancesWithExpiration()const -{ - return terminateInstancesWithExpiration_; -} - -void CreateFleetRequest::setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration) -{ - terminateInstancesWithExpiration_ = terminateInstancesWithExpiration; - setCoreParameter("TerminateInstancesWithExpiration", terminateInstancesWithExpiration ? "true" : "false"); -} - -std::string CreateFleetRequest::getOnDemandTargetCapacity()const -{ - return onDemandTargetCapacity_; -} - -void CreateFleetRequest::setOnDemandTargetCapacity(const std::string& onDemandTargetCapacity) -{ - onDemandTargetCapacity_ = onDemandTargetCapacity; - setCoreParameter("OnDemandTargetCapacity", onDemandTargetCapacity); -} - -std::string CreateFleetRequest::getFleetName()const -{ - return fleetName_; -} - -void CreateFleetRequest::setFleetName(const std::string& fleetName) -{ - fleetName_ = fleetName; - setCoreParameter("FleetName", fleetName); -} - -std::string CreateFleetRequest::getSpotAllocationStrategy()const -{ - return spotAllocationStrategy_; -} - -void CreateFleetRequest::setSpotAllocationStrategy(const std::string& spotAllocationStrategy) -{ - spotAllocationStrategy_ = spotAllocationStrategy; - setCoreParameter("SpotAllocationStrategy", spotAllocationStrategy); -} - -std::string CreateFleetRequest::getRegionId()const -{ - return regionId_; -} - -void CreateFleetRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -bool CreateFleetRequest::getTerminateInstances()const -{ - return terminateInstances_; -} - -void CreateFleetRequest::setTerminateInstances(bool terminateInstances) -{ - terminateInstances_ = terminateInstances; - setCoreParameter("TerminateInstances", terminateInstances ? "true" : "false"); -} - -std::string CreateFleetRequest::getDefaultTargetCapacityType()const -{ - return defaultTargetCapacityType_; -} - -void CreateFleetRequest::setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType) -{ - defaultTargetCapacityType_ = defaultTargetCapacityType; - setCoreParameter("DefaultTargetCapacityType", defaultTargetCapacityType); -} - -std::string CreateFleetRequest::getExcessCapacityTerminationPolicy()const -{ - return excessCapacityTerminationPolicy_; -} - -void CreateFleetRequest::setExcessCapacityTerminationPolicy(const std::string& excessCapacityTerminationPolicy) -{ - excessCapacityTerminationPolicy_ = excessCapacityTerminationPolicy; - setCoreParameter("ExcessCapacityTerminationPolicy", excessCapacityTerminationPolicy); -} - -std::vector CreateFleetRequest::getLaunchTemplateConfig()const -{ - return launchTemplateConfig_; -} - -void CreateFleetRequest::setLaunchTemplateConfig(const std::vector& launchTemplateConfig) -{ - launchTemplateConfig_ = launchTemplateConfig; - int i = 0; - for(int i = 0; i!= launchTemplateConfig.size(); i++) { - auto obj = launchTemplateConfig.at(i); - std::string str ="LaunchTemplateConfig."+ std::to_string(i); - setCoreParameter(str + ".InstanceType", obj.instanceType); - setCoreParameter(str + ".MaxPrice", std::to_string(obj.maxPrice)); - setCoreParameter(str + ".VSwitchId", obj.vSwitchId); - setCoreParameter(str + ".WeightedCapacity", std::to_string(obj.weightedCapacity)); - setCoreParameter(str + ".Priority", std::to_string(obj.priority)); - } -} - -std::string CreateFleetRequest::getValidUntil()const -{ - return validUntil_; -} - -void CreateFleetRequest::setValidUntil(const std::string& validUntil) -{ - validUntil_ = validUntil; - setCoreParameter("ValidUntil", validUntil); -} - -std::string CreateFleetRequest::getFillGapWithOnDemand()const -{ - return fillGapWithOnDemand_; -} - -void CreateFleetRequest::setFillGapWithOnDemand(const std::string& fillGapWithOnDemand) -{ - fillGapWithOnDemand_ = fillGapWithOnDemand; - setCoreParameter("FillGapWithOnDemand", fillGapWithOnDemand); -} - -std::string CreateFleetRequest::getSpotInstanceInterruptionBehavior()const -{ - return spotInstanceInterruptionBehavior_; -} - -void CreateFleetRequest::setSpotInstanceInterruptionBehavior(const std::string& spotInstanceInterruptionBehavior) -{ - spotInstanceInterruptionBehavior_ = spotInstanceInterruptionBehavior; - setCoreParameter("SpotInstanceInterruptionBehavior", spotInstanceInterruptionBehavior); -} - -std::string CreateFleetRequest::getLaunchTemplateId()const -{ - return launchTemplateId_; -} - -void CreateFleetRequest::setLaunchTemplateId(const std::string& launchTemplateId) -{ - launchTemplateId_ = launchTemplateId; - setCoreParameter("LaunchTemplateId", launchTemplateId); -} - -std::string CreateFleetRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void CreateFleetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string CreateFleetRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void CreateFleetRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setCoreParameter("OwnerAccount", ownerAccount); -} - -int CreateFleetRequest::getSpotInstancePoolsToUseCount()const -{ - return spotInstancePoolsToUseCount_; -} - -void CreateFleetRequest::setSpotInstancePoolsToUseCount(int spotInstancePoolsToUseCount) -{ - spotInstancePoolsToUseCount_ = spotInstancePoolsToUseCount; - setCoreParameter("SpotInstancePoolsToUseCount", std::to_string(spotInstancePoolsToUseCount)); -} - -long CreateFleetRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateFleetRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreateFleetRequest::getLaunchTemplateVersion()const -{ - return launchTemplateVersion_; -} - -void CreateFleetRequest::setLaunchTemplateVersion(const std::string& launchTemplateVersion) -{ - launchTemplateVersion_ = launchTemplateVersion; - setCoreParameter("LaunchTemplateVersion", launchTemplateVersion); -} - -std::string CreateFleetRequest::getTotalTargetCapacity()const -{ - return totalTargetCapacity_; -} - -void CreateFleetRequest::setTotalTargetCapacity(const std::string& totalTargetCapacity) -{ - totalTargetCapacity_ = totalTargetCapacity; - setCoreParameter("TotalTargetCapacity", totalTargetCapacity); -} - -std::string CreateFleetRequest::getOnDemandAllocationStrategy()const -{ - return onDemandAllocationStrategy_; -} - -void CreateFleetRequest::setOnDemandAllocationStrategy(const std::string& onDemandAllocationStrategy) -{ - onDemandAllocationStrategy_ = onDemandAllocationStrategy; - setCoreParameter("OnDemandAllocationStrategy", onDemandAllocationStrategy); -} - -std::string CreateFleetRequest::getSpotTargetCapacity()const -{ - return spotTargetCapacity_; -} - -void CreateFleetRequest::setSpotTargetCapacity(const std::string& spotTargetCapacity) -{ - spotTargetCapacity_ = spotTargetCapacity; - setCoreParameter("SpotTargetCapacity", spotTargetCapacity); -} - -std::string CreateFleetRequest::getValidFrom()const -{ - return validFrom_; -} - -void CreateFleetRequest::setValidFrom(const std::string& validFrom) -{ - validFrom_ = validFrom; - setCoreParameter("ValidFrom", validFrom); -} - -float CreateFleetRequest::getMaxSpotPrice()const -{ - return maxSpotPrice_; -} - -void CreateFleetRequest::setMaxSpotPrice(float maxSpotPrice) -{ - maxSpotPrice_ = maxSpotPrice; - setCoreParameter("MaxSpotPrice", std::to_string(maxSpotPrice)); -} - diff --git a/ecs/src/model/CreateFleetResult.cc b/ecs/src/model/CreateFleetResult.cc deleted file mode 100644 index fb3587445..000000000 --- a/ecs/src/model/CreateFleetResult.cc +++ /dev/null @@ -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 -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateFleetResult::CreateFleetResult() : - ServiceResult() -{} - -CreateFleetResult::CreateFleetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateFleetResult::~CreateFleetResult() -{} - -void CreateFleetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["FleetId"].isNull()) - fleetId_ = value["FleetId"].asString(); - -} - -std::string CreateFleetResult::getFleetId()const -{ - return fleetId_; -} - diff --git a/ecs/src/model/DeleteFleetRequest.cc b/ecs/src/model/DeleteFleetRequest.cc deleted file mode 100644 index 8e9d02d92..000000000 --- a/ecs/src/model/DeleteFleetRequest.cc +++ /dev/null @@ -1,104 +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 - -using AlibabaCloud::Ecs::Model::DeleteFleetRequest; - -DeleteFleetRequest::DeleteFleetRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteFleet") -{} - -DeleteFleetRequest::~DeleteFleetRequest() -{} - -long DeleteFleetRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DeleteFleetRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DeleteFleetRequest::getRegionId()const -{ - return regionId_; -} - -void DeleteFleetRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -bool DeleteFleetRequest::getTerminateInstances()const -{ - return terminateInstances_; -} - -void DeleteFleetRequest::setTerminateInstances(bool terminateInstances) -{ - terminateInstances_ = terminateInstances; - setCoreParameter("TerminateInstances", terminateInstances ? "true" : "false"); -} - -std::string DeleteFleetRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DeleteFleetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DeleteFleetRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DeleteFleetRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setCoreParameter("OwnerAccount", ownerAccount); -} - -long DeleteFleetRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteFleetRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DeleteFleetRequest::getFleetId()const -{ - return fleetId_; -} - -void DeleteFleetRequest::setFleetId(const std::string& fleetId) -{ - fleetId_ = fleetId; - setCoreParameter("FleetId", fleetId); -} - diff --git a/ecs/src/model/DeleteFleetResult.cc b/ecs/src/model/DeleteFleetResult.cc deleted file mode 100644 index b3d787e71..000000000 --- a/ecs/src/model/DeleteFleetResult.cc +++ /dev/null @@ -1,44 +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 -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteFleetResult::DeleteFleetResult() : - ServiceResult() -{} - -DeleteFleetResult::DeleteFleetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteFleetResult::~DeleteFleetResult() -{} - -void DeleteFleetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/ecs/src/model/DescribeFleetHistoryRequest.cc b/ecs/src/model/DescribeFleetHistoryRequest.cc deleted file mode 100644 index e6927307c..000000000 --- a/ecs/src/model/DescribeFleetHistoryRequest.cc +++ /dev/null @@ -1,93 +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 - -using AlibabaCloud::Ecs::Model::DescribeFleetHistoryRequest; - -DescribeFleetHistoryRequest::DescribeFleetHistoryRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeFleetHistory") -{} - -DescribeFleetHistoryRequest::~DescribeFleetHistoryRequest() -{} - -long DescribeFleetHistoryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribeFleetHistoryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DescribeFleetHistoryRequest::getRegionId()const -{ - return regionId_; -} - -void DescribeFleetHistoryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string DescribeFleetHistoryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribeFleetHistoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DescribeFleetHistoryRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribeFleetHistoryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setCoreParameter("OwnerAccount", ownerAccount); -} - -long DescribeFleetHistoryRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeFleetHistoryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeFleetHistoryRequest::getFleetId()const -{ - return fleetId_; -} - -void DescribeFleetHistoryRequest::setFleetId(const std::string& fleetId) -{ - fleetId_ = fleetId; - setCoreParameter("FleetId", fleetId); -} - diff --git a/ecs/src/model/DescribeFleetHistoryResult.cc b/ecs/src/model/DescribeFleetHistoryResult.cc deleted file mode 100644 index 6dfe7cce4..000000000 --- a/ecs/src/model/DescribeFleetHistoryResult.cc +++ /dev/null @@ -1,94 +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 -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeFleetHistoryResult::DescribeFleetHistoryResult() : - ServiceResult() -{} - -DescribeFleetHistoryResult::DescribeFleetHistoryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeFleetHistoryResult::~DescribeFleetHistoryResult() -{} - -void DescribeFleetHistoryResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allFleetHistorysNode = value["FleetHistorys"]["FleetHistory"]; - for (auto valueFleetHistorysFleetHistory : allFleetHistorysNode) - { - FleetHistory fleetHistorysObject; - if(!valueFleetHistorysFleetHistory["TaskId"].isNull()) - fleetHistorysObject.taskId = valueFleetHistorysFleetHistory["TaskId"].asString(); - if(!valueFleetHistorysFleetHistory["Status"].isNull()) - fleetHistorysObject.status = valueFleetHistorysFleetHistory["Status"].asString(); - if(!valueFleetHistorysFleetHistory["LastEventTime"].isNull()) - fleetHistorysObject.lastEventTime = valueFleetHistorysFleetHistory["LastEventTime"].asString(); - if(!valueFleetHistorysFleetHistory["StartTime"].isNull()) - fleetHistorysObject.startTime = valueFleetHistorysFleetHistory["StartTime"].asString(); - auto allActivityDetailsNode = allFleetHistorysNode["ActivityDetails"]["ActivityDetail"]; - for (auto allFleetHistorysNodeActivityDetailsActivityDetail : allActivityDetailsNode) - { - FleetHistory::ActivityDetail activityDetailsObject; - if(!allFleetHistorysNodeActivityDetailsActivityDetail["Detail"].isNull()) - activityDetailsObject.detail = allFleetHistorysNodeActivityDetailsActivityDetail["Detail"].asString(); - if(!allFleetHistorysNodeActivityDetailsActivityDetail["Status"].isNull()) - activityDetailsObject.status = std::stof(allFleetHistorysNodeActivityDetailsActivityDetail["Status"].asString()); - fleetHistorysObject.activityDetails.push_back(activityDetailsObject); - } - fleetHistorys_.push_back(fleetHistorysObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -int DescribeFleetHistoryResult::getTotalCount()const -{ - return totalCount_; -} - -int DescribeFleetHistoryResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeFleetHistoryResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeFleetHistoryResult::getFleetHistorys()const -{ - return fleetHistorys_; -} - diff --git a/ecs/src/model/DescribeFleetInstancesRequest.cc b/ecs/src/model/DescribeFleetInstancesRequest.cc deleted file mode 100644 index 02382c238..000000000 --- a/ecs/src/model/DescribeFleetInstancesRequest.cc +++ /dev/null @@ -1,115 +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 - -using AlibabaCloud::Ecs::Model::DescribeFleetInstancesRequest; - -DescribeFleetInstancesRequest::DescribeFleetInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeFleetInstances") -{} - -DescribeFleetInstancesRequest::~DescribeFleetInstancesRequest() -{} - -long DescribeFleetInstancesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribeFleetInstancesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -int DescribeFleetInstancesRequest::getPageNumber()const -{ - return pageNumber_; -} - -void DescribeFleetInstancesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setCoreParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribeFleetInstancesRequest::getRegionId()const -{ - return regionId_; -} - -void DescribeFleetInstancesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -int DescribeFleetInstancesRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeFleetInstancesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeFleetInstancesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribeFleetInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DescribeFleetInstancesRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribeFleetInstancesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setCoreParameter("OwnerAccount", ownerAccount); -} - -long DescribeFleetInstancesRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeFleetInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeFleetInstancesRequest::getFleetId()const -{ - return fleetId_; -} - -void DescribeFleetInstancesRequest::setFleetId(const std::string& fleetId) -{ - fleetId_ = fleetId; - setCoreParameter("FleetId", fleetId); -} - diff --git a/ecs/src/model/DescribeFleetInstancesResult.cc b/ecs/src/model/DescribeFleetInstancesResult.cc deleted file mode 100644 index 7a776d1c4..000000000 --- a/ecs/src/model/DescribeFleetInstancesResult.cc +++ /dev/null @@ -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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeFleetInstancesResult::DescribeFleetInstancesResult() : - ServiceResult() -{} - -DescribeFleetInstancesResult::DescribeFleetInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeFleetInstancesResult::~DescribeFleetInstancesResult() -{} - -void DescribeFleetInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allInstancesNode = value["Instances"]["Instance"]; - for (auto valueInstancesInstance : allInstancesNode) - { - Instance instancesObject; - if(!valueInstancesInstance["InstanceId"].isNull()) - instancesObject.instanceId = valueInstancesInstance["InstanceId"].asString(); - if(!valueInstancesInstance["Status"].isNull()) - instancesObject.status = valueInstancesInstance["Status"].asString(); - if(!valueInstancesInstance["RegionId"].isNull()) - instancesObject.regionId = valueInstancesInstance["RegionId"].asString(); - if(!valueInstancesInstance["IzNo"].isNull()) - instancesObject.izNo = valueInstancesInstance["IzNo"].asString(); - if(!valueInstancesInstance["ZoneNo"].isNull()) - instancesObject.zoneNo = valueInstancesInstance["ZoneNo"].asString(); - if(!valueInstancesInstance["Cores"].isNull()) - instancesObject.cores = std::stoi(valueInstancesInstance["Cores"].asString()); - if(!valueInstancesInstance["Memory"].isNull()) - instancesObject.memory = std::stoi(valueInstancesInstance["Memory"].asString()); - if(!valueInstancesInstance["InstanceType"].isNull()) - instancesObject.instanceType = valueInstancesInstance["InstanceType"].asString(); - if(!valueInstancesInstance["IsSpot"].isNull()) - instancesObject.isSpot = valueInstancesInstance["IsSpot"].asString() == "true"; - if(!valueInstancesInstance["IoOptimized"].isNull()) - instancesObject.ioOptimized = valueInstancesInstance["IoOptimized"].asString() == "true"; - if(!valueInstancesInstance["NetworkType"].isNull()) - instancesObject.networkType = valueInstancesInstance["NetworkType"].asString() == "true"; - if(!valueInstancesInstance["OsType"].isNull()) - instancesObject.osType = valueInstancesInstance["OsType"].asString() == "true"; - if(!valueInstancesInstance["CreationTime"].isNull()) - instancesObject.creationTime = valueInstancesInstance["CreationTime"].asString(); - instances_.push_back(instancesObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -std::vector DescribeFleetInstancesResult::getInstances()const -{ - return instances_; -} - -int DescribeFleetInstancesResult::getTotalCount()const -{ - return totalCount_; -} - -int DescribeFleetInstancesResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeFleetInstancesResult::getPageNumber()const -{ - return pageNumber_; -} - diff --git a/ecs/src/model/DescribeFleetsRequest.cc b/ecs/src/model/DescribeFleetsRequest.cc deleted file mode 100644 index 347ff8a6a..000000000 --- a/ecs/src/model/DescribeFleetsRequest.cc +++ /dev/null @@ -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 - -using AlibabaCloud::Ecs::Model::DescribeFleetsRequest; - -DescribeFleetsRequest::DescribeFleetsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeFleets") -{} - -DescribeFleetsRequest::~DescribeFleetsRequest() -{} - -long DescribeFleetsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribeFleetsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -int DescribeFleetsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void DescribeFleetsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setCoreParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribeFleetsRequest::getFleetName()const -{ - return fleetName_; -} - -void DescribeFleetsRequest::setFleetName(const std::string& fleetName) -{ - fleetName_ = fleetName; - setCoreParameter("FleetName", fleetName); -} - -std::vector DescribeFleetsRequest::getFleetStatus()const -{ - return fleetStatus_; -} - -void DescribeFleetsRequest::setFleetStatus(const std::vector& fleetStatus) -{ - fleetStatus_ = fleetStatus; - for(int i = 0; i!= fleetStatus.size(); i++) - setCoreParameter("FleetStatus."+ std::to_string(i), fleetStatus.at(i)); -} - -std::string DescribeFleetsRequest::getRegionId()const -{ - return regionId_; -} - -void DescribeFleetsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -int DescribeFleetsRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeFleetsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeFleetsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribeFleetsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DescribeFleetsRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribeFleetsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setCoreParameter("OwnerAccount", ownerAccount); -} - -long DescribeFleetsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeFleetsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::vector DescribeFleetsRequest::getFleetId()const -{ - return fleetId_; -} - -void DescribeFleetsRequest::setFleetId(const std::vector& fleetId) -{ - fleetId_ = fleetId; - for(int i = 0; i!= fleetId.size(); i++) - setCoreParameter("FleetId."+ std::to_string(i), fleetId.at(i)); -} - diff --git a/ecs/src/model/DescribeFleetsResult.cc b/ecs/src/model/DescribeFleetsResult.cc deleted file mode 100644 index 0f63b612d..000000000 --- a/ecs/src/model/DescribeFleetsResult.cc +++ /dev/null @@ -1,143 +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 -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeFleetsResult::DescribeFleetsResult() : - ServiceResult() -{} - -DescribeFleetsResult::DescribeFleetsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeFleetsResult::~DescribeFleetsResult() -{} - -void DescribeFleetsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allFleetsNode = value["Fleets"]["Fleet"]; - for (auto valueFleetsFleet : allFleetsNode) - { - Fleet fleetsObject; - if(!valueFleetsFleet["FleetId"].isNull()) - fleetsObject.fleetId = valueFleetsFleet["FleetId"].asString(); - if(!valueFleetsFleet["FleetName"].isNull()) - fleetsObject.fleetName = valueFleetsFleet["FleetName"].asString(); - if(!valueFleetsFleet["FleetType"].isNull()) - fleetsObject.fleetType = valueFleetsFleet["FleetType"].asString(); - if(!valueFleetsFleet["Status"].isNull()) - fleetsObject.status = valueFleetsFleet["Status"].asString(); - if(!valueFleetsFleet["State"].isNull()) - fleetsObject.state = valueFleetsFleet["State"].asString(); - if(!valueFleetsFleet["RegionId"].isNull()) - fleetsObject.regionId = valueFleetsFleet["RegionId"].asString(); - if(!valueFleetsFleet["ValidFrom"].isNull()) - fleetsObject.validFrom = valueFleetsFleet["ValidFrom"].asString(); - if(!valueFleetsFleet["ValidUntil"].isNull()) - fleetsObject.validUntil = valueFleetsFleet["ValidUntil"].asString(); - if(!valueFleetsFleet["ExcessCapacityTerminationPolicy"].isNull()) - fleetsObject.excessCapacityTerminationPolicy = valueFleetsFleet["ExcessCapacityTerminationPolicy"].asString(); - if(!valueFleetsFleet["MaxSpotPrice"].isNull()) - fleetsObject.maxSpotPrice = std::stof(valueFleetsFleet["MaxSpotPrice"].asString()); - if(!valueFleetsFleet["LaunchTemplateId"].isNull()) - fleetsObject.launchTemplateId = valueFleetsFleet["LaunchTemplateId"].asString(); - if(!valueFleetsFleet["LaunchTemplateVersion"].isNull()) - fleetsObject.launchTemplateVersion = valueFleetsFleet["LaunchTemplateVersion"].asString(); - if(!valueFleetsFleet["TerminateInstances"].isNull()) - fleetsObject.terminateInstances = valueFleetsFleet["TerminateInstances"].asString() == "true"; - if(!valueFleetsFleet["TerminateInstancesWithExpiration"].isNull()) - fleetsObject.terminateInstancesWithExpiration = valueFleetsFleet["TerminateInstancesWithExpiration"].asString() == "true"; - if(!valueFleetsFleet["CreationTime"].isNull()) - fleetsObject.creationTime = valueFleetsFleet["CreationTime"].asString(); - auto alllaunchTemplateConfigsNode = allFleetsNode["launchTemplateConfigs"]["LaunchTemplateConfig"]; - for (auto allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig : alllaunchTemplateConfigsNode) - { - Fleet::LaunchTemplateConfig launchTemplateConfigsObject; - if(!allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["InstanceType"].isNull()) - launchTemplateConfigsObject.instanceType = allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["InstanceType"].asString(); - if(!allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["MaxPrice"].isNull()) - launchTemplateConfigsObject.maxPrice = std::stof(allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["MaxPrice"].asString()); - if(!allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["VSWitchId"].isNull()) - launchTemplateConfigsObject.vSWitchId = allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["VSWitchId"].asString(); - if(!allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["WeightedCapacity"].isNull()) - launchTemplateConfigsObject.weightedCapacity = std::stof(allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["WeightedCapacity"].asString()); - if(!allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["Priority"].isNull()) - launchTemplateConfigsObject.priority = std::stof(allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["Priority"].asString()); - fleetsObject.launchTemplateConfigs.push_back(launchTemplateConfigsObject); - } - auto spotOptionsNode = value["SpotOptions"]; - if(!spotOptionsNode["AllocationStrategy"].isNull()) - fleetsObject.spotOptions.allocationStrategy = spotOptionsNode["AllocationStrategy"].asString(); - if(!spotOptionsNode["InstanceInterruptionBehavior"].isNull()) - fleetsObject.spotOptions.instanceInterruptionBehavior = spotOptionsNode["InstanceInterruptionBehavior"].asString(); - if(!spotOptionsNode["InstancePoolsToUseCount"].isNull()) - fleetsObject.spotOptions.instancePoolsToUseCount = std::stoi(spotOptionsNode["InstancePoolsToUseCount"].asString()); - auto onDemandOptionsNode = value["OnDemandOptions"]; - if(!onDemandOptionsNode["AllocationStrategy"].isNull()) - fleetsObject.onDemandOptions.allocationStrategy = onDemandOptionsNode["AllocationStrategy"].asString(); - auto targetCapacitySpecificationNode = value["TargetCapacitySpecification"]; - if(!targetCapacitySpecificationNode["TotalTargetCapacity"].isNull()) - fleetsObject.targetCapacitySpecification.totalTargetCapacity = std::stof(targetCapacitySpecificationNode["TotalTargetCapacity"].asString()); - if(!targetCapacitySpecificationNode["OnDemandTargetCapacity"].isNull()) - fleetsObject.targetCapacitySpecification.onDemandTargetCapacity = std::stof(targetCapacitySpecificationNode["OnDemandTargetCapacity"].asString()); - if(!targetCapacitySpecificationNode["SpotTargetCapacity"].isNull()) - fleetsObject.targetCapacitySpecification.spotTargetCapacity = std::stof(targetCapacitySpecificationNode["SpotTargetCapacity"].asString()); - if(!targetCapacitySpecificationNode["DefaultTargetCapacityType"].isNull()) - fleetsObject.targetCapacitySpecification.defaultTargetCapacityType = targetCapacitySpecificationNode["DefaultTargetCapacityType"].asString(); - if(!targetCapacitySpecificationNode["FillGapWithOnDemand"].isNull()) - fleetsObject.targetCapacitySpecification.fillGapWithOnDemand = targetCapacitySpecificationNode["FillGapWithOnDemand"].asString() == "true"; - fleets_.push_back(fleetsObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -std::vector DescribeFleetsResult::getFleets()const -{ - return fleets_; -} - -int DescribeFleetsResult::getTotalCount()const -{ - return totalCount_; -} - -int DescribeFleetsResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeFleetsResult::getPageNumber()const -{ - return pageNumber_; -} - diff --git a/ecs/src/model/DescribeInvocationsRequest.cc b/ecs/src/model/DescribeInvocationsRequest.cc index c79dd499b..2c21b756d 100644 --- a/ecs/src/model/DescribeInvocationsRequest.cc +++ b/ecs/src/model/DescribeInvocationsRequest.cc @@ -47,6 +47,17 @@ void DescribeInvocationsRequest::setInvokeStatus(const std::string& invokeStatus setCoreParameter("InvokeStatus", invokeStatus); } +bool DescribeInvocationsRequest::getIncludeOutput()const +{ + return includeOutput_; +} + +void DescribeInvocationsRequest::setIncludeOutput(bool includeOutput) +{ + includeOutput_ = includeOutput; + setCoreParameter("IncludeOutput", includeOutput ? "true" : "false"); +} + std::string DescribeInvocationsRequest::getCommandId()const { return commandId_; diff --git a/ecs/src/model/DescribeInvocationsResult.cc b/ecs/src/model/DescribeInvocationsResult.cc index c73a3e094..3bbcea099 100644 --- a/ecs/src/model/DescribeInvocationsResult.cc +++ b/ecs/src/model/DescribeInvocationsResult.cc @@ -69,6 +69,10 @@ void DescribeInvocationsResult::parse(const std::string &payload) invokeInstancesObject.instanceId = allInvocationsNodeInvokeInstancesInvokeInstance["InstanceId"].asString(); if(!allInvocationsNodeInvokeInstancesInvokeInstance["InstanceInvokeStatus"].isNull()) invokeInstancesObject.instanceInvokeStatus = allInvocationsNodeInvokeInstancesInvokeInstance["InstanceInvokeStatus"].asString(); + if(!allInvocationsNodeInvokeInstancesInvokeInstance["Output"].isNull()) + invokeInstancesObject.output = allInvocationsNodeInvokeInstancesInvokeInstance["Output"].asString(); + if(!allInvocationsNodeInvokeInstancesInvokeInstance["ExitCode"].isNull()) + invokeInstancesObject.exitCode = std::stol(allInvocationsNodeInvokeInstancesInvokeInstance["ExitCode"].asString()); if(!allInvocationsNodeInvokeInstancesInvokeInstance["CreationTime"].isNull()) invokeInstancesObject.creationTime = allInvocationsNodeInvokeInstancesInvokeInstance["CreationTime"].asString(); if(!allInvocationsNodeInvokeInstancesInvokeInstance["StartTime"].isNull()) diff --git a/ecs/src/model/DescribePriceRequest.cc b/ecs/src/model/DescribePriceRequest.cc index dede4f124..58fcc0c50 100644 --- a/ecs/src/model/DescribePriceRequest.cc +++ b/ecs/src/model/DescribePriceRequest.cc @@ -212,6 +212,17 @@ void DescribePriceRequest::setPlatform(const std::string& platform) setCoreParameter("Platform", platform); } +int DescribePriceRequest::getCapacity()const +{ + return capacity_; +} + +void DescribePriceRequest::setCapacity(int capacity) +{ + capacity_ = capacity; + setCoreParameter("Capacity", std::to_string(capacity)); +} + std::string DescribePriceRequest::getSystemDiskPerformanceLevel()const { return systemDiskPerformanceLevel_; diff --git a/ecs/src/model/ModifyDiskAttributeRequest.cc b/ecs/src/model/ModifyDiskAttributeRequest.cc index 59f16740f..ce5892a66 100644 --- a/ecs/src/model/ModifyDiskAttributeRequest.cc +++ b/ecs/src/model/ModifyDiskAttributeRequest.cc @@ -69,6 +69,18 @@ void ModifyDiskAttributeRequest::setDeleteAutoSnapshot(bool deleteAutoSnapshot) setCoreParameter("DeleteAutoSnapshot", deleteAutoSnapshot ? "true" : "false"); } +std::vector ModifyDiskAttributeRequest::getDiskIds()const +{ + return diskIds_; +} + +void ModifyDiskAttributeRequest::setDiskIds(const std::vector& diskIds) +{ + diskIds_ = diskIds; + for(int i = 0; i!= diskIds.size(); i++) + setCoreParameter("DiskIds."+ std::to_string(i), diskIds.at(i)); +} + std::string ModifyDiskAttributeRequest::getDiskId()const { return diskId_; diff --git a/ecs/src/model/ModifyFleetRequest.cc b/ecs/src/model/ModifyFleetRequest.cc deleted file mode 100644 index 9a5722e85..000000000 --- a/ecs/src/model/ModifyFleetRequest.cc +++ /dev/null @@ -1,170 +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 - -using AlibabaCloud::Ecs::Model::ModifyFleetRequest; - -ModifyFleetRequest::ModifyFleetRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyFleet") -{} - -ModifyFleetRequest::~ModifyFleetRequest() -{} - -long ModifyFleetRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void ModifyFleetRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -bool ModifyFleetRequest::getTerminateInstancesWithExpiration()const -{ - return terminateInstancesWithExpiration_; -} - -void ModifyFleetRequest::setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration) -{ - terminateInstancesWithExpiration_ = terminateInstancesWithExpiration; - setCoreParameter("TerminateInstancesWithExpiration", terminateInstancesWithExpiration ? "true" : "false"); -} - -std::string ModifyFleetRequest::getOnDemandTargetCapacity()const -{ - return onDemandTargetCapacity_; -} - -void ModifyFleetRequest::setOnDemandTargetCapacity(const std::string& onDemandTargetCapacity) -{ - onDemandTargetCapacity_ = onDemandTargetCapacity; - setCoreParameter("OnDemandTargetCapacity", onDemandTargetCapacity); -} - -std::string ModifyFleetRequest::getRegionId()const -{ - return regionId_; -} - -void ModifyFleetRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - -std::string ModifyFleetRequest::getDefaultTargetCapacityType()const -{ - return defaultTargetCapacityType_; -} - -void ModifyFleetRequest::setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType) -{ - defaultTargetCapacityType_ = defaultTargetCapacityType; - setCoreParameter("DefaultTargetCapacityType", defaultTargetCapacityType); -} - -std::string ModifyFleetRequest::getExcessCapacityTerminationPolicy()const -{ - return excessCapacityTerminationPolicy_; -} - -void ModifyFleetRequest::setExcessCapacityTerminationPolicy(const std::string& excessCapacityTerminationPolicy) -{ - excessCapacityTerminationPolicy_ = excessCapacityTerminationPolicy; - setCoreParameter("ExcessCapacityTerminationPolicy", excessCapacityTerminationPolicy); -} - -std::string ModifyFleetRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void ModifyFleetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string ModifyFleetRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void ModifyFleetRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setCoreParameter("OwnerAccount", ownerAccount); -} - -long ModifyFleetRequest::getOwnerId()const -{ - return ownerId_; -} - -void ModifyFleetRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string ModifyFleetRequest::getFleetId()const -{ - return fleetId_; -} - -void ModifyFleetRequest::setFleetId(const std::string& fleetId) -{ - fleetId_ = fleetId; - setCoreParameter("FleetId", fleetId); -} - -std::string ModifyFleetRequest::getTotalTargetCapacity()const -{ - return totalTargetCapacity_; -} - -void ModifyFleetRequest::setTotalTargetCapacity(const std::string& totalTargetCapacity) -{ - totalTargetCapacity_ = totalTargetCapacity; - setCoreParameter("TotalTargetCapacity", totalTargetCapacity); -} - -std::string ModifyFleetRequest::getSpotTargetCapacity()const -{ - return spotTargetCapacity_; -} - -void ModifyFleetRequest::setSpotTargetCapacity(const std::string& spotTargetCapacity) -{ - spotTargetCapacity_ = spotTargetCapacity; - setCoreParameter("SpotTargetCapacity", spotTargetCapacity); -} - -float ModifyFleetRequest::getMaxSpotPrice()const -{ - return maxSpotPrice_; -} - -void ModifyFleetRequest::setMaxSpotPrice(float maxSpotPrice) -{ - maxSpotPrice_ = maxSpotPrice; - setCoreParameter("MaxSpotPrice", std::to_string(maxSpotPrice)); -} - diff --git a/ecs/src/model/ModifyFleetResult.cc b/ecs/src/model/ModifyFleetResult.cc deleted file mode 100644 index 2ed30d8bc..000000000 --- a/ecs/src/model/ModifyFleetResult.cc +++ /dev/null @@ -1,44 +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 -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyFleetResult::ModifyFleetResult() : - ServiceResult() -{} - -ModifyFleetResult::ModifyFleetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyFleetResult::~ModifyFleetResult() -{} - -void ModifyFleetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc b/ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc index 4d6b03954..a2e994d97 100644 --- a/ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc +++ b/ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc @@ -58,6 +58,17 @@ void PurchaseReservedInstancesOfferingRequest::setDescription(const std::string& setCoreParameter("Description", description); } +std::string PurchaseReservedInstancesOfferingRequest::getPlatform()const +{ + return platform_; +} + +void PurchaseReservedInstancesOfferingRequest::setPlatform(const std::string& platform) +{ + platform_ = platform; + setCoreParameter("Platform", platform); +} + std::string PurchaseReservedInstancesOfferingRequest::getResourceGroupId()const { return resourceGroupId_; diff --git a/ecs/src/model/RunInstancesRequest.cc b/ecs/src/model/RunInstancesRequest.cc index 1d06d6b0b..4ccd076fa 100644 --- a/ecs/src/model/RunInstancesRequest.cc +++ b/ecs/src/model/RunInstancesRequest.cc @@ -185,6 +185,17 @@ void RunInstancesRequest::setTag(const std::vector& tag) } } +std::string RunInstancesRequest::getSystemDiskAutoSnapshotPolicyId()const +{ + return systemDiskAutoSnapshotPolicyId_; +} + +void RunInstancesRequest::setSystemDiskAutoSnapshotPolicyId(const std::string& systemDiskAutoSnapshotPolicyId) +{ + systemDiskAutoSnapshotPolicyId_ = systemDiskAutoSnapshotPolicyId; + setCoreParameter("SystemDiskAutoSnapshotPolicyId", systemDiskAutoSnapshotPolicyId); +} + int RunInstancesRequest::getAutoRenewPeriod()const { return autoRenewPeriod_; @@ -735,6 +746,7 @@ void RunInstancesRequest::setDataDisk(const std::vector& dataDisk) setCoreParameter(str + ".Device", obj.device); setCoreParameter(str + ".DeleteWithInstance", obj.deleteWithInstance ? "true" : "false"); setCoreParameter(str + ".PerformanceLevel", obj.performanceLevel); + setCoreParameter(str + ".AutoSnapshotPolicyId", obj.autoSnapshotPolicyId); } }