Compare commits

..

2 Commits
1.3.0 ... 1.3.2

Author SHA1 Message Date
haowei.yao
f2c01c7abe 由楚俊发起的ECS SDK自动发布, BUILD_ID=498, 版本号:1.3.2
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-23 21:01:01 +08:00
haowei.yao
e34557650b 由楚俊发起的ECS SDK自动发布, BUILD_ID=335, 版本号:1.3.1
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-23 12:40:46 +08:00
51 changed files with 3700 additions and 121 deletions

View File

@@ -1,3 +1,9 @@
2018-03-23 Version: 1.3.2
1, interface DescribeInstanceTypes output InstancePpsRx InstancePpsTx
2018-03-23 Version: 1.3.1
1, ModifyPrepayInstanceSpec support migrateAcrossZone.
2018-03-23 Version: 1.3.0
1, Add 'QueryDevicesByAccount' and 'QueryDevicesByAlias' Api.
2, Remove 'QueryPushDetail' Api.

View File

@@ -1 +1 @@
1.3.0
1.3.2

View File

@@ -81,6 +81,8 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/DetachInstanceRamRoleResult.h
include/alibabacloud/ecs/model/AllocatePublicIpAddressRequest.h
include/alibabacloud/ecs/model/AllocatePublicIpAddressResult.h
include/alibabacloud/ecs/model/AttachVolumeRequest.h
include/alibabacloud/ecs/model/AttachVolumeResult.h
include/alibabacloud/ecs/model/DescribeEipMonitorDataRequest.h
include/alibabacloud/ecs/model/DescribeEipMonitorDataResult.h
include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyRequest.h
@@ -121,6 +123,8 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/DescribeSecurityGroupsResult.h
include/alibabacloud/ecs/model/ResizeDiskRequest.h
include/alibabacloud/ecs/model/ResizeDiskResult.h
include/alibabacloud/ecs/model/ResizeVolumeRequest.h
include/alibabacloud/ecs/model/ResizeVolumeResult.h
include/alibabacloud/ecs/model/CreateRouteEntryRequest.h
include/alibabacloud/ecs/model/CreateRouteEntryResult.h
include/alibabacloud/ecs/model/DescribeInvocationsRequest.h
@@ -129,6 +133,8 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/AttachKeyPairResult.h
include/alibabacloud/ecs/model/CreateRouterInterfaceRequest.h
include/alibabacloud/ecs/model/CreateRouterInterfaceResult.h
include/alibabacloud/ecs/model/ModifyVolumeAttributeRequest.h
include/alibabacloud/ecs/model/ModifyVolumeAttributeResult.h
include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationRequest.h
include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationResult.h
include/alibabacloud/ecs/model/RunInstancesRequest.h
@@ -193,6 +199,8 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/DescribeInstanceTypesResult.h
include/alibabacloud/ecs/model/DescribeSnapshotPackageRequest.h
include/alibabacloud/ecs/model/DescribeSnapshotPackageResult.h
include/alibabacloud/ecs/model/ReInitVolumeRequest.h
include/alibabacloud/ecs/model/ReInitVolumeResult.h
include/alibabacloud/ecs/model/RebootInstanceRequest.h
include/alibabacloud/ecs/model/RebootInstanceResult.h
include/alibabacloud/ecs/model/BindIpRangeRequest.h
@@ -335,6 +343,8 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/ResetDiskResult.h
include/alibabacloud/ecs/model/ModifyDiskChargeTypeRequest.h
include/alibabacloud/ecs/model/ModifyDiskChargeTypeResult.h
include/alibabacloud/ecs/model/DescribeVolumesRequest.h
include/alibabacloud/ecs/model/DescribeVolumesResult.h
include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbRequest.h
include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbResult.h
include/alibabacloud/ecs/model/DescribeBandwidthPackagesRequest.h
@@ -353,6 +363,8 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeResult.h
include/alibabacloud/ecs/model/DescribeTagKeysRequest.h
include/alibabacloud/ecs/model/DescribeTagKeysResult.h
include/alibabacloud/ecs/model/CreateVolumeRequest.h
include/alibabacloud/ecs/model/CreateVolumeResult.h
include/alibabacloud/ecs/model/DeleteInstanceRequest.h
include/alibabacloud/ecs/model/DeleteInstanceResult.h
include/alibabacloud/ecs/model/DescribeIntranetAttributeKbRequest.h
@@ -373,6 +385,10 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/EnablePhysicalConnectionResult.h
include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesRequest.h
include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesResult.h
include/alibabacloud/ecs/model/RollbackVolumeRequest.h
include/alibabacloud/ecs/model/RollbackVolumeResult.h
include/alibabacloud/ecs/model/DeleteVolumeRequest.h
include/alibabacloud/ecs/model/DeleteVolumeResult.h
include/alibabacloud/ecs/model/CreateForwardEntryRequest.h
include/alibabacloud/ecs/model/CreateForwardEntryResult.h
include/alibabacloud/ecs/model/DescribeRouterInterfacesRequest.h
@@ -443,6 +459,8 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/DescribePhysicalConnectionsResult.h
include/alibabacloud/ecs/model/DescribeRecycleBinRequest.h
include/alibabacloud/ecs/model/DescribeRecycleBinResult.h
include/alibabacloud/ecs/model/DetachVolumeRequest.h
include/alibabacloud/ecs/model/DetachVolumeResult.h
include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h
include/alibabacloud/ecs/model/CreateNetworkInterfaceResult.h
include/alibabacloud/ecs/model/DescribeIpRangesRequest.h
@@ -540,6 +558,8 @@ set(ecs_src
src/model/DetachInstanceRamRoleResult.cc
src/model/AllocatePublicIpAddressRequest.cc
src/model/AllocatePublicIpAddressResult.cc
src/model/AttachVolumeRequest.cc
src/model/AttachVolumeResult.cc
src/model/DescribeEipMonitorDataRequest.cc
src/model/DescribeEipMonitorDataResult.cc
src/model/CancelAutoSnapshotPolicyRequest.cc
@@ -580,6 +600,8 @@ set(ecs_src
src/model/DescribeSecurityGroupsResult.cc
src/model/ResizeDiskRequest.cc
src/model/ResizeDiskResult.cc
src/model/ResizeVolumeRequest.cc
src/model/ResizeVolumeResult.cc
src/model/CreateRouteEntryRequest.cc
src/model/CreateRouteEntryResult.cc
src/model/DescribeInvocationsRequest.cc
@@ -588,6 +610,8 @@ set(ecs_src
src/model/AttachKeyPairResult.cc
src/model/CreateRouterInterfaceRequest.cc
src/model/CreateRouterInterfaceResult.cc
src/model/ModifyVolumeAttributeRequest.cc
src/model/ModifyVolumeAttributeResult.cc
src/model/CheckDiskEnableAutoSnapshotValidationRequest.cc
src/model/CheckDiskEnableAutoSnapshotValidationResult.cc
src/model/RunInstancesRequest.cc
@@ -652,6 +676,8 @@ set(ecs_src
src/model/DescribeInstanceTypesResult.cc
src/model/DescribeSnapshotPackageRequest.cc
src/model/DescribeSnapshotPackageResult.cc
src/model/ReInitVolumeRequest.cc
src/model/ReInitVolumeResult.cc
src/model/RebootInstanceRequest.cc
src/model/RebootInstanceResult.cc
src/model/BindIpRangeRequest.cc
@@ -794,6 +820,8 @@ set(ecs_src
src/model/ResetDiskResult.cc
src/model/ModifyDiskChargeTypeRequest.cc
src/model/ModifyDiskChargeTypeResult.cc
src/model/DescribeVolumesRequest.cc
src/model/DescribeVolumesResult.cc
src/model/ModifyIntranetBandwidthKbRequest.cc
src/model/ModifyIntranetBandwidthKbResult.cc
src/model/DescribeBandwidthPackagesRequest.cc
@@ -812,6 +840,8 @@ set(ecs_src
src/model/DescribeRecommendInstanceTypeResult.cc
src/model/DescribeTagKeysRequest.cc
src/model/DescribeTagKeysResult.cc
src/model/CreateVolumeRequest.cc
src/model/CreateVolumeResult.cc
src/model/DeleteInstanceRequest.cc
src/model/DeleteInstanceResult.cc
src/model/DescribeIntranetAttributeKbRequest.cc
@@ -832,6 +862,10 @@ set(ecs_src
src/model/EnablePhysicalConnectionResult.cc
src/model/DescribeInstanceTypeFamiliesRequest.cc
src/model/DescribeInstanceTypeFamiliesResult.cc
src/model/RollbackVolumeRequest.cc
src/model/RollbackVolumeResult.cc
src/model/DeleteVolumeRequest.cc
src/model/DeleteVolumeResult.cc
src/model/CreateForwardEntryRequest.cc
src/model/CreateForwardEntryResult.cc
src/model/DescribeRouterInterfacesRequest.cc
@@ -902,6 +936,8 @@ set(ecs_src
src/model/DescribePhysicalConnectionsResult.cc
src/model/DescribeRecycleBinRequest.cc
src/model/DescribeRecycleBinResult.cc
src/model/DetachVolumeRequest.cc
src/model/DetachVolumeResult.cc
src/model/CreateNetworkInterfaceRequest.cc
src/model/CreateNetworkInterfaceResult.cc
src/model/DescribeIpRangesRequest.cc

View File

@@ -82,6 +82,8 @@
#include "model/DetachInstanceRamRoleResult.h"
#include "model/AllocatePublicIpAddressRequest.h"
#include "model/AllocatePublicIpAddressResult.h"
#include "model/AttachVolumeRequest.h"
#include "model/AttachVolumeResult.h"
#include "model/DescribeEipMonitorDataRequest.h"
#include "model/DescribeEipMonitorDataResult.h"
#include "model/CancelAutoSnapshotPolicyRequest.h"
@@ -122,6 +124,8 @@
#include "model/DescribeSecurityGroupsResult.h"
#include "model/ResizeDiskRequest.h"
#include "model/ResizeDiskResult.h"
#include "model/ResizeVolumeRequest.h"
#include "model/ResizeVolumeResult.h"
#include "model/CreateRouteEntryRequest.h"
#include "model/CreateRouteEntryResult.h"
#include "model/DescribeInvocationsRequest.h"
@@ -130,6 +134,8 @@
#include "model/AttachKeyPairResult.h"
#include "model/CreateRouterInterfaceRequest.h"
#include "model/CreateRouterInterfaceResult.h"
#include "model/ModifyVolumeAttributeRequest.h"
#include "model/ModifyVolumeAttributeResult.h"
#include "model/CheckDiskEnableAutoSnapshotValidationRequest.h"
#include "model/CheckDiskEnableAutoSnapshotValidationResult.h"
#include "model/RunInstancesRequest.h"
@@ -194,6 +200,8 @@
#include "model/DescribeInstanceTypesResult.h"
#include "model/DescribeSnapshotPackageRequest.h"
#include "model/DescribeSnapshotPackageResult.h"
#include "model/ReInitVolumeRequest.h"
#include "model/ReInitVolumeResult.h"
#include "model/RebootInstanceRequest.h"
#include "model/RebootInstanceResult.h"
#include "model/BindIpRangeRequest.h"
@@ -336,6 +344,8 @@
#include "model/ResetDiskResult.h"
#include "model/ModifyDiskChargeTypeRequest.h"
#include "model/ModifyDiskChargeTypeResult.h"
#include "model/DescribeVolumesRequest.h"
#include "model/DescribeVolumesResult.h"
#include "model/ModifyIntranetBandwidthKbRequest.h"
#include "model/ModifyIntranetBandwidthKbResult.h"
#include "model/DescribeBandwidthPackagesRequest.h"
@@ -354,6 +364,8 @@
#include "model/DescribeRecommendInstanceTypeResult.h"
#include "model/DescribeTagKeysRequest.h"
#include "model/DescribeTagKeysResult.h"
#include "model/CreateVolumeRequest.h"
#include "model/CreateVolumeResult.h"
#include "model/DeleteInstanceRequest.h"
#include "model/DeleteInstanceResult.h"
#include "model/DescribeIntranetAttributeKbRequest.h"
@@ -374,6 +386,10 @@
#include "model/EnablePhysicalConnectionResult.h"
#include "model/DescribeInstanceTypeFamiliesRequest.h"
#include "model/DescribeInstanceTypeFamiliesResult.h"
#include "model/RollbackVolumeRequest.h"
#include "model/RollbackVolumeResult.h"
#include "model/DeleteVolumeRequest.h"
#include "model/DeleteVolumeResult.h"
#include "model/CreateForwardEntryRequest.h"
#include "model/CreateForwardEntryResult.h"
#include "model/DescribeRouterInterfacesRequest.h"
@@ -444,6 +460,8 @@
#include "model/DescribePhysicalConnectionsResult.h"
#include "model/DescribeRecycleBinRequest.h"
#include "model/DescribeRecycleBinResult.h"
#include "model/DetachVolumeRequest.h"
#include "model/DetachVolumeResult.h"
#include "model/CreateNetworkInterfaceRequest.h"
#include "model/CreateNetworkInterfaceResult.h"
#include "model/DescribeIpRangesRequest.h"
@@ -577,6 +595,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::AllocatePublicIpAddressResult> AllocatePublicIpAddressOutcome;
typedef std::future<AllocatePublicIpAddressOutcome> AllocatePublicIpAddressOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::AllocatePublicIpAddressRequest&, const AllocatePublicIpAddressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AllocatePublicIpAddressAsyncHandler;
typedef Outcome<Error, Model::AttachVolumeResult> AttachVolumeOutcome;
typedef std::future<AttachVolumeOutcome> AttachVolumeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::AttachVolumeRequest&, const AttachVolumeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AttachVolumeAsyncHandler;
typedef Outcome<Error, Model::DescribeEipMonitorDataResult> DescribeEipMonitorDataOutcome;
typedef std::future<DescribeEipMonitorDataOutcome> DescribeEipMonitorDataOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeEipMonitorDataRequest&, const DescribeEipMonitorDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEipMonitorDataAsyncHandler;
@@ -637,6 +658,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ResizeDiskResult> ResizeDiskOutcome;
typedef std::future<ResizeDiskOutcome> ResizeDiskOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ResizeDiskRequest&, const ResizeDiskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResizeDiskAsyncHandler;
typedef Outcome<Error, Model::ResizeVolumeResult> ResizeVolumeOutcome;
typedef std::future<ResizeVolumeOutcome> ResizeVolumeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ResizeVolumeRequest&, const ResizeVolumeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResizeVolumeAsyncHandler;
typedef Outcome<Error, Model::CreateRouteEntryResult> CreateRouteEntryOutcome;
typedef std::future<CreateRouteEntryOutcome> CreateRouteEntryOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateRouteEntryRequest&, const CreateRouteEntryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRouteEntryAsyncHandler;
@@ -649,6 +673,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateRouterInterfaceResult> CreateRouterInterfaceOutcome;
typedef std::future<CreateRouterInterfaceOutcome> CreateRouterInterfaceOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateRouterInterfaceRequest&, const CreateRouterInterfaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRouterInterfaceAsyncHandler;
typedef Outcome<Error, Model::ModifyVolumeAttributeResult> ModifyVolumeAttributeOutcome;
typedef std::future<ModifyVolumeAttributeOutcome> ModifyVolumeAttributeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyVolumeAttributeRequest&, const ModifyVolumeAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyVolumeAttributeAsyncHandler;
typedef Outcome<Error, Model::CheckDiskEnableAutoSnapshotValidationResult> CheckDiskEnableAutoSnapshotValidationOutcome;
typedef std::future<CheckDiskEnableAutoSnapshotValidationOutcome> CheckDiskEnableAutoSnapshotValidationOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CheckDiskEnableAutoSnapshotValidationRequest&, const CheckDiskEnableAutoSnapshotValidationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckDiskEnableAutoSnapshotValidationAsyncHandler;
@@ -745,6 +772,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeSnapshotPackageResult> DescribeSnapshotPackageOutcome;
typedef std::future<DescribeSnapshotPackageOutcome> DescribeSnapshotPackageOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeSnapshotPackageRequest&, const DescribeSnapshotPackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSnapshotPackageAsyncHandler;
typedef Outcome<Error, Model::ReInitVolumeResult> ReInitVolumeOutcome;
typedef std::future<ReInitVolumeOutcome> ReInitVolumeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ReInitVolumeRequest&, const ReInitVolumeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReInitVolumeAsyncHandler;
typedef Outcome<Error, Model::RebootInstanceResult> RebootInstanceOutcome;
typedef std::future<RebootInstanceOutcome> RebootInstanceOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::RebootInstanceRequest&, const RebootInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RebootInstanceAsyncHandler;
@@ -958,6 +988,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyDiskChargeTypeResult> ModifyDiskChargeTypeOutcome;
typedef std::future<ModifyDiskChargeTypeOutcome> ModifyDiskChargeTypeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyDiskChargeTypeRequest&, const ModifyDiskChargeTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDiskChargeTypeAsyncHandler;
typedef Outcome<Error, Model::DescribeVolumesResult> DescribeVolumesOutcome;
typedef std::future<DescribeVolumesOutcome> DescribeVolumesOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeVolumesRequest&, const DescribeVolumesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVolumesAsyncHandler;
typedef Outcome<Error, Model::ModifyIntranetBandwidthKbResult> ModifyIntranetBandwidthKbOutcome;
typedef std::future<ModifyIntranetBandwidthKbOutcome> ModifyIntranetBandwidthKbOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyIntranetBandwidthKbRequest&, const ModifyIntranetBandwidthKbOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyIntranetBandwidthKbAsyncHandler;
@@ -985,6 +1018,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeTagKeysResult> DescribeTagKeysOutcome;
typedef std::future<DescribeTagKeysOutcome> DescribeTagKeysOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeTagKeysRequest&, const DescribeTagKeysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTagKeysAsyncHandler;
typedef Outcome<Error, Model::CreateVolumeResult> CreateVolumeOutcome;
typedef std::future<CreateVolumeOutcome> CreateVolumeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateVolumeRequest&, const CreateVolumeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVolumeAsyncHandler;
typedef Outcome<Error, Model::DeleteInstanceResult> DeleteInstanceOutcome;
typedef std::future<DeleteInstanceOutcome> DeleteInstanceOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DeleteInstanceRequest&, const DeleteInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteInstanceAsyncHandler;
@@ -1015,6 +1051,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeInstanceTypeFamiliesResult> DescribeInstanceTypeFamiliesOutcome;
typedef std::future<DescribeInstanceTypeFamiliesOutcome> DescribeInstanceTypeFamiliesOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeInstanceTypeFamiliesRequest&, const DescribeInstanceTypeFamiliesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceTypeFamiliesAsyncHandler;
typedef Outcome<Error, Model::RollbackVolumeResult> RollbackVolumeOutcome;
typedef std::future<RollbackVolumeOutcome> RollbackVolumeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::RollbackVolumeRequest&, const RollbackVolumeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RollbackVolumeAsyncHandler;
typedef Outcome<Error, Model::DeleteVolumeResult> DeleteVolumeOutcome;
typedef std::future<DeleteVolumeOutcome> DeleteVolumeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DeleteVolumeRequest&, const DeleteVolumeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteVolumeAsyncHandler;
typedef Outcome<Error, Model::CreateForwardEntryResult> CreateForwardEntryOutcome;
typedef std::future<CreateForwardEntryOutcome> CreateForwardEntryOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateForwardEntryRequest&, const CreateForwardEntryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateForwardEntryAsyncHandler;
@@ -1120,6 +1162,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeRecycleBinResult> DescribeRecycleBinOutcome;
typedef std::future<DescribeRecycleBinOutcome> DescribeRecycleBinOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeRecycleBinRequest&, const DescribeRecycleBinOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRecycleBinAsyncHandler;
typedef Outcome<Error, Model::DetachVolumeResult> DetachVolumeOutcome;
typedef std::future<DetachVolumeOutcome> DetachVolumeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DetachVolumeRequest&, const DetachVolumeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachVolumeAsyncHandler;
typedef Outcome<Error, Model::CreateNetworkInterfaceResult> CreateNetworkInterfaceOutcome;
typedef std::future<CreateNetworkInterfaceOutcome> CreateNetworkInterfaceOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateNetworkInterfaceRequest&, const CreateNetworkInterfaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateNetworkInterfaceAsyncHandler;
@@ -1266,6 +1311,9 @@ namespace AlibabaCloud
AllocatePublicIpAddressOutcome allocatePublicIpAddress(const Model::AllocatePublicIpAddressRequest &request)const;
void allocatePublicIpAddressAsync(const Model::AllocatePublicIpAddressRequest& request, const AllocatePublicIpAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AllocatePublicIpAddressOutcomeCallable allocatePublicIpAddressCallable(const Model::AllocatePublicIpAddressRequest& request) const;
AttachVolumeOutcome attachVolume(const Model::AttachVolumeRequest &request)const;
void attachVolumeAsync(const Model::AttachVolumeRequest& request, const AttachVolumeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AttachVolumeOutcomeCallable attachVolumeCallable(const Model::AttachVolumeRequest& request) const;
DescribeEipMonitorDataOutcome describeEipMonitorData(const Model::DescribeEipMonitorDataRequest &request)const;
void describeEipMonitorDataAsync(const Model::DescribeEipMonitorDataRequest& request, const DescribeEipMonitorDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeEipMonitorDataOutcomeCallable describeEipMonitorDataCallable(const Model::DescribeEipMonitorDataRequest& request) const;
@@ -1326,6 +1374,9 @@ namespace AlibabaCloud
ResizeDiskOutcome resizeDisk(const Model::ResizeDiskRequest &request)const;
void resizeDiskAsync(const Model::ResizeDiskRequest& request, const ResizeDiskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ResizeDiskOutcomeCallable resizeDiskCallable(const Model::ResizeDiskRequest& request) const;
ResizeVolumeOutcome resizeVolume(const Model::ResizeVolumeRequest &request)const;
void resizeVolumeAsync(const Model::ResizeVolumeRequest& request, const ResizeVolumeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ResizeVolumeOutcomeCallable resizeVolumeCallable(const Model::ResizeVolumeRequest& request) const;
CreateRouteEntryOutcome createRouteEntry(const Model::CreateRouteEntryRequest &request)const;
void createRouteEntryAsync(const Model::CreateRouteEntryRequest& request, const CreateRouteEntryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateRouteEntryOutcomeCallable createRouteEntryCallable(const Model::CreateRouteEntryRequest& request) const;
@@ -1338,6 +1389,9 @@ namespace AlibabaCloud
CreateRouterInterfaceOutcome createRouterInterface(const Model::CreateRouterInterfaceRequest &request)const;
void createRouterInterfaceAsync(const Model::CreateRouterInterfaceRequest& request, const CreateRouterInterfaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateRouterInterfaceOutcomeCallable createRouterInterfaceCallable(const Model::CreateRouterInterfaceRequest& request) const;
ModifyVolumeAttributeOutcome modifyVolumeAttribute(const Model::ModifyVolumeAttributeRequest &request)const;
void modifyVolumeAttributeAsync(const Model::ModifyVolumeAttributeRequest& request, const ModifyVolumeAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyVolumeAttributeOutcomeCallable modifyVolumeAttributeCallable(const Model::ModifyVolumeAttributeRequest& request) const;
CheckDiskEnableAutoSnapshotValidationOutcome checkDiskEnableAutoSnapshotValidation(const Model::CheckDiskEnableAutoSnapshotValidationRequest &request)const;
void checkDiskEnableAutoSnapshotValidationAsync(const Model::CheckDiskEnableAutoSnapshotValidationRequest& request, const CheckDiskEnableAutoSnapshotValidationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CheckDiskEnableAutoSnapshotValidationOutcomeCallable checkDiskEnableAutoSnapshotValidationCallable(const Model::CheckDiskEnableAutoSnapshotValidationRequest& request) const;
@@ -1434,6 +1488,9 @@ namespace AlibabaCloud
DescribeSnapshotPackageOutcome describeSnapshotPackage(const Model::DescribeSnapshotPackageRequest &request)const;
void describeSnapshotPackageAsync(const Model::DescribeSnapshotPackageRequest& request, const DescribeSnapshotPackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSnapshotPackageOutcomeCallable describeSnapshotPackageCallable(const Model::DescribeSnapshotPackageRequest& request) const;
ReInitVolumeOutcome reInitVolume(const Model::ReInitVolumeRequest &request)const;
void reInitVolumeAsync(const Model::ReInitVolumeRequest& request, const ReInitVolumeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ReInitVolumeOutcomeCallable reInitVolumeCallable(const Model::ReInitVolumeRequest& request) const;
RebootInstanceOutcome rebootInstance(const Model::RebootInstanceRequest &request)const;
void rebootInstanceAsync(const Model::RebootInstanceRequest& request, const RebootInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RebootInstanceOutcomeCallable rebootInstanceCallable(const Model::RebootInstanceRequest& request) const;
@@ -1647,6 +1704,9 @@ namespace AlibabaCloud
ModifyDiskChargeTypeOutcome modifyDiskChargeType(const Model::ModifyDiskChargeTypeRequest &request)const;
void modifyDiskChargeTypeAsync(const Model::ModifyDiskChargeTypeRequest& request, const ModifyDiskChargeTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDiskChargeTypeOutcomeCallable modifyDiskChargeTypeCallable(const Model::ModifyDiskChargeTypeRequest& request) const;
DescribeVolumesOutcome describeVolumes(const Model::DescribeVolumesRequest &request)const;
void describeVolumesAsync(const Model::DescribeVolumesRequest& request, const DescribeVolumesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeVolumesOutcomeCallable describeVolumesCallable(const Model::DescribeVolumesRequest& request) const;
ModifyIntranetBandwidthKbOutcome modifyIntranetBandwidthKb(const Model::ModifyIntranetBandwidthKbRequest &request)const;
void modifyIntranetBandwidthKbAsync(const Model::ModifyIntranetBandwidthKbRequest& request, const ModifyIntranetBandwidthKbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyIntranetBandwidthKbOutcomeCallable modifyIntranetBandwidthKbCallable(const Model::ModifyIntranetBandwidthKbRequest& request) const;
@@ -1674,6 +1734,9 @@ namespace AlibabaCloud
DescribeTagKeysOutcome describeTagKeys(const Model::DescribeTagKeysRequest &request)const;
void describeTagKeysAsync(const Model::DescribeTagKeysRequest& request, const DescribeTagKeysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeTagKeysOutcomeCallable describeTagKeysCallable(const Model::DescribeTagKeysRequest& request) const;
CreateVolumeOutcome createVolume(const Model::CreateVolumeRequest &request)const;
void createVolumeAsync(const Model::CreateVolumeRequest& request, const CreateVolumeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateVolumeOutcomeCallable createVolumeCallable(const Model::CreateVolumeRequest& request) const;
DeleteInstanceOutcome deleteInstance(const Model::DeleteInstanceRequest &request)const;
void deleteInstanceAsync(const Model::DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteInstanceOutcomeCallable deleteInstanceCallable(const Model::DeleteInstanceRequest& request) const;
@@ -1704,6 +1767,12 @@ namespace AlibabaCloud
DescribeInstanceTypeFamiliesOutcome describeInstanceTypeFamilies(const Model::DescribeInstanceTypeFamiliesRequest &request)const;
void describeInstanceTypeFamiliesAsync(const Model::DescribeInstanceTypeFamiliesRequest& request, const DescribeInstanceTypeFamiliesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeInstanceTypeFamiliesOutcomeCallable describeInstanceTypeFamiliesCallable(const Model::DescribeInstanceTypeFamiliesRequest& request) const;
RollbackVolumeOutcome rollbackVolume(const Model::RollbackVolumeRequest &request)const;
void rollbackVolumeAsync(const Model::RollbackVolumeRequest& request, const RollbackVolumeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RollbackVolumeOutcomeCallable rollbackVolumeCallable(const Model::RollbackVolumeRequest& request) const;
DeleteVolumeOutcome deleteVolume(const Model::DeleteVolumeRequest &request)const;
void deleteVolumeAsync(const Model::DeleteVolumeRequest& request, const DeleteVolumeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteVolumeOutcomeCallable deleteVolumeCallable(const Model::DeleteVolumeRequest& request) const;
CreateForwardEntryOutcome createForwardEntry(const Model::CreateForwardEntryRequest &request)const;
void createForwardEntryAsync(const Model::CreateForwardEntryRequest& request, const CreateForwardEntryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateForwardEntryOutcomeCallable createForwardEntryCallable(const Model::CreateForwardEntryRequest& request) const;
@@ -1809,6 +1878,9 @@ namespace AlibabaCloud
DescribeRecycleBinOutcome describeRecycleBin(const Model::DescribeRecycleBinRequest &request)const;
void describeRecycleBinAsync(const Model::DescribeRecycleBinRequest& request, const DescribeRecycleBinAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeRecycleBinOutcomeCallable describeRecycleBinCallable(const Model::DescribeRecycleBinRequest& request) const;
DetachVolumeOutcome detachVolume(const Model::DetachVolumeRequest &request)const;
void detachVolumeAsync(const Model::DetachVolumeRequest& request, const DetachVolumeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetachVolumeOutcomeCallable detachVolumeCallable(const Model::DetachVolumeRequest& request) const;
CreateNetworkInterfaceOutcome createNetworkInterface(const Model::CreateNetworkInterfaceRequest &request)const;
void createNetworkInterfaceAsync(const Model::CreateNetworkInterfaceRequest& request, const CreateNetworkInterfaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateNetworkInterfaceOutcomeCallable createNetworkInterfaceCallable(const Model::CreateNetworkInterfaceRequest& request) const;

View File

@@ -0,0 +1,66 @@
/*
* 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_ATTACHVOLUMEREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_ATTACHVOLUMEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT AttachVolumeRequest : public RpcServiceRequest
{
public:
AttachVolumeRequest();
~AttachVolumeRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getVolumeId()const;
void setVolumeId(const std::string& volumeId);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
long resourceOwnerId_;
std::string instanceId_;
std::string resourceOwnerAccount_;
std::string regionId_;
std::string ownerAccount_;
std::string volumeId_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHVOLUMEREQUEST_H_

View File

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

View File

@@ -47,26 +47,36 @@ namespace AlibabaCloud
void setRole(const std::string& role);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getHealthCheckTargetIp()const;
void setHealthCheckTargetIp(const std::string& healthCheckTargetIp);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getSpec()const;
void setSpec(const std::string& spec);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getUserCidr()const;
void setUserCidr(const std::string& userCidr);
std::string getOppositeInterfaceId()const;
void setOppositeInterfaceId(const std::string& oppositeInterfaceId);
std::string getInstanceChargeType()const;
void setInstanceChargeType(const std::string& instanceChargeType);
int getPeriod()const;
void setPeriod(int period);
bool getAutoPay()const;
void setAutoPay(bool autoPay);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOppositeRegionId()const;
void setOppositeRegionId(const std::string& oppositeRegionId);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getHealthCheckTargetIp()const;
void setHealthCheckTargetIp(const std::string& healthCheckTargetIp);
std::string getDescription()const;
void setDescription(const std::string& description);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getSpec()const;
void setSpec(const std::string& spec);
std::string getOppositeInterfaceOwnerId()const;
void setOppositeInterfaceOwnerId(const std::string& oppositeInterfaceOwnerId);
std::string getRouterType()const;
void setRouterType(const std::string& routerType);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getHealthCheckSourceIp()const;
void setHealthCheckSourceIp(const std::string& healthCheckSourceIp);
std::string getRouterId()const;
@@ -75,10 +85,8 @@ namespace AlibabaCloud
void setOppositeRouterType(const std::string& oppositeRouterType);
std::string getName()const;
void setName(const std::string& name);
std::string getUserCidr()const;
void setUserCidr(const std::string& userCidr);
std::string getOppositeInterfaceId()const;
void setOppositeInterfaceId(const std::string& oppositeInterfaceId);
std::string getPricingCycle()const;
void setPricingCycle(const std::string& pricingCycle);
private:
std::string accessPointId_;
@@ -87,22 +95,26 @@ namespace AlibabaCloud
long resourceOwnerId_;
std::string role_;
std::string clientToken_;
std::string healthCheckTargetIp_;
std::string description_;
std::string spec_;
std::string regionId_;
std::string userCidr_;
std::string oppositeInterfaceId_;
std::string instanceChargeType_;
int period_;
bool autoPay_;
std::string resourceOwnerAccount_;
std::string oppositeRegionId_;
std::string ownerAccount_;
std::string healthCheckTargetIp_;
std::string description_;
long ownerId_;
std::string spec_;
std::string oppositeInterfaceOwnerId_;
std::string routerType_;
std::string regionId_;
std::string healthCheckSourceIp_;
std::string routerId_;
std::string oppositeRouterType_;
std::string name_;
std::string userCidr_;
std::string oppositeInterfaceId_;
std::string pricingCycle_;
};
}

View File

@@ -37,11 +37,13 @@ namespace AlibabaCloud
CreateRouterInterfaceResult();
explicit CreateRouterInterfaceResult(const std::string &payload);
~CreateRouterInterfaceResult();
long getOrderId()const;
std::string getRouterInterfaceId()const;
protected:
void parse(const std::string &payload);
private:
long orderId_;
std::string routerInterfaceId_;
};

View File

@@ -0,0 +1,114 @@
/*
* 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_CREATEVOLUMEREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_CREATEVOLUMEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT CreateVolumeRequest : public RpcServiceRequest
{
public:
CreateVolumeRequest();
~CreateVolumeRequest();
std::string getTag4Value()const;
void setTag4Value(const std::string& tag4Value);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getSnapshotId()const;
void setSnapshotId(const std::string& snapshotId);
std::string getTag2Key()const;
void setTag2Key(const std::string& tag2Key);
std::string getVolumeName()const;
void setVolumeName(const std::string& volumeName);
bool getVolumeEncrypted()const;
void setVolumeEncrypted(bool volumeEncrypted);
std::string getTag5Key()const;
void setTag5Key(const std::string& tag5Key);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getTag3Key()const;
void setTag3Key(const std::string& tag3Key);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getTag5Value()const;
void setTag5Value(const std::string& tag5Value);
std::string getTag1Key()const;
void setTag1Key(const std::string& tag1Key);
std::string getTag1Value()const;
void setTag1Value(const std::string& tag1Value);
std::string getVolumeCategory()const;
void setVolumeCategory(const std::string& volumeCategory);
int getSize()const;
void setSize(int size);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getTag2Value()const;
void setTag2Value(const std::string& tag2Value);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
std::string getTag4Key()const;
void setTag4Key(const std::string& tag4Key);
std::string getTag3Value()const;
void setTag3Value(const std::string& tag3Value);
private:
std::string tag4Value_;
long resourceOwnerId_;
std::string snapshotId_;
std::string tag2Key_;
std::string volumeName_;
bool volumeEncrypted_;
std::string tag5Key_;
std::string resourceOwnerAccount_;
std::string clientToken_;
std::string ownerAccount_;
std::string description_;
std::string tag3Key_;
long ownerId_;
std::string tag5Value_;
std::string tag1Key_;
std::string tag1Value_;
std::string volumeCategory_;
int size_;
std::string regionId_;
std::string tag2Value_;
std::string zoneId_;
std::string tag4Key_;
std::string tag3Value_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEVOLUMEREQUEST_H_

View File

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

View File

@@ -0,0 +1,63 @@
/*
* 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_DELETEVOLUMEREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DELETEVOLUMEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT DeleteVolumeRequest : public RpcServiceRequest
{
public:
DeleteVolumeRequest();
~DeleteVolumeRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getVolumeId()const;
void setVolumeId(const std::string& volumeId);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
std::string regionId_;
std::string ownerAccount_;
std::string volumeId_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DELETEVOLUMEREQUEST_H_

View File

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

View File

@@ -35,9 +35,11 @@ namespace AlibabaCloud
struct InstanceType
{
float memorySize;
long instancePpsTx;
int cpuCoreCount;
long localStorageCapacity;
std::string instanceTypeFamily;
long instancePpsRx;
int initialCredit;
int eniQuantity;
int instanceBandwidthRx;

View File

@@ -0,0 +1,123 @@
/*
* 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_DESCRIBEVOLUMESREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVOLUMESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT DescribeVolumesRequest : public RpcServiceRequest
{
public:
DescribeVolumesRequest();
~DescribeVolumesRequest();
std::string getTag4Value()const;
void setTag4Value(const std::string& tag4Value);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getSnapshotId()const;
void setSnapshotId(const std::string& snapshotId);
std::string getTag2Key()const;
void setTag2Key(const std::string& tag2Key);
std::string getAutoSnapshotPolicyId()const;
void setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId);
std::string getTag3Key()const;
void setTag3Key(const std::string& tag3Key);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getTag1Value()const;
void setTag1Value(const std::string& tag1Value);
std::string getLockReason()const;
void setLockReason(const std::string& lockReason);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getTag3Value()const;
void setTag3Value(const std::string& tag3Value);
std::string getTag5Key()const;
void setTag5Key(const std::string& tag5Key);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
bool getEnableAutomatedSnapshotPolicy()const;
void setEnableAutomatedSnapshotPolicy(bool enableAutomatedSnapshotPolicy);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getTag5Value()const;
void setTag5Value(const std::string& tag5Value);
std::string getTag1Key()const;
void setTag1Key(const std::string& tag1Key);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getTag2Value()const;
void setTag2Value(const std::string& tag2Value);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
std::string getTag4Key()const;
void setTag4Key(const std::string& tag4Key);
std::string getVolumeIds()const;
void setVolumeIds(const std::string& volumeIds);
std::string getCategory()const;
void setCategory(const std::string& category);
std::string getStatus()const;
void setStatus(const std::string& status);
private:
std::string tag4Value_;
long resourceOwnerId_;
std::string snapshotId_;
std::string tag2Key_;
std::string autoSnapshotPolicyId_;
std::string tag3Key_;
int pageNumber_;
std::string tag1Value_;
std::string lockReason_;
std::string regionId_;
int pageSize_;
std::string tag3Value_;
std::string tag5Key_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
bool enableAutomatedSnapshotPolicy_;
long ownerId_;
std::string tag5Value_;
std::string tag1Key_;
std::string instanceId_;
std::string tag2Value_;
std::string zoneId_;
std::string tag4Key_;
std::string volumeIds_;
std::string category_;
std::string status_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVOLUMESREQUEST_H_

View File

@@ -0,0 +1,94 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVOLUMESRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVOLUMESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT DescribeVolumesResult : public ServiceResult
{
public:
struct Volume
{
struct OperationLock
{
std::string lockReason;
};
struct MountInstance
{
std::string attachedTime;
std::string instanceId;
std::string device;
};
struct Tag
{
std::string tagKey;
std::string tagValue;
};
std::string status;
std::string volumeName;
std::string description;
std::string category;
std::string zoneId;
std::string sourceSnapshotId;
std::string volumeChargeType;
int size;
bool encrypted;
std::string snapshotLinkId;
bool enableAutomatedSnapshotPolicy;
std::string autoSnapshotPolicyId;
std::vector<Volume::OperationLock> operationLocks;
std::string volumeId;
int mountInstanceNum;
std::vector<Volume::MountInstance> mountInstances;
std::string creationTime;
std::string regionId;
std::vector<Volume::Tag> tags;
};
DescribeVolumesResult();
explicit DescribeVolumesResult(const std::string &payload);
~DescribeVolumesResult();
int getTotalCount()const;
std::vector<Volume> getVolumes()const;
int getPageSize()const;
int getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
std::vector<Volume> volumes_;
int pageSize_;
int pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVOLUMESRESULT_H_

View File

@@ -0,0 +1,66 @@
/*
* 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_DETACHVOLUMEREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DETACHVOLUMEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT DetachVolumeRequest : public RpcServiceRequest
{
public:
DetachVolumeRequest();
~DetachVolumeRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getVolumeId()const;
void setVolumeId(const std::string& volumeId);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
long resourceOwnerId_;
std::string instanceId_;
std::string resourceOwnerAccount_;
std::string regionId_;
std::string ownerAccount_;
std::string volumeId_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DETACHVOLUMEREQUEST_H_

View File

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

View File

@@ -39,6 +39,8 @@ namespace AlibabaCloud
void setDuration(int duration);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getPeriodUnit()const;
void setPeriodUnit(const std::string& periodUnit);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
bool getAutoRenew()const;
@@ -57,6 +59,7 @@ namespace AlibabaCloud
private:
int duration_;
long resourceOwnerId_;
std::string periodUnit_;
std::string instanceId_;
bool autoRenew_;
std::string resourceOwnerAccount_;

View File

@@ -37,36 +37,42 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
bool getAutoPay()const;
void setAutoPay(bool autoPay);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getInstanceType()const;
void setInstanceType(const std::string& instanceType);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getOperatorType()const;
void setOperatorType(const std::string& operatorType);
std::string getSystemDiskCategory()const;
void setSystemDiskCategory(const std::string& systemDiskCategory);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
bool getMigrateAcrossZone()const;
void setMigrateAcrossZone(bool migrateAcrossZone);
std::string getInstanceType()const;
void setInstanceType(const std::string& instanceType);
private:
long resourceOwnerId_;
std::string instanceId_;
bool autoPay_;
std::string resourceOwnerAccount_;
std::string regionId_;
std::string clientToken_;
std::string ownerAccount_;
std::string instanceType_;
long ownerId_;
std::string operatorType_;
std::string systemDiskCategory_;
std::string instanceId_;
std::string regionId_;
bool migrateAcrossZone_;
std::string instanceType_;
};
}

View File

@@ -0,0 +1,69 @@
/*
* 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_MODIFYVOLUMEATTRIBUTEREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_MODIFYVOLUMEATTRIBUTEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT ModifyVolumeAttributeRequest : public RpcServiceRequest
{
public:
ModifyVolumeAttributeRequest();
~ModifyVolumeAttributeRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getVolumeName()const;
void setVolumeName(const std::string& volumeName);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getVolumeId()const;
void setVolumeId(const std::string& volumeId);
std::string getDescription()const;
void setDescription(const std::string& description);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
long resourceOwnerId_;
std::string volumeName_;
std::string resourceOwnerAccount_;
std::string regionId_;
std::string ownerAccount_;
std::string volumeId_;
std::string description_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVOLUMEATTRIBUTEREQUEST_H_

View File

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

View File

@@ -0,0 +1,66 @@
/*
* 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_REINITVOLUMEREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_REINITVOLUMEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT ReInitVolumeRequest : public RpcServiceRequest
{
public:
ReInitVolumeRequest();
~ReInitVolumeRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getPassword()const;
void setPassword(const std::string& password);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getVolumeId()const;
void setVolumeId(const std::string& volumeId);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
long resourceOwnerId_;
std::string password_;
std::string resourceOwnerAccount_;
std::string regionId_;
std::string ownerAccount_;
std::string volumeId_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_REINITVOLUMEREQUEST_H_

View File

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

View File

@@ -0,0 +1,69 @@
/*
* 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_RESIZEVOLUMEREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_RESIZEVOLUMEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT ResizeVolumeRequest : public RpcServiceRequest
{
public:
ResizeVolumeRequest();
~ResizeVolumeRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getVolumeId()const;
void setVolumeId(const std::string& volumeId);
int getNewSize()const;
void setNewSize(int newSize);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
std::string regionId_;
std::string clientToken_;
std::string ownerAccount_;
std::string volumeId_;
int newSize_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_RESIZEVOLUMEREQUEST_H_

View File

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

View File

@@ -0,0 +1,66 @@
/*
* 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_ROLLBACKVOLUMEREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_ROLLBACKVOLUMEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT RollbackVolumeRequest : public RpcServiceRequest
{
public:
RollbackVolumeRequest();
~RollbackVolumeRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getSnapshotId()const;
void setSnapshotId(const std::string& snapshotId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getVolumeId()const;
void setVolumeId(const std::string& volumeId);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
long resourceOwnerId_;
std::string snapshotId_;
std::string resourceOwnerAccount_;
std::string regionId_;
std::string ownerAccount_;
std::string volumeId_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_ROLLBACKVOLUMEREQUEST_H_

View File

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

View File

@@ -1131,6 +1131,42 @@ EcsClient::AllocatePublicIpAddressOutcomeCallable EcsClient::allocatePublicIpAdd
return task->get_future();
}
EcsClient::AttachVolumeOutcome EcsClient::attachVolume(const AttachVolumeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AttachVolumeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AttachVolumeOutcome(AttachVolumeResult(outcome.result()));
else
return AttachVolumeOutcome(outcome.error());
}
void EcsClient::attachVolumeAsync(const AttachVolumeRequest& request, const AttachVolumeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, attachVolume(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::AttachVolumeOutcomeCallable EcsClient::attachVolumeCallable(const AttachVolumeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AttachVolumeOutcome()>>(
[this, request]()
{
return this->attachVolume(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::DescribeEipMonitorDataOutcome EcsClient::describeEipMonitorData(const DescribeEipMonitorDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1851,6 +1887,42 @@ EcsClient::ResizeDiskOutcomeCallable EcsClient::resizeDiskCallable(const ResizeD
return task->get_future();
}
EcsClient::ResizeVolumeOutcome EcsClient::resizeVolume(const ResizeVolumeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ResizeVolumeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ResizeVolumeOutcome(ResizeVolumeResult(outcome.result()));
else
return ResizeVolumeOutcome(outcome.error());
}
void EcsClient::resizeVolumeAsync(const ResizeVolumeRequest& request, const ResizeVolumeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, resizeVolume(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::ResizeVolumeOutcomeCallable EcsClient::resizeVolumeCallable(const ResizeVolumeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ResizeVolumeOutcome()>>(
[this, request]()
{
return this->resizeVolume(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::CreateRouteEntryOutcome EcsClient::createRouteEntry(const CreateRouteEntryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1995,6 +2067,42 @@ EcsClient::CreateRouterInterfaceOutcomeCallable EcsClient::createRouterInterface
return task->get_future();
}
EcsClient::ModifyVolumeAttributeOutcome EcsClient::modifyVolumeAttribute(const ModifyVolumeAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyVolumeAttributeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyVolumeAttributeOutcome(ModifyVolumeAttributeResult(outcome.result()));
else
return ModifyVolumeAttributeOutcome(outcome.error());
}
void EcsClient::modifyVolumeAttributeAsync(const ModifyVolumeAttributeRequest& request, const ModifyVolumeAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyVolumeAttribute(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::ModifyVolumeAttributeOutcomeCallable EcsClient::modifyVolumeAttributeCallable(const ModifyVolumeAttributeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyVolumeAttributeOutcome()>>(
[this, request]()
{
return this->modifyVolumeAttribute(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::CheckDiskEnableAutoSnapshotValidationOutcome EcsClient::checkDiskEnableAutoSnapshotValidation(const CheckDiskEnableAutoSnapshotValidationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3147,6 +3255,42 @@ EcsClient::DescribeSnapshotPackageOutcomeCallable EcsClient::describeSnapshotPac
return task->get_future();
}
EcsClient::ReInitVolumeOutcome EcsClient::reInitVolume(const ReInitVolumeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ReInitVolumeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ReInitVolumeOutcome(ReInitVolumeResult(outcome.result()));
else
return ReInitVolumeOutcome(outcome.error());
}
void EcsClient::reInitVolumeAsync(const ReInitVolumeRequest& request, const ReInitVolumeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, reInitVolume(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::ReInitVolumeOutcomeCallable EcsClient::reInitVolumeCallable(const ReInitVolumeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ReInitVolumeOutcome()>>(
[this, request]()
{
return this->reInitVolume(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::RebootInstanceOutcome EcsClient::rebootInstance(const RebootInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5703,6 +5847,42 @@ EcsClient::ModifyDiskChargeTypeOutcomeCallable EcsClient::modifyDiskChargeTypeCa
return task->get_future();
}
EcsClient::DescribeVolumesOutcome EcsClient::describeVolumes(const DescribeVolumesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeVolumesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeVolumesOutcome(DescribeVolumesResult(outcome.result()));
else
return DescribeVolumesOutcome(outcome.error());
}
void EcsClient::describeVolumesAsync(const DescribeVolumesRequest& request, const DescribeVolumesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeVolumes(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::DescribeVolumesOutcomeCallable EcsClient::describeVolumesCallable(const DescribeVolumesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeVolumesOutcome()>>(
[this, request]()
{
return this->describeVolumes(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::ModifyIntranetBandwidthKbOutcome EcsClient::modifyIntranetBandwidthKb(const ModifyIntranetBandwidthKbRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6027,6 +6207,42 @@ EcsClient::DescribeTagKeysOutcomeCallable EcsClient::describeTagKeysCallable(con
return task->get_future();
}
EcsClient::CreateVolumeOutcome EcsClient::createVolume(const CreateVolumeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateVolumeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateVolumeOutcome(CreateVolumeResult(outcome.result()));
else
return CreateVolumeOutcome(outcome.error());
}
void EcsClient::createVolumeAsync(const CreateVolumeRequest& request, const CreateVolumeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createVolume(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::CreateVolumeOutcomeCallable EcsClient::createVolumeCallable(const CreateVolumeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateVolumeOutcome()>>(
[this, request]()
{
return this->createVolume(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::DeleteInstanceOutcome EcsClient::deleteInstance(const DeleteInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6387,6 +6603,78 @@ EcsClient::DescribeInstanceTypeFamiliesOutcomeCallable EcsClient::describeInstan
return task->get_future();
}
EcsClient::RollbackVolumeOutcome EcsClient::rollbackVolume(const RollbackVolumeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RollbackVolumeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RollbackVolumeOutcome(RollbackVolumeResult(outcome.result()));
else
return RollbackVolumeOutcome(outcome.error());
}
void EcsClient::rollbackVolumeAsync(const RollbackVolumeRequest& request, const RollbackVolumeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, rollbackVolume(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::RollbackVolumeOutcomeCallable EcsClient::rollbackVolumeCallable(const RollbackVolumeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RollbackVolumeOutcome()>>(
[this, request]()
{
return this->rollbackVolume(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::DeleteVolumeOutcome EcsClient::deleteVolume(const DeleteVolumeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteVolumeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteVolumeOutcome(DeleteVolumeResult(outcome.result()));
else
return DeleteVolumeOutcome(outcome.error());
}
void EcsClient::deleteVolumeAsync(const DeleteVolumeRequest& request, const DeleteVolumeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteVolume(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::DeleteVolumeOutcomeCallable EcsClient::deleteVolumeCallable(const DeleteVolumeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteVolumeOutcome()>>(
[this, request]()
{
return this->deleteVolume(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::CreateForwardEntryOutcome EcsClient::createForwardEntry(const CreateForwardEntryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -7647,6 +7935,42 @@ EcsClient::DescribeRecycleBinOutcomeCallable EcsClient::describeRecycleBinCallab
return task->get_future();
}
EcsClient::DetachVolumeOutcome EcsClient::detachVolume(const DetachVolumeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DetachVolumeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DetachVolumeOutcome(DetachVolumeResult(outcome.result()));
else
return DetachVolumeOutcome(outcome.error());
}
void EcsClient::detachVolumeAsync(const DetachVolumeRequest& request, const DetachVolumeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, detachVolume(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::DetachVolumeOutcomeCallable EcsClient::detachVolumeCallable(const DetachVolumeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DetachVolumeOutcome()>>(
[this, request]()
{
return this->detachVolume(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::CreateNetworkInterfaceOutcome EcsClient::createNetworkInterface(const CreateNetworkInterfaceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ecs/model/AttachVolumeRequest.h>
using AlibabaCloud::Ecs::Model::AttachVolumeRequest;
AttachVolumeRequest::AttachVolumeRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachVolume")
{}
AttachVolumeRequest::~AttachVolumeRequest()
{}
long AttachVolumeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AttachVolumeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AttachVolumeRequest::getInstanceId()const
{
return instanceId_;
}
void AttachVolumeRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AttachVolumeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AttachVolumeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AttachVolumeRequest::getRegionId()const
{
return regionId_;
}
void AttachVolumeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AttachVolumeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AttachVolumeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AttachVolumeRequest::getVolumeId()const
{
return volumeId_;
}
void AttachVolumeRequest::setVolumeId(const std::string& volumeId)
{
volumeId_ = volumeId;
setParameter("VolumeId", volumeId);
}
long AttachVolumeRequest::getOwnerId()const
{
return ownerId_;
}
void AttachVolumeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -91,6 +91,105 @@ void CreateRouterInterfaceRequest::setClientToken(const std::string& clientToken
setParameter("ClientToken", clientToken);
}
std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp()const
{
return healthCheckTargetIp_;
}
void CreateRouterInterfaceRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp)
{
healthCheckTargetIp_ = healthCheckTargetIp;
setParameter("HealthCheckTargetIp", healthCheckTargetIp);
}
std::string CreateRouterInterfaceRequest::getDescription()const
{
return description_;
}
void CreateRouterInterfaceRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateRouterInterfaceRequest::getSpec()const
{
return spec_;
}
void CreateRouterInterfaceRequest::setSpec(const std::string& spec)
{
spec_ = spec;
setParameter("Spec", spec);
}
std::string CreateRouterInterfaceRequest::getRegionId()const
{
return regionId_;
}
void CreateRouterInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateRouterInterfaceRequest::getUserCidr()const
{
return userCidr_;
}
void CreateRouterInterfaceRequest::setUserCidr(const std::string& userCidr)
{
userCidr_ = userCidr;
setParameter("UserCidr", userCidr);
}
std::string CreateRouterInterfaceRequest::getOppositeInterfaceId()const
{
return oppositeInterfaceId_;
}
void CreateRouterInterfaceRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId)
{
oppositeInterfaceId_ = oppositeInterfaceId;
setParameter("OppositeInterfaceId", oppositeInterfaceId);
}
std::string CreateRouterInterfaceRequest::getInstanceChargeType()const
{
return instanceChargeType_;
}
void CreateRouterInterfaceRequest::setInstanceChargeType(const std::string& instanceChargeType)
{
instanceChargeType_ = instanceChargeType;
setParameter("InstanceChargeType", instanceChargeType);
}
int CreateRouterInterfaceRequest::getPeriod()const
{
return period_;
}
void CreateRouterInterfaceRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
}
bool CreateRouterInterfaceRequest::getAutoPay()const
{
return autoPay_;
}
void CreateRouterInterfaceRequest::setAutoPay(bool autoPay)
{
autoPay_ = autoPay;
setParameter("AutoPay", std::to_string(autoPay));
}
std::string CreateRouterInterfaceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
@@ -124,28 +223,6 @@ void CreateRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccou
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp()const
{
return healthCheckTargetIp_;
}
void CreateRouterInterfaceRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp)
{
healthCheckTargetIp_ = healthCheckTargetIp;
setParameter("HealthCheckTargetIp", healthCheckTargetIp);
}
std::string CreateRouterInterfaceRequest::getDescription()const
{
return description_;
}
void CreateRouterInterfaceRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long CreateRouterInterfaceRequest::getOwnerId()const
{
return ownerId_;
@@ -157,17 +234,6 @@ void CreateRouterInterfaceRequest::setOwnerId(long ownerId)
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateRouterInterfaceRequest::getSpec()const
{
return spec_;
}
void CreateRouterInterfaceRequest::setSpec(const std::string& spec)
{
spec_ = spec;
setParameter("Spec", spec);
}
std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId()const
{
return oppositeInterfaceOwnerId_;
@@ -190,17 +256,6 @@ void CreateRouterInterfaceRequest::setRouterType(const std::string& routerType)
setParameter("RouterType", routerType);
}
std::string CreateRouterInterfaceRequest::getRegionId()const
{
return regionId_;
}
void CreateRouterInterfaceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateRouterInterfaceRequest::getHealthCheckSourceIp()const
{
return healthCheckSourceIp_;
@@ -245,25 +300,14 @@ void CreateRouterInterfaceRequest::setName(const std::string& name)
setParameter("Name", name);
}
std::string CreateRouterInterfaceRequest::getUserCidr()const
std::string CreateRouterInterfaceRequest::getPricingCycle()const
{
return userCidr_;
return pricingCycle_;
}
void CreateRouterInterfaceRequest::setUserCidr(const std::string& userCidr)
void CreateRouterInterfaceRequest::setPricingCycle(const std::string& pricingCycle)
{
userCidr_ = userCidr;
setParameter("UserCidr", userCidr);
}
std::string CreateRouterInterfaceRequest::getOppositeInterfaceId()const
{
return oppositeInterfaceId_;
}
void CreateRouterInterfaceRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId)
{
oppositeInterfaceId_ = oppositeInterfaceId;
setParameter("OppositeInterfaceId", oppositeInterfaceId);
pricingCycle_ = pricingCycle;
setParameter("PricingCycle", pricingCycle);
}

View File

@@ -42,9 +42,16 @@ void CreateRouterInterfaceResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["RouterInterfaceId"].isNull())
routerInterfaceId_ = value["RouterInterfaceId"].asString();
if(!value["OrderId"].isNull())
orderId_ = std::stol(value["OrderId"].asString());
}
long CreateRouterInterfaceResult::getOrderId()const
{
return orderId_;
}
std::string CreateRouterInterfaceResult::getRouterInterfaceId()const
{
return routerInterfaceId_;

View File

@@ -0,0 +1,280 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ecs/model/CreateVolumeRequest.h>
using AlibabaCloud::Ecs::Model::CreateVolumeRequest;
CreateVolumeRequest::CreateVolumeRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateVolume")
{}
CreateVolumeRequest::~CreateVolumeRequest()
{}
std::string CreateVolumeRequest::getTag4Value()const
{
return tag4Value_;
}
void CreateVolumeRequest::setTag4Value(const std::string& tag4Value)
{
tag4Value_ = tag4Value;
setParameter("Tag4Value", tag4Value);
}
long CreateVolumeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateVolumeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateVolumeRequest::getSnapshotId()const
{
return snapshotId_;
}
void CreateVolumeRequest::setSnapshotId(const std::string& snapshotId)
{
snapshotId_ = snapshotId;
setParameter("SnapshotId", snapshotId);
}
std::string CreateVolumeRequest::getTag2Key()const
{
return tag2Key_;
}
void CreateVolumeRequest::setTag2Key(const std::string& tag2Key)
{
tag2Key_ = tag2Key;
setParameter("Tag2Key", tag2Key);
}
std::string CreateVolumeRequest::getVolumeName()const
{
return volumeName_;
}
void CreateVolumeRequest::setVolumeName(const std::string& volumeName)
{
volumeName_ = volumeName;
setParameter("VolumeName", volumeName);
}
bool CreateVolumeRequest::getVolumeEncrypted()const
{
return volumeEncrypted_;
}
void CreateVolumeRequest::setVolumeEncrypted(bool volumeEncrypted)
{
volumeEncrypted_ = volumeEncrypted;
setParameter("VolumeEncrypted", std::to_string(volumeEncrypted));
}
std::string CreateVolumeRequest::getTag5Key()const
{
return tag5Key_;
}
void CreateVolumeRequest::setTag5Key(const std::string& tag5Key)
{
tag5Key_ = tag5Key;
setParameter("Tag5Key", tag5Key);
}
std::string CreateVolumeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateVolumeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateVolumeRequest::getClientToken()const
{
return clientToken_;
}
void CreateVolumeRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateVolumeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateVolumeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateVolumeRequest::getDescription()const
{
return description_;
}
void CreateVolumeRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateVolumeRequest::getTag3Key()const
{
return tag3Key_;
}
void CreateVolumeRequest::setTag3Key(const std::string& tag3Key)
{
tag3Key_ = tag3Key;
setParameter("Tag3Key", tag3Key);
}
long CreateVolumeRequest::getOwnerId()const
{
return ownerId_;
}
void CreateVolumeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateVolumeRequest::getTag5Value()const
{
return tag5Value_;
}
void CreateVolumeRequest::setTag5Value(const std::string& tag5Value)
{
tag5Value_ = tag5Value;
setParameter("Tag5Value", tag5Value);
}
std::string CreateVolumeRequest::getTag1Key()const
{
return tag1Key_;
}
void CreateVolumeRequest::setTag1Key(const std::string& tag1Key)
{
tag1Key_ = tag1Key;
setParameter("Tag1Key", tag1Key);
}
std::string CreateVolumeRequest::getTag1Value()const
{
return tag1Value_;
}
void CreateVolumeRequest::setTag1Value(const std::string& tag1Value)
{
tag1Value_ = tag1Value;
setParameter("Tag1Value", tag1Value);
}
std::string CreateVolumeRequest::getVolumeCategory()const
{
return volumeCategory_;
}
void CreateVolumeRequest::setVolumeCategory(const std::string& volumeCategory)
{
volumeCategory_ = volumeCategory;
setParameter("VolumeCategory", volumeCategory);
}
int CreateVolumeRequest::getSize()const
{
return size_;
}
void CreateVolumeRequest::setSize(int size)
{
size_ = size;
setParameter("Size", std::to_string(size));
}
std::string CreateVolumeRequest::getRegionId()const
{
return regionId_;
}
void CreateVolumeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateVolumeRequest::getTag2Value()const
{
return tag2Value_;
}
void CreateVolumeRequest::setTag2Value(const std::string& tag2Value)
{
tag2Value_ = tag2Value;
setParameter("Tag2Value", tag2Value);
}
std::string CreateVolumeRequest::getZoneId()const
{
return zoneId_;
}
void CreateVolumeRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string CreateVolumeRequest::getTag4Key()const
{
return tag4Key_;
}
void CreateVolumeRequest::setTag4Key(const std::string& tag4Key)
{
tag4Key_ = tag4Key;
setParameter("Tag4Key", tag4Key);
}
std::string CreateVolumeRequest::getTag3Value()const
{
return tag3Value_;
}
void CreateVolumeRequest::setTag3Value(const std::string& tag3Value)
{
tag3Value_ = tag3Value;
setParameter("Tag3Value", tag3Value);
}

View File

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

View File

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

View File

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

View File

@@ -72,6 +72,10 @@ void DescribeInstanceTypesResult::parse(const std::string &payload)
instanceTypesObject.instanceBandwidthRx = std::stoi(value["InstanceBandwidthRx"].asString());
if(!value["InstanceBandwidthTx"].isNull())
instanceTypesObject.instanceBandwidthTx = std::stoi(value["InstanceBandwidthTx"].asString());
if(!value["InstancePpsRx"].isNull())
instanceTypesObject.instancePpsRx = std::stol(value["InstancePpsRx"].asString());
if(!value["InstancePpsTx"].isNull())
instanceTypesObject.instancePpsTx = std::stol(value["InstancePpsTx"].asString());
instanceTypes_.push_back(instanceTypesObject);
}

View File

@@ -0,0 +1,313 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ecs/model/DescribeVolumesRequest.h>
using AlibabaCloud::Ecs::Model::DescribeVolumesRequest;
DescribeVolumesRequest::DescribeVolumesRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DescribeVolumes")
{}
DescribeVolumesRequest::~DescribeVolumesRequest()
{}
std::string DescribeVolumesRequest::getTag4Value()const
{
return tag4Value_;
}
void DescribeVolumesRequest::setTag4Value(const std::string& tag4Value)
{
tag4Value_ = tag4Value;
setParameter("Tag4Value", tag4Value);
}
long DescribeVolumesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeVolumesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeVolumesRequest::getSnapshotId()const
{
return snapshotId_;
}
void DescribeVolumesRequest::setSnapshotId(const std::string& snapshotId)
{
snapshotId_ = snapshotId;
setParameter("SnapshotId", snapshotId);
}
std::string DescribeVolumesRequest::getTag2Key()const
{
return tag2Key_;
}
void DescribeVolumesRequest::setTag2Key(const std::string& tag2Key)
{
tag2Key_ = tag2Key;
setParameter("Tag2Key", tag2Key);
}
std::string DescribeVolumesRequest::getAutoSnapshotPolicyId()const
{
return autoSnapshotPolicyId_;
}
void DescribeVolumesRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId)
{
autoSnapshotPolicyId_ = autoSnapshotPolicyId;
setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId);
}
std::string DescribeVolumesRequest::getTag3Key()const
{
return tag3Key_;
}
void DescribeVolumesRequest::setTag3Key(const std::string& tag3Key)
{
tag3Key_ = tag3Key;
setParameter("Tag3Key", tag3Key);
}
int DescribeVolumesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeVolumesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeVolumesRequest::getTag1Value()const
{
return tag1Value_;
}
void DescribeVolumesRequest::setTag1Value(const std::string& tag1Value)
{
tag1Value_ = tag1Value;
setParameter("Tag1Value", tag1Value);
}
std::string DescribeVolumesRequest::getLockReason()const
{
return lockReason_;
}
void DescribeVolumesRequest::setLockReason(const std::string& lockReason)
{
lockReason_ = lockReason;
setParameter("LockReason", lockReason);
}
std::string DescribeVolumesRequest::getRegionId()const
{
return regionId_;
}
void DescribeVolumesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int DescribeVolumesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeVolumesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeVolumesRequest::getTag3Value()const
{
return tag3Value_;
}
void DescribeVolumesRequest::setTag3Value(const std::string& tag3Value)
{
tag3Value_ = tag3Value;
setParameter("Tag3Value", tag3Value);
}
std::string DescribeVolumesRequest::getTag5Key()const
{
return tag5Key_;
}
void DescribeVolumesRequest::setTag5Key(const std::string& tag5Key)
{
tag5Key_ = tag5Key;
setParameter("Tag5Key", tag5Key);
}
std::string DescribeVolumesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeVolumesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeVolumesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeVolumesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
bool DescribeVolumesRequest::getEnableAutomatedSnapshotPolicy()const
{
return enableAutomatedSnapshotPolicy_;
}
void DescribeVolumesRequest::setEnableAutomatedSnapshotPolicy(bool enableAutomatedSnapshotPolicy)
{
enableAutomatedSnapshotPolicy_ = enableAutomatedSnapshotPolicy;
setParameter("EnableAutomatedSnapshotPolicy", std::to_string(enableAutomatedSnapshotPolicy));
}
long DescribeVolumesRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeVolumesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeVolumesRequest::getTag5Value()const
{
return tag5Value_;
}
void DescribeVolumesRequest::setTag5Value(const std::string& tag5Value)
{
tag5Value_ = tag5Value;
setParameter("Tag5Value", tag5Value);
}
std::string DescribeVolumesRequest::getTag1Key()const
{
return tag1Key_;
}
void DescribeVolumesRequest::setTag1Key(const std::string& tag1Key)
{
tag1Key_ = tag1Key;
setParameter("Tag1Key", tag1Key);
}
std::string DescribeVolumesRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeVolumesRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeVolumesRequest::getTag2Value()const
{
return tag2Value_;
}
void DescribeVolumesRequest::setTag2Value(const std::string& tag2Value)
{
tag2Value_ = tag2Value;
setParameter("Tag2Value", tag2Value);
}
std::string DescribeVolumesRequest::getZoneId()const
{
return zoneId_;
}
void DescribeVolumesRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string DescribeVolumesRequest::getTag4Key()const
{
return tag4Key_;
}
void DescribeVolumesRequest::setTag4Key(const std::string& tag4Key)
{
tag4Key_ = tag4Key;
setParameter("Tag4Key", tag4Key);
}
std::string DescribeVolumesRequest::getVolumeIds()const
{
return volumeIds_;
}
void DescribeVolumesRequest::setVolumeIds(const std::string& volumeIds)
{
volumeIds_ = volumeIds;
setParameter("VolumeIds", volumeIds);
}
std::string DescribeVolumesRequest::getCategory()const
{
return category_;
}
void DescribeVolumesRequest::setCategory(const std::string& category)
{
category_ = category;
setParameter("Category", category);
}
std::string DescribeVolumesRequest::getStatus()const
{
return status_;
}
void DescribeVolumesRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

@@ -0,0 +1,139 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ecs/model/DescribeVolumesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
DescribeVolumesResult::DescribeVolumesResult() :
ServiceResult()
{}
DescribeVolumesResult::DescribeVolumesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVolumesResult::~DescribeVolumesResult()
{}
void DescribeVolumesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVolumes = value["Volumes"]["Volume"];
for (auto value : allVolumes)
{
Volume volumesObject;
if(!value["VolumeId"].isNull())
volumesObject.volumeId = value["VolumeId"].asString();
if(!value["RegionId"].isNull())
volumesObject.regionId = value["RegionId"].asString();
if(!value["ZoneId"].isNull())
volumesObject.zoneId = value["ZoneId"].asString();
if(!value["VolumeName"].isNull())
volumesObject.volumeName = value["VolumeName"].asString();
if(!value["Description"].isNull())
volumesObject.description = value["Description"].asString();
if(!value["Category"].isNull())
volumesObject.category = value["Category"].asString();
if(!value["Size"].isNull())
volumesObject.size = std::stoi(value["Size"].asString());
if(!value["SourceSnapshotId"].isNull())
volumesObject.sourceSnapshotId = value["SourceSnapshotId"].asString();
if(!value["AutoSnapshotPolicyId"].isNull())
volumesObject.autoSnapshotPolicyId = value["AutoSnapshotPolicyId"].asString();
if(!value["SnapshotLinkId"].isNull())
volumesObject.snapshotLinkId = value["SnapshotLinkId"].asString();
if(!value["Status"].isNull())
volumesObject.status = value["Status"].asString();
if(!value["EnableAutomatedSnapshotPolicy"].isNull())
volumesObject.enableAutomatedSnapshotPolicy = value["EnableAutomatedSnapshotPolicy"].asString() == "true";
if(!value["CreationTime"].isNull())
volumesObject.creationTime = value["CreationTime"].asString();
if(!value["VolumeChargeType"].isNull())
volumesObject.volumeChargeType = value["VolumeChargeType"].asString();
if(!value["MountInstanceNum"].isNull())
volumesObject.mountInstanceNum = std::stoi(value["MountInstanceNum"].asString());
if(!value["Encrypted"].isNull())
volumesObject.encrypted = value["Encrypted"].asString() == "true";
auto allOperationLocks = value["OperationLocks"]["OperationLock"];
for (auto value : allOperationLocks)
{
Volume::OperationLock operationLocksObject;
if(!value["LockReason"].isNull())
operationLocksObject.lockReason = value["LockReason"].asString();
volumesObject.operationLocks.push_back(operationLocksObject);
}
auto allMountInstances = value["MountInstances"]["MountInstance"];
for (auto value : allMountInstances)
{
Volume::MountInstance mountInstancesObject;
if(!value["InstanceId"].isNull())
mountInstancesObject.instanceId = value["InstanceId"].asString();
if(!value["Device"].isNull())
mountInstancesObject.device = value["Device"].asString();
if(!value["AttachedTime"].isNull())
mountInstancesObject.attachedTime = value["AttachedTime"].asString();
volumesObject.mountInstances.push_back(mountInstancesObject);
}
auto allTags = value["Tags"]["Tag"];
for (auto value : allTags)
{
Volume::Tag tagsObject;
if(!value["TagKey"].isNull())
tagsObject.tagKey = value["TagKey"].asString();
if(!value["TagValue"].isNull())
tagsObject.tagValue = value["TagValue"].asString();
volumesObject.tags.push_back(tagsObject);
}
volumes_.push_back(volumesObject);
}
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 DescribeVolumesResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribeVolumesResult::Volume> DescribeVolumesResult::getVolumes()const
{
return volumes_;
}
int DescribeVolumesResult::getPageSize()const
{
return pageSize_;
}
int DescribeVolumesResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ecs/model/DetachVolumeRequest.h>
using AlibabaCloud::Ecs::Model::DetachVolumeRequest;
DetachVolumeRequest::DetachVolumeRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DetachVolume")
{}
DetachVolumeRequest::~DetachVolumeRequest()
{}
long DetachVolumeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DetachVolumeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DetachVolumeRequest::getInstanceId()const
{
return instanceId_;
}
void DetachVolumeRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DetachVolumeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DetachVolumeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DetachVolumeRequest::getRegionId()const
{
return regionId_;
}
void DetachVolumeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DetachVolumeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DetachVolumeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DetachVolumeRequest::getVolumeId()const
{
return volumeId_;
}
void DetachVolumeRequest::setVolumeId(const std::string& volumeId)
{
volumeId_ = volumeId;
setParameter("VolumeId", volumeId);
}
long DetachVolumeRequest::getOwnerId()const
{
return ownerId_;
}
void DetachVolumeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -47,6 +47,17 @@ void ModifyInstanceAutoRenewAttributeRequest::setResourceOwnerId(long resourceOw
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ModifyInstanceAutoRenewAttributeRequest::getPeriodUnit()const
{
return periodUnit_;
}
void ModifyInstanceAutoRenewAttributeRequest::setPeriodUnit(const std::string& periodUnit)
{
periodUnit_ = periodUnit;
setParameter("PeriodUnit", periodUnit);
}
std::string ModifyInstanceAutoRenewAttributeRequest::getInstanceId()const
{
return instanceId_;

View File

@@ -36,17 +36,6 @@ void ModifyPrepayInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId)
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ModifyPrepayInstanceSpecRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyPrepayInstanceSpecRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
bool ModifyPrepayInstanceSpecRequest::getAutoPay()const
{
return autoPay_;
@@ -69,17 +58,6 @@ void ModifyPrepayInstanceSpecRequest::setResourceOwnerAccount(const std::string&
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ModifyPrepayInstanceSpecRequest::getRegionId()const
{
return regionId_;
}
void ModifyPrepayInstanceSpecRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ModifyPrepayInstanceSpecRequest::getClientToken()const
{
return clientToken_;
@@ -102,17 +80,6 @@ void ModifyPrepayInstanceSpecRequest::setOwnerAccount(const std::string& ownerAc
setParameter("OwnerAccount", ownerAccount);
}
std::string ModifyPrepayInstanceSpecRequest::getInstanceType()const
{
return instanceType_;
}
void ModifyPrepayInstanceSpecRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setParameter("InstanceType", instanceType);
}
long ModifyPrepayInstanceSpecRequest::getOwnerId()const
{
return ownerId_;
@@ -135,3 +102,58 @@ void ModifyPrepayInstanceSpecRequest::setOperatorType(const std::string& operato
setParameter("OperatorType", operatorType);
}
std::string ModifyPrepayInstanceSpecRequest::getSystemDiskCategory()const
{
return systemDiskCategory_;
}
void ModifyPrepayInstanceSpecRequest::setSystemDiskCategory(const std::string& systemDiskCategory)
{
systemDiskCategory_ = systemDiskCategory;
setParameter("SystemDiskCategory", systemDiskCategory);
}
std::string ModifyPrepayInstanceSpecRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyPrepayInstanceSpecRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ModifyPrepayInstanceSpecRequest::getRegionId()const
{
return regionId_;
}
void ModifyPrepayInstanceSpecRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool ModifyPrepayInstanceSpecRequest::getMigrateAcrossZone()const
{
return migrateAcrossZone_;
}
void ModifyPrepayInstanceSpecRequest::setMigrateAcrossZone(bool migrateAcrossZone)
{
migrateAcrossZone_ = migrateAcrossZone;
setParameter("MigrateAcrossZone", std::to_string(migrateAcrossZone));
}
std::string ModifyPrepayInstanceSpecRequest::getInstanceType()const
{
return instanceType_;
}
void ModifyPrepayInstanceSpecRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setParameter("InstanceType", instanceType);
}

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ecs/model/ModifyVolumeAttributeRequest.h>
using AlibabaCloud::Ecs::Model::ModifyVolumeAttributeRequest;
ModifyVolumeAttributeRequest::ModifyVolumeAttributeRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ModifyVolumeAttribute")
{}
ModifyVolumeAttributeRequest::~ModifyVolumeAttributeRequest()
{}
long ModifyVolumeAttributeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ModifyVolumeAttributeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ModifyVolumeAttributeRequest::getVolumeName()const
{
return volumeName_;
}
void ModifyVolumeAttributeRequest::setVolumeName(const std::string& volumeName)
{
volumeName_ = volumeName;
setParameter("VolumeName", volumeName);
}
std::string ModifyVolumeAttributeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ModifyVolumeAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ModifyVolumeAttributeRequest::getRegionId()const
{
return regionId_;
}
void ModifyVolumeAttributeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ModifyVolumeAttributeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ModifyVolumeAttributeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string ModifyVolumeAttributeRequest::getVolumeId()const
{
return volumeId_;
}
void ModifyVolumeAttributeRequest::setVolumeId(const std::string& volumeId)
{
volumeId_ = volumeId;
setParameter("VolumeId", volumeId);
}
std::string ModifyVolumeAttributeRequest::getDescription()const
{
return description_;
}
void ModifyVolumeAttributeRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long ModifyVolumeAttributeRequest::getOwnerId()const
{
return ownerId_;
}
void ModifyVolumeAttributeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ecs/model/ReInitVolumeRequest.h>
using AlibabaCloud::Ecs::Model::ReInitVolumeRequest;
ReInitVolumeRequest::ReInitVolumeRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ReInitVolume")
{}
ReInitVolumeRequest::~ReInitVolumeRequest()
{}
long ReInitVolumeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ReInitVolumeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ReInitVolumeRequest::getPassword()const
{
return password_;
}
void ReInitVolumeRequest::setPassword(const std::string& password)
{
password_ = password;
setParameter("Password", password);
}
std::string ReInitVolumeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ReInitVolumeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ReInitVolumeRequest::getRegionId()const
{
return regionId_;
}
void ReInitVolumeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ReInitVolumeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ReInitVolumeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string ReInitVolumeRequest::getVolumeId()const
{
return volumeId_;
}
void ReInitVolumeRequest::setVolumeId(const std::string& volumeId)
{
volumeId_ = volumeId;
setParameter("VolumeId", volumeId);
}
long ReInitVolumeRequest::getOwnerId()const
{
return ownerId_;
}
void ReInitVolumeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ecs/model/ResizeVolumeRequest.h>
using AlibabaCloud::Ecs::Model::ResizeVolumeRequest;
ResizeVolumeRequest::ResizeVolumeRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ResizeVolume")
{}
ResizeVolumeRequest::~ResizeVolumeRequest()
{}
long ResizeVolumeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ResizeVolumeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ResizeVolumeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ResizeVolumeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ResizeVolumeRequest::getRegionId()const
{
return regionId_;
}
void ResizeVolumeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ResizeVolumeRequest::getClientToken()const
{
return clientToken_;
}
void ResizeVolumeRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string ResizeVolumeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ResizeVolumeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string ResizeVolumeRequest::getVolumeId()const
{
return volumeId_;
}
void ResizeVolumeRequest::setVolumeId(const std::string& volumeId)
{
volumeId_ = volumeId;
setParameter("VolumeId", volumeId);
}
int ResizeVolumeRequest::getNewSize()const
{
return newSize_;
}
void ResizeVolumeRequest::setNewSize(int newSize)
{
newSize_ = newSize;
setParameter("NewSize", std::to_string(newSize));
}
long ResizeVolumeRequest::getOwnerId()const
{
return ownerId_;
}
void ResizeVolumeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ecs/model/RollbackVolumeRequest.h>
using AlibabaCloud::Ecs::Model::RollbackVolumeRequest;
RollbackVolumeRequest::RollbackVolumeRequest() :
RpcServiceRequest("ecs", "2014-05-26", "RollbackVolume")
{}
RollbackVolumeRequest::~RollbackVolumeRequest()
{}
long RollbackVolumeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void RollbackVolumeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string RollbackVolumeRequest::getSnapshotId()const
{
return snapshotId_;
}
void RollbackVolumeRequest::setSnapshotId(const std::string& snapshotId)
{
snapshotId_ = snapshotId;
setParameter("SnapshotId", snapshotId);
}
std::string RollbackVolumeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void RollbackVolumeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string RollbackVolumeRequest::getRegionId()const
{
return regionId_;
}
void RollbackVolumeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string RollbackVolumeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void RollbackVolumeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string RollbackVolumeRequest::getVolumeId()const
{
return volumeId_;
}
void RollbackVolumeRequest::setVolumeId(const std::string& volumeId)
{
volumeId_ = volumeId;
setParameter("VolumeId", volumeId);
}
long RollbackVolumeRequest::getOwnerId()const
{
return ownerId_;
}
void RollbackVolumeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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