From 9c795d127bb20b38599e08654e9638bfbf317102 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Tue, 15 Oct 2024 07:23:57 +0000 Subject: [PATCH] Add ResourcePoolOptions.Strategy for CreateAutoProvisioningGroup. --- VERSION | 2 +- ecs/CMakeLists.txt | 16 +- ecs/include/alibabacloud/ecs/EcsClient.h | 32 +--- .../CreateAutoProvisioningGroupRequest.h | 8 + .../ecs/model/CreateImageComponentRequest.h | 3 + .../ecs/model/CreateImagePipelineRequest.h | 9 ++ .../ecs/model/CreateLaunchTemplateRequest.h | 9 ++ .../CreateLaunchTemplateVersionRequest.h | 9 ++ .../model/DescribeImageComponentsRequest.h | 9 ++ .../ecs/model/DescribeImageComponentsResult.h | 8 + .../ecs/model/DescribeImagePipelinesResult.h | 3 + .../DescribeLaunchTemplateVersionsResult.h | 3 + .../ecs/model/DescribeSecurityGroupsResult.h | 8 +- .../ecs/model/EipFillParamsRequest.h | 60 ------- .../ecs/model/EipFillParamsResult.h | 59 ------- .../ecs/model/EipFillProductRequest.h | 60 ------- .../ecs/model/EipFillProductResult.h | 59 ------- .../ecs/model/EipNotifyPaidRequest.h | 60 ------- .../ecs/model/ImportImageRequest.h | 9 ++ .../model/ModifyElasticityAssuranceRequest.h | 6 + .../PurchaseElasticityAssuranceRequest.h | 81 ++++++++++ ....h => PurchaseElasticityAssuranceResult.h} | 24 +-- .../ecs/model/RunInstancesRequest.h | 3 + ecs/src/EcsClient.cc | 144 +++++------------ .../CreateAutoProvisioningGroupRequest.cc | 12 ++ ecs/src/model/CreateImageComponentRequest.cc | 9 ++ ecs/src/model/CreateImagePipelineRequest.cc | 27 ++++ ecs/src/model/CreateLaunchTemplateRequest.cc | 27 ++++ .../CreateLaunchTemplateVersionRequest.cc | 27 ++++ .../model/DescribeImageComponentsRequest.cc | 27 ++++ .../model/DescribeImageComponentsResult.cc | 14 ++ ecs/src/model/DescribeImagePipelinesResult.cc | 6 + .../DescribeLaunchTemplateVersionsResult.cc | 6 + ecs/src/model/DescribeSecurityGroupsResult.cc | 4 + ecs/src/model/EipFillParamsRequest.cc | 90 ----------- ecs/src/model/EipFillParamsResult.cc | 79 --------- ecs/src/model/EipFillProductRequest.cc | 90 ----------- ecs/src/model/EipFillProductResult.cc | 79 --------- ecs/src/model/EipNotifyPaidRequest.cc | 90 ----------- ecs/src/model/EipNotifyPaidResult.cc | 79 --------- ecs/src/model/ImportImageRequest.cc | 18 +++ .../model/ModifyElasticityAssuranceRequest.cc | 18 +++ .../PurchaseElasticityAssuranceRequest.cc | 153 ++++++++++++++++++ .../PurchaseElasticityAssuranceResult.cc | 44 +++++ ecs/src/model/RunInstancesRequest.cc | 8 + 45 files changed, 621 insertions(+), 970 deletions(-) delete mode 100644 ecs/include/alibabacloud/ecs/model/EipFillParamsRequest.h delete mode 100644 ecs/include/alibabacloud/ecs/model/EipFillParamsResult.h delete mode 100644 ecs/include/alibabacloud/ecs/model/EipFillProductRequest.h delete mode 100644 ecs/include/alibabacloud/ecs/model/EipFillProductResult.h delete mode 100644 ecs/include/alibabacloud/ecs/model/EipNotifyPaidRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/PurchaseElasticityAssuranceRequest.h rename ecs/include/alibabacloud/ecs/model/{EipNotifyPaidResult.h => PurchaseElasticityAssuranceResult.h} (59%) delete mode 100644 ecs/src/model/EipFillParamsRequest.cc delete mode 100644 ecs/src/model/EipFillParamsResult.cc delete mode 100644 ecs/src/model/EipFillProductRequest.cc delete mode 100644 ecs/src/model/EipFillProductResult.cc delete mode 100644 ecs/src/model/EipNotifyPaidRequest.cc delete mode 100644 ecs/src/model/EipNotifyPaidResult.cc create mode 100644 ecs/src/model/PurchaseElasticityAssuranceRequest.cc create mode 100644 ecs/src/model/PurchaseElasticityAssuranceResult.cc diff --git a/VERSION b/VERSION index 5c8a3af2d..700efce8c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1998 \ No newline at end of file +1.36.1999 \ No newline at end of file diff --git a/ecs/CMakeLists.txt b/ecs/CMakeLists.txt index 8458b8e6e..f4a9bd8d8 100644 --- a/ecs/CMakeLists.txt +++ b/ecs/CMakeLists.txt @@ -481,12 +481,6 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/DisableActivationResult.h include/alibabacloud/ecs/model/DisableDiskEncryptionByDefaultRequest.h include/alibabacloud/ecs/model/DisableDiskEncryptionByDefaultResult.h - include/alibabacloud/ecs/model/EipFillParamsRequest.h - include/alibabacloud/ecs/model/EipFillParamsResult.h - include/alibabacloud/ecs/model/EipFillProductRequest.h - include/alibabacloud/ecs/model/EipFillProductResult.h - include/alibabacloud/ecs/model/EipNotifyPaidRequest.h - include/alibabacloud/ecs/model/EipNotifyPaidResult.h include/alibabacloud/ecs/model/EnableDiskEncryptionByDefaultRequest.h include/alibabacloud/ecs/model/EnableDiskEncryptionByDefaultResult.h include/alibabacloud/ecs/model/EnablePhysicalConnectionRequest.h @@ -647,6 +641,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeResult.h include/alibabacloud/ecs/model/ModifyVpcAttributeRequest.h include/alibabacloud/ecs/model/ModifyVpcAttributeResult.h + include/alibabacloud/ecs/model/PurchaseElasticityAssuranceRequest.h + include/alibabacloud/ecs/model/PurchaseElasticityAssuranceResult.h include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingResult.h include/alibabacloud/ecs/model/PurchaseStorageCapacityUnitRequest.h @@ -1200,12 +1196,6 @@ set(ecs_src src/model/DisableActivationResult.cc src/model/DisableDiskEncryptionByDefaultRequest.cc src/model/DisableDiskEncryptionByDefaultResult.cc - src/model/EipFillParamsRequest.cc - src/model/EipFillParamsResult.cc - src/model/EipFillProductRequest.cc - src/model/EipFillProductResult.cc - src/model/EipNotifyPaidRequest.cc - src/model/EipNotifyPaidResult.cc src/model/EnableDiskEncryptionByDefaultRequest.cc src/model/EnableDiskEncryptionByDefaultResult.cc src/model/EnablePhysicalConnectionRequest.cc @@ -1366,6 +1356,8 @@ set(ecs_src src/model/ModifyVirtualBorderRouterAttributeResult.cc src/model/ModifyVpcAttributeRequest.cc src/model/ModifyVpcAttributeResult.cc + src/model/PurchaseElasticityAssuranceRequest.cc + src/model/PurchaseElasticityAssuranceResult.cc src/model/PurchaseReservedInstancesOfferingRequest.cc src/model/PurchaseReservedInstancesOfferingResult.cc src/model/PurchaseStorageCapacityUnitRequest.cc diff --git a/ecs/include/alibabacloud/ecs/EcsClient.h b/ecs/include/alibabacloud/ecs/EcsClient.h index bd42b93cb..f742eccd0 100644 --- a/ecs/include/alibabacloud/ecs/EcsClient.h +++ b/ecs/include/alibabacloud/ecs/EcsClient.h @@ -482,12 +482,6 @@ #include "model/DisableActivationResult.h" #include "model/DisableDiskEncryptionByDefaultRequest.h" #include "model/DisableDiskEncryptionByDefaultResult.h" -#include "model/EipFillParamsRequest.h" -#include "model/EipFillParamsResult.h" -#include "model/EipFillProductRequest.h" -#include "model/EipFillProductResult.h" -#include "model/EipNotifyPaidRequest.h" -#include "model/EipNotifyPaidResult.h" #include "model/EnableDiskEncryptionByDefaultRequest.h" #include "model/EnableDiskEncryptionByDefaultResult.h" #include "model/EnablePhysicalConnectionRequest.h" @@ -648,6 +642,8 @@ #include "model/ModifyVirtualBorderRouterAttributeResult.h" #include "model/ModifyVpcAttributeRequest.h" #include "model/ModifyVpcAttributeResult.h" +#include "model/PurchaseElasticityAssuranceRequest.h" +#include "model/PurchaseElasticityAssuranceResult.h" #include "model/PurchaseReservedInstancesOfferingRequest.h" #include "model/PurchaseReservedInstancesOfferingResult.h" #include "model/PurchaseStorageCapacityUnitRequest.h" @@ -1437,15 +1433,6 @@ namespace AlibabaCloud typedef Outcome DisableDiskEncryptionByDefaultOutcome; typedef std::future DisableDiskEncryptionByDefaultOutcomeCallable; typedef std::function&)> DisableDiskEncryptionByDefaultAsyncHandler; - typedef Outcome EipFillParamsOutcome; - typedef std::future EipFillParamsOutcomeCallable; - typedef std::function&)> EipFillParamsAsyncHandler; - typedef Outcome EipFillProductOutcome; - typedef std::future EipFillProductOutcomeCallable; - typedef std::function&)> EipFillProductAsyncHandler; - typedef Outcome EipNotifyPaidOutcome; - typedef std::future EipNotifyPaidOutcomeCallable; - typedef std::function&)> EipNotifyPaidAsyncHandler; typedef Outcome EnableDiskEncryptionByDefaultOutcome; typedef std::future EnableDiskEncryptionByDefaultOutcomeCallable; typedef std::function&)> EnableDiskEncryptionByDefaultAsyncHandler; @@ -1686,6 +1673,9 @@ namespace AlibabaCloud typedef Outcome ModifyVpcAttributeOutcome; typedef std::future ModifyVpcAttributeOutcomeCallable; typedef std::function&)> ModifyVpcAttributeAsyncHandler; + typedef Outcome PurchaseElasticityAssuranceOutcome; + typedef std::future PurchaseElasticityAssuranceOutcomeCallable; + typedef std::function&)> PurchaseElasticityAssuranceAsyncHandler; typedef Outcome PurchaseReservedInstancesOfferingOutcome; typedef std::future PurchaseReservedInstancesOfferingOutcomeCallable; typedef std::function&)> PurchaseReservedInstancesOfferingAsyncHandler; @@ -2516,15 +2506,6 @@ namespace AlibabaCloud DisableDiskEncryptionByDefaultOutcome disableDiskEncryptionByDefault(const Model::DisableDiskEncryptionByDefaultRequest &request)const; void disableDiskEncryptionByDefaultAsync(const Model::DisableDiskEncryptionByDefaultRequest& request, const DisableDiskEncryptionByDefaultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisableDiskEncryptionByDefaultOutcomeCallable disableDiskEncryptionByDefaultCallable(const Model::DisableDiskEncryptionByDefaultRequest& request) const; - EipFillParamsOutcome eipFillParams(const Model::EipFillParamsRequest &request)const; - void eipFillParamsAsync(const Model::EipFillParamsRequest& request, const EipFillParamsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - EipFillParamsOutcomeCallable eipFillParamsCallable(const Model::EipFillParamsRequest& request) const; - EipFillProductOutcome eipFillProduct(const Model::EipFillProductRequest &request)const; - void eipFillProductAsync(const Model::EipFillProductRequest& request, const EipFillProductAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - EipFillProductOutcomeCallable eipFillProductCallable(const Model::EipFillProductRequest& request) const; - EipNotifyPaidOutcome eipNotifyPaid(const Model::EipNotifyPaidRequest &request)const; - void eipNotifyPaidAsync(const Model::EipNotifyPaidRequest& request, const EipNotifyPaidAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - EipNotifyPaidOutcomeCallable eipNotifyPaidCallable(const Model::EipNotifyPaidRequest& request) const; EnableDiskEncryptionByDefaultOutcome enableDiskEncryptionByDefault(const Model::EnableDiskEncryptionByDefaultRequest &request)const; void enableDiskEncryptionByDefaultAsync(const Model::EnableDiskEncryptionByDefaultRequest& request, const EnableDiskEncryptionByDefaultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EnableDiskEncryptionByDefaultOutcomeCallable enableDiskEncryptionByDefaultCallable(const Model::EnableDiskEncryptionByDefaultRequest& request) const; @@ -2765,6 +2746,9 @@ namespace AlibabaCloud ModifyVpcAttributeOutcome modifyVpcAttribute(const Model::ModifyVpcAttributeRequest &request)const; void modifyVpcAttributeAsync(const Model::ModifyVpcAttributeRequest& request, const ModifyVpcAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVpcAttributeOutcomeCallable modifyVpcAttributeCallable(const Model::ModifyVpcAttributeRequest& request) const; + PurchaseElasticityAssuranceOutcome purchaseElasticityAssurance(const Model::PurchaseElasticityAssuranceRequest &request)const; + void purchaseElasticityAssuranceAsync(const Model::PurchaseElasticityAssuranceRequest& request, const PurchaseElasticityAssuranceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PurchaseElasticityAssuranceOutcomeCallable purchaseElasticityAssuranceCallable(const Model::PurchaseElasticityAssuranceRequest& request) const; PurchaseReservedInstancesOfferingOutcome purchaseReservedInstancesOffering(const Model::PurchaseReservedInstancesOfferingRequest &request)const; void purchaseReservedInstancesOfferingAsync(const Model::PurchaseReservedInstancesOfferingRequest& request, const PurchaseReservedInstancesOfferingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PurchaseReservedInstancesOfferingOutcomeCallable purchaseReservedInstancesOfferingCallable(const Model::PurchaseReservedInstancesOfferingRequest& request) const; diff --git a/ecs/include/alibabacloud/ecs/model/CreateAutoProvisioningGroupRequest.h b/ecs/include/alibabacloud/ecs/model/CreateAutoProvisioningGroupRequest.h index fb7b9c604..34aaccce7 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateAutoProvisioningGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateAutoProvisioningGroupRequest.h @@ -65,6 +65,11 @@ public: long provisionedIops; bool burstingEnabled; }; + struct ResourcePoolOptions { + std::string strategy; + std::string string; + std::vector privatePoolIds; + }; struct LaunchTemplateConfig { std::string vSwitchId; double maxPrice; @@ -172,6 +177,8 @@ public: void setLaunchConfigurationInstanceDescription(const std::string &launchConfigurationInstanceDescription); std::string getSpotAllocationStrategy() const; void setSpotAllocationStrategy(const std::string &spotAllocationStrategy); + ResourcePoolOptions getResourcePoolOptions() const; + void setResourcePoolOptions(const ResourcePoolOptions &resourcePoolOptions); std::string getRegionId() const; void setRegionId(const std::string ®ionId); bool getTerminateInstances() const; @@ -266,6 +273,7 @@ private: std::string launchConfigurationInstanceName_; std::string launchConfigurationInstanceDescription_; std::string spotAllocationStrategy_; + ResourcePoolOptions resourcePoolOptions_; std::string regionId_; bool terminateInstances_; std::string launchConfigurationSystemDiskName_; diff --git a/ecs/include/alibabacloud/ecs/model/CreateImageComponentRequest.h b/ecs/include/alibabacloud/ecs/model/CreateImageComponentRequest.h index acc4520d0..0b8ce7868 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateImageComponentRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateImageComponentRequest.h @@ -42,6 +42,8 @@ public: void setDescription(const std::string &description); std::string getSystemType() const; void setSystemType(const std::string &systemType); + std::string getComponentVersion() const; + void setComponentVersion(const std::string &componentVersion); std::string getContent() const; void setContent(const std::string &content); std::string getResourceGroupId() const; @@ -66,6 +68,7 @@ private: std::string clientToken_; std::string description_; std::string systemType_; + std::string componentVersion_; std::string content_; std::string resourceGroupId_; std::string regionId_; diff --git a/ecs/include/alibabacloud/ecs/model/CreateImagePipelineRequest.h b/ecs/include/alibabacloud/ecs/model/CreateImagePipelineRequest.h index 31081390a..09ef06849 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateImagePipelineRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateImagePipelineRequest.h @@ -62,6 +62,8 @@ public: void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); + std::string getRepairMode() const; + void setRepairMode(const std::string &repairMode); long getOwnerId() const; void setOwnerId(long ownerId); std::string getBaseImage() const; @@ -74,8 +76,12 @@ public: void setDeleteInstanceOnFailure(bool deleteInstanceOnFailure); std::string getName() const; void setName(const std::string &name); + std::string getImageFamily() const; + void setImageFamily(const std::string &imageFamily); std::string getBuildContent() const; void setBuildContent(const std::string &buildContent); + std::string getTestContent() const; + void setTestContent(const std::string &testContent); private: std::string baseImageType_; @@ -92,13 +98,16 @@ private: std::vector tag_; std::string resourceOwnerAccount_; std::string ownerAccount_; + std::string repairMode_; long ownerId_; std::string baseImage_; std::string vSwitchId_; std::vector addAccount_; bool deleteInstanceOnFailure_; std::string name_; + std::string imageFamily_; std::string buildContent_; + std::string testContent_; }; } // namespace Model } // namespace Ecs diff --git a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h index c512d4a3c..b49a2e95c 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h @@ -65,6 +65,8 @@ public: void setLaunchTemplateName(const std::string &launchTemplateName); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + int getHttpPutResponseHopLimit() const; + void setHttpPutResponseHopLimit(int httpPutResponseHopLimit); std::string getSecurityEnhancementStrategy() const; void setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy); std::string getNetworkType() const; @@ -143,6 +145,8 @@ public: void setPasswordInherit(bool passwordInherit); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getHttpEndpoint() const; + void setHttpEndpoint(const std::string &httpEndpoint); std::string getInstanceType() const; void setInstanceType(const std::string &instanceType); std::string getInstanceChargeType() const; @@ -177,6 +181,8 @@ public: void setSystemDiskSize(int systemDiskSize); std::string getVpcId() const; void setVpcId(const std::string &vpcId); + std::string getHttpTokens() const; + void setHttpTokens(const std::string &httpTokens); std::string getSystemDiskDescription() const; void setSystemDiskDescription(const std::string &systemDiskDescription); std::string getSystemDiskEncrypted() const; @@ -185,6 +191,7 @@ public: private: std::string launchTemplateName_; long resourceOwnerId_; + int httpPutResponseHopLimit_; std::string securityEnhancementStrategy_; std::string networkType_; std::string keyPairName_; @@ -224,6 +231,7 @@ private: std::string userData_; bool passwordInherit_; std::string regionId_; + std::string httpEndpoint_; std::string instanceType_; std::string instanceChargeType_; bool enableVmOsConfig_; @@ -241,6 +249,7 @@ private: long systemDiskProvisionedIops_; int systemDiskSize_; std::string vpcId_; + std::string httpTokens_; std::string systemDiskDescription_; std::string systemDiskEncrypted_; }; diff --git a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h index 460304290..3d7c84b2d 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h @@ -61,6 +61,8 @@ public: void setLaunchTemplateName(const std::string &launchTemplateName); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + int getHttpPutResponseHopLimit() const; + void setHttpPutResponseHopLimit(int httpPutResponseHopLimit); std::string getSecurityEnhancementStrategy() const; void setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy); std::string getNetworkType() const; @@ -137,6 +139,8 @@ public: void setPasswordInherit(bool passwordInherit); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getHttpEndpoint() const; + void setHttpEndpoint(const std::string &httpEndpoint); std::string getInstanceType() const; void setInstanceType(const std::string &instanceType); std::string getInstanceChargeType() const; @@ -171,6 +175,8 @@ public: void setSystemDiskSize(int systemDiskSize); std::string getVpcId() const; void setVpcId(const std::string &vpcId); + std::string getHttpTokens() const; + void setHttpTokens(const std::string &httpTokens); std::string getSystemDiskDescription() const; void setSystemDiskDescription(const std::string &systemDiskDescription); std::string getSystemDiskEncrypted() const; @@ -179,6 +185,7 @@ public: private: std::string launchTemplateName_; long resourceOwnerId_; + int httpPutResponseHopLimit_; std::string securityEnhancementStrategy_; std::string networkType_; std::string keyPairName_; @@ -217,6 +224,7 @@ private: std::string userData_; bool passwordInherit_; std::string regionId_; + std::string httpEndpoint_; std::string instanceType_; std::string instanceChargeType_; bool enableVmOsConfig_; @@ -234,6 +242,7 @@ private: long systemDiskProvisionedIops_; int systemDiskSize_; std::string vpcId_; + std::string httpTokens_; std::string systemDiskDescription_; std::string systemDiskEncrypted_; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImageComponentsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeImageComponentsRequest.h index 1295a4439..4dcadcbc0 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeImageComponentsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeImageComponentsRequest.h @@ -36,6 +36,10 @@ public: ~DescribeImageComponentsRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getSystemType() const; + void setSystemType(const std::string &systemType); + std::string getComponentVersion() const; + void setComponentVersion(const std::string &componentVersion); std::vector getImageComponentId() const; void setImageComponentId(const std::vector &imageComponentId); std::string getResourceGroupId() const; @@ -54,6 +58,8 @@ public: void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); + std::string getComponentType() const; + void setComponentType(const std::string &componentType); std::string getName() const; void setName(const std::string &name); int getMaxResults() const; @@ -61,6 +67,8 @@ public: private: long resourceOwnerId_; + std::string systemType_; + std::string componentVersion_; std::vector imageComponentId_; std::string resourceGroupId_; std::string regionId_; @@ -70,6 +78,7 @@ private: std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string componentType_; std::string name_; int maxResults_; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImageComponentsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeImageComponentsResult.h index da71d027e..116757425 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeImageComponentsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeImageComponentsResult.h @@ -39,8 +39,15 @@ namespace AlibabaCloud std::string tagKey; std::string tagValue; }; + struct _Parameter + { + std::string defaultValue; + std::string type; + std::string name; + }; std::string componentType; std::string owner; + std::vector parameters; std::string description; std::string resourceGroupId; std::string content; @@ -49,6 +56,7 @@ namespace AlibabaCloud std::string imageComponentId; std::vector tags; std::string name; + std::string componentVersion; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImagePipelinesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeImagePipelinesResult.h index b99458529..4b6fb912f 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeImagePipelinesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeImagePipelinesResult.h @@ -45,7 +45,9 @@ namespace AlibabaCloud int systemDiskSize; std::string imagePipelineId; std::string vSwitchId; + std::string imageFamily; std::vector toRegionIds; + std::string repairMode; std::string name; bool deleteInstanceOnFailure; std::string imageName; @@ -53,6 +55,7 @@ namespace AlibabaCloud int internetMaxBandwidthOut; std::string creationTime; std::string instanceType; + std::string testContent; std::vector tags; std::string baseImage; std::string buildContent; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsResult.h index 802473b33..949810d78 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsResult.h @@ -67,6 +67,7 @@ namespace AlibabaCloud std::string value; std::string key; }; + int httpPutResponseHopLimit; std::vector dataDisks; std::string resourceGroupId; std::string systemDiskDescription; @@ -81,6 +82,7 @@ namespace AlibabaCloud std::string vSwitchId; int period; bool deletionProtection; + std::string httpEndpoint; std::vector securityGroupIds; std::string internetChargeType; std::string deploymentSetId; @@ -116,6 +118,7 @@ namespace AlibabaCloud std::string systemDiskCategory; bool systemDiskBurstingEnabled; bool enableVmOsConfig; + std::string httpTokens; int internetMaxBandwidthIn; std::string creditSpecification; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsResult.h index eb66db5f1..e13229383 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsResult.h @@ -39,18 +39,20 @@ namespace AlibabaCloud std::string tagKey; std::string tagValue; }; + int ruleCount; int ecsCount; std::string description; std::string securityGroupName; - std::string vpcId; std::string resourceGroupId; bool serviceManaged; std::string securityGroupId; std::string securityGroupType; - std::string creationTime; - std::vector tags; int availableInstanceAmount; long serviceID; + std::string vpcId; + int groupToGroupRuleCount; + std::string creationTime; + std::vector tags; }; diff --git a/ecs/include/alibabacloud/ecs/model/EipFillParamsRequest.h b/ecs/include/alibabacloud/ecs/model/EipFillParamsRequest.h deleted file mode 100644 index 979612856..000000000 --- a/ecs/include/alibabacloud/ecs/model/EipFillParamsRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Ecs { -namespace Model { -class ALIBABACLOUD_ECS_EXPORT EipFillParamsRequest : public RpcServiceRequest { -public: - EipFillParamsRequest(); - ~EipFillParamsRequest(); - long getResourceOwnerId() const; - void setResourceOwnerId(long resourceOwnerId); - std::string getData() const; - void setData(const std::string &data); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getUserCidr() const; - void setUserCidr(const std::string &userCidr); - 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); - -private: - long resourceOwnerId_; - std::string data_; - std::string clientToken_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; -}; -} // namespace Model -} // namespace Ecs -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/EipFillParamsResult.h b/ecs/include/alibabacloud/ecs/model/EipFillParamsResult.h deleted file mode 100644 index e134c0ac2..000000000 --- a/ecs/include/alibabacloud/ecs/model/EipFillParamsResult.h +++ /dev/null @@ -1,59 +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_EIPFILLPARAMSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT EipFillParamsResult : public ServiceResult - { - public: - - - EipFillParamsResult(); - explicit EipFillParamsResult(const std::string &payload); - ~EipFillParamsResult(); - std::string getMessage()const; - std::string getRequestId()const; - std::string getData()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string requestId_; - std::string data_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/EipFillProductRequest.h b/ecs/include/alibabacloud/ecs/model/EipFillProductRequest.h deleted file mode 100644 index 7b1fd58b5..000000000 --- a/ecs/include/alibabacloud/ecs/model/EipFillProductRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Ecs { -namespace Model { -class ALIBABACLOUD_ECS_EXPORT EipFillProductRequest : public RpcServiceRequest { -public: - EipFillProductRequest(); - ~EipFillProductRequest(); - long getResourceOwnerId() const; - void setResourceOwnerId(long resourceOwnerId); - std::string getData() const; - void setData(const std::string &data); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getUserCidr() const; - void setUserCidr(const std::string &userCidr); - 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); - -private: - long resourceOwnerId_; - std::string data_; - std::string clientToken_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; -}; -} // namespace Model -} // namespace Ecs -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/EipFillProductResult.h b/ecs/include/alibabacloud/ecs/model/EipFillProductResult.h deleted file mode 100644 index 0b4af9c92..000000000 --- a/ecs/include/alibabacloud/ecs/model/EipFillProductResult.h +++ /dev/null @@ -1,59 +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_EIPFILLPRODUCTRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT EipFillProductResult : public ServiceResult - { - public: - - - EipFillProductResult(); - explicit EipFillProductResult(const std::string &payload); - ~EipFillProductResult(); - std::string getMessage()const; - std::string getRequestId()const; - std::string getData()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string requestId_; - std::string data_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/EipNotifyPaidRequest.h b/ecs/include/alibabacloud/ecs/model/EipNotifyPaidRequest.h deleted file mode 100644 index bd27b7a7f..000000000 --- a/ecs/include/alibabacloud/ecs/model/EipNotifyPaidRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Ecs { -namespace Model { -class ALIBABACLOUD_ECS_EXPORT EipNotifyPaidRequest : public RpcServiceRequest { -public: - EipNotifyPaidRequest(); - ~EipNotifyPaidRequest(); - long getResourceOwnerId() const; - void setResourceOwnerId(long resourceOwnerId); - std::string getData() const; - void setData(const std::string &data); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getUserCidr() const; - void setUserCidr(const std::string &userCidr); - 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); - -private: - long resourceOwnerId_; - std::string data_; - std::string clientToken_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; -}; -} // namespace Model -} // namespace Ecs -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ImportImageRequest.h b/ecs/include/alibabacloud/ecs/model/ImportImageRequest.h index bf96b86df..0dc33a8af 100644 --- a/ecs/include/alibabacloud/ecs/model/ImportImageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ImportImageRequest.h @@ -36,6 +36,9 @@ public: std::string oSSObject; int diskImageSize; }; + struct Features { + std::string nvmeSupport; + }; struct Tag { std::string value; std::string key; @@ -52,6 +55,8 @@ public: void setPlatform(const std::string &platform); std::string getResourceGroupId() const; void setResourceGroupId(const std::string &resourceGroupId); + Features getFeatures() const; + void setFeatures(const Features &features); std::string getBootMode() const; void setBootMode(const std::string &bootMode); std::string getRegionId() const; @@ -68,6 +73,8 @@ public: void setLicenseType(const std::string &licenseType); std::string getDetectionStrategy() const; void setDetectionStrategy(const std::string &detectionStrategy); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getRoleName() const; @@ -83,6 +90,7 @@ private: std::string description_; std::string platform_; std::string resourceGroupId_; + Features features_; std::string bootMode_; std::string regionId_; std::string imageName_; @@ -91,6 +99,7 @@ private: std::string architecture_; std::string licenseType_; std::string detectionStrategy_; + bool dryRun_; std::string resourceOwnerAccount_; std::string roleName_; std::string oSType_; diff --git a/ecs/include/alibabacloud/ecs/model/ModifyElasticityAssuranceRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyElasticityAssuranceRequest.h index 224275c81..115292cde 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyElasticityAssuranceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyElasticityAssuranceRequest.h @@ -32,6 +32,8 @@ public: ~ModifyElasticityAssuranceRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); std::string getDescription() const; void setDescription(const std::string &description); std::string getRegionId() const; @@ -48,9 +50,12 @@ public: void setOwnerId(long ownerId); std::string getPackageType() const; void setPackageType(const std::string &packageType); + int getInstanceAmount() const; + void setInstanceAmount(int instanceAmount); private: long resourceOwnerId_; + std::string clientToken_; std::string description_; std::string regionId_; std::string privatePoolOptionsId_; @@ -59,6 +64,7 @@ private: std::string ownerAccount_; long ownerId_; std::string packageType_; + int instanceAmount_; }; } // namespace Model } // namespace Ecs diff --git a/ecs/include/alibabacloud/ecs/model/PurchaseElasticityAssuranceRequest.h b/ecs/include/alibabacloud/ecs/model/PurchaseElasticityAssuranceRequest.h new file mode 100644 index 000000000..898ba956f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/PurchaseElasticityAssuranceRequest.h @@ -0,0 +1,81 @@ +/* + * 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_PURCHASEELASTICITYASSURANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_PURCHASEELASTICITYASSURANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT PurchaseElasticityAssuranceRequest : public RpcServiceRequest { +public: + PurchaseElasticityAssuranceRequest(); + ~PurchaseElasticityAssuranceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getPrivatePoolOptionsMatchCriteria() const; + void setPrivatePoolOptionsMatchCriteria(const std::string &privatePoolOptionsMatchCriteria); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + std::string getPrivatePoolOptionsId() const; + void setPrivatePoolOptionsId(const std::string &privatePoolOptionsId); + int getPeriod() const; + void setPeriod(int period); + 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 getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + std::string getPackageType() const; + void setPackageType(const std::string &packageType); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string startTime_; + std::string privatePoolOptionsMatchCriteria_; + std::string regionId_; + std::string instanceChargeType_; + std::string privatePoolOptionsId_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + std::string periodUnit_; + std::string packageType_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_PURCHASEELASTICITYASSURANCEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/EipNotifyPaidResult.h b/ecs/include/alibabacloud/ecs/model/PurchaseElasticityAssuranceResult.h similarity index 59% rename from ecs/include/alibabacloud/ecs/model/EipNotifyPaidResult.h rename to ecs/include/alibabacloud/ecs/model/PurchaseElasticityAssuranceResult.h index 7bf025a02..96c2627b0 100644 --- a/ecs/include/alibabacloud/ecs/model/EipNotifyPaidResult.h +++ b/ecs/include/alibabacloud/ecs/model/PurchaseElasticityAssuranceResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDRESULT_H_ +#ifndef ALIBABACLOUD_ECS_MODEL_PURCHASEELASTICITYASSURANCERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_PURCHASEELASTICITYASSURANCERESULT_H_ #include #include @@ -29,31 +29,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ECS_EXPORT EipNotifyPaidResult : public ServiceResult + class ALIBABACLOUD_ECS_EXPORT PurchaseElasticityAssuranceResult : public ServiceResult { public: - EipNotifyPaidResult(); - explicit EipNotifyPaidResult(const std::string &payload); - ~EipNotifyPaidResult(); - std::string getMessage()const; - std::string getRequestId()const; - std::string getData()const; - std::string getCode()const; - bool getSuccess()const; + PurchaseElasticityAssuranceResult(); + explicit PurchaseElasticityAssuranceResult(const std::string &payload); + ~PurchaseElasticityAssuranceResult(); protected: void parse(const std::string &payload); private: - std::string message_; - std::string requestId_; - std::string data_; - std::string code_; - bool success_; }; } } } -#endif // !ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ECS_MODEL_PURCHASEELASTICITYASSURANCERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h index af3c84e94..391ce93a7 100644 --- a/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h @@ -233,6 +233,8 @@ public: void setInstanceName(const std::string &instanceName); std::string getZoneId() const; void setZoneId(const std::string &zoneId); + std::vector getCpuOptionsAccelerators() const; + void setCpuOptionsAccelerators(const std::vector &cpuOptionsAccelerators); std::vector getIpv6Address() const; void setIpv6Address(const std::vector &ipv6Address); std::string getSecurityOptionsConfidentialComputingMode() const; @@ -356,6 +358,7 @@ private: std::string vSwitchId_; std::string instanceName_; std::string zoneId_; + std::vector cpuOptionsAccelerators_; std::vector ipv6Address_; std::string securityOptionsConfidentialComputingMode_; std::string clientToken_; diff --git a/ecs/src/EcsClient.cc b/ecs/src/EcsClient.cc index fa3fb1d21..a02512591 100644 --- a/ecs/src/EcsClient.cc +++ b/ecs/src/EcsClient.cc @@ -8331,114 +8331,6 @@ EcsClient::DisableDiskEncryptionByDefaultOutcomeCallable EcsClient::disableDiskE return task->get_future(); } -EcsClient::EipFillParamsOutcome EcsClient::eipFillParams(const EipFillParamsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return EipFillParamsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return EipFillParamsOutcome(EipFillParamsResult(outcome.result())); - else - return EipFillParamsOutcome(outcome.error()); -} - -void EcsClient::eipFillParamsAsync(const EipFillParamsRequest& request, const EipFillParamsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, eipFillParams(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::EipFillParamsOutcomeCallable EcsClient::eipFillParamsCallable(const EipFillParamsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->eipFillParams(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EcsClient::EipFillProductOutcome EcsClient::eipFillProduct(const EipFillProductRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return EipFillProductOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return EipFillProductOutcome(EipFillProductResult(outcome.result())); - else - return EipFillProductOutcome(outcome.error()); -} - -void EcsClient::eipFillProductAsync(const EipFillProductRequest& request, const EipFillProductAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, eipFillProduct(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::EipFillProductOutcomeCallable EcsClient::eipFillProductCallable(const EipFillProductRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->eipFillProduct(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EcsClient::EipNotifyPaidOutcome EcsClient::eipNotifyPaid(const EipNotifyPaidRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return EipNotifyPaidOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return EipNotifyPaidOutcome(EipNotifyPaidResult(outcome.result())); - else - return EipNotifyPaidOutcome(outcome.error()); -} - -void EcsClient::eipNotifyPaidAsync(const EipNotifyPaidRequest& request, const EipNotifyPaidAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, eipNotifyPaid(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::EipNotifyPaidOutcomeCallable EcsClient::eipNotifyPaidCallable(const EipNotifyPaidRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->eipNotifyPaid(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::EnableDiskEncryptionByDefaultOutcome EcsClient::enableDiskEncryptionByDefault(const EnableDiskEncryptionByDefaultRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -11319,6 +11211,42 @@ EcsClient::ModifyVpcAttributeOutcomeCallable EcsClient::modifyVpcAttributeCallab return task->get_future(); } +EcsClient::PurchaseElasticityAssuranceOutcome EcsClient::purchaseElasticityAssurance(const PurchaseElasticityAssuranceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PurchaseElasticityAssuranceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PurchaseElasticityAssuranceOutcome(PurchaseElasticityAssuranceResult(outcome.result())); + else + return PurchaseElasticityAssuranceOutcome(outcome.error()); +} + +void EcsClient::purchaseElasticityAssuranceAsync(const PurchaseElasticityAssuranceRequest& request, const PurchaseElasticityAssuranceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, purchaseElasticityAssurance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::PurchaseElasticityAssuranceOutcomeCallable EcsClient::purchaseElasticityAssuranceCallable(const PurchaseElasticityAssuranceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->purchaseElasticityAssurance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::PurchaseReservedInstancesOfferingOutcome EcsClient::purchaseReservedInstancesOffering(const PurchaseReservedInstancesOfferingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ecs/src/model/CreateAutoProvisioningGroupRequest.cc b/ecs/src/model/CreateAutoProvisioningGroupRequest.cc index a0f965658..4fc3dae61 100644 --- a/ecs/src/model/CreateAutoProvisioningGroupRequest.cc +++ b/ecs/src/model/CreateAutoProvisioningGroupRequest.cc @@ -422,6 +422,18 @@ void CreateAutoProvisioningGroupRequest::setSpotAllocationStrategy(const std::st setParameter(std::string("SpotAllocationStrategy"), spotAllocationStrategy); } +CreateAutoProvisioningGroupRequest::ResourcePoolOptions CreateAutoProvisioningGroupRequest::getResourcePoolOptions() const { + return resourcePoolOptions_; +} + +void CreateAutoProvisioningGroupRequest::setResourcePoolOptions(const CreateAutoProvisioningGroupRequest::ResourcePoolOptions &resourcePoolOptions) { + resourcePoolOptions_ = resourcePoolOptions; + setParameter(std::string("ResourcePoolOptions") + ".Strategy", resourcePoolOptions.strategy); + for(int dep1 = 0; dep1 != resourcePoolOptions.privatePoolIds.size(); dep1++) { + setParameter(std::string("ResourcePoolOptions") + ".PrivatePoolIds." + std::to_string(dep1 + 1), resourcePoolOptions.privatePoolIds[dep1]); + } +} + std::string CreateAutoProvisioningGroupRequest::getRegionId() const { return regionId_; } diff --git a/ecs/src/model/CreateImageComponentRequest.cc b/ecs/src/model/CreateImageComponentRequest.cc index 6886c4902..77ae050ea 100644 --- a/ecs/src/model/CreateImageComponentRequest.cc +++ b/ecs/src/model/CreateImageComponentRequest.cc @@ -61,6 +61,15 @@ void CreateImageComponentRequest::setSystemType(const std::string &systemType) { setParameter(std::string("SystemType"), systemType); } +std::string CreateImageComponentRequest::getComponentVersion() const { + return componentVersion_; +} + +void CreateImageComponentRequest::setComponentVersion(const std::string &componentVersion) { + componentVersion_ = componentVersion; + setParameter(std::string("ComponentVersion"), componentVersion); +} + std::string CreateImageComponentRequest::getContent() const { return content_; } diff --git a/ecs/src/model/CreateImagePipelineRequest.cc b/ecs/src/model/CreateImagePipelineRequest.cc index fe833fbcf..0463c2dd1 100644 --- a/ecs/src/model/CreateImagePipelineRequest.cc +++ b/ecs/src/model/CreateImagePipelineRequest.cc @@ -155,6 +155,15 @@ void CreateImagePipelineRequest::setOwnerAccount(const std::string &ownerAccount setParameter(std::string("OwnerAccount"), ownerAccount); } +std::string CreateImagePipelineRequest::getRepairMode() const { + return repairMode_; +} + +void CreateImagePipelineRequest::setRepairMode(const std::string &repairMode) { + repairMode_ = repairMode; + setParameter(std::string("RepairMode"), repairMode); +} + long CreateImagePipelineRequest::getOwnerId() const { return ownerId_; } @@ -208,6 +217,15 @@ void CreateImagePipelineRequest::setName(const std::string &name) { setParameter(std::string("Name"), name); } +std::string CreateImagePipelineRequest::getImageFamily() const { + return imageFamily_; +} + +void CreateImagePipelineRequest::setImageFamily(const std::string &imageFamily) { + imageFamily_ = imageFamily; + setParameter(std::string("ImageFamily"), imageFamily); +} + std::string CreateImagePipelineRequest::getBuildContent() const { return buildContent_; } @@ -217,3 +235,12 @@ void CreateImagePipelineRequest::setBuildContent(const std::string &buildContent setParameter(std::string("BuildContent"), buildContent); } +std::string CreateImagePipelineRequest::getTestContent() const { + return testContent_; +} + +void CreateImagePipelineRequest::setTestContent(const std::string &testContent) { + testContent_ = testContent; + setParameter(std::string("TestContent"), testContent); +} + diff --git a/ecs/src/model/CreateLaunchTemplateRequest.cc b/ecs/src/model/CreateLaunchTemplateRequest.cc index 25a83882a..d95d5db20 100644 --- a/ecs/src/model/CreateLaunchTemplateRequest.cc +++ b/ecs/src/model/CreateLaunchTemplateRequest.cc @@ -43,6 +43,15 @@ void CreateLaunchTemplateRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +int CreateLaunchTemplateRequest::getHttpPutResponseHopLimit() const { + return httpPutResponseHopLimit_; +} + +void CreateLaunchTemplateRequest::setHttpPutResponseHopLimit(int httpPutResponseHopLimit) { + httpPutResponseHopLimit_ = httpPutResponseHopLimit; + setParameter(std::string("HttpPutResponseHopLimit"), std::to_string(httpPutResponseHopLimit)); +} + std::string CreateLaunchTemplateRequest::getSecurityEnhancementStrategy() const { return securityEnhancementStrategy_; } @@ -404,6 +413,15 @@ void CreateLaunchTemplateRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::string CreateLaunchTemplateRequest::getHttpEndpoint() const { + return httpEndpoint_; +} + +void CreateLaunchTemplateRequest::setHttpEndpoint(const std::string &httpEndpoint) { + httpEndpoint_ = httpEndpoint; + setParameter(std::string("HttpEndpoint"), httpEndpoint); +} + std::string CreateLaunchTemplateRequest::getInstanceType() const { return instanceType_; } @@ -581,6 +599,15 @@ void CreateLaunchTemplateRequest::setVpcId(const std::string &vpcId) { setParameter(std::string("VpcId"), vpcId); } +std::string CreateLaunchTemplateRequest::getHttpTokens() const { + return httpTokens_; +} + +void CreateLaunchTemplateRequest::setHttpTokens(const std::string &httpTokens) { + httpTokens_ = httpTokens; + setParameter(std::string("HttpTokens"), httpTokens); +} + std::string CreateLaunchTemplateRequest::getSystemDiskDescription() const { return systemDiskDescription_; } diff --git a/ecs/src/model/CreateLaunchTemplateVersionRequest.cc b/ecs/src/model/CreateLaunchTemplateVersionRequest.cc index 114aacfd5..0ae88e9b9 100644 --- a/ecs/src/model/CreateLaunchTemplateVersionRequest.cc +++ b/ecs/src/model/CreateLaunchTemplateVersionRequest.cc @@ -43,6 +43,15 @@ void CreateLaunchTemplateVersionRequest::setResourceOwnerId(long resourceOwnerId setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +int CreateLaunchTemplateVersionRequest::getHttpPutResponseHopLimit() const { + return httpPutResponseHopLimit_; +} + +void CreateLaunchTemplateVersionRequest::setHttpPutResponseHopLimit(int httpPutResponseHopLimit) { + httpPutResponseHopLimit_ = httpPutResponseHopLimit; + setParameter(std::string("HttpPutResponseHopLimit"), std::to_string(httpPutResponseHopLimit)); +} + std::string CreateLaunchTemplateVersionRequest::getSecurityEnhancementStrategy() const { return securityEnhancementStrategy_; } @@ -390,6 +399,15 @@ void CreateLaunchTemplateVersionRequest::setRegionId(const std::string ®ionId setParameter(std::string("RegionId"), regionId); } +std::string CreateLaunchTemplateVersionRequest::getHttpEndpoint() const { + return httpEndpoint_; +} + +void CreateLaunchTemplateVersionRequest::setHttpEndpoint(const std::string &httpEndpoint) { + httpEndpoint_ = httpEndpoint; + setParameter(std::string("HttpEndpoint"), httpEndpoint); +} + std::string CreateLaunchTemplateVersionRequest::getInstanceType() const { return instanceType_; } @@ -567,6 +585,15 @@ void CreateLaunchTemplateVersionRequest::setVpcId(const std::string &vpcId) { setParameter(std::string("VpcId"), vpcId); } +std::string CreateLaunchTemplateVersionRequest::getHttpTokens() const { + return httpTokens_; +} + +void CreateLaunchTemplateVersionRequest::setHttpTokens(const std::string &httpTokens) { + httpTokens_ = httpTokens; + setParameter(std::string("HttpTokens"), httpTokens); +} + std::string CreateLaunchTemplateVersionRequest::getSystemDiskDescription() const { return systemDiskDescription_; } diff --git a/ecs/src/model/DescribeImageComponentsRequest.cc b/ecs/src/model/DescribeImageComponentsRequest.cc index 6173f663a..55d32c0c0 100644 --- a/ecs/src/model/DescribeImageComponentsRequest.cc +++ b/ecs/src/model/DescribeImageComponentsRequest.cc @@ -34,6 +34,24 @@ void DescribeImageComponentsRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string DescribeImageComponentsRequest::getSystemType() const { + return systemType_; +} + +void DescribeImageComponentsRequest::setSystemType(const std::string &systemType) { + systemType_ = systemType; + setParameter(std::string("SystemType"), systemType); +} + +std::string DescribeImageComponentsRequest::getComponentVersion() const { + return componentVersion_; +} + +void DescribeImageComponentsRequest::setComponentVersion(const std::string &componentVersion) { + componentVersion_ = componentVersion; + setParameter(std::string("ComponentVersion"), componentVersion); +} + std::vector DescribeImageComponentsRequest::getImageComponentId() const { return imageComponentId_; } @@ -119,6 +137,15 @@ void DescribeImageComponentsRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::string DescribeImageComponentsRequest::getComponentType() const { + return componentType_; +} + +void DescribeImageComponentsRequest::setComponentType(const std::string &componentType) { + componentType_ = componentType; + setParameter(std::string("ComponentType"), componentType); +} + std::string DescribeImageComponentsRequest::getName() const { return name_; } diff --git a/ecs/src/model/DescribeImageComponentsResult.cc b/ecs/src/model/DescribeImageComponentsResult.cc index 1ef3e6bdb..d9e5d2e44 100644 --- a/ecs/src/model/DescribeImageComponentsResult.cc +++ b/ecs/src/model/DescribeImageComponentsResult.cc @@ -61,6 +61,8 @@ void DescribeImageComponentsResult::parse(const std::string &payload) imageComponentObject.content = valueImageComponentImageComponentSet["Content"].asString(); if(!valueImageComponentImageComponentSet["Owner"].isNull()) imageComponentObject.owner = valueImageComponentImageComponentSet["Owner"].asString(); + if(!valueImageComponentImageComponentSet["ComponentVersion"].isNull()) + imageComponentObject.componentVersion = valueImageComponentImageComponentSet["ComponentVersion"].asString(); auto allTagsNode = valueImageComponentImageComponentSet["Tags"]["Tag"]; for (auto valueImageComponentImageComponentSetTagsTag : allTagsNode) { @@ -71,6 +73,18 @@ void DescribeImageComponentsResult::parse(const std::string &payload) tagsObject.tagKey = valueImageComponentImageComponentSetTagsTag["TagKey"].asString(); imageComponentObject.tags.push_back(tagsObject); } + auto allParametersNode = valueImageComponentImageComponentSet["Parameters"]["Parameter"]; + for (auto valueImageComponentImageComponentSetParametersParameter : allParametersNode) + { + ImageComponentSet::_Parameter parametersObject; + if(!valueImageComponentImageComponentSetParametersParameter["Name"].isNull()) + parametersObject.name = valueImageComponentImageComponentSetParametersParameter["Name"].asString(); + if(!valueImageComponentImageComponentSetParametersParameter["Type"].isNull()) + parametersObject.type = valueImageComponentImageComponentSetParametersParameter["Type"].asString(); + if(!valueImageComponentImageComponentSetParametersParameter["DefaultValue"].isNull()) + parametersObject.defaultValue = valueImageComponentImageComponentSetParametersParameter["DefaultValue"].asString(); + imageComponentObject.parameters.push_back(parametersObject); + } imageComponent_.push_back(imageComponentObject); } if(!value["NextToken"].isNull()) diff --git a/ecs/src/model/DescribeImagePipelinesResult.cc b/ecs/src/model/DescribeImagePipelinesResult.cc index b9ad6fc5d..28f647a32 100644 --- a/ecs/src/model/DescribeImagePipelinesResult.cc +++ b/ecs/src/model/DescribeImagePipelinesResult.cc @@ -71,6 +71,12 @@ void DescribeImagePipelinesResult::parse(const std::string &payload) imagePipelineObject.name = valueImagePipelineImagePipelineSet["Name"].asString(); if(!valueImagePipelineImagePipelineSet["BuildContent"].isNull()) imagePipelineObject.buildContent = valueImagePipelineImagePipelineSet["BuildContent"].asString(); + if(!valueImagePipelineImagePipelineSet["RepairMode"].isNull()) + imagePipelineObject.repairMode = valueImagePipelineImagePipelineSet["RepairMode"].asString(); + if(!valueImagePipelineImagePipelineSet["TestContent"].isNull()) + imagePipelineObject.testContent = valueImagePipelineImagePipelineSet["TestContent"].asString(); + if(!valueImagePipelineImagePipelineSet["ImageFamily"].isNull()) + imagePipelineObject.imageFamily = valueImagePipelineImagePipelineSet["ImageFamily"].asString(); auto allTagsNode = valueImagePipelineImagePipelineSet["Tags"]["Tag"]; for (auto valueImagePipelineImagePipelineSetTagsTag : allTagsNode) { diff --git a/ecs/src/model/DescribeLaunchTemplateVersionsResult.cc b/ecs/src/model/DescribeLaunchTemplateVersionsResult.cc index d6f56b931..4d36e81b2 100644 --- a/ecs/src/model/DescribeLaunchTemplateVersionsResult.cc +++ b/ecs/src/model/DescribeLaunchTemplateVersionsResult.cc @@ -154,6 +154,12 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload) launchTemplateVersionSetsObject.launchTemplateData.autoRenewPeriod = std::stoi(launchTemplateDataNode["AutoRenewPeriod"].asString()); if(!launchTemplateDataNode["PeriodUnit"].isNull()) launchTemplateVersionSetsObject.launchTemplateData.periodUnit = launchTemplateDataNode["PeriodUnit"].asString(); + if(!launchTemplateDataNode["HttpEndpoint"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.httpEndpoint = launchTemplateDataNode["HttpEndpoint"].asString(); + if(!launchTemplateDataNode["HttpTokens"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.httpTokens = launchTemplateDataNode["HttpTokens"].asString(); + if(!launchTemplateDataNode["HttpPutResponseHopLimit"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.httpPutResponseHopLimit = std::stoi(launchTemplateDataNode["HttpPutResponseHopLimit"].asString()); auto allDataDisksNode = launchTemplateDataNode["DataDisks"]["DataDisk"]; for (auto launchTemplateDataNodeDataDisksDataDisk : allDataDisksNode) { diff --git a/ecs/src/model/DescribeSecurityGroupsResult.cc b/ecs/src/model/DescribeSecurityGroupsResult.cc index 089d357aa..8bcdfbae5 100644 --- a/ecs/src/model/DescribeSecurityGroupsResult.cc +++ b/ecs/src/model/DescribeSecurityGroupsResult.cc @@ -65,6 +65,10 @@ void DescribeSecurityGroupsResult::parse(const std::string &payload) securityGroupsObject.serviceManaged = valueSecurityGroupsSecurityGroup["ServiceManaged"].asString() == "true"; if(!valueSecurityGroupsSecurityGroup["ServiceID"].isNull()) securityGroupsObject.serviceID = std::stol(valueSecurityGroupsSecurityGroup["ServiceID"].asString()); + if(!valueSecurityGroupsSecurityGroup["RuleCount"].isNull()) + securityGroupsObject.ruleCount = std::stoi(valueSecurityGroupsSecurityGroup["RuleCount"].asString()); + if(!valueSecurityGroupsSecurityGroup["GroupToGroupRuleCount"].isNull()) + securityGroupsObject.groupToGroupRuleCount = std::stoi(valueSecurityGroupsSecurityGroup["GroupToGroupRuleCount"].asString()); auto allTagsNode = valueSecurityGroupsSecurityGroup["Tags"]["Tag"]; for (auto valueSecurityGroupsSecurityGroupTagsTag : allTagsNode) { diff --git a/ecs/src/model/EipFillParamsRequest.cc b/ecs/src/model/EipFillParamsRequest.cc deleted file mode 100644 index 1c5424405..000000000 --- a/ecs/src/model/EipFillParamsRequest.cc +++ /dev/null @@ -1,90 +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::EipFillParamsRequest; - -EipFillParamsRequest::EipFillParamsRequest() - : RpcServiceRequest("ecs", "2014-05-26", "EipFillParams") { - setMethod(HttpRequest::Method::Post); -} - -EipFillParamsRequest::~EipFillParamsRequest() {} - -long EipFillParamsRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void EipFillParamsRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string EipFillParamsRequest::getData() const { - return data_; -} - -void EipFillParamsRequest::setData(const std::string &data) { - data_ = data; - setParameter(std::string("data"), data); -} - -std::string EipFillParamsRequest::getClientToken() const { - return clientToken_; -} - -void EipFillParamsRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string EipFillParamsRequest::getUserCidr() const { - return userCidr_; -} - -void EipFillParamsRequest::setUserCidr(const std::string &userCidr) { - userCidr_ = userCidr; - setParameter(std::string("UserCidr"), userCidr); -} - -std::string EipFillParamsRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void EipFillParamsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string EipFillParamsRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void EipFillParamsRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long EipFillParamsRequest::getOwnerId() const { - return ownerId_; -} - -void EipFillParamsRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - diff --git a/ecs/src/model/EipFillParamsResult.cc b/ecs/src/model/EipFillParamsResult.cc deleted file mode 100644 index cfcea6035..000000000 --- a/ecs/src/model/EipFillParamsResult.cc +++ /dev/null @@ -1,79 +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; - -EipFillParamsResult::EipFillParamsResult() : - ServiceResult() -{} - -EipFillParamsResult::EipFillParamsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -EipFillParamsResult::~EipFillParamsResult() -{} - -void EipFillParamsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["code"].isNull()) - code_ = value["code"].asString(); - if(!value["success"].isNull()) - success_ = value["success"].asString() == "true"; - if(!value["message"].isNull()) - message_ = value["message"].asString(); - if(!value["data"].isNull()) - data_ = value["data"].asString(); - if(!value["requestId"].isNull()) - requestId_ = value["requestId"].asString(); - -} - -std::string EipFillParamsResult::getMessage()const -{ - return message_; -} - -std::string EipFillParamsResult::getRequestId()const -{ - return requestId_; -} - -std::string EipFillParamsResult::getData()const -{ - return data_; -} - -std::string EipFillParamsResult::getCode()const -{ - return code_; -} - -bool EipFillParamsResult::getSuccess()const -{ - return success_; -} - diff --git a/ecs/src/model/EipFillProductRequest.cc b/ecs/src/model/EipFillProductRequest.cc deleted file mode 100644 index 815a9d3b9..000000000 --- a/ecs/src/model/EipFillProductRequest.cc +++ /dev/null @@ -1,90 +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::EipFillProductRequest; - -EipFillProductRequest::EipFillProductRequest() - : RpcServiceRequest("ecs", "2014-05-26", "EipFillProduct") { - setMethod(HttpRequest::Method::Post); -} - -EipFillProductRequest::~EipFillProductRequest() {} - -long EipFillProductRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void EipFillProductRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string EipFillProductRequest::getData() const { - return data_; -} - -void EipFillProductRequest::setData(const std::string &data) { - data_ = data; - setParameter(std::string("data"), data); -} - -std::string EipFillProductRequest::getClientToken() const { - return clientToken_; -} - -void EipFillProductRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string EipFillProductRequest::getUserCidr() const { - return userCidr_; -} - -void EipFillProductRequest::setUserCidr(const std::string &userCidr) { - userCidr_ = userCidr; - setParameter(std::string("UserCidr"), userCidr); -} - -std::string EipFillProductRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void EipFillProductRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string EipFillProductRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void EipFillProductRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long EipFillProductRequest::getOwnerId() const { - return ownerId_; -} - -void EipFillProductRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - diff --git a/ecs/src/model/EipFillProductResult.cc b/ecs/src/model/EipFillProductResult.cc deleted file mode 100644 index d05e54b40..000000000 --- a/ecs/src/model/EipFillProductResult.cc +++ /dev/null @@ -1,79 +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; - -EipFillProductResult::EipFillProductResult() : - ServiceResult() -{} - -EipFillProductResult::EipFillProductResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -EipFillProductResult::~EipFillProductResult() -{} - -void EipFillProductResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["code"].isNull()) - code_ = value["code"].asString(); - if(!value["success"].isNull()) - success_ = value["success"].asString() == "true"; - if(!value["message"].isNull()) - message_ = value["message"].asString(); - if(!value["data"].isNull()) - data_ = value["data"].asString(); - if(!value["requestId"].isNull()) - requestId_ = value["requestId"].asString(); - -} - -std::string EipFillProductResult::getMessage()const -{ - return message_; -} - -std::string EipFillProductResult::getRequestId()const -{ - return requestId_; -} - -std::string EipFillProductResult::getData()const -{ - return data_; -} - -std::string EipFillProductResult::getCode()const -{ - return code_; -} - -bool EipFillProductResult::getSuccess()const -{ - return success_; -} - diff --git a/ecs/src/model/EipNotifyPaidRequest.cc b/ecs/src/model/EipNotifyPaidRequest.cc deleted file mode 100644 index 4ac88b18d..000000000 --- a/ecs/src/model/EipNotifyPaidRequest.cc +++ /dev/null @@ -1,90 +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::EipNotifyPaidRequest; - -EipNotifyPaidRequest::EipNotifyPaidRequest() - : RpcServiceRequest("ecs", "2014-05-26", "EipNotifyPaid") { - setMethod(HttpRequest::Method::Post); -} - -EipNotifyPaidRequest::~EipNotifyPaidRequest() {} - -long EipNotifyPaidRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void EipNotifyPaidRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string EipNotifyPaidRequest::getData() const { - return data_; -} - -void EipNotifyPaidRequest::setData(const std::string &data) { - data_ = data; - setParameter(std::string("data"), data); -} - -std::string EipNotifyPaidRequest::getClientToken() const { - return clientToken_; -} - -void EipNotifyPaidRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string EipNotifyPaidRequest::getUserCidr() const { - return userCidr_; -} - -void EipNotifyPaidRequest::setUserCidr(const std::string &userCidr) { - userCidr_ = userCidr; - setParameter(std::string("UserCidr"), userCidr); -} - -std::string EipNotifyPaidRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void EipNotifyPaidRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string EipNotifyPaidRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void EipNotifyPaidRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long EipNotifyPaidRequest::getOwnerId() const { - return ownerId_; -} - -void EipNotifyPaidRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - diff --git a/ecs/src/model/EipNotifyPaidResult.cc b/ecs/src/model/EipNotifyPaidResult.cc deleted file mode 100644 index 99806888d..000000000 --- a/ecs/src/model/EipNotifyPaidResult.cc +++ /dev/null @@ -1,79 +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; - -EipNotifyPaidResult::EipNotifyPaidResult() : - ServiceResult() -{} - -EipNotifyPaidResult::EipNotifyPaidResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -EipNotifyPaidResult::~EipNotifyPaidResult() -{} - -void EipNotifyPaidResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["code"].isNull()) - code_ = value["code"].asString(); - if(!value["success"].isNull()) - success_ = value["success"].asString() == "true"; - if(!value["message"].isNull()) - message_ = value["message"].asString(); - if(!value["data"].isNull()) - data_ = value["data"].asString(); - if(!value["requestId"].isNull()) - requestId_ = value["requestId"].asString(); - -} - -std::string EipNotifyPaidResult::getMessage()const -{ - return message_; -} - -std::string EipNotifyPaidResult::getRequestId()const -{ - return requestId_; -} - -std::string EipNotifyPaidResult::getData()const -{ - return data_; -} - -std::string EipNotifyPaidResult::getCode()const -{ - return code_; -} - -bool EipNotifyPaidResult::getSuccess()const -{ - return success_; -} - diff --git a/ecs/src/model/ImportImageRequest.cc b/ecs/src/model/ImportImageRequest.cc index 0486842d7..9f507df43 100644 --- a/ecs/src/model/ImportImageRequest.cc +++ b/ecs/src/model/ImportImageRequest.cc @@ -79,6 +79,15 @@ void ImportImageRequest::setResourceGroupId(const std::string &resourceGroupId) setParameter(std::string("ResourceGroupId"), resourceGroupId); } +ImportImageRequest::Features ImportImageRequest::getFeatures() const { + return features_; +} + +void ImportImageRequest::setFeatures(const ImportImageRequest::Features &features) { + features_ = features; + setParameter(std::string("Features") + ".NvmeSupport", features.nvmeSupport); +} + std::string ImportImageRequest::getBootMode() const { return bootMode_; } @@ -156,6 +165,15 @@ void ImportImageRequest::setDetectionStrategy(const std::string &detectionStrate setParameter(std::string("DetectionStrategy"), detectionStrategy); } +bool ImportImageRequest::getDryRun() const { + return dryRun_; +} + +void ImportImageRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string ImportImageRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/ecs/src/model/ModifyElasticityAssuranceRequest.cc b/ecs/src/model/ModifyElasticityAssuranceRequest.cc index 00ed06ee9..8ebd7d194 100644 --- a/ecs/src/model/ModifyElasticityAssuranceRequest.cc +++ b/ecs/src/model/ModifyElasticityAssuranceRequest.cc @@ -34,6 +34,15 @@ void ModifyElasticityAssuranceRequest::setResourceOwnerId(long resourceOwnerId) setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string ModifyElasticityAssuranceRequest::getClientToken() const { + return clientToken_; +} + +void ModifyElasticityAssuranceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + std::string ModifyElasticityAssuranceRequest::getDescription() const { return description_; } @@ -106,3 +115,12 @@ void ModifyElasticityAssuranceRequest::setPackageType(const std::string &package setParameter(std::string("PackageType"), packageType); } +int ModifyElasticityAssuranceRequest::getInstanceAmount() const { + return instanceAmount_; +} + +void ModifyElasticityAssuranceRequest::setInstanceAmount(int instanceAmount) { + instanceAmount_ = instanceAmount; + setParameter(std::string("InstanceAmount"), std::to_string(instanceAmount)); +} + diff --git a/ecs/src/model/PurchaseElasticityAssuranceRequest.cc b/ecs/src/model/PurchaseElasticityAssuranceRequest.cc new file mode 100644 index 000000000..7934a5d5f --- /dev/null +++ b/ecs/src/model/PurchaseElasticityAssuranceRequest.cc @@ -0,0 +1,153 @@ +/* + * 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::PurchaseElasticityAssuranceRequest; + +PurchaseElasticityAssuranceRequest::PurchaseElasticityAssuranceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "PurchaseElasticityAssurance") { + setMethod(HttpRequest::Method::Post); +} + +PurchaseElasticityAssuranceRequest::~PurchaseElasticityAssuranceRequest() {} + +long PurchaseElasticityAssuranceRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void PurchaseElasticityAssuranceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string PurchaseElasticityAssuranceRequest::getClientToken() const { + return clientToken_; +} + +void PurchaseElasticityAssuranceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string PurchaseElasticityAssuranceRequest::getStartTime() const { + return startTime_; +} + +void PurchaseElasticityAssuranceRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string PurchaseElasticityAssuranceRequest::getPrivatePoolOptionsMatchCriteria() const { + return privatePoolOptionsMatchCriteria_; +} + +void PurchaseElasticityAssuranceRequest::setPrivatePoolOptionsMatchCriteria(const std::string &privatePoolOptionsMatchCriteria) { + privatePoolOptionsMatchCriteria_ = privatePoolOptionsMatchCriteria; + setParameter(std::string("PrivatePoolOptions.MatchCriteria"), privatePoolOptionsMatchCriteria); +} + +std::string PurchaseElasticityAssuranceRequest::getRegionId() const { + return regionId_; +} + +void PurchaseElasticityAssuranceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string PurchaseElasticityAssuranceRequest::getInstanceChargeType() const { + return instanceChargeType_; +} + +void PurchaseElasticityAssuranceRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); +} + +std::string PurchaseElasticityAssuranceRequest::getPrivatePoolOptionsId() const { + return privatePoolOptionsId_; +} + +void PurchaseElasticityAssuranceRequest::setPrivatePoolOptionsId(const std::string &privatePoolOptionsId) { + privatePoolOptionsId_ = privatePoolOptionsId; + setParameter(std::string("PrivatePoolOptions.Id"), privatePoolOptionsId); +} + +int PurchaseElasticityAssuranceRequest::getPeriod() const { + return period_; +} + +void PurchaseElasticityAssuranceRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); +} + +std::string PurchaseElasticityAssuranceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void PurchaseElasticityAssuranceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string PurchaseElasticityAssuranceRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void PurchaseElasticityAssuranceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long PurchaseElasticityAssuranceRequest::getOwnerId() const { + return ownerId_; +} + +void PurchaseElasticityAssuranceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string PurchaseElasticityAssuranceRequest::getResourceType() const { + return resourceType_; +} + +void PurchaseElasticityAssuranceRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string PurchaseElasticityAssuranceRequest::getPeriodUnit() const { + return periodUnit_; +} + +void PurchaseElasticityAssuranceRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); +} + +std::string PurchaseElasticityAssuranceRequest::getPackageType() const { + return packageType_; +} + +void PurchaseElasticityAssuranceRequest::setPackageType(const std::string &packageType) { + packageType_ = packageType; + setParameter(std::string("PackageType"), packageType); +} + diff --git a/ecs/src/model/PurchaseElasticityAssuranceResult.cc b/ecs/src/model/PurchaseElasticityAssuranceResult.cc new file mode 100644 index 000000000..51678e829 --- /dev/null +++ b/ecs/src/model/PurchaseElasticityAssuranceResult.cc @@ -0,0 +1,44 @@ +/* + * 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; + +PurchaseElasticityAssuranceResult::PurchaseElasticityAssuranceResult() : + ServiceResult() +{} + +PurchaseElasticityAssuranceResult::PurchaseElasticityAssuranceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PurchaseElasticityAssuranceResult::~PurchaseElasticityAssuranceResult() +{} + +void PurchaseElasticityAssuranceResult::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/RunInstancesRequest.cc b/ecs/src/model/RunInstancesRequest.cc index 838d8f8f7..5fff3c14f 100644 --- a/ecs/src/model/RunInstancesRequest.cc +++ b/ecs/src/model/RunInstancesRequest.cc @@ -635,6 +635,14 @@ void RunInstancesRequest::setZoneId(const std::string &zoneId) { setParameter(std::string("ZoneId"), zoneId); } +std::vector RunInstancesRequest::getCpuOptionsAccelerators() const { + return cpuOptionsAccelerators_; +} + +void RunInstancesRequest::setCpuOptionsAccelerators(const std::vector &cpuOptionsAccelerators) { + cpuOptionsAccelerators_ = cpuOptionsAccelerators; +} + std::vector RunInstancesRequest::getIpv6Address() const { return ipv6Address_; }