From 819afce83a89518fac2ec77789f66c18c4d32413 Mon Sep 17 00:00:00 2001 From: "yixiong.jxy" Date: Thu, 15 Nov 2018 23:02:32 +0800 Subject: [PATCH] =?UTF-8?q?ECS=20SDK=20Auto=20Released=20By=20ansen.as,Ver?= =?UTF-8?q?sion=EF=BC=9A1.33.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yixiong.jxy --- CHANGELOG | 3 + VERSION | 2 +- ecs/CMakeLists.txt | 104 ++ ecs/include/alibabacloud/ecs/EcsClient.h | 208 ++++ .../ecs/model/AddIpRangeRequest.h | 66 ++ .../alibabacloud/ecs/model/AddIpRangeResult.h | 49 + .../ecs/model/AssignIpv6AddressesRequest.h | 126 +++ .../ecs/model/AssignIpv6AddressesResult.h | 49 + .../ecs/model/AttachVolumeRequest.h | 66 ++ .../ecs/model/AttachVolumeResult.h | 49 + .../AuthorizeSecurityGroupEgressRequest.h | 6 + .../ecs/model/AuthorizeSecurityGroupRequest.h | 6 + .../ecs/model/BindIpRangeRequest.h | 63 ++ .../ecs/model/BindIpRangeResult.h | 49 + .../ecs/model/CancelUserEventRequest.h | 117 +++ .../ecs/model/CancelUserEventResult.h | 51 + .../model/CheckAutoSnapshotPolicyRequest.h | 81 ++ .../ecs/model/CheckAutoSnapshotPolicyResult.h | 53 + ...kDiskEnableAutoSnapshotValidationRequest.h | 60 ++ ...ckDiskEnableAutoSnapshotValidationResult.h | 53 + .../ecs/model/CreateUserEventRequest.h | 123 +++ .../ecs/model/CreateUserEventResult.h | 51 + .../ecs/model/CreateVolumeRequest.h | 92 ++ .../ecs/model/CreateVolumeResult.h | 51 + .../ecs/model/DeleteVolumeRequest.h | 63 ++ .../ecs/model/DeleteVolumeResult.h | 49 + .../model/DescribeAutoSnapshotPolicyRequest.h | 57 ++ .../model/DescribeAutoSnapshotPolicyResult.h | 71 ++ .../ecs/model/DescribeEventDetailRequest.h | 114 +++ .../ecs/model/DescribeEventDetailResult.h | 75 ++ .../ecs/model/DescribeEventsRequest.h | 135 +++ .../ecs/model/DescribeEventsResult.h | 68 ++ .../ecs/model/DescribeImagesResult.h | 2 + .../DescribeIntranetAttributeKbRequest.h | 60 ++ .../model/DescribeIntranetAttributeKbResult.h | 59 ++ .../ecs/model/DescribeIpRangesRequest.h | 72 ++ .../ecs/model/DescribeIpRangesResult.h | 66 ++ .../model/DescribeNetworkInterfacesResult.h | 5 + .../DescribeSecurityGroupAttributeResult.h | 2 + .../ecs/model/DescribeVSwitchesResult.h | 1 + .../ecs/model/DescribeVolumesRequest.h | 101 ++ .../ecs/model/DescribeVolumesResult.h | 94 ++ .../ecs/model/DetachVolumeRequest.h | 66 ++ .../ecs/model/DetachVolumeResult.h | 49 + .../model/ModifyIntranetBandwidthKbRequest.h | 66 ++ .../model/ModifyIntranetBandwidthKbResult.h | 49 + .../ModifySecurityGroupEgressRuleRequest.h | 6 + .../model/ModifySecurityGroupRuleRequest.h | 6 + .../model/ModifyUserEventAttributeRequest.h | 123 +++ .../model/ModifyUserEventAttributeResult.h | 51 + .../ecs/model/ModifyVolumeAttributeRequest.h | 69 ++ .../ecs/model/ModifyVolumeAttributeResult.h | 49 + .../ecs/model/ReInitVolumeRequest.h | 66 ++ .../ecs/model/ReInitVolumeResult.h | 49 + .../ecs/model/ResizeVolumeRequest.h | 69 ++ .../ecs/model/ResizeVolumeResult.h | 49 + .../model/RevokeSecurityGroupEgressRequest.h | 6 + .../ecs/model/RevokeSecurityGroupRequest.h | 6 + .../ecs/model/RollbackVolumeRequest.h | 66 ++ .../ecs/model/RollbackVolumeResult.h | 49 + .../ecs/model/RunInstancesRequest.h | 6 + .../ecs/model/UnassignIpv6AddressesRequest.h | 123 +++ .../ecs/model/UnassignIpv6AddressesResult.h | 49 + .../ecs/model/UnbindIpRangeRequest.h | 63 ++ .../ecs/model/UnbindIpRangeResult.h | 49 + .../ecs/model/ValidateSecurityGroupRequest.h | 138 +++ .../ecs/model/ValidateSecurityGroupResult.h | 72 ++ ecs/src/EcsClient.cc | 936 ++++++++++++++++++ ecs/src/model/AddIpRangeRequest.cc | 104 ++ ecs/src/model/AddIpRangeResult.cc | 45 + ecs/src/model/AssignIpv6AddressesRequest.cc | 325 ++++++ ecs/src/model/AssignIpv6AddressesResult.cc | 45 + ecs/src/model/AttachVolumeRequest.cc | 104 ++ ecs/src/model/AttachVolumeResult.cc | 45 + .../AuthorizeSecurityGroupEgressRequest.cc | 22 + .../model/AuthorizeSecurityGroupRequest.cc | 22 + ecs/src/model/BindIpRangeRequest.cc | 93 ++ ecs/src/model/BindIpRangeResult.cc | 45 + ecs/src/model/CancelUserEventRequest.cc | 291 ++++++ ecs/src/model/CancelUserEventResult.cc | 52 + .../model/CheckAutoSnapshotPolicyRequest.cc | 159 +++ .../model/CheckAutoSnapshotPolicyResult.cc | 59 ++ ...DiskEnableAutoSnapshotValidationRequest.cc | 82 ++ ...kDiskEnableAutoSnapshotValidationResult.cc | 59 ++ ecs/src/model/CreateUserEventRequest.cc | 313 ++++++ ecs/src/model/CreateUserEventResult.cc | 52 + ecs/src/model/CreateVolumeRequest.cc | 187 ++++ ecs/src/model/CreateVolumeResult.cc | 52 + ecs/src/model/DeleteVolumeRequest.cc | 93 ++ ecs/src/model/DeleteVolumeResult.cc | 45 + .../DescribeAutoSnapshotPolicyRequest.cc | 71 ++ .../model/DescribeAutoSnapshotPolicyResult.cc | 84 ++ ecs/src/model/DescribeEventDetailRequest.cc | 280 ++++++ ecs/src/model/DescribeEventDetailResult.cc | 136 +++ ecs/src/model/DescribeEventsRequest.cc | 357 +++++++ ecs/src/model/DescribeEventsResult.cc | 93 ++ ecs/src/model/DescribeImagesResult.cc | 4 + .../DescribeIntranetAttributeKbRequest.cc | 82 ++ .../DescribeIntranetAttributeKbResult.cc | 80 ++ ecs/src/model/DescribeIpRangesRequest.cc | 126 +++ ecs/src/model/DescribeIpRangesResult.cc | 95 ++ .../model/DescribeNetworkInterfacesResult.cc | 8 + .../DescribeSecurityGroupAttributeResult.cc | 4 + ecs/src/model/DescribeVSwitchesResult.cc | 2 + ecs/src/model/DescribeVolumesRequest.cc | 220 ++++ ecs/src/model/DescribeVolumesResult.cc | 139 +++ ecs/src/model/DetachVolumeRequest.cc | 104 ++ ecs/src/model/DetachVolumeResult.cc | 45 + .../model/ModifyIntranetBandwidthKbRequest.cc | 104 ++ .../model/ModifyIntranetBandwidthKbResult.cc | 45 + .../ModifySecurityGroupEgressRuleRequest.cc | 22 + .../model/ModifySecurityGroupRuleRequest.cc | 22 + .../model/ModifyUserEventAttributeRequest.cc | 313 ++++++ .../model/ModifyUserEventAttributeResult.cc | 52 + ecs/src/model/ModifyVolumeAttributeRequest.cc | 115 +++ ecs/src/model/ModifyVolumeAttributeResult.cc | 45 + ecs/src/model/ReInitVolumeRequest.cc | 104 ++ ecs/src/model/ReInitVolumeResult.cc | 45 + ecs/src/model/ResizeVolumeRequest.cc | 115 +++ ecs/src/model/ResizeVolumeResult.cc | 45 + .../model/RevokeSecurityGroupEgressRequest.cc | 22 + ecs/src/model/RevokeSecurityGroupRequest.cc | 22 + ecs/src/model/RollbackVolumeRequest.cc | 104 ++ ecs/src/model/RollbackVolumeResult.cc | 45 + ecs/src/model/RunInstancesRequest.cc | 23 + ecs/src/model/UnassignIpv6AddressesRequest.cc | 314 ++++++ ecs/src/model/UnassignIpv6AddressesResult.cc | 45 + ecs/src/model/UnbindIpRangeRequest.cc | 93 ++ ecs/src/model/UnbindIpRangeResult.cc | 45 + ecs/src/model/ValidateSecurityGroupRequest.cc | 368 +++++++ ecs/src/model/ValidateSecurityGroupResult.cc | 90 ++ 131 files changed, 11423 insertions(+), 1 deletion(-) create mode 100644 ecs/include/alibabacloud/ecs/model/AddIpRangeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/AddIpRangeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/AttachVolumeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/AttachVolumeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/BindIpRangeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/BindIpRangeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CancelUserEventRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CancelUserEventResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateUserEventRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateUserEventResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateVolumeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateVolumeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteVolumeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteVolumeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeEventDetailRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeEventDetailResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeEventsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeEventsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeIntranetAttributeKbRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeIntranetAttributeKbResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeIpRangesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeIpRangesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeVolumesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeVolumesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DetachVolumeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DetachVolumeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyUserEventAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyUserEventAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyVolumeAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyVolumeAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ReInitVolumeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ReInitVolumeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ResizeVolumeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ResizeVolumeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/RollbackVolumeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/RollbackVolumeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/UnbindIpRangeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/UnbindIpRangeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ValidateSecurityGroupRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ValidateSecurityGroupResult.h create mode 100644 ecs/src/model/AddIpRangeRequest.cc create mode 100644 ecs/src/model/AddIpRangeResult.cc create mode 100644 ecs/src/model/AssignIpv6AddressesRequest.cc create mode 100644 ecs/src/model/AssignIpv6AddressesResult.cc create mode 100644 ecs/src/model/AttachVolumeRequest.cc create mode 100644 ecs/src/model/AttachVolumeResult.cc create mode 100644 ecs/src/model/BindIpRangeRequest.cc create mode 100644 ecs/src/model/BindIpRangeResult.cc create mode 100644 ecs/src/model/CancelUserEventRequest.cc create mode 100644 ecs/src/model/CancelUserEventResult.cc create mode 100644 ecs/src/model/CheckAutoSnapshotPolicyRequest.cc create mode 100644 ecs/src/model/CheckAutoSnapshotPolicyResult.cc create mode 100644 ecs/src/model/CheckDiskEnableAutoSnapshotValidationRequest.cc create mode 100644 ecs/src/model/CheckDiskEnableAutoSnapshotValidationResult.cc create mode 100644 ecs/src/model/CreateUserEventRequest.cc create mode 100644 ecs/src/model/CreateUserEventResult.cc create mode 100644 ecs/src/model/CreateVolumeRequest.cc create mode 100644 ecs/src/model/CreateVolumeResult.cc create mode 100644 ecs/src/model/DeleteVolumeRequest.cc create mode 100644 ecs/src/model/DeleteVolumeResult.cc create mode 100644 ecs/src/model/DescribeAutoSnapshotPolicyRequest.cc create mode 100644 ecs/src/model/DescribeAutoSnapshotPolicyResult.cc create mode 100644 ecs/src/model/DescribeEventDetailRequest.cc create mode 100644 ecs/src/model/DescribeEventDetailResult.cc create mode 100644 ecs/src/model/DescribeEventsRequest.cc create mode 100644 ecs/src/model/DescribeEventsResult.cc create mode 100644 ecs/src/model/DescribeIntranetAttributeKbRequest.cc create mode 100644 ecs/src/model/DescribeIntranetAttributeKbResult.cc create mode 100644 ecs/src/model/DescribeIpRangesRequest.cc create mode 100644 ecs/src/model/DescribeIpRangesResult.cc create mode 100644 ecs/src/model/DescribeVolumesRequest.cc create mode 100644 ecs/src/model/DescribeVolumesResult.cc create mode 100644 ecs/src/model/DetachVolumeRequest.cc create mode 100644 ecs/src/model/DetachVolumeResult.cc create mode 100644 ecs/src/model/ModifyIntranetBandwidthKbRequest.cc create mode 100644 ecs/src/model/ModifyIntranetBandwidthKbResult.cc create mode 100644 ecs/src/model/ModifyUserEventAttributeRequest.cc create mode 100644 ecs/src/model/ModifyUserEventAttributeResult.cc create mode 100644 ecs/src/model/ModifyVolumeAttributeRequest.cc create mode 100644 ecs/src/model/ModifyVolumeAttributeResult.cc create mode 100644 ecs/src/model/ReInitVolumeRequest.cc create mode 100644 ecs/src/model/ReInitVolumeResult.cc create mode 100644 ecs/src/model/ResizeVolumeRequest.cc create mode 100644 ecs/src/model/ResizeVolumeResult.cc create mode 100644 ecs/src/model/RollbackVolumeRequest.cc create mode 100644 ecs/src/model/RollbackVolumeResult.cc create mode 100644 ecs/src/model/UnassignIpv6AddressesRequest.cc create mode 100644 ecs/src/model/UnassignIpv6AddressesResult.cc create mode 100644 ecs/src/model/UnbindIpRangeRequest.cc create mode 100644 ecs/src/model/UnbindIpRangeResult.cc create mode 100644 ecs/src/model/ValidateSecurityGroupRequest.cc create mode 100644 ecs/src/model/ValidateSecurityGroupResult.cc diff --git a/CHANGELOG b/CHANGELOG index 671d08f2e..d34470349 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2018-11-15 Version: 1.33.0 +1, ECS support ipv6Address + 2018-11-14 Version: 1.32.0 1, Better support for hybrid cluster. diff --git a/VERSION b/VERSION index 860251185..f0fed9186 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.32.0 \ No newline at end of file +1.33.0 \ No newline at end of file diff --git a/ecs/CMakeLists.txt b/ecs/CMakeLists.txt index 16097260d..e49e6d512 100644 --- a/ecs/CMakeLists.txt +++ b/ecs/CMakeLists.txt @@ -67,6 +67,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/DeletePhysicalConnectionResult.h include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h include/alibabacloud/ecs/model/RevokeSecurityGroupResult.h + include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyRequest.h + include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyResult.h include/alibabacloud/ecs/model/DescribeTaskAttributeRequest.h include/alibabacloud/ecs/model/DescribeTaskAttributeResult.h include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h @@ -87,6 +89,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/ModifyDedicatedHostAutoRenewAttributeRequest.h include/alibabacloud/ecs/model/ModifyDedicatedHostAutoRenewAttributeResult.h include/alibabacloud/ecs/model/DescribeEipMonitorDataRequest.h @@ -113,6 +117,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataResult.h include/alibabacloud/ecs/model/ConnectRouterInterfaceRequest.h include/alibabacloud/ecs/model/ConnectRouterInterfaceResult.h + include/alibabacloud/ecs/model/AddIpRangeRequest.h + include/alibabacloud/ecs/model/AddIpRangeResult.h include/alibabacloud/ecs/model/GetInstanceConsoleOutputRequest.h include/alibabacloud/ecs/model/GetInstanceConsoleOutputResult.h include/alibabacloud/ecs/model/CreateSimulatedSystemEventsRequest.h @@ -133,6 +139,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/ModifyDedicatedHostAttributeRequest.h include/alibabacloud/ecs/model/ModifyDedicatedHostAttributeResult.h include/alibabacloud/ecs/model/CreateRouteEntryRequest.h @@ -143,6 +151,10 @@ 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 include/alibabacloud/ecs/model/RunInstancesResult.h include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionRequest.h @@ -217,8 +229,12 @@ 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 + include/alibabacloud/ecs/model/BindIpRangeResult.h include/alibabacloud/ecs/model/InvokeCommandRequest.h include/alibabacloud/ecs/model/InvokeCommandResult.h include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorRequest.h @@ -253,6 +269,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/ReleaseDedicatedHostResult.h include/alibabacloud/ecs/model/AddTagsRequest.h include/alibabacloud/ecs/model/AddTagsResult.h + include/alibabacloud/ecs/model/CancelUserEventRequest.h + include/alibabacloud/ecs/model/CancelUserEventResult.h include/alibabacloud/ecs/model/CreateHpcClusterRequest.h include/alibabacloud/ecs/model/CreateHpcClusterResult.h include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorRequest.h @@ -337,6 +355,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/DeleteLaunchTemplateResult.h include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataRequest.h include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataResult.h + include/alibabacloud/ecs/model/UnbindIpRangeRequest.h + include/alibabacloud/ecs/model/UnbindIpRangeResult.h include/alibabacloud/ecs/model/DeleteRecycleBinRequest.h include/alibabacloud/ecs/model/DeleteRecycleBinResult.h include/alibabacloud/ecs/model/DescribeInstanceRamRoleRequest.h @@ -363,6 +383,10 @@ 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 include/alibabacloud/ecs/model/DescribeBandwidthPackagesResult.h include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyRequest.h @@ -371,18 +395,24 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/CreateSecurityGroupResult.h include/alibabacloud/ecs/model/DescribeSnapshotLinksRequest.h include/alibabacloud/ecs/model/DescribeSnapshotLinksResult.h + include/alibabacloud/ecs/model/DescribeEventDetailRequest.h + include/alibabacloud/ecs/model/DescribeEventDetailResult.h include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h include/alibabacloud/ecs/model/DescribeInvocationResultsResult.h include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeRequest.h 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/DescribeDedicatedHostAutoRenewRequest.h include/alibabacloud/ecs/model/DescribeDedicatedHostAutoRenewResult.h include/alibabacloud/ecs/model/DeleteInstanceRequest.h include/alibabacloud/ecs/model/DeleteInstanceResult.h include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h include/alibabacloud/ecs/model/CreateLaunchTemplateResult.h + include/alibabacloud/ecs/model/DescribeIntranetAttributeKbRequest.h + include/alibabacloud/ecs/model/DescribeIntranetAttributeKbResult.h include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionRequest.h include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionResult.h include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsRequest.h @@ -401,6 +431,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 @@ -431,6 +465,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExResult.h include/alibabacloud/ecs/model/CreatePhysicalConnectionRequest.h include/alibabacloud/ecs/model/CreatePhysicalConnectionResult.h + include/alibabacloud/ecs/model/ModifyUserEventAttributeRequest.h + include/alibabacloud/ecs/model/ModifyUserEventAttributeResult.h include/alibabacloud/ecs/model/DescribeKeyPairsRequest.h include/alibabacloud/ecs/model/DescribeKeyPairsResult.h include/alibabacloud/ecs/model/ModifySecurityGroupPolicyRequest.h @@ -439,14 +475,20 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/AssociateHaVipResult.h include/alibabacloud/ecs/model/ConvertNatPublicIpToEipRequest.h include/alibabacloud/ecs/model/ConvertNatPublicIpToEipResult.h + include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h + include/alibabacloud/ecs/model/AssignIpv6AddressesResult.h include/alibabacloud/ecs/model/DeleteRouteEntryRequest.h include/alibabacloud/ecs/model/DeleteRouteEntryResult.h include/alibabacloud/ecs/model/DeleteVirtualBorderRouterRequest.h include/alibabacloud/ecs/model/DeleteVirtualBorderRouterResult.h include/alibabacloud/ecs/model/DescribeCloudAssistantStatusRequest.h include/alibabacloud/ecs/model/DescribeCloudAssistantStatusResult.h + include/alibabacloud/ecs/model/UnassignIpv6AddressesRequest.h + include/alibabacloud/ecs/model/UnassignIpv6AddressesResult.h include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeRequest.h include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeResult.h + include/alibabacloud/ecs/model/ValidateSecurityGroupRequest.h + include/alibabacloud/ecs/model/ValidateSecurityGroupResult.h include/alibabacloud/ecs/model/TerminatePhysicalConnectionRequest.h include/alibabacloud/ecs/model/TerminatePhysicalConnectionResult.h include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h @@ -469,12 +511,20 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/DescribeRegionsResult.h include/alibabacloud/ecs/model/DescribeClassicLinkInstancesRequest.h include/alibabacloud/ecs/model/DescribeClassicLinkInstancesResult.h + include/alibabacloud/ecs/model/CreateUserEventRequest.h + include/alibabacloud/ecs/model/CreateUserEventResult.h + include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyRequest.h + include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyResult.h include/alibabacloud/ecs/model/DescribePhysicalConnectionsRequest.h 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 + include/alibabacloud/ecs/model/DescribeIpRangesResult.h include/alibabacloud/ecs/model/DeleteNetworkInterfacePermissionRequest.h include/alibabacloud/ecs/model/DeleteNetworkInterfacePermissionResult.h include/alibabacloud/ecs/model/CancelPhysicalConnectionRequest.h @@ -493,6 +543,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/AllocateEipAddressResult.h include/alibabacloud/ecs/model/DeleteDiskRequest.h include/alibabacloud/ecs/model/DeleteDiskResult.h + include/alibabacloud/ecs/model/DescribeEventsRequest.h + include/alibabacloud/ecs/model/DescribeEventsResult.h include/alibabacloud/ecs/model/UnassociateHaVipRequest.h include/alibabacloud/ecs/model/UnassociateHaVipResult.h include/alibabacloud/ecs/model/ModifyHaVipAttributeRequest.h @@ -560,6 +612,8 @@ set(ecs_src src/model/DeletePhysicalConnectionResult.cc src/model/RevokeSecurityGroupRequest.cc src/model/RevokeSecurityGroupResult.cc + src/model/CheckAutoSnapshotPolicyRequest.cc + src/model/CheckAutoSnapshotPolicyResult.cc src/model/DescribeTaskAttributeRequest.cc src/model/DescribeTaskAttributeResult.cc src/model/CreateAutoSnapshotPolicyRequest.cc @@ -580,6 +634,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/ModifyDedicatedHostAutoRenewAttributeRequest.cc src/model/ModifyDedicatedHostAutoRenewAttributeResult.cc src/model/DescribeEipMonitorDataRequest.cc @@ -606,6 +662,8 @@ set(ecs_src src/model/DescribeSnapshotMonitorDataResult.cc src/model/ConnectRouterInterfaceRequest.cc src/model/ConnectRouterInterfaceResult.cc + src/model/AddIpRangeRequest.cc + src/model/AddIpRangeResult.cc src/model/GetInstanceConsoleOutputRequest.cc src/model/GetInstanceConsoleOutputResult.cc src/model/CreateSimulatedSystemEventsRequest.cc @@ -626,6 +684,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/ModifyDedicatedHostAttributeRequest.cc src/model/ModifyDedicatedHostAttributeResult.cc src/model/CreateRouteEntryRequest.cc @@ -636,6 +696,10 @@ 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 src/model/RunInstancesResult.cc src/model/ModifyLaunchTemplateDefaultVersionRequest.cc @@ -710,8 +774,12 @@ 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 + src/model/BindIpRangeResult.cc src/model/InvokeCommandRequest.cc src/model/InvokeCommandResult.cc src/model/ModifyUserBusinessBehaviorRequest.cc @@ -746,6 +814,8 @@ set(ecs_src src/model/ReleaseDedicatedHostResult.cc src/model/AddTagsRequest.cc src/model/AddTagsResult.cc + src/model/CancelUserEventRequest.cc + src/model/CancelUserEventResult.cc src/model/CreateHpcClusterRequest.cc src/model/CreateHpcClusterResult.cc src/model/DescribeUserBusinessBehaviorRequest.cc @@ -830,6 +900,8 @@ set(ecs_src src/model/DeleteLaunchTemplateResult.cc src/model/DescribeNewProjectEipMonitorDataRequest.cc src/model/DescribeNewProjectEipMonitorDataResult.cc + src/model/UnbindIpRangeRequest.cc + src/model/UnbindIpRangeResult.cc src/model/DeleteRecycleBinRequest.cc src/model/DeleteRecycleBinResult.cc src/model/DescribeInstanceRamRoleRequest.cc @@ -856,6 +928,10 @@ 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 src/model/DescribeBandwidthPackagesResult.cc src/model/ApplyAutoSnapshotPolicyRequest.cc @@ -864,18 +940,24 @@ set(ecs_src src/model/CreateSecurityGroupResult.cc src/model/DescribeSnapshotLinksRequest.cc src/model/DescribeSnapshotLinksResult.cc + src/model/DescribeEventDetailRequest.cc + src/model/DescribeEventDetailResult.cc src/model/DescribeInvocationResultsRequest.cc src/model/DescribeInvocationResultsResult.cc src/model/DescribeRecommendInstanceTypeRequest.cc src/model/DescribeRecommendInstanceTypeResult.cc src/model/DescribeTagKeysRequest.cc src/model/DescribeTagKeysResult.cc + src/model/CreateVolumeRequest.cc + src/model/CreateVolumeResult.cc src/model/DescribeDedicatedHostAutoRenewRequest.cc src/model/DescribeDedicatedHostAutoRenewResult.cc src/model/DeleteInstanceRequest.cc src/model/DeleteInstanceResult.cc src/model/CreateLaunchTemplateRequest.cc src/model/CreateLaunchTemplateResult.cc + src/model/DescribeIntranetAttributeKbRequest.cc + src/model/DescribeIntranetAttributeKbResult.cc src/model/CreateNetworkInterfacePermissionRequest.cc src/model/CreateNetworkInterfacePermissionResult.cc src/model/RemoveBandwidthPackageIpsRequest.cc @@ -894,6 +976,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 @@ -924,6 +1010,8 @@ set(ecs_src src/model/ModifyAutoSnapshotPolicyExResult.cc src/model/CreatePhysicalConnectionRequest.cc src/model/CreatePhysicalConnectionResult.cc + src/model/ModifyUserEventAttributeRequest.cc + src/model/ModifyUserEventAttributeResult.cc src/model/DescribeKeyPairsRequest.cc src/model/DescribeKeyPairsResult.cc src/model/ModifySecurityGroupPolicyRequest.cc @@ -932,14 +1020,20 @@ set(ecs_src src/model/AssociateHaVipResult.cc src/model/ConvertNatPublicIpToEipRequest.cc src/model/ConvertNatPublicIpToEipResult.cc + src/model/AssignIpv6AddressesRequest.cc + src/model/AssignIpv6AddressesResult.cc src/model/DeleteRouteEntryRequest.cc src/model/DeleteRouteEntryResult.cc src/model/DeleteVirtualBorderRouterRequest.cc src/model/DeleteVirtualBorderRouterResult.cc src/model/DescribeCloudAssistantStatusRequest.cc src/model/DescribeCloudAssistantStatusResult.cc + src/model/UnassignIpv6AddressesRequest.cc + src/model/UnassignIpv6AddressesResult.cc src/model/DescribeInstancePhysicalAttributeRequest.cc src/model/DescribeInstancePhysicalAttributeResult.cc + src/model/ValidateSecurityGroupRequest.cc + src/model/ValidateSecurityGroupResult.cc src/model/TerminatePhysicalConnectionRequest.cc src/model/TerminatePhysicalConnectionResult.cc src/model/AttachNetworkInterfaceRequest.cc @@ -962,12 +1056,20 @@ set(ecs_src src/model/DescribeRegionsResult.cc src/model/DescribeClassicLinkInstancesRequest.cc src/model/DescribeClassicLinkInstancesResult.cc + src/model/CreateUserEventRequest.cc + src/model/CreateUserEventResult.cc + src/model/DescribeAutoSnapshotPolicyRequest.cc + src/model/DescribeAutoSnapshotPolicyResult.cc src/model/DescribePhysicalConnectionsRequest.cc 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 + src/model/DescribeIpRangesResult.cc src/model/DeleteNetworkInterfacePermissionRequest.cc src/model/DeleteNetworkInterfacePermissionResult.cc src/model/CancelPhysicalConnectionRequest.cc @@ -986,6 +1088,8 @@ set(ecs_src src/model/AllocateEipAddressResult.cc src/model/DeleteDiskRequest.cc src/model/DeleteDiskResult.cc + src/model/DescribeEventsRequest.cc + src/model/DescribeEventsResult.cc src/model/UnassociateHaVipRequest.cc src/model/UnassociateHaVipResult.cc src/model/ModifyHaVipAttributeRequest.cc diff --git a/ecs/include/alibabacloud/ecs/EcsClient.h b/ecs/include/alibabacloud/ecs/EcsClient.h index 16e6a94f9..d4635ebd3 100644 --- a/ecs/include/alibabacloud/ecs/EcsClient.h +++ b/ecs/include/alibabacloud/ecs/EcsClient.h @@ -68,6 +68,8 @@ #include "model/DeletePhysicalConnectionResult.h" #include "model/RevokeSecurityGroupRequest.h" #include "model/RevokeSecurityGroupResult.h" +#include "model/CheckAutoSnapshotPolicyRequest.h" +#include "model/CheckAutoSnapshotPolicyResult.h" #include "model/DescribeTaskAttributeRequest.h" #include "model/DescribeTaskAttributeResult.h" #include "model/CreateAutoSnapshotPolicyRequest.h" @@ -88,6 +90,8 @@ #include "model/DetachInstanceRamRoleResult.h" #include "model/AllocatePublicIpAddressRequest.h" #include "model/AllocatePublicIpAddressResult.h" +#include "model/AttachVolumeRequest.h" +#include "model/AttachVolumeResult.h" #include "model/ModifyDedicatedHostAutoRenewAttributeRequest.h" #include "model/ModifyDedicatedHostAutoRenewAttributeResult.h" #include "model/DescribeEipMonitorDataRequest.h" @@ -114,6 +118,8 @@ #include "model/DescribeSnapshotMonitorDataResult.h" #include "model/ConnectRouterInterfaceRequest.h" #include "model/ConnectRouterInterfaceResult.h" +#include "model/AddIpRangeRequest.h" +#include "model/AddIpRangeResult.h" #include "model/GetInstanceConsoleOutputRequest.h" #include "model/GetInstanceConsoleOutputResult.h" #include "model/CreateSimulatedSystemEventsRequest.h" @@ -134,6 +140,8 @@ #include "model/DescribeSecurityGroupsResult.h" #include "model/ResizeDiskRequest.h" #include "model/ResizeDiskResult.h" +#include "model/ResizeVolumeRequest.h" +#include "model/ResizeVolumeResult.h" #include "model/ModifyDedicatedHostAttributeRequest.h" #include "model/ModifyDedicatedHostAttributeResult.h" #include "model/CreateRouteEntryRequest.h" @@ -144,6 +152,10 @@ #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" #include "model/RunInstancesResult.h" #include "model/ModifyLaunchTemplateDefaultVersionRequest.h" @@ -218,8 +230,12 @@ #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" +#include "model/BindIpRangeResult.h" #include "model/InvokeCommandRequest.h" #include "model/InvokeCommandResult.h" #include "model/ModifyUserBusinessBehaviorRequest.h" @@ -254,6 +270,8 @@ #include "model/ReleaseDedicatedHostResult.h" #include "model/AddTagsRequest.h" #include "model/AddTagsResult.h" +#include "model/CancelUserEventRequest.h" +#include "model/CancelUserEventResult.h" #include "model/CreateHpcClusterRequest.h" #include "model/CreateHpcClusterResult.h" #include "model/DescribeUserBusinessBehaviorRequest.h" @@ -338,6 +356,8 @@ #include "model/DeleteLaunchTemplateResult.h" #include "model/DescribeNewProjectEipMonitorDataRequest.h" #include "model/DescribeNewProjectEipMonitorDataResult.h" +#include "model/UnbindIpRangeRequest.h" +#include "model/UnbindIpRangeResult.h" #include "model/DeleteRecycleBinRequest.h" #include "model/DeleteRecycleBinResult.h" #include "model/DescribeInstanceRamRoleRequest.h" @@ -364,6 +384,10 @@ #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" #include "model/DescribeBandwidthPackagesResult.h" #include "model/ApplyAutoSnapshotPolicyRequest.h" @@ -372,18 +396,24 @@ #include "model/CreateSecurityGroupResult.h" #include "model/DescribeSnapshotLinksRequest.h" #include "model/DescribeSnapshotLinksResult.h" +#include "model/DescribeEventDetailRequest.h" +#include "model/DescribeEventDetailResult.h" #include "model/DescribeInvocationResultsRequest.h" #include "model/DescribeInvocationResultsResult.h" #include "model/DescribeRecommendInstanceTypeRequest.h" #include "model/DescribeRecommendInstanceTypeResult.h" #include "model/DescribeTagKeysRequest.h" #include "model/DescribeTagKeysResult.h" +#include "model/CreateVolumeRequest.h" +#include "model/CreateVolumeResult.h" #include "model/DescribeDedicatedHostAutoRenewRequest.h" #include "model/DescribeDedicatedHostAutoRenewResult.h" #include "model/DeleteInstanceRequest.h" #include "model/DeleteInstanceResult.h" #include "model/CreateLaunchTemplateRequest.h" #include "model/CreateLaunchTemplateResult.h" +#include "model/DescribeIntranetAttributeKbRequest.h" +#include "model/DescribeIntranetAttributeKbResult.h" #include "model/CreateNetworkInterfacePermissionRequest.h" #include "model/CreateNetworkInterfacePermissionResult.h" #include "model/RemoveBandwidthPackageIpsRequest.h" @@ -402,6 +432,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" @@ -432,6 +466,8 @@ #include "model/ModifyAutoSnapshotPolicyExResult.h" #include "model/CreatePhysicalConnectionRequest.h" #include "model/CreatePhysicalConnectionResult.h" +#include "model/ModifyUserEventAttributeRequest.h" +#include "model/ModifyUserEventAttributeResult.h" #include "model/DescribeKeyPairsRequest.h" #include "model/DescribeKeyPairsResult.h" #include "model/ModifySecurityGroupPolicyRequest.h" @@ -440,14 +476,20 @@ #include "model/AssociateHaVipResult.h" #include "model/ConvertNatPublicIpToEipRequest.h" #include "model/ConvertNatPublicIpToEipResult.h" +#include "model/AssignIpv6AddressesRequest.h" +#include "model/AssignIpv6AddressesResult.h" #include "model/DeleteRouteEntryRequest.h" #include "model/DeleteRouteEntryResult.h" #include "model/DeleteVirtualBorderRouterRequest.h" #include "model/DeleteVirtualBorderRouterResult.h" #include "model/DescribeCloudAssistantStatusRequest.h" #include "model/DescribeCloudAssistantStatusResult.h" +#include "model/UnassignIpv6AddressesRequest.h" +#include "model/UnassignIpv6AddressesResult.h" #include "model/DescribeInstancePhysicalAttributeRequest.h" #include "model/DescribeInstancePhysicalAttributeResult.h" +#include "model/ValidateSecurityGroupRequest.h" +#include "model/ValidateSecurityGroupResult.h" #include "model/TerminatePhysicalConnectionRequest.h" #include "model/TerminatePhysicalConnectionResult.h" #include "model/AttachNetworkInterfaceRequest.h" @@ -470,12 +512,20 @@ #include "model/DescribeRegionsResult.h" #include "model/DescribeClassicLinkInstancesRequest.h" #include "model/DescribeClassicLinkInstancesResult.h" +#include "model/CreateUserEventRequest.h" +#include "model/CreateUserEventResult.h" +#include "model/DescribeAutoSnapshotPolicyRequest.h" +#include "model/DescribeAutoSnapshotPolicyResult.h" #include "model/DescribePhysicalConnectionsRequest.h" #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" +#include "model/DescribeIpRangesResult.h" #include "model/DeleteNetworkInterfacePermissionRequest.h" #include "model/DeleteNetworkInterfacePermissionResult.h" #include "model/CancelPhysicalConnectionRequest.h" @@ -494,6 +544,8 @@ #include "model/AllocateEipAddressResult.h" #include "model/DeleteDiskRequest.h" #include "model/DeleteDiskResult.h" +#include "model/DescribeEventsRequest.h" +#include "model/DescribeEventsResult.h" #include "model/UnassociateHaVipRequest.h" #include "model/UnassociateHaVipResult.h" #include "model/ModifyHaVipAttributeRequest.h" @@ -590,6 +642,9 @@ namespace AlibabaCloud typedef Outcome RevokeSecurityGroupOutcome; typedef std::future RevokeSecurityGroupOutcomeCallable; typedef std::function&)> RevokeSecurityGroupAsyncHandler; + typedef Outcome CheckAutoSnapshotPolicyOutcome; + typedef std::future CheckAutoSnapshotPolicyOutcomeCallable; + typedef std::function&)> CheckAutoSnapshotPolicyAsyncHandler; typedef Outcome DescribeTaskAttributeOutcome; typedef std::future DescribeTaskAttributeOutcomeCallable; typedef std::function&)> DescribeTaskAttributeAsyncHandler; @@ -620,6 +675,9 @@ namespace AlibabaCloud typedef Outcome AllocatePublicIpAddressOutcome; typedef std::future AllocatePublicIpAddressOutcomeCallable; typedef std::function&)> AllocatePublicIpAddressAsyncHandler; + typedef Outcome AttachVolumeOutcome; + typedef std::future AttachVolumeOutcomeCallable; + typedef std::function&)> AttachVolumeAsyncHandler; typedef Outcome ModifyDedicatedHostAutoRenewAttributeOutcome; typedef std::future ModifyDedicatedHostAutoRenewAttributeOutcomeCallable; typedef std::function&)> ModifyDedicatedHostAutoRenewAttributeAsyncHandler; @@ -659,6 +717,9 @@ namespace AlibabaCloud typedef Outcome ConnectRouterInterfaceOutcome; typedef std::future ConnectRouterInterfaceOutcomeCallable; typedef std::function&)> ConnectRouterInterfaceAsyncHandler; + typedef Outcome AddIpRangeOutcome; + typedef std::future AddIpRangeOutcomeCallable; + typedef std::function&)> AddIpRangeAsyncHandler; typedef Outcome GetInstanceConsoleOutputOutcome; typedef std::future GetInstanceConsoleOutputOutcomeCallable; typedef std::function&)> GetInstanceConsoleOutputAsyncHandler; @@ -689,6 +750,9 @@ namespace AlibabaCloud typedef Outcome ResizeDiskOutcome; typedef std::future ResizeDiskOutcomeCallable; typedef std::function&)> ResizeDiskAsyncHandler; + typedef Outcome ResizeVolumeOutcome; + typedef std::future ResizeVolumeOutcomeCallable; + typedef std::function&)> ResizeVolumeAsyncHandler; typedef Outcome ModifyDedicatedHostAttributeOutcome; typedef std::future ModifyDedicatedHostAttributeOutcomeCallable; typedef std::function&)> ModifyDedicatedHostAttributeAsyncHandler; @@ -704,6 +768,12 @@ namespace AlibabaCloud typedef Outcome CreateRouterInterfaceOutcome; typedef std::future CreateRouterInterfaceOutcomeCallable; typedef std::function&)> CreateRouterInterfaceAsyncHandler; + typedef Outcome ModifyVolumeAttributeOutcome; + typedef std::future ModifyVolumeAttributeOutcomeCallable; + typedef std::function&)> ModifyVolumeAttributeAsyncHandler; + typedef Outcome CheckDiskEnableAutoSnapshotValidationOutcome; + typedef std::future CheckDiskEnableAutoSnapshotValidationOutcomeCallable; + typedef std::function&)> CheckDiskEnableAutoSnapshotValidationAsyncHandler; typedef Outcome RunInstancesOutcome; typedef std::future RunInstancesOutcomeCallable; typedef std::function&)> RunInstancesAsyncHandler; @@ -815,9 +885,15 @@ namespace AlibabaCloud typedef Outcome DescribeSnapshotPackageOutcome; typedef std::future DescribeSnapshotPackageOutcomeCallable; typedef std::function&)> DescribeSnapshotPackageAsyncHandler; + typedef Outcome ReInitVolumeOutcome; + typedef std::future ReInitVolumeOutcomeCallable; + typedef std::function&)> ReInitVolumeAsyncHandler; typedef Outcome RebootInstanceOutcome; typedef std::future RebootInstanceOutcomeCallable; typedef std::function&)> RebootInstanceAsyncHandler; + typedef Outcome BindIpRangeOutcome; + typedef std::future BindIpRangeOutcomeCallable; + typedef std::function&)> BindIpRangeAsyncHandler; typedef Outcome InvokeCommandOutcome; typedef std::future InvokeCommandOutcomeCallable; typedef std::function&)> InvokeCommandAsyncHandler; @@ -869,6 +945,9 @@ namespace AlibabaCloud typedef Outcome AddTagsOutcome; typedef std::future AddTagsOutcomeCallable; typedef std::function&)> AddTagsAsyncHandler; + typedef Outcome CancelUserEventOutcome; + typedef std::future CancelUserEventOutcomeCallable; + typedef std::function&)> CancelUserEventAsyncHandler; typedef Outcome CreateHpcClusterOutcome; typedef std::future CreateHpcClusterOutcomeCallable; typedef std::function&)> CreateHpcClusterAsyncHandler; @@ -995,6 +1074,9 @@ namespace AlibabaCloud typedef Outcome DescribeNewProjectEipMonitorDataOutcome; typedef std::future DescribeNewProjectEipMonitorDataOutcomeCallable; typedef std::function&)> DescribeNewProjectEipMonitorDataAsyncHandler; + typedef Outcome UnbindIpRangeOutcome; + typedef std::future UnbindIpRangeOutcomeCallable; + typedef std::function&)> UnbindIpRangeAsyncHandler; typedef Outcome DeleteRecycleBinOutcome; typedef std::future DeleteRecycleBinOutcomeCallable; typedef std::function&)> DeleteRecycleBinAsyncHandler; @@ -1034,6 +1116,12 @@ namespace AlibabaCloud typedef Outcome ModifyDiskChargeTypeOutcome; typedef std::future ModifyDiskChargeTypeOutcomeCallable; typedef std::function&)> ModifyDiskChargeTypeAsyncHandler; + typedef Outcome DescribeVolumesOutcome; + typedef std::future DescribeVolumesOutcomeCallable; + typedef std::function&)> DescribeVolumesAsyncHandler; + typedef Outcome ModifyIntranetBandwidthKbOutcome; + typedef std::future ModifyIntranetBandwidthKbOutcomeCallable; + typedef std::function&)> ModifyIntranetBandwidthKbAsyncHandler; typedef Outcome DescribeBandwidthPackagesOutcome; typedef std::future DescribeBandwidthPackagesOutcomeCallable; typedef std::function&)> DescribeBandwidthPackagesAsyncHandler; @@ -1046,6 +1134,9 @@ namespace AlibabaCloud typedef Outcome DescribeSnapshotLinksOutcome; typedef std::future DescribeSnapshotLinksOutcomeCallable; typedef std::function&)> DescribeSnapshotLinksAsyncHandler; + typedef Outcome DescribeEventDetailOutcome; + typedef std::future DescribeEventDetailOutcomeCallable; + typedef std::function&)> DescribeEventDetailAsyncHandler; typedef Outcome DescribeInvocationResultsOutcome; typedef std::future DescribeInvocationResultsOutcomeCallable; typedef std::function&)> DescribeInvocationResultsAsyncHandler; @@ -1055,6 +1146,9 @@ namespace AlibabaCloud typedef Outcome DescribeTagKeysOutcome; typedef std::future DescribeTagKeysOutcomeCallable; typedef std::function&)> DescribeTagKeysAsyncHandler; + typedef Outcome CreateVolumeOutcome; + typedef std::future CreateVolumeOutcomeCallable; + typedef std::function&)> CreateVolumeAsyncHandler; typedef Outcome DescribeDedicatedHostAutoRenewOutcome; typedef std::future DescribeDedicatedHostAutoRenewOutcomeCallable; typedef std::function&)> DescribeDedicatedHostAutoRenewAsyncHandler; @@ -1064,6 +1158,9 @@ namespace AlibabaCloud typedef Outcome CreateLaunchTemplateOutcome; typedef std::future CreateLaunchTemplateOutcomeCallable; typedef std::function&)> CreateLaunchTemplateAsyncHandler; + typedef Outcome DescribeIntranetAttributeKbOutcome; + typedef std::future DescribeIntranetAttributeKbOutcomeCallable; + typedef std::function&)> DescribeIntranetAttributeKbAsyncHandler; typedef Outcome CreateNetworkInterfacePermissionOutcome; typedef std::future CreateNetworkInterfacePermissionOutcomeCallable; typedef std::function&)> CreateNetworkInterfacePermissionAsyncHandler; @@ -1091,6 +1188,12 @@ namespace AlibabaCloud typedef Outcome DescribeInstanceTypeFamiliesOutcome; typedef std::future DescribeInstanceTypeFamiliesOutcomeCallable; typedef std::function&)> DescribeInstanceTypeFamiliesAsyncHandler; + typedef Outcome RollbackVolumeOutcome; + typedef std::future RollbackVolumeOutcomeCallable; + typedef std::function&)> RollbackVolumeAsyncHandler; + typedef Outcome DeleteVolumeOutcome; + typedef std::future DeleteVolumeOutcomeCallable; + typedef std::function&)> DeleteVolumeAsyncHandler; typedef Outcome CreateForwardEntryOutcome; typedef std::future CreateForwardEntryOutcomeCallable; typedef std::function&)> CreateForwardEntryAsyncHandler; @@ -1136,6 +1239,9 @@ namespace AlibabaCloud typedef Outcome CreatePhysicalConnectionOutcome; typedef std::future CreatePhysicalConnectionOutcomeCallable; typedef std::function&)> CreatePhysicalConnectionAsyncHandler; + typedef Outcome ModifyUserEventAttributeOutcome; + typedef std::future ModifyUserEventAttributeOutcomeCallable; + typedef std::function&)> ModifyUserEventAttributeAsyncHandler; typedef Outcome DescribeKeyPairsOutcome; typedef std::future DescribeKeyPairsOutcomeCallable; typedef std::function&)> DescribeKeyPairsAsyncHandler; @@ -1148,6 +1254,9 @@ namespace AlibabaCloud typedef Outcome ConvertNatPublicIpToEipOutcome; typedef std::future ConvertNatPublicIpToEipOutcomeCallable; typedef std::function&)> ConvertNatPublicIpToEipAsyncHandler; + typedef Outcome AssignIpv6AddressesOutcome; + typedef std::future AssignIpv6AddressesOutcomeCallable; + typedef std::function&)> AssignIpv6AddressesAsyncHandler; typedef Outcome DeleteRouteEntryOutcome; typedef std::future DeleteRouteEntryOutcomeCallable; typedef std::function&)> DeleteRouteEntryAsyncHandler; @@ -1157,9 +1266,15 @@ namespace AlibabaCloud typedef Outcome DescribeCloudAssistantStatusOutcome; typedef std::future DescribeCloudAssistantStatusOutcomeCallable; typedef std::function&)> DescribeCloudAssistantStatusAsyncHandler; + typedef Outcome UnassignIpv6AddressesOutcome; + typedef std::future UnassignIpv6AddressesOutcomeCallable; + typedef std::function&)> UnassignIpv6AddressesAsyncHandler; typedef Outcome DescribeInstancePhysicalAttributeOutcome; typedef std::future DescribeInstancePhysicalAttributeOutcomeCallable; typedef std::function&)> DescribeInstancePhysicalAttributeAsyncHandler; + typedef Outcome ValidateSecurityGroupOutcome; + typedef std::future ValidateSecurityGroupOutcomeCallable; + typedef std::function&)> ValidateSecurityGroupAsyncHandler; typedef Outcome TerminatePhysicalConnectionOutcome; typedef std::future TerminatePhysicalConnectionOutcomeCallable; typedef std::function&)> TerminatePhysicalConnectionAsyncHandler; @@ -1193,15 +1308,27 @@ namespace AlibabaCloud typedef Outcome DescribeClassicLinkInstancesOutcome; typedef std::future DescribeClassicLinkInstancesOutcomeCallable; typedef std::function&)> DescribeClassicLinkInstancesAsyncHandler; + typedef Outcome CreateUserEventOutcome; + typedef std::future CreateUserEventOutcomeCallable; + typedef std::function&)> CreateUserEventAsyncHandler; + typedef Outcome DescribeAutoSnapshotPolicyOutcome; + typedef std::future DescribeAutoSnapshotPolicyOutcomeCallable; + typedef std::function&)> DescribeAutoSnapshotPolicyAsyncHandler; typedef Outcome DescribePhysicalConnectionsOutcome; typedef std::future DescribePhysicalConnectionsOutcomeCallable; typedef std::function&)> DescribePhysicalConnectionsAsyncHandler; typedef Outcome DescribeRecycleBinOutcome; typedef std::future DescribeRecycleBinOutcomeCallable; typedef std::function&)> DescribeRecycleBinAsyncHandler; + typedef Outcome DetachVolumeOutcome; + typedef std::future DetachVolumeOutcomeCallable; + typedef std::function&)> DetachVolumeAsyncHandler; typedef Outcome CreateNetworkInterfaceOutcome; typedef std::future CreateNetworkInterfaceOutcomeCallable; typedef std::function&)> CreateNetworkInterfaceAsyncHandler; + typedef Outcome DescribeIpRangesOutcome; + typedef std::future DescribeIpRangesOutcomeCallable; + typedef std::function&)> DescribeIpRangesAsyncHandler; typedef Outcome DeleteNetworkInterfacePermissionOutcome; typedef std::future DeleteNetworkInterfacePermissionOutcomeCallable; typedef std::function&)> DeleteNetworkInterfacePermissionAsyncHandler; @@ -1229,6 +1356,9 @@ namespace AlibabaCloud typedef Outcome DeleteDiskOutcome; typedef std::future DeleteDiskOutcomeCallable; typedef std::function&)> DeleteDiskAsyncHandler; + typedef Outcome DescribeEventsOutcome; + typedef std::future DescribeEventsOutcomeCallable; + typedef std::function&)> DescribeEventsAsyncHandler; typedef Outcome UnassociateHaVipOutcome; typedef std::future UnassociateHaVipOutcomeCallable; typedef std::function&)> UnassociateHaVipAsyncHandler; @@ -1330,6 +1460,9 @@ namespace AlibabaCloud RevokeSecurityGroupOutcome revokeSecurityGroup(const Model::RevokeSecurityGroupRequest &request)const; void revokeSecurityGroupAsync(const Model::RevokeSecurityGroupRequest& request, const RevokeSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RevokeSecurityGroupOutcomeCallable revokeSecurityGroupCallable(const Model::RevokeSecurityGroupRequest& request) const; + CheckAutoSnapshotPolicyOutcome checkAutoSnapshotPolicy(const Model::CheckAutoSnapshotPolicyRequest &request)const; + void checkAutoSnapshotPolicyAsync(const Model::CheckAutoSnapshotPolicyRequest& request, const CheckAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckAutoSnapshotPolicyOutcomeCallable checkAutoSnapshotPolicyCallable(const Model::CheckAutoSnapshotPolicyRequest& request) const; DescribeTaskAttributeOutcome describeTaskAttribute(const Model::DescribeTaskAttributeRequest &request)const; void describeTaskAttributeAsync(const Model::DescribeTaskAttributeRequest& request, const DescribeTaskAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTaskAttributeOutcomeCallable describeTaskAttributeCallable(const Model::DescribeTaskAttributeRequest& request) const; @@ -1360,6 +1493,9 @@ namespace AlibabaCloud AllocatePublicIpAddressOutcome allocatePublicIpAddress(const Model::AllocatePublicIpAddressRequest &request)const; void allocatePublicIpAddressAsync(const Model::AllocatePublicIpAddressRequest& request, const AllocatePublicIpAddressAsyncHandler& handler, const std::shared_ptr& 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& context = nullptr) const; + AttachVolumeOutcomeCallable attachVolumeCallable(const Model::AttachVolumeRequest& request) const; ModifyDedicatedHostAutoRenewAttributeOutcome modifyDedicatedHostAutoRenewAttribute(const Model::ModifyDedicatedHostAutoRenewAttributeRequest &request)const; void modifyDedicatedHostAutoRenewAttributeAsync(const Model::ModifyDedicatedHostAutoRenewAttributeRequest& request, const ModifyDedicatedHostAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDedicatedHostAutoRenewAttributeOutcomeCallable modifyDedicatedHostAutoRenewAttributeCallable(const Model::ModifyDedicatedHostAutoRenewAttributeRequest& request) const; @@ -1399,6 +1535,9 @@ namespace AlibabaCloud ConnectRouterInterfaceOutcome connectRouterInterface(const Model::ConnectRouterInterfaceRequest &request)const; void connectRouterInterfaceAsync(const Model::ConnectRouterInterfaceRequest& request, const ConnectRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ConnectRouterInterfaceOutcomeCallable connectRouterInterfaceCallable(const Model::ConnectRouterInterfaceRequest& request) const; + AddIpRangeOutcome addIpRange(const Model::AddIpRangeRequest &request)const; + void addIpRangeAsync(const Model::AddIpRangeRequest& request, const AddIpRangeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddIpRangeOutcomeCallable addIpRangeCallable(const Model::AddIpRangeRequest& request) const; GetInstanceConsoleOutputOutcome getInstanceConsoleOutput(const Model::GetInstanceConsoleOutputRequest &request)const; void getInstanceConsoleOutputAsync(const Model::GetInstanceConsoleOutputRequest& request, const GetInstanceConsoleOutputAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetInstanceConsoleOutputOutcomeCallable getInstanceConsoleOutputCallable(const Model::GetInstanceConsoleOutputRequest& request) const; @@ -1429,6 +1568,9 @@ namespace AlibabaCloud ResizeDiskOutcome resizeDisk(const Model::ResizeDiskRequest &request)const; void resizeDiskAsync(const Model::ResizeDiskRequest& request, const ResizeDiskAsyncHandler& handler, const std::shared_ptr& 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& context = nullptr) const; + ResizeVolumeOutcomeCallable resizeVolumeCallable(const Model::ResizeVolumeRequest& request) const; ModifyDedicatedHostAttributeOutcome modifyDedicatedHostAttribute(const Model::ModifyDedicatedHostAttributeRequest &request)const; void modifyDedicatedHostAttributeAsync(const Model::ModifyDedicatedHostAttributeRequest& request, const ModifyDedicatedHostAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDedicatedHostAttributeOutcomeCallable modifyDedicatedHostAttributeCallable(const Model::ModifyDedicatedHostAttributeRequest& request) const; @@ -1444,6 +1586,12 @@ namespace AlibabaCloud CreateRouterInterfaceOutcome createRouterInterface(const Model::CreateRouterInterfaceRequest &request)const; void createRouterInterfaceAsync(const Model::CreateRouterInterfaceRequest& request, const CreateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& 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& 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& context = nullptr) const; + CheckDiskEnableAutoSnapshotValidationOutcomeCallable checkDiskEnableAutoSnapshotValidationCallable(const Model::CheckDiskEnableAutoSnapshotValidationRequest& request) const; RunInstancesOutcome runInstances(const Model::RunInstancesRequest &request)const; void runInstancesAsync(const Model::RunInstancesRequest& request, const RunInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RunInstancesOutcomeCallable runInstancesCallable(const Model::RunInstancesRequest& request) const; @@ -1555,9 +1703,15 @@ namespace AlibabaCloud DescribeSnapshotPackageOutcome describeSnapshotPackage(const Model::DescribeSnapshotPackageRequest &request)const; void describeSnapshotPackageAsync(const Model::DescribeSnapshotPackageRequest& request, const DescribeSnapshotPackageAsyncHandler& handler, const std::shared_ptr& 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& 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& context = nullptr) const; RebootInstanceOutcomeCallable rebootInstanceCallable(const Model::RebootInstanceRequest& request) const; + BindIpRangeOutcome bindIpRange(const Model::BindIpRangeRequest &request)const; + void bindIpRangeAsync(const Model::BindIpRangeRequest& request, const BindIpRangeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindIpRangeOutcomeCallable bindIpRangeCallable(const Model::BindIpRangeRequest& request) const; InvokeCommandOutcome invokeCommand(const Model::InvokeCommandRequest &request)const; void invokeCommandAsync(const Model::InvokeCommandRequest& request, const InvokeCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; InvokeCommandOutcomeCallable invokeCommandCallable(const Model::InvokeCommandRequest& request) const; @@ -1609,6 +1763,9 @@ namespace AlibabaCloud AddTagsOutcome addTags(const Model::AddTagsRequest &request)const; void addTagsAsync(const Model::AddTagsRequest& request, const AddTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddTagsOutcomeCallable addTagsCallable(const Model::AddTagsRequest& request) const; + CancelUserEventOutcome cancelUserEvent(const Model::CancelUserEventRequest &request)const; + void cancelUserEventAsync(const Model::CancelUserEventRequest& request, const CancelUserEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelUserEventOutcomeCallable cancelUserEventCallable(const Model::CancelUserEventRequest& request) const; CreateHpcClusterOutcome createHpcCluster(const Model::CreateHpcClusterRequest &request)const; void createHpcClusterAsync(const Model::CreateHpcClusterRequest& request, const CreateHpcClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateHpcClusterOutcomeCallable createHpcClusterCallable(const Model::CreateHpcClusterRequest& request) const; @@ -1735,6 +1892,9 @@ namespace AlibabaCloud DescribeNewProjectEipMonitorDataOutcome describeNewProjectEipMonitorData(const Model::DescribeNewProjectEipMonitorDataRequest &request)const; void describeNewProjectEipMonitorDataAsync(const Model::DescribeNewProjectEipMonitorDataRequest& request, const DescribeNewProjectEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeNewProjectEipMonitorDataOutcomeCallable describeNewProjectEipMonitorDataCallable(const Model::DescribeNewProjectEipMonitorDataRequest& request) const; + UnbindIpRangeOutcome unbindIpRange(const Model::UnbindIpRangeRequest &request)const; + void unbindIpRangeAsync(const Model::UnbindIpRangeRequest& request, const UnbindIpRangeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnbindIpRangeOutcomeCallable unbindIpRangeCallable(const Model::UnbindIpRangeRequest& request) const; DeleteRecycleBinOutcome deleteRecycleBin(const Model::DeleteRecycleBinRequest &request)const; void deleteRecycleBinAsync(const Model::DeleteRecycleBinRequest& request, const DeleteRecycleBinAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteRecycleBinOutcomeCallable deleteRecycleBinCallable(const Model::DeleteRecycleBinRequest& request) const; @@ -1774,6 +1934,12 @@ namespace AlibabaCloud ModifyDiskChargeTypeOutcome modifyDiskChargeType(const Model::ModifyDiskChargeTypeRequest &request)const; void modifyDiskChargeTypeAsync(const Model::ModifyDiskChargeTypeRequest& request, const ModifyDiskChargeTypeAsyncHandler& handler, const std::shared_ptr& 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& 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& context = nullptr) const; + ModifyIntranetBandwidthKbOutcomeCallable modifyIntranetBandwidthKbCallable(const Model::ModifyIntranetBandwidthKbRequest& request) const; DescribeBandwidthPackagesOutcome describeBandwidthPackages(const Model::DescribeBandwidthPackagesRequest &request)const; void describeBandwidthPackagesAsync(const Model::DescribeBandwidthPackagesRequest& request, const DescribeBandwidthPackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBandwidthPackagesOutcomeCallable describeBandwidthPackagesCallable(const Model::DescribeBandwidthPackagesRequest& request) const; @@ -1786,6 +1952,9 @@ namespace AlibabaCloud DescribeSnapshotLinksOutcome describeSnapshotLinks(const Model::DescribeSnapshotLinksRequest &request)const; void describeSnapshotLinksAsync(const Model::DescribeSnapshotLinksRequest& request, const DescribeSnapshotLinksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSnapshotLinksOutcomeCallable describeSnapshotLinksCallable(const Model::DescribeSnapshotLinksRequest& request) const; + DescribeEventDetailOutcome describeEventDetail(const Model::DescribeEventDetailRequest &request)const; + void describeEventDetailAsync(const Model::DescribeEventDetailRequest& request, const DescribeEventDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEventDetailOutcomeCallable describeEventDetailCallable(const Model::DescribeEventDetailRequest& request) const; DescribeInvocationResultsOutcome describeInvocationResults(const Model::DescribeInvocationResultsRequest &request)const; void describeInvocationResultsAsync(const Model::DescribeInvocationResultsRequest& request, const DescribeInvocationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeInvocationResultsOutcomeCallable describeInvocationResultsCallable(const Model::DescribeInvocationResultsRequest& request) const; @@ -1795,6 +1964,9 @@ namespace AlibabaCloud DescribeTagKeysOutcome describeTagKeys(const Model::DescribeTagKeysRequest &request)const; void describeTagKeysAsync(const Model::DescribeTagKeysRequest& request, const DescribeTagKeysAsyncHandler& handler, const std::shared_ptr& 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& context = nullptr) const; + CreateVolumeOutcomeCallable createVolumeCallable(const Model::CreateVolumeRequest& request) const; DescribeDedicatedHostAutoRenewOutcome describeDedicatedHostAutoRenew(const Model::DescribeDedicatedHostAutoRenewRequest &request)const; void describeDedicatedHostAutoRenewAsync(const Model::DescribeDedicatedHostAutoRenewRequest& request, const DescribeDedicatedHostAutoRenewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDedicatedHostAutoRenewOutcomeCallable describeDedicatedHostAutoRenewCallable(const Model::DescribeDedicatedHostAutoRenewRequest& request) const; @@ -1804,6 +1976,9 @@ namespace AlibabaCloud CreateLaunchTemplateOutcome createLaunchTemplate(const Model::CreateLaunchTemplateRequest &request)const; void createLaunchTemplateAsync(const Model::CreateLaunchTemplateRequest& request, const CreateLaunchTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateLaunchTemplateOutcomeCallable createLaunchTemplateCallable(const Model::CreateLaunchTemplateRequest& request) const; + DescribeIntranetAttributeKbOutcome describeIntranetAttributeKb(const Model::DescribeIntranetAttributeKbRequest &request)const; + void describeIntranetAttributeKbAsync(const Model::DescribeIntranetAttributeKbRequest& request, const DescribeIntranetAttributeKbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIntranetAttributeKbOutcomeCallable describeIntranetAttributeKbCallable(const Model::DescribeIntranetAttributeKbRequest& request) const; CreateNetworkInterfacePermissionOutcome createNetworkInterfacePermission(const Model::CreateNetworkInterfacePermissionRequest &request)const; void createNetworkInterfacePermissionAsync(const Model::CreateNetworkInterfacePermissionRequest& request, const CreateNetworkInterfacePermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateNetworkInterfacePermissionOutcomeCallable createNetworkInterfacePermissionCallable(const Model::CreateNetworkInterfacePermissionRequest& request) const; @@ -1831,6 +2006,12 @@ namespace AlibabaCloud DescribeInstanceTypeFamiliesOutcome describeInstanceTypeFamilies(const Model::DescribeInstanceTypeFamiliesRequest &request)const; void describeInstanceTypeFamiliesAsync(const Model::DescribeInstanceTypeFamiliesRequest& request, const DescribeInstanceTypeFamiliesAsyncHandler& handler, const std::shared_ptr& 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& 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& 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& context = nullptr) const; CreateForwardEntryOutcomeCallable createForwardEntryCallable(const Model::CreateForwardEntryRequest& request) const; @@ -1876,6 +2057,9 @@ namespace AlibabaCloud CreatePhysicalConnectionOutcome createPhysicalConnection(const Model::CreatePhysicalConnectionRequest &request)const; void createPhysicalConnectionAsync(const Model::CreatePhysicalConnectionRequest& request, const CreatePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreatePhysicalConnectionOutcomeCallable createPhysicalConnectionCallable(const Model::CreatePhysicalConnectionRequest& request) const; + ModifyUserEventAttributeOutcome modifyUserEventAttribute(const Model::ModifyUserEventAttributeRequest &request)const; + void modifyUserEventAttributeAsync(const Model::ModifyUserEventAttributeRequest& request, const ModifyUserEventAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyUserEventAttributeOutcomeCallable modifyUserEventAttributeCallable(const Model::ModifyUserEventAttributeRequest& request) const; DescribeKeyPairsOutcome describeKeyPairs(const Model::DescribeKeyPairsRequest &request)const; void describeKeyPairsAsync(const Model::DescribeKeyPairsRequest& request, const DescribeKeyPairsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeKeyPairsOutcomeCallable describeKeyPairsCallable(const Model::DescribeKeyPairsRequest& request) const; @@ -1888,6 +2072,9 @@ namespace AlibabaCloud ConvertNatPublicIpToEipOutcome convertNatPublicIpToEip(const Model::ConvertNatPublicIpToEipRequest &request)const; void convertNatPublicIpToEipAsync(const Model::ConvertNatPublicIpToEipRequest& request, const ConvertNatPublicIpToEipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ConvertNatPublicIpToEipOutcomeCallable convertNatPublicIpToEipCallable(const Model::ConvertNatPublicIpToEipRequest& request) const; + AssignIpv6AddressesOutcome assignIpv6Addresses(const Model::AssignIpv6AddressesRequest &request)const; + void assignIpv6AddressesAsync(const Model::AssignIpv6AddressesRequest& request, const AssignIpv6AddressesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssignIpv6AddressesOutcomeCallable assignIpv6AddressesCallable(const Model::AssignIpv6AddressesRequest& request) const; DeleteRouteEntryOutcome deleteRouteEntry(const Model::DeleteRouteEntryRequest &request)const; void deleteRouteEntryAsync(const Model::DeleteRouteEntryRequest& request, const DeleteRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteRouteEntryOutcomeCallable deleteRouteEntryCallable(const Model::DeleteRouteEntryRequest& request) const; @@ -1897,9 +2084,15 @@ namespace AlibabaCloud DescribeCloudAssistantStatusOutcome describeCloudAssistantStatus(const Model::DescribeCloudAssistantStatusRequest &request)const; void describeCloudAssistantStatusAsync(const Model::DescribeCloudAssistantStatusRequest& request, const DescribeCloudAssistantStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCloudAssistantStatusOutcomeCallable describeCloudAssistantStatusCallable(const Model::DescribeCloudAssistantStatusRequest& request) const; + UnassignIpv6AddressesOutcome unassignIpv6Addresses(const Model::UnassignIpv6AddressesRequest &request)const; + void unassignIpv6AddressesAsync(const Model::UnassignIpv6AddressesRequest& request, const UnassignIpv6AddressesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnassignIpv6AddressesOutcomeCallable unassignIpv6AddressesCallable(const Model::UnassignIpv6AddressesRequest& request) const; DescribeInstancePhysicalAttributeOutcome describeInstancePhysicalAttribute(const Model::DescribeInstancePhysicalAttributeRequest &request)const; void describeInstancePhysicalAttributeAsync(const Model::DescribeInstancePhysicalAttributeRequest& request, const DescribeInstancePhysicalAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeInstancePhysicalAttributeOutcomeCallable describeInstancePhysicalAttributeCallable(const Model::DescribeInstancePhysicalAttributeRequest& request) const; + ValidateSecurityGroupOutcome validateSecurityGroup(const Model::ValidateSecurityGroupRequest &request)const; + void validateSecurityGroupAsync(const Model::ValidateSecurityGroupRequest& request, const ValidateSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ValidateSecurityGroupOutcomeCallable validateSecurityGroupCallable(const Model::ValidateSecurityGroupRequest& request) const; TerminatePhysicalConnectionOutcome terminatePhysicalConnection(const Model::TerminatePhysicalConnectionRequest &request)const; void terminatePhysicalConnectionAsync(const Model::TerminatePhysicalConnectionRequest& request, const TerminatePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TerminatePhysicalConnectionOutcomeCallable terminatePhysicalConnectionCallable(const Model::TerminatePhysicalConnectionRequest& request) const; @@ -1933,15 +2126,27 @@ namespace AlibabaCloud DescribeClassicLinkInstancesOutcome describeClassicLinkInstances(const Model::DescribeClassicLinkInstancesRequest &request)const; void describeClassicLinkInstancesAsync(const Model::DescribeClassicLinkInstancesRequest& request, const DescribeClassicLinkInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeClassicLinkInstancesOutcomeCallable describeClassicLinkInstancesCallable(const Model::DescribeClassicLinkInstancesRequest& request) const; + CreateUserEventOutcome createUserEvent(const Model::CreateUserEventRequest &request)const; + void createUserEventAsync(const Model::CreateUserEventRequest& request, const CreateUserEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUserEventOutcomeCallable createUserEventCallable(const Model::CreateUserEventRequest& request) const; + DescribeAutoSnapshotPolicyOutcome describeAutoSnapshotPolicy(const Model::DescribeAutoSnapshotPolicyRequest &request)const; + void describeAutoSnapshotPolicyAsync(const Model::DescribeAutoSnapshotPolicyRequest& request, const DescribeAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAutoSnapshotPolicyOutcomeCallable describeAutoSnapshotPolicyCallable(const Model::DescribeAutoSnapshotPolicyRequest& request) const; DescribePhysicalConnectionsOutcome describePhysicalConnections(const Model::DescribePhysicalConnectionsRequest &request)const; void describePhysicalConnectionsAsync(const Model::DescribePhysicalConnectionsRequest& request, const DescribePhysicalConnectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribePhysicalConnectionsOutcomeCallable describePhysicalConnectionsCallable(const Model::DescribePhysicalConnectionsRequest& request) const; DescribeRecycleBinOutcome describeRecycleBin(const Model::DescribeRecycleBinRequest &request)const; void describeRecycleBinAsync(const Model::DescribeRecycleBinRequest& request, const DescribeRecycleBinAsyncHandler& handler, const std::shared_ptr& 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& 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& context = nullptr) const; CreateNetworkInterfaceOutcomeCallable createNetworkInterfaceCallable(const Model::CreateNetworkInterfaceRequest& request) const; + DescribeIpRangesOutcome describeIpRanges(const Model::DescribeIpRangesRequest &request)const; + void describeIpRangesAsync(const Model::DescribeIpRangesRequest& request, const DescribeIpRangesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIpRangesOutcomeCallable describeIpRangesCallable(const Model::DescribeIpRangesRequest& request) const; DeleteNetworkInterfacePermissionOutcome deleteNetworkInterfacePermission(const Model::DeleteNetworkInterfacePermissionRequest &request)const; void deleteNetworkInterfacePermissionAsync(const Model::DeleteNetworkInterfacePermissionRequest& request, const DeleteNetworkInterfacePermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteNetworkInterfacePermissionOutcomeCallable deleteNetworkInterfacePermissionCallable(const Model::DeleteNetworkInterfacePermissionRequest& request) const; @@ -1969,6 +2174,9 @@ namespace AlibabaCloud DeleteDiskOutcome deleteDisk(const Model::DeleteDiskRequest &request)const; void deleteDiskAsync(const Model::DeleteDiskRequest& request, const DeleteDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDiskOutcomeCallable deleteDiskCallable(const Model::DeleteDiskRequest& request) const; + DescribeEventsOutcome describeEvents(const Model::DescribeEventsRequest &request)const; + void describeEventsAsync(const Model::DescribeEventsRequest& request, const DescribeEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEventsOutcomeCallable describeEventsCallable(const Model::DescribeEventsRequest& request) const; UnassociateHaVipOutcome unassociateHaVip(const Model::UnassociateHaVipRequest &request)const; void unassociateHaVipAsync(const Model::UnassociateHaVipRequest& request, const UnassociateHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnassociateHaVipOutcomeCallable unassociateHaVipCallable(const Model::UnassociateHaVipRequest& request) const; diff --git a/ecs/include/alibabacloud/ecs/model/AddIpRangeRequest.h b/ecs/include/alibabacloud/ecs/model/AddIpRangeRequest.h new file mode 100644 index 000000000..9419fd0c8 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AddIpRangeRequest.h @@ -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_ADDIPRANGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ADDIPRANGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AddIpRangeRequest : public RpcServiceRequest + { + + public: + AddIpRangeRequest(); + ~AddIpRangeRequest(); + + std::string getIpAddress()const; + void setIpAddress(const std::string& ipAddress); + 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 getZoneId()const; + void setZoneId(const std::string& zoneId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string ipAddress_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string zoneId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ADDIPRANGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AddIpRangeResult.h b/ecs/include/alibabacloud/ecs/model/AddIpRangeResult.h new file mode 100644 index 000000000..8cd100740 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AddIpRangeResult.h @@ -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_ADDIPRANGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ADDIPRANGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AddIpRangeResult : public ServiceResult + { + public: + + + AddIpRangeResult(); + explicit AddIpRangeResult(const std::string &payload); + ~AddIpRangeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ADDIPRANGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h b/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h new file mode 100644 index 000000000..bf94b7cce --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h @@ -0,0 +1,126 @@ +/* + * 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_ASSIGNIPV6ADDRESSESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AssignIpv6AddressesRequest : public RpcServiceRequest + { + + public: + AssignIpv6AddressesRequest(); + ~AssignIpv6AddressesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + int getIpv6AddressCount()const; + void setIpv6AddressCount(int ipv6AddressCount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getNetworkInterfaceId()const; + void setNetworkInterfaceId(const std::string& networkInterfaceId); + std::vector getIpv6Address()const; + void setIpv6Address(const std::vector& ipv6Address); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + int ipv6AddressCount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string networkInterfaceId_; + std::vector ipv6Address_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesResult.h b/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesResult.h new file mode 100644 index 000000000..cc7a6704b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesResult.h @@ -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_ASSIGNIPV6ADDRESSESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AssignIpv6AddressesResult : public ServiceResult + { + public: + + + AssignIpv6AddressesResult(); + explicit AssignIpv6AddressesResult(const std::string &payload); + ~AssignIpv6AddressesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachVolumeRequest.h b/ecs/include/alibabacloud/ecs/model/AttachVolumeRequest.h new file mode 100644 index 000000000..841f6ad4b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AttachVolumeRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachVolumeResult.h b/ecs/include/alibabacloud/ecs/model/AttachVolumeResult.h new file mode 100644 index 000000000..b1453a708 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AttachVolumeResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h index d9790a759..c208ef6f8 100644 --- a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h @@ -73,6 +73,10 @@ namespace AlibabaCloud void setCallerUidEmail(const std::string& callerUidEmail); long getCallerUid()const; void setCallerUid(long callerUid); + std::string getIpv6DestCidrIp()const; + void setIpv6DestCidrIp(const std::string& ipv6DestCidrIp); + std::string getIpv6SourceCidrIp()const; + void setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp); std::string getPolicy()const; void setPolicy(const std::string& policy); std::string getApp_ip()const; @@ -130,6 +134,8 @@ namespace AlibabaCloud std::string callerBidEmail_; std::string callerUidEmail_; long callerUid_; + std::string ipv6DestCidrIp_; + std::string ipv6SourceCidrIp_; std::string policy_; std::string app_ip_; std::string portRange_; diff --git a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h index 6fc5af286..72858f09c 100644 --- a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h @@ -77,6 +77,10 @@ namespace AlibabaCloud void setCallerUidEmail(const std::string& callerUidEmail); long getCallerUid()const; void setCallerUid(long callerUid); + std::string getIpv6SourceCidrIp()const; + void setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp); + std::string getIpv6DestCidrIp()const; + void setIpv6DestCidrIp(const std::string& ipv6DestCidrIp); std::string getPolicy()const; void setPolicy(const std::string& policy); std::string getApp_ip()const; @@ -132,6 +136,8 @@ namespace AlibabaCloud std::string callerBidEmail_; std::string callerUidEmail_; long callerUid_; + std::string ipv6SourceCidrIp_; + std::string ipv6DestCidrIp_; std::string policy_; std::string app_ip_; std::string portRange_; diff --git a/ecs/include/alibabacloud/ecs/model/BindIpRangeRequest.h b/ecs/include/alibabacloud/ecs/model/BindIpRangeRequest.h new file mode 100644 index 000000000..30b20de62 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/BindIpRangeRequest.h @@ -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_BINDIPRANGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_BINDIPRANGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT BindIpRangeRequest : public RpcServiceRequest + { + + public: + BindIpRangeRequest(); + ~BindIpRangeRequest(); + + std::string getIpAddress()const; + void setIpAddress(const std::string& ipAddress); + 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 getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string ipAddress_; + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_BINDIPRANGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/BindIpRangeResult.h b/ecs/include/alibabacloud/ecs/model/BindIpRangeResult.h new file mode 100644 index 000000000..36ebd6a90 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/BindIpRangeResult.h @@ -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_BINDIPRANGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_BINDIPRANGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT BindIpRangeResult : public ServiceResult + { + public: + + + BindIpRangeResult(); + explicit BindIpRangeResult(const std::string &payload); + ~BindIpRangeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_BINDIPRANGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelUserEventRequest.h b/ecs/include/alibabacloud/ecs/model/CancelUserEventRequest.h new file mode 100644 index 000000000..862f1e5dd --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CancelUserEventRequest.h @@ -0,0 +1,117 @@ +/* + * 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_CANCELUSEREVENTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELUSEREVENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelUserEventRequest : public RpcServiceRequest + { + + public: + CancelUserEventRequest(); + ~CancelUserEventRequest(); + + std::string getEventId()const; + void setEventId(const std::string& eventId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + std::string eventId_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceId_; + std::string resourceOwnerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELUSEREVENTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelUserEventResult.h b/ecs/include/alibabacloud/ecs/model/CancelUserEventResult.h new file mode 100644 index 000000000..941d9990f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CancelUserEventResult.h @@ -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_CANCELUSEREVENTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELUSEREVENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelUserEventResult : public ServiceResult + { + public: + + + CancelUserEventResult(); + explicit CancelUserEventResult(const std::string &payload); + ~CancelUserEventResult(); + std::string getEventId()const; + + protected: + void parse(const std::string &payload); + private: + std::string eventId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELUSEREVENTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyRequest.h new file mode 100644 index 000000000..3c7d3613d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CHECKAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CHECKAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CheckAutoSnapshotPolicyRequest : public RpcServiceRequest + { + + public: + CheckAutoSnapshotPolicyRequest(); + ~CheckAutoSnapshotPolicyRequest(); + + bool getDataDiskPolicyEnabled()const; + void setDataDiskPolicyEnabled(bool dataDiskPolicyEnabled); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getDataDiskPolicyRetentionDays()const; + void setDataDiskPolicyRetentionDays(int dataDiskPolicyRetentionDays); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + bool getSystemDiskPolicyRetentionLastWeek()const; + void setSystemDiskPolicyRetentionLastWeek(bool systemDiskPolicyRetentionLastWeek); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getSystemDiskPolicyTimePeriod()const; + void setSystemDiskPolicyTimePeriod(int systemDiskPolicyTimePeriod); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getDataDiskPolicyRetentionLastWeek()const; + void setDataDiskPolicyRetentionLastWeek(bool dataDiskPolicyRetentionLastWeek); + int getSystemDiskPolicyRetentionDays()const; + void setSystemDiskPolicyRetentionDays(int systemDiskPolicyRetentionDays); + int getDataDiskPolicyTimePeriod()const; + void setDataDiskPolicyTimePeriod(int dataDiskPolicyTimePeriod); + bool getSystemDiskPolicyEnabled()const; + void setSystemDiskPolicyEnabled(bool systemDiskPolicyEnabled); + + private: + bool dataDiskPolicyEnabled_; + long resourceOwnerId_; + int dataDiskPolicyRetentionDays_; + std::string resourceOwnerAccount_; + bool systemDiskPolicyRetentionLastWeek_; + std::string ownerAccount_; + int systemDiskPolicyTimePeriod_; + long ownerId_; + bool dataDiskPolicyRetentionLastWeek_; + int systemDiskPolicyRetentionDays_; + int dataDiskPolicyTimePeriod_; + bool systemDiskPolicyEnabled_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CHECKAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyResult.h b/ecs/include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyResult.h new file mode 100644 index 000000000..1727222c0 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyResult.h @@ -0,0 +1,53 @@ +/* + * 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_CHECKAUTOSNAPSHOTPOLICYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CHECKAUTOSNAPSHOTPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CheckAutoSnapshotPolicyResult : public ServiceResult + { + public: + + + CheckAutoSnapshotPolicyResult(); + explicit CheckAutoSnapshotPolicyResult(const std::string &payload); + ~CheckAutoSnapshotPolicyResult(); + int getAutoSnapshotOccupation()const; + std::string getIsPermittedModify()const; + + protected: + void parse(const std::string &payload); + private: + int autoSnapshotOccupation_; + std::string isPermittedModify_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CHECKAUTOSNAPSHOTPOLICYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationRequest.h b/ecs/include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationRequest.h new file mode 100644 index 000000000..148ab6ae7 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationRequest.h @@ -0,0 +1,60 @@ +/* + * 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_CHECKDISKENABLEAUTOSNAPSHOTVALIDATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CHECKDISKENABLEAUTOSNAPSHOTVALIDATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CheckDiskEnableAutoSnapshotValidationRequest : public RpcServiceRequest + { + + public: + CheckDiskEnableAutoSnapshotValidationRequest(); + ~CheckDiskEnableAutoSnapshotValidationRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDiskIds()const; + void setDiskIds(const std::string& diskIds); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string diskIds_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CHECKDISKENABLEAUTOSNAPSHOTVALIDATIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationResult.h b/ecs/include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationResult.h new file mode 100644 index 000000000..05053a6fb --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationResult.h @@ -0,0 +1,53 @@ +/* + * 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_CHECKDISKENABLEAUTOSNAPSHOTVALIDATIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CHECKDISKENABLEAUTOSNAPSHOTVALIDATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CheckDiskEnableAutoSnapshotValidationResult : public ServiceResult + { + public: + + + CheckDiskEnableAutoSnapshotValidationResult(); + explicit CheckDiskEnableAutoSnapshotValidationResult(const std::string &payload); + ~CheckDiskEnableAutoSnapshotValidationResult(); + int getAutoSnapshotOccupation()const; + std::string getIsPermitted()const; + + protected: + void parse(const std::string &payload); + private: + int autoSnapshotOccupation_; + std::string isPermitted_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CHECKDISKENABLEAUTOSNAPSHOTVALIDATIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateUserEventRequest.h b/ecs/include/alibabacloud/ecs/model/CreateUserEventRequest.h new file mode 100644 index 000000000..416a85306 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateUserEventRequest.h @@ -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_CREATEUSEREVENTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEUSEREVENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateUserEventRequest : public RpcServiceRequest + { + + public: + CreateUserEventRequest(); + ~CreateUserEventRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getPlanTime()const; + void setPlanTime(const std::string& planTime); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getExpireTime()const; + void setExpireTime(const std::string& expireTime); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getEventType()const; + void setEventType(const std::string& eventType); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string planTime_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string expireTime_; + std::string resourceId_; + std::string resourceOwnerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string eventType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEUSEREVENTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateUserEventResult.h b/ecs/include/alibabacloud/ecs/model/CreateUserEventResult.h new file mode 100644 index 000000000..935613ab9 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateUserEventResult.h @@ -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_CREATEUSEREVENTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEUSEREVENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateUserEventResult : public ServiceResult + { + public: + + + CreateUserEventResult(); + explicit CreateUserEventResult(const std::string &payload); + ~CreateUserEventResult(); + std::string getEventId()const; + + protected: + void parse(const std::string &payload); + private: + std::string eventId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEUSEREVENTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateVolumeRequest.h b/ecs/include/alibabacloud/ecs/model/CreateVolumeRequest.h new file mode 100644 index 000000000..29ce019ea --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateVolumeRequest.h @@ -0,0 +1,92 @@ +/* + * 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 +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateVolumeRequest : public RpcServiceRequest + { + struct Tag + { + std::string value; + std::string key; + }; + + public: + CreateVolumeRequest(); + ~CreateVolumeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnapshotId()const; + void setSnapshotId(const std::string& snapshotId); + std::string getVolumeName()const; + void setVolumeName(const std::string& volumeName); + bool getVolumeEncrypted()const; + void setVolumeEncrypted(bool volumeEncrypted); + 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); + long getOwnerId()const; + void setOwnerId(long ownerId); + 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 getZoneId()const; + void setZoneId(const std::string& zoneId); + std::vector getTag()const; + void setTag(const std::vector& tag); + + private: + long resourceOwnerId_; + std::string snapshotId_; + std::string volumeName_; + bool volumeEncrypted_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + std::string volumeCategory_; + int size_; + std::string regionId_; + std::string zoneId_; + std::vector tag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEVOLUMEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateVolumeResult.h b/ecs/include/alibabacloud/ecs/model/CreateVolumeResult.h new file mode 100644 index 000000000..c30187c46 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateVolumeResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteVolumeRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteVolumeRequest.h new file mode 100644 index 000000000..2716f5aed --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteVolumeRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteVolumeResult.h b/ecs/include/alibabacloud/ecs/model/DeleteVolumeResult.h new file mode 100644 index 000000000..75be3ccaa --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteVolumeResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyRequest.h new file mode 100644 index 000000000..ed811407e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyRequest.h @@ -0,0 +1,57 @@ +/* + * 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_DESCRIBEAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAutoSnapshotPolicyRequest : public RpcServiceRequest + { + + public: + DescribeAutoSnapshotPolicyRequest(); + ~DescribeAutoSnapshotPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyResult.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyResult.h new file mode 100644 index 000000000..9943bd0c0 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyResult.h @@ -0,0 +1,71 @@ +/* + * 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_DESCRIBEAUTOSNAPSHOTPOLICYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAutoSnapshotPolicyResult : public ServiceResult + { + public: + struct AutoSnapshotPolicy + { + std::string systemDiskPolicyTimePeriod; + std::string systemDiskPolicyEnabled; + std::string dataDiskPolicyTimePeriod; + std::string systemDiskPolicyRetentionLastWeek; + std::string systemDiskPolicyRetentionDays; + std::string dataDiskPolicyRetentionDays; + std::string dataDiskPolicyRetentionLastWeek; + std::string dataDiskPolicyEnabled; + }; + struct AutoSnapshotExcutionStatus + { + std::string systemDiskExcutionStatus; + std::string dataDiskExcutionStatus; + }; + + + DescribeAutoSnapshotPolicyResult(); + explicit DescribeAutoSnapshotPolicyResult(const std::string &payload); + ~DescribeAutoSnapshotPolicyResult(); + int getAutoSnapshotOccupation()const; + AutoSnapshotExcutionStatus getAutoSnapshotExcutionStatus()const; + AutoSnapshotPolicy getAutoSnapshotPolicy()const; + + protected: + void parse(const std::string &payload); + private: + int autoSnapshotOccupation_; + AutoSnapshotExcutionStatus autoSnapshotExcutionStatus_; + AutoSnapshotPolicy autoSnapshotPolicy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeEventDetailRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeEventDetailRequest.h new file mode 100644 index 000000000..db3ae6243 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeEventDetailRequest.h @@ -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_DESCRIBEEVENTDETAILREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEVENTDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeEventDetailRequest : public RpcServiceRequest + { + + public: + DescribeEventDetailRequest(); + ~DescribeEventDetailRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getEventId()const; + void setEventId(const std::string& eventId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + std::string eventId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + long ownerId_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEEVENTDETAILREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeEventDetailResult.h b/ecs/include/alibabacloud/ecs/model/DescribeEventDetailResult.h new file mode 100644 index 000000000..1462ddd4a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeEventDetailResult.h @@ -0,0 +1,75 @@ +/* + * 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_DESCRIBEEVENTDETAILRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEVENTDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeEventDetailResult : public ServiceResult + { + public: + + + DescribeEventDetailResult(); + explicit DescribeEventDetailResult(const std::string &payload); + ~DescribeEventDetailResult(); + std::string getStatus()const; + std::string getLimitTime()const; + std::string getEventCategory()const; + std::string getEndTime()const; + std::string getEventType()const; + std::string getStartTime()const; + std::string getEffectTime()const; + std::string getMark()const; + std::string getPlanTime()const; + std::string getResourceId()const; + std::string getSupportModify()const; + std::string getEventId()const; + std::string getExpireTime()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string limitTime_; + std::string eventCategory_; + std::string endTime_; + std::string eventType_; + std::string startTime_; + std::string effectTime_; + std::string mark_; + std::string planTime_; + std::string resourceId_; + std::string supportModify_; + std::string eventId_; + std::string expireTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEEVENTDETAILRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeEventsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeEventsRequest.h new file mode 100644 index 000000000..d6ef63a33 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeEventsRequest.h @@ -0,0 +1,135 @@ +/* + * 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_DESCRIBEEVENTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEVENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeEventsRequest : public RpcServiceRequest + { + + public: + DescribeEventsRequest(); + ~DescribeEventsRequest(); + + std::string getEventId()const; + void setEventId(const std::string& eventId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getPlanTime()const; + void setPlanTime(const std::string& planTime); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getExpireTime()const; + void setExpireTime(const std::string& expireTime); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getEventType()const; + void setEventType(const std::string& eventType); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string eventId_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + int pageNumber_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + int pageSize_; + std::string callerBidEmail_; + std::string planTime_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string expireTime_; + std::string resourceId_; + std::string resourceOwnerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string eventType_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEEVENTSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeEventsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeEventsResult.h new file mode 100644 index 000000000..b239589c1 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeEventsResult.h @@ -0,0 +1,68 @@ +/* + * 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_DESCRIBEEVENTSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEVENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeEventsResult : public ServiceResult + { + public: + struct Event + { + std::string status; + std::string eventCategory; + std::string resourceId; + std::string eventType; + std::string supportModify; + std::string eventId; + std::string planTime; + std::string expireTime; + }; + + + DescribeEventsResult(); + explicit DescribeEventsResult(const std::string &payload); + ~DescribeEventsResult(); + int getTotalCount()const; + int getPageSize()const; + std::vector getEvents()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::vector events_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEEVENTSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImagesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeImagesResult.h index 4568f1ba2..96214e1dd 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeImagesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeImagesResult.h @@ -38,11 +38,13 @@ namespace AlibabaCloud { std::string snapshotId; std::string type; + std::string progress; std::string format; std::string size; std::string device; std::string importOSSBucket; std::string importOSSObject; + int remainTime; }; struct Tag { diff --git a/ecs/include/alibabacloud/ecs/model/DescribeIntranetAttributeKbRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeIntranetAttributeKbRequest.h new file mode 100644 index 000000000..f61135f7c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeIntranetAttributeKbRequest.h @@ -0,0 +1,60 @@ +/* + * 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_DESCRIBEINTRANETATTRIBUTEKBREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINTRANETATTRIBUTEKBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeIntranetAttributeKbRequest : public RpcServiceRequest + { + + public: + DescribeIntranetAttributeKbRequest(); + ~DescribeIntranetAttributeKbRequest(); + + 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 getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINTRANETATTRIBUTEKBREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeIntranetAttributeKbResult.h b/ecs/include/alibabacloud/ecs/model/DescribeIntranetAttributeKbResult.h new file mode 100644 index 000000000..6a6009ad9 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeIntranetAttributeKbResult.h @@ -0,0 +1,59 @@ +/* + * 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_DESCRIBEINTRANETATTRIBUTEKBRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINTRANETATTRIBUTEKBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeIntranetAttributeKbResult : public ServiceResult + { + public: + + + DescribeIntranetAttributeKbResult(); + explicit DescribeIntranetAttributeKbResult(const std::string &payload); + ~DescribeIntranetAttributeKbResult(); + std::string getInstanceId()const; + int getIntranetMaxBandwidthOut()const; + std::string getVlanId()const; + std::string getIntranetIpAddress()const; + int getIntranetMaxBandwidthIn()const; + + protected: + void parse(const std::string &payload); + private: + std::string instanceId_; + int intranetMaxBandwidthOut_; + std::string vlanId_; + std::string intranetIpAddress_; + int intranetMaxBandwidthIn_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINTRANETATTRIBUTEKBRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeIpRangesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeIpRangesRequest.h new file mode 100644 index 000000000..a9394b3fc --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeIpRangesRequest.h @@ -0,0 +1,72 @@ +/* + * 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_DESCRIBEIPRANGESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIPRANGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeIpRangesRequest : public RpcServiceRequest + { + + public: + DescribeIpRangesRequest(); + ~DescribeIpRangesRequest(); + + std::string getNicType()const; + void setNicType(const std::string& nicType); + 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); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string nicType_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + std::string clusterId_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIPRANGESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeIpRangesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeIpRangesResult.h new file mode 100644 index 000000000..7a1b03275 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeIpRangesResult.h @@ -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_DESCRIBEIPRANGESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIPRANGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeIpRangesResult : public ServiceResult + { + public: + struct IpRange + { + std::string ipAddress; + std::string nicType; + }; + + + DescribeIpRangesResult(); + explicit DescribeIpRangesResult(const std::string &payload); + ~DescribeIpRangesResult(); + int getTotalCount()const; + int getPageSize()const; + std::string getClusterId()const; + int getPageNumber()const; + std::vector getIpRanges()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::string clusterId_; + int pageNumber_; + std::vector ipRanges_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIPRANGESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesResult.h index 92b971baa..186ac9fa7 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesResult.h @@ -50,6 +50,10 @@ namespace AlibabaCloud std::string privateIpAddress; bool primary; }; + struct Ipv6Set + { + std::string ipv6Address; + }; struct Tag { std::string tagKey; @@ -67,6 +71,7 @@ namespace AlibabaCloud std::string macAddress; std::vector securityGroupIds; std::string type; + std::vector ipv6Sets; std::string vpcId; AssociatedPublicIp associatedPublicIp; std::string creationTime; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h index e6d4236fe..4fdf91371 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string sourcePortRange; std::string priority; std::string createTime; + std::string ipv6SourceCidrIp; std::string nicType; std::string destGroupId; std::string direction; @@ -51,6 +52,7 @@ namespace AlibabaCloud std::string destGroupName; std::string destCidrIp; std::string sourceGroupOwnerAccount; + std::string ipv6DestCidrIp; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesResult.h index a1de42f03..178ad504c 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesResult.h @@ -39,6 +39,7 @@ namespace AlibabaCloud std::string description; std::string vpcId; std::string zoneId; + std::string resourceGroupId; std::string vSwitchId; long availableIpAddressCount; std::string creationTime; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVolumesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeVolumesRequest.h new file mode 100644 index 000000000..4fa68c9ca --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeVolumesRequest.h @@ -0,0 +1,101 @@ +/* + * 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 +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVolumesRequest : public RpcServiceRequest + { + struct Tag + { + std::string value; + std::string key; + }; + + public: + DescribeVolumesRequest(); + ~DescribeVolumesRequest(); + + 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 getAutoSnapshotPolicyId()const; + void setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + bool getEnableAutomatedSnapshotPolicy()const; + void setEnableAutomatedSnapshotPolicy(bool enableAutomatedSnapshotPolicy); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + 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 getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getVolumeIds()const; + void setVolumeIds(const std::string& volumeIds); + std::vector getTag()const; + void setTag(const std::vector& tag); + std::string getCategory()const; + void setCategory(const std::string& category); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + long resourceOwnerId_; + std::string snapshotId_; + std::string resourceOwnerAccount_; + std::string autoSnapshotPolicyId_; + std::string ownerAccount_; + bool enableAutomatedSnapshotPolicy_; + long ownerId_; + int pageNumber_; + std::string instanceId_; + std::string lockReason_; + std::string regionId_; + int pageSize_; + std::string zoneId_; + std::string volumeIds_; + std::vector tag_; + std::string category_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVOLUMESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVolumesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeVolumesResult.h new file mode 100644 index 000000000..86c732465 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeVolumesResult.h @@ -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 +#include +#include +#include +#include + +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 operationLocks; + std::string volumeId; + int mountInstanceNum; + std::vector mountInstances; + std::string creationTime; + std::string regionId; + std::vector tags; + }; + + + DescribeVolumesResult(); + explicit DescribeVolumesResult(const std::string &payload); + ~DescribeVolumesResult(); + int getTotalCount()const; + std::vector getVolumes()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector volumes_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVOLUMESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachVolumeRequest.h b/ecs/include/alibabacloud/ecs/model/DetachVolumeRequest.h new file mode 100644 index 000000000..7258309cf --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DetachVolumeRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachVolumeResult.h b/ecs/include/alibabacloud/ecs/model/DetachVolumeResult.h new file mode 100644 index 000000000..beac21c21 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DetachVolumeResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbRequest.h new file mode 100644 index 000000000..33161e24d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbRequest.h @@ -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_MODIFYINTRANETBANDWIDTHKBREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINTRANETBANDWIDTHKBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyIntranetBandwidthKbRequest : public RpcServiceRequest + { + + public: + ModifyIntranetBandwidthKbRequest(); + ~ModifyIntranetBandwidthKbRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getIntranetMaxBandwidthOut()const; + void setIntranetMaxBandwidthOut(int intranetMaxBandwidthOut); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getIntranetMaxBandwidthIn()const; + void setIntranetMaxBandwidthIn(int intranetMaxBandwidthIn); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + int intranetMaxBandwidthOut_; + std::string instanceId_; + int intranetMaxBandwidthIn_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINTRANETBANDWIDTHKBREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbResult.h b/ecs/include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbResult.h new file mode 100644 index 000000000..86a6e8d49 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbResult.h @@ -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_MODIFYINTRANETBANDWIDTHKBRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINTRANETBANDWIDTHKBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyIntranetBandwidthKbResult : public ServiceResult + { + public: + + + ModifyIntranetBandwidthKbResult(); + explicit ModifyIntranetBandwidthKbResult(const std::string &payload); + ~ModifyIntranetBandwidthKbResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINTRANETBANDWIDTHKBRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h index d790d2c2f..925613396 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h @@ -73,6 +73,10 @@ namespace AlibabaCloud void setCallerUidEmail(const std::string& callerUidEmail); long getCallerUid()const; void setCallerUid(long callerUid); + std::string getIpv6DestCidrIp()const; + void setIpv6DestCidrIp(const std::string& ipv6DestCidrIp); + std::string getIpv6SourceCidrIp()const; + void setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp); std::string getPolicy()const; void setPolicy(const std::string& policy); std::string getApp_ip()const; @@ -130,6 +134,8 @@ namespace AlibabaCloud std::string callerBidEmail_; std::string callerUidEmail_; long callerUid_; + std::string ipv6DestCidrIp_; + std::string ipv6SourceCidrIp_; std::string policy_; std::string app_ip_; std::string portRange_; diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h index a8e6dc9ca..5e571fae0 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h @@ -77,6 +77,10 @@ namespace AlibabaCloud void setCallerUidEmail(const std::string& callerUidEmail); long getCallerUid()const; void setCallerUid(long callerUid); + std::string getIpv6SourceCidrIp()const; + void setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp); + std::string getIpv6DestCidrIp()const; + void setIpv6DestCidrIp(const std::string& ipv6DestCidrIp); std::string getPolicy()const; void setPolicy(const std::string& policy); std::string getApp_ip()const; @@ -132,6 +136,8 @@ namespace AlibabaCloud std::string callerBidEmail_; std::string callerUidEmail_; long callerUid_; + std::string ipv6SourceCidrIp_; + std::string ipv6DestCidrIp_; std::string policy_; std::string app_ip_; std::string portRange_; diff --git a/ecs/include/alibabacloud/ecs/model/ModifyUserEventAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyUserEventAttributeRequest.h new file mode 100644 index 000000000..be5c7efbb --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyUserEventAttributeRequest.h @@ -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_MODIFYUSEREVENTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYUSEREVENTATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyUserEventAttributeRequest : public RpcServiceRequest + { + + public: + ModifyUserEventAttributeRequest(); + ~ModifyUserEventAttributeRequest(); + + std::string getEventId()const; + void setEventId(const std::string& eventId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getNewPlanTime()const; + void setNewPlanTime(const std::string& newPlanTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getNewExpireTime()const; + void setNewExpireTime(const std::string& newExpireTime); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + std::string eventId_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceId_; + std::string resourceOwnerAccount_; + std::string callerBid_; + std::string newPlanTime_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string newExpireTime_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYUSEREVENTATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyUserEventAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyUserEventAttributeResult.h new file mode 100644 index 000000000..82f09e1d6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyUserEventAttributeResult.h @@ -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_MODIFYUSEREVENTATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYUSEREVENTATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyUserEventAttributeResult : public ServiceResult + { + public: + + + ModifyUserEventAttributeResult(); + explicit ModifyUserEventAttributeResult(const std::string &payload); + ~ModifyUserEventAttributeResult(); + std::string getEventId()const; + + protected: + void parse(const std::string &payload); + private: + std::string eventId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYUSEREVENTATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVolumeAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyVolumeAttributeRequest.h new file mode 100644 index 000000000..ce5a89645 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyVolumeAttributeRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVolumeAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyVolumeAttributeResult.h new file mode 100644 index 000000000..c217afc70 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyVolumeAttributeResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReInitVolumeRequest.h b/ecs/include/alibabacloud/ecs/model/ReInitVolumeRequest.h new file mode 100644 index 000000000..1cb879f97 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ReInitVolumeRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReInitVolumeResult.h b/ecs/include/alibabacloud/ecs/model/ReInitVolumeResult.h new file mode 100644 index 000000000..c8facca1b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ReInitVolumeResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ResizeVolumeRequest.h b/ecs/include/alibabacloud/ecs/model/ResizeVolumeRequest.h new file mode 100644 index 000000000..2b176ac0c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ResizeVolumeRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ResizeVolumeResult.h b/ecs/include/alibabacloud/ecs/model/ResizeVolumeResult.h new file mode 100644 index 000000000..330339ed9 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ResizeVolumeResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h index ec52ec846..4370d49b5 100644 --- a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h @@ -73,6 +73,10 @@ namespace AlibabaCloud void setCallerUidEmail(const std::string& callerUidEmail); long getCallerUid()const; void setCallerUid(long callerUid); + std::string getIpv6DestCidrIp()const; + void setIpv6DestCidrIp(const std::string& ipv6DestCidrIp); + std::string getIpv6SourceCidrIp()const; + void setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp); std::string getPolicy()const; void setPolicy(const std::string& policy); std::string getApp_ip()const; @@ -130,6 +134,8 @@ namespace AlibabaCloud std::string callerBidEmail_; std::string callerUidEmail_; long callerUid_; + std::string ipv6DestCidrIp_; + std::string ipv6SourceCidrIp_; std::string policy_; std::string app_ip_; std::string portRange_; diff --git a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h index b675582e0..2f8ed5d11 100644 --- a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h @@ -77,6 +77,10 @@ namespace AlibabaCloud void setCallerUidEmail(const std::string& callerUidEmail); long getCallerUid()const; void setCallerUid(long callerUid); + std::string getIpv6DestCidrIp()const; + void setIpv6DestCidrIp(const std::string& ipv6DestCidrIp); + std::string getIpv6SourceCidrIp()const; + void setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp); std::string getPolicy()const; void setPolicy(const std::string& policy); std::string getApp_ip()const; @@ -132,6 +136,8 @@ namespace AlibabaCloud std::string callerBidEmail_; std::string callerUidEmail_; long callerUid_; + std::string ipv6DestCidrIp_; + std::string ipv6SourceCidrIp_; std::string policy_; std::string app_ip_; std::string portRange_; diff --git a/ecs/include/alibabacloud/ecs/model/RollbackVolumeRequest.h b/ecs/include/alibabacloud/ecs/model/RollbackVolumeRequest.h new file mode 100644 index 000000000..0ed5de059 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/RollbackVolumeRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RollbackVolumeResult.h b/ecs/include/alibabacloud/ecs/model/RollbackVolumeResult.h new file mode 100644 index 000000000..69f5e8bea --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/RollbackVolumeResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h index 601506c68..1a065ba45 100644 --- a/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h @@ -105,6 +105,8 @@ namespace AlibabaCloud void setDryRun(bool dryRun); std::string getLaunchTemplateId()const; void setLaunchTemplateId(const std::string& launchTemplateId); + int getIpv6AddressCount()const; + void setIpv6AddressCount(int ipv6AddressCount); long getOwnerId()const; void setOwnerId(long ownerId); bool getAk_mfa_present()const; @@ -129,6 +131,8 @@ namespace AlibabaCloud void setInternetChargeType(const std::string& internetChargeType); std::string getZoneId()const; void setZoneId(const std::string& zoneId); + std::vector getIpv6Address()const; + void setIpv6Address(const std::vector& ipv6Address); int getInternetMaxBandwidthIn()const; void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); std::string getImageId()const; @@ -224,6 +228,7 @@ namespace AlibabaCloud int period_; bool dryRun_; std::string launchTemplateId_; + int ipv6AddressCount_; long ownerId_; bool ak_mfa_present_; bool security_transport_; @@ -236,6 +241,7 @@ namespace AlibabaCloud std::string requestId_; std::string internetChargeType_; std::string zoneId_; + std::vector ipv6Address_; int internetMaxBandwidthIn_; std::string imageId_; std::string spotInterruptionBehavior_; diff --git a/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesRequest.h b/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesRequest.h new file mode 100644 index 000000000..84b52093c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesRequest.h @@ -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_UNASSIGNIPV6ADDRESSESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UnassignIpv6AddressesRequest : public RpcServiceRequest + { + + public: + UnassignIpv6AddressesRequest(); + ~UnassignIpv6AddressesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getNetworkInterfaceId()const; + void setNetworkInterfaceId(const std::string& networkInterfaceId); + std::vector getIpv6Address()const; + void setIpv6Address(const std::vector& ipv6Address); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string networkInterfaceId_; + std::vector ipv6Address_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesResult.h b/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesResult.h new file mode 100644 index 000000000..58c50c175 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesResult.h @@ -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_UNASSIGNIPV6ADDRESSESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UnassignIpv6AddressesResult : public ServiceResult + { + public: + + + UnassignIpv6AddressesResult(); + explicit UnassignIpv6AddressesResult(const std::string &payload); + ~UnassignIpv6AddressesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UnbindIpRangeRequest.h b/ecs/include/alibabacloud/ecs/model/UnbindIpRangeRequest.h new file mode 100644 index 000000000..89f21c35e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/UnbindIpRangeRequest.h @@ -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_UNBINDIPRANGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_UNBINDIPRANGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UnbindIpRangeRequest : public RpcServiceRequest + { + + public: + UnbindIpRangeRequest(); + ~UnbindIpRangeRequest(); + + std::string getIpAddress()const; + void setIpAddress(const std::string& ipAddress); + 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 getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string ipAddress_; + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_UNBINDIPRANGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UnbindIpRangeResult.h b/ecs/include/alibabacloud/ecs/model/UnbindIpRangeResult.h new file mode 100644 index 000000000..14ad5c530 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/UnbindIpRangeResult.h @@ -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_UNBINDIPRANGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_UNBINDIPRANGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UnbindIpRangeResult : public ServiceResult + { + public: + + + UnbindIpRangeResult(); + explicit UnbindIpRangeResult(const std::string &payload); + ~UnbindIpRangeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_UNBINDIPRANGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ValidateSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/ValidateSecurityGroupRequest.h new file mode 100644 index 000000000..b9bf70bc7 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ValidateSecurityGroupRequest.h @@ -0,0 +1,138 @@ +/* + * 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_VALIDATESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_VALIDATESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ValidateSecurityGroupRequest : public RpcServiceRequest + { + + public: + ValidateSecurityGroupRequest(); + ~ValidateSecurityGroupRequest(); + + std::string getNicType()const; + void setNicType(const std::string& nicType); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + int getSourcePort()const; + void setSourcePort(int sourcePort); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getDirection()const; + void setDirection(const std::string& direction); + std::string getDestIp()const; + void setDestIp(const std::string& destIp); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getIpProtocol()const; + void setIpProtocol(const std::string& ipProtocol); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + int getDestPort()const; + void setDestPort(int destPort); + + private: + std::string nicType_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + int sourcePort_; + std::string sourceIp_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string direction_; + std::string destIp_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string instanceId_; + std::string requestId_; + int destPort_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_VALIDATESECURITYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ValidateSecurityGroupResult.h b/ecs/include/alibabacloud/ecs/model/ValidateSecurityGroupResult.h new file mode 100644 index 000000000..fd0b30f4c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ValidateSecurityGroupResult.h @@ -0,0 +1,72 @@ +/* + * 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_VALIDATESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_VALIDATESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ValidateSecurityGroupResult : public ServiceResult + { + public: + struct TriggeredGroupRule + { + std::string sourceGroupId; + std::string policy; + std::string description; + std::string priority; + std::string createTime; + std::string nicType; + std::string destGroupId; + std::string direction; + std::string sourceGroupName; + std::string portRange; + std::string destGroupOwnerAccount; + std::string sourceCidrIp; + std::string ipProtocol; + std::string destGroupName; + std::string destCidrIp; + std::string sourceGroupOwnerAccount; + }; + + + ValidateSecurityGroupResult(); + explicit ValidateSecurityGroupResult(const std::string &payload); + ~ValidateSecurityGroupResult(); + std::string getPolicy()const; + TriggeredGroupRule getTriggeredGroupRule()const; + + protected: + void parse(const std::string &payload); + private: + std::string policy_; + TriggeredGroupRule triggeredGroupRule_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_VALIDATESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/src/EcsClient.cc b/ecs/src/EcsClient.cc index b04e4eb82..8ebc84168 100644 --- a/ecs/src/EcsClient.cc +++ b/ecs/src/EcsClient.cc @@ -879,6 +879,42 @@ EcsClient::RevokeSecurityGroupOutcomeCallable EcsClient::revokeSecurityGroupCall return task->get_future(); } +EcsClient::CheckAutoSnapshotPolicyOutcome EcsClient::checkAutoSnapshotPolicy(const CheckAutoSnapshotPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckAutoSnapshotPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckAutoSnapshotPolicyOutcome(CheckAutoSnapshotPolicyResult(outcome.result())); + else + return CheckAutoSnapshotPolicyOutcome(outcome.error()); +} + +void EcsClient::checkAutoSnapshotPolicyAsync(const CheckAutoSnapshotPolicyRequest& request, const CheckAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkAutoSnapshotPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CheckAutoSnapshotPolicyOutcomeCallable EcsClient::checkAutoSnapshotPolicyCallable(const CheckAutoSnapshotPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkAutoSnapshotPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeTaskAttributeOutcome EcsClient::describeTaskAttribute(const DescribeTaskAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1239,6 +1275,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& 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>( + [this, request]() + { + return this->attachVolume(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::ModifyDedicatedHostAutoRenewAttributeOutcome EcsClient::modifyDedicatedHostAutoRenewAttribute(const ModifyDedicatedHostAutoRenewAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1707,6 +1779,42 @@ EcsClient::ConnectRouterInterfaceOutcomeCallable EcsClient::connectRouterInterfa return task->get_future(); } +EcsClient::AddIpRangeOutcome EcsClient::addIpRange(const AddIpRangeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddIpRangeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddIpRangeOutcome(AddIpRangeResult(outcome.result())); + else + return AddIpRangeOutcome(outcome.error()); +} + +void EcsClient::addIpRangeAsync(const AddIpRangeRequest& request, const AddIpRangeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addIpRange(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::AddIpRangeOutcomeCallable EcsClient::addIpRangeCallable(const AddIpRangeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addIpRange(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::GetInstanceConsoleOutputOutcome EcsClient::getInstanceConsoleOutput(const GetInstanceConsoleOutputRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2067,6 +2175,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& 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>( + [this, request]() + { + return this->resizeVolume(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::ModifyDedicatedHostAttributeOutcome EcsClient::modifyDedicatedHostAttribute(const ModifyDedicatedHostAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2247,6 +2391,78 @@ 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& 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>( + [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(); + if (!endpointOutcome.isSuccess()) + return CheckDiskEnableAutoSnapshotValidationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckDiskEnableAutoSnapshotValidationOutcome(CheckDiskEnableAutoSnapshotValidationResult(outcome.result())); + else + return CheckDiskEnableAutoSnapshotValidationOutcome(outcome.error()); +} + +void EcsClient::checkDiskEnableAutoSnapshotValidationAsync(const CheckDiskEnableAutoSnapshotValidationRequest& request, const CheckDiskEnableAutoSnapshotValidationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkDiskEnableAutoSnapshotValidation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CheckDiskEnableAutoSnapshotValidationOutcomeCallable EcsClient::checkDiskEnableAutoSnapshotValidationCallable(const CheckDiskEnableAutoSnapshotValidationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkDiskEnableAutoSnapshotValidation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::RunInstancesOutcome EcsClient::runInstances(const RunInstancesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3579,6 +3795,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& 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>( + [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(); @@ -3615,6 +3867,42 @@ EcsClient::RebootInstanceOutcomeCallable EcsClient::rebootInstanceCallable(const return task->get_future(); } +EcsClient::BindIpRangeOutcome EcsClient::bindIpRange(const BindIpRangeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindIpRangeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindIpRangeOutcome(BindIpRangeResult(outcome.result())); + else + return BindIpRangeOutcome(outcome.error()); +} + +void EcsClient::bindIpRangeAsync(const BindIpRangeRequest& request, const BindIpRangeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindIpRange(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::BindIpRangeOutcomeCallable EcsClient::bindIpRangeCallable(const BindIpRangeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindIpRange(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::InvokeCommandOutcome EcsClient::invokeCommand(const InvokeCommandRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4227,6 +4515,42 @@ EcsClient::AddTagsOutcomeCallable EcsClient::addTagsCallable(const AddTagsReques return task->get_future(); } +EcsClient::CancelUserEventOutcome EcsClient::cancelUserEvent(const CancelUserEventRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelUserEventOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelUserEventOutcome(CancelUserEventResult(outcome.result())); + else + return CancelUserEventOutcome(outcome.error()); +} + +void EcsClient::cancelUserEventAsync(const CancelUserEventRequest& request, const CancelUserEventAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelUserEvent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CancelUserEventOutcomeCallable EcsClient::cancelUserEventCallable(const CancelUserEventRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelUserEvent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::CreateHpcClusterOutcome EcsClient::createHpcCluster(const CreateHpcClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5739,6 +6063,42 @@ EcsClient::DescribeNewProjectEipMonitorDataOutcomeCallable EcsClient::describeNe return task->get_future(); } +EcsClient::UnbindIpRangeOutcome EcsClient::unbindIpRange(const UnbindIpRangeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindIpRangeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindIpRangeOutcome(UnbindIpRangeResult(outcome.result())); + else + return UnbindIpRangeOutcome(outcome.error()); +} + +void EcsClient::unbindIpRangeAsync(const UnbindIpRangeRequest& request, const UnbindIpRangeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindIpRange(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::UnbindIpRangeOutcomeCallable EcsClient::unbindIpRangeCallable(const UnbindIpRangeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindIpRange(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DeleteRecycleBinOutcome EcsClient::deleteRecycleBin(const DeleteRecycleBinRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6207,6 +6567,78 @@ 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& 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>( + [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(); + if (!endpointOutcome.isSuccess()) + return ModifyIntranetBandwidthKbOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyIntranetBandwidthKbOutcome(ModifyIntranetBandwidthKbResult(outcome.result())); + else + return ModifyIntranetBandwidthKbOutcome(outcome.error()); +} + +void EcsClient::modifyIntranetBandwidthKbAsync(const ModifyIntranetBandwidthKbRequest& request, const ModifyIntranetBandwidthKbAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyIntranetBandwidthKb(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyIntranetBandwidthKbOutcomeCallable EcsClient::modifyIntranetBandwidthKbCallable(const ModifyIntranetBandwidthKbRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyIntranetBandwidthKb(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeBandwidthPackagesOutcome EcsClient::describeBandwidthPackages(const DescribeBandwidthPackagesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6351,6 +6783,42 @@ EcsClient::DescribeSnapshotLinksOutcomeCallable EcsClient::describeSnapshotLinks return task->get_future(); } +EcsClient::DescribeEventDetailOutcome EcsClient::describeEventDetail(const DescribeEventDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEventDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEventDetailOutcome(DescribeEventDetailResult(outcome.result())); + else + return DescribeEventDetailOutcome(outcome.error()); +} + +void EcsClient::describeEventDetailAsync(const DescribeEventDetailRequest& request, const DescribeEventDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEventDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeEventDetailOutcomeCallable EcsClient::describeEventDetailCallable(const DescribeEventDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEventDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeInvocationResultsOutcome EcsClient::describeInvocationResults(const DescribeInvocationResultsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6459,6 +6927,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& 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>( + [this, request]() + { + return this->createVolume(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeDedicatedHostAutoRenewOutcome EcsClient::describeDedicatedHostAutoRenew(const DescribeDedicatedHostAutoRenewRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6567,6 +7071,42 @@ EcsClient::CreateLaunchTemplateOutcomeCallable EcsClient::createLaunchTemplateCa return task->get_future(); } +EcsClient::DescribeIntranetAttributeKbOutcome EcsClient::describeIntranetAttributeKb(const DescribeIntranetAttributeKbRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIntranetAttributeKbOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIntranetAttributeKbOutcome(DescribeIntranetAttributeKbResult(outcome.result())); + else + return DescribeIntranetAttributeKbOutcome(outcome.error()); +} + +void EcsClient::describeIntranetAttributeKbAsync(const DescribeIntranetAttributeKbRequest& request, const DescribeIntranetAttributeKbAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIntranetAttributeKb(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeIntranetAttributeKbOutcomeCallable EcsClient::describeIntranetAttributeKbCallable(const DescribeIntranetAttributeKbRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIntranetAttributeKb(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::CreateNetworkInterfacePermissionOutcome EcsClient::createNetworkInterfacePermission(const CreateNetworkInterfacePermissionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6891,6 +7431,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& 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>( + [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& 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>( + [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(); @@ -7431,6 +8043,42 @@ EcsClient::CreatePhysicalConnectionOutcomeCallable EcsClient::createPhysicalConn return task->get_future(); } +EcsClient::ModifyUserEventAttributeOutcome EcsClient::modifyUserEventAttribute(const ModifyUserEventAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyUserEventAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyUserEventAttributeOutcome(ModifyUserEventAttributeResult(outcome.result())); + else + return ModifyUserEventAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyUserEventAttributeAsync(const ModifyUserEventAttributeRequest& request, const ModifyUserEventAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyUserEventAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyUserEventAttributeOutcomeCallable EcsClient::modifyUserEventAttributeCallable(const ModifyUserEventAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyUserEventAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeKeyPairsOutcome EcsClient::describeKeyPairs(const DescribeKeyPairsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7575,6 +8223,42 @@ EcsClient::ConvertNatPublicIpToEipOutcomeCallable EcsClient::convertNatPublicIpT return task->get_future(); } +EcsClient::AssignIpv6AddressesOutcome EcsClient::assignIpv6Addresses(const AssignIpv6AddressesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssignIpv6AddressesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssignIpv6AddressesOutcome(AssignIpv6AddressesResult(outcome.result())); + else + return AssignIpv6AddressesOutcome(outcome.error()); +} + +void EcsClient::assignIpv6AddressesAsync(const AssignIpv6AddressesRequest& request, const AssignIpv6AddressesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, assignIpv6Addresses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::AssignIpv6AddressesOutcomeCallable EcsClient::assignIpv6AddressesCallable(const AssignIpv6AddressesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->assignIpv6Addresses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DeleteRouteEntryOutcome EcsClient::deleteRouteEntry(const DeleteRouteEntryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7683,6 +8367,42 @@ EcsClient::DescribeCloudAssistantStatusOutcomeCallable EcsClient::describeCloudA return task->get_future(); } +EcsClient::UnassignIpv6AddressesOutcome EcsClient::unassignIpv6Addresses(const UnassignIpv6AddressesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnassignIpv6AddressesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnassignIpv6AddressesOutcome(UnassignIpv6AddressesResult(outcome.result())); + else + return UnassignIpv6AddressesOutcome(outcome.error()); +} + +void EcsClient::unassignIpv6AddressesAsync(const UnassignIpv6AddressesRequest& request, const UnassignIpv6AddressesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unassignIpv6Addresses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::UnassignIpv6AddressesOutcomeCallable EcsClient::unassignIpv6AddressesCallable(const UnassignIpv6AddressesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unassignIpv6Addresses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeInstancePhysicalAttributeOutcome EcsClient::describeInstancePhysicalAttribute(const DescribeInstancePhysicalAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7719,6 +8439,42 @@ EcsClient::DescribeInstancePhysicalAttributeOutcomeCallable EcsClient::describeI return task->get_future(); } +EcsClient::ValidateSecurityGroupOutcome EcsClient::validateSecurityGroup(const ValidateSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ValidateSecurityGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ValidateSecurityGroupOutcome(ValidateSecurityGroupResult(outcome.result())); + else + return ValidateSecurityGroupOutcome(outcome.error()); +} + +void EcsClient::validateSecurityGroupAsync(const ValidateSecurityGroupRequest& request, const ValidateSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, validateSecurityGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ValidateSecurityGroupOutcomeCallable EcsClient::validateSecurityGroupCallable(const ValidateSecurityGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->validateSecurityGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::TerminatePhysicalConnectionOutcome EcsClient::terminatePhysicalConnection(const TerminatePhysicalConnectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8115,6 +8871,78 @@ EcsClient::DescribeClassicLinkInstancesOutcomeCallable EcsClient::describeClassi return task->get_future(); } +EcsClient::CreateUserEventOutcome EcsClient::createUserEvent(const CreateUserEventRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUserEventOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUserEventOutcome(CreateUserEventResult(outcome.result())); + else + return CreateUserEventOutcome(outcome.error()); +} + +void EcsClient::createUserEventAsync(const CreateUserEventRequest& request, const CreateUserEventAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUserEvent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateUserEventOutcomeCallable EcsClient::createUserEventCallable(const CreateUserEventRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUserEvent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeAutoSnapshotPolicyOutcome EcsClient::describeAutoSnapshotPolicy(const DescribeAutoSnapshotPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAutoSnapshotPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAutoSnapshotPolicyOutcome(DescribeAutoSnapshotPolicyResult(outcome.result())); + else + return DescribeAutoSnapshotPolicyOutcome(outcome.error()); +} + +void EcsClient::describeAutoSnapshotPolicyAsync(const DescribeAutoSnapshotPolicyRequest& request, const DescribeAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAutoSnapshotPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeAutoSnapshotPolicyOutcomeCallable EcsClient::describeAutoSnapshotPolicyCallable(const DescribeAutoSnapshotPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAutoSnapshotPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribePhysicalConnectionsOutcome EcsClient::describePhysicalConnections(const DescribePhysicalConnectionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8187,6 +9015,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& 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>( + [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(); @@ -8223,6 +9087,42 @@ EcsClient::CreateNetworkInterfaceOutcomeCallable EcsClient::createNetworkInterfa return task->get_future(); } +EcsClient::DescribeIpRangesOutcome EcsClient::describeIpRanges(const DescribeIpRangesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIpRangesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIpRangesOutcome(DescribeIpRangesResult(outcome.result())); + else + return DescribeIpRangesOutcome(outcome.error()); +} + +void EcsClient::describeIpRangesAsync(const DescribeIpRangesRequest& request, const DescribeIpRangesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIpRanges(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeIpRangesOutcomeCallable EcsClient::describeIpRangesCallable(const DescribeIpRangesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIpRanges(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DeleteNetworkInterfacePermissionOutcome EcsClient::deleteNetworkInterfacePermission(const DeleteNetworkInterfacePermissionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8547,6 +9447,42 @@ EcsClient::DeleteDiskOutcomeCallable EcsClient::deleteDiskCallable(const DeleteD return task->get_future(); } +EcsClient::DescribeEventsOutcome EcsClient::describeEvents(const DescribeEventsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEventsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEventsOutcome(DescribeEventsResult(outcome.result())); + else + return DescribeEventsOutcome(outcome.error()); +} + +void EcsClient::describeEventsAsync(const DescribeEventsRequest& request, const DescribeEventsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEvents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeEventsOutcomeCallable EcsClient::describeEventsCallable(const DescribeEventsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEvents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::UnassociateHaVipOutcome EcsClient::unassociateHaVip(const UnassociateHaVipRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ecs/src/model/AddIpRangeRequest.cc b/ecs/src/model/AddIpRangeRequest.cc new file mode 100644 index 000000000..a9f6cb1f0 --- /dev/null +++ b/ecs/src/model/AddIpRangeRequest.cc @@ -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 + +using AlibabaCloud::Ecs::Model::AddIpRangeRequest; + +AddIpRangeRequest::AddIpRangeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AddIpRange") +{} + +AddIpRangeRequest::~AddIpRangeRequest() +{} + +std::string AddIpRangeRequest::getIpAddress()const +{ + return ipAddress_; +} + +void AddIpRangeRequest::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; + setParameter("IpAddress", ipAddress); +} + +long AddIpRangeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddIpRangeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddIpRangeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddIpRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AddIpRangeRequest::getRegionId()const +{ + return regionId_; +} + +void AddIpRangeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AddIpRangeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AddIpRangeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string AddIpRangeRequest::getZoneId()const +{ + return zoneId_; +} + +void AddIpRangeRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +long AddIpRangeRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddIpRangeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/AddIpRangeResult.cc b/ecs/src/model/AddIpRangeResult.cc new file mode 100644 index 000000000..c4b31d4f4 --- /dev/null +++ b/ecs/src/model/AddIpRangeResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AddIpRangeResult::AddIpRangeResult() : + ServiceResult() +{} + +AddIpRangeResult::AddIpRangeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddIpRangeResult::~AddIpRangeResult() +{} + +void AddIpRangeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AssignIpv6AddressesRequest.cc b/ecs/src/model/AssignIpv6AddressesRequest.cc new file mode 100644 index 000000000..74fd8bebc --- /dev/null +++ b/ecs/src/model/AssignIpv6AddressesRequest.cc @@ -0,0 +1,325 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ecs::Model::AssignIpv6AddressesRequest; + +AssignIpv6AddressesRequest::AssignIpv6AddressesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AssignIpv6Addresses") +{} + +AssignIpv6AddressesRequest::~AssignIpv6AddressesRequest() +{} + +long AssignIpv6AddressesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AssignIpv6AddressesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long AssignIpv6AddressesRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void AssignIpv6AddressesRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool AssignIpv6AddressesRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void AssignIpv6AddressesRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string AssignIpv6AddressesRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void AssignIpv6AddressesRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string AssignIpv6AddressesRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void AssignIpv6AddressesRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string AssignIpv6AddressesRequest::getCallerType()const +{ + return callerType_; +} + +void AssignIpv6AddressesRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string AssignIpv6AddressesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AssignIpv6AddressesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string AssignIpv6AddressesRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void AssignIpv6AddressesRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string AssignIpv6AddressesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void AssignIpv6AddressesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string AssignIpv6AddressesRequest::getRegionId()const +{ + return regionId_; +} + +void AssignIpv6AddressesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool AssignIpv6AddressesRequest::getEnable()const +{ + return enable_; +} + +void AssignIpv6AddressesRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string AssignIpv6AddressesRequest::getRequestContent()const +{ + return requestContent_; +} + +void AssignIpv6AddressesRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string AssignIpv6AddressesRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void AssignIpv6AddressesRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string AssignIpv6AddressesRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void AssignIpv6AddressesRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long AssignIpv6AddressesRequest::getCallerUid()const +{ + return callerUid_; +} + +void AssignIpv6AddressesRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string AssignIpv6AddressesRequest::getApp_ip()const +{ + return app_ip_; +} + +void AssignIpv6AddressesRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string AssignIpv6AddressesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AssignIpv6AddressesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +int AssignIpv6AddressesRequest::getIpv6AddressCount()const +{ + return ipv6AddressCount_; +} + +void AssignIpv6AddressesRequest::setIpv6AddressCount(int ipv6AddressCount) +{ + ipv6AddressCount_ = ipv6AddressCount; + setParameter("Ipv6AddressCount", std::to_string(ipv6AddressCount)); +} + +std::string AssignIpv6AddressesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AssignIpv6AddressesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string AssignIpv6AddressesRequest::getCallerBid()const +{ + return callerBid_; +} + +void AssignIpv6AddressesRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long AssignIpv6AddressesRequest::getOwnerId()const +{ + return ownerId_; +} + +void AssignIpv6AddressesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool AssignIpv6AddressesRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void AssignIpv6AddressesRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool AssignIpv6AddressesRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void AssignIpv6AddressesRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool AssignIpv6AddressesRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void AssignIpv6AddressesRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string AssignIpv6AddressesRequest::getRequestId()const +{ + return requestId_; +} + +void AssignIpv6AddressesRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string AssignIpv6AddressesRequest::getNetworkInterfaceId()const +{ + return networkInterfaceId_; +} + +void AssignIpv6AddressesRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) +{ + networkInterfaceId_ = networkInterfaceId; + setParameter("NetworkInterfaceId", networkInterfaceId); +} + +std::vector AssignIpv6AddressesRequest::getIpv6Address()const +{ + return ipv6Address_; +} + +void AssignIpv6AddressesRequest::setIpv6Address(const std::vector& ipv6Address) +{ + ipv6Address_ = ipv6Address; + for(int i = 0; i!= ipv6Address.size(); i++) + setParameter("Ipv6Address."+ std::to_string(i), ipv6Address.at(i)); +} + diff --git a/ecs/src/model/AssignIpv6AddressesResult.cc b/ecs/src/model/AssignIpv6AddressesResult.cc new file mode 100644 index 000000000..6a1d8831a --- /dev/null +++ b/ecs/src/model/AssignIpv6AddressesResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AssignIpv6AddressesResult::AssignIpv6AddressesResult() : + ServiceResult() +{} + +AssignIpv6AddressesResult::AssignIpv6AddressesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssignIpv6AddressesResult::~AssignIpv6AddressesResult() +{} + +void AssignIpv6AddressesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AttachVolumeRequest.cc b/ecs/src/model/AttachVolumeRequest.cc new file mode 100644 index 000000000..090e7121f --- /dev/null +++ b/ecs/src/model/AttachVolumeRequest.cc @@ -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 + +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)); +} + diff --git a/ecs/src/model/AttachVolumeResult.cc b/ecs/src/model/AttachVolumeResult.cc new file mode 100644 index 000000000..b2a0dd707 --- /dev/null +++ b/ecs/src/model/AttachVolumeResult.cc @@ -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 +#include + +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()); + +} + diff --git a/ecs/src/model/AuthorizeSecurityGroupEgressRequest.cc b/ecs/src/model/AuthorizeSecurityGroupEgressRequest.cc index f29a47a44..9d7b98589 100644 --- a/ecs/src/model/AuthorizeSecurityGroupEgressRequest.cc +++ b/ecs/src/model/AuthorizeSecurityGroupEgressRequest.cc @@ -234,6 +234,28 @@ void AuthorizeSecurityGroupEgressRequest::setCallerUid(long callerUid) setParameter("CallerUid", std::to_string(callerUid)); } +std::string AuthorizeSecurityGroupEgressRequest::getIpv6DestCidrIp()const +{ + return ipv6DestCidrIp_; +} + +void AuthorizeSecurityGroupEgressRequest::setIpv6DestCidrIp(const std::string& ipv6DestCidrIp) +{ + ipv6DestCidrIp_ = ipv6DestCidrIp; + setParameter("Ipv6DestCidrIp", ipv6DestCidrIp); +} + +std::string AuthorizeSecurityGroupEgressRequest::getIpv6SourceCidrIp()const +{ + return ipv6SourceCidrIp_; +} + +void AuthorizeSecurityGroupEgressRequest::setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp) +{ + ipv6SourceCidrIp_ = ipv6SourceCidrIp; + setParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp); +} + std::string AuthorizeSecurityGroupEgressRequest::getPolicy()const { return policy_; diff --git a/ecs/src/model/AuthorizeSecurityGroupRequest.cc b/ecs/src/model/AuthorizeSecurityGroupRequest.cc index 8d6370a73..437beac0c 100644 --- a/ecs/src/model/AuthorizeSecurityGroupRequest.cc +++ b/ecs/src/model/AuthorizeSecurityGroupRequest.cc @@ -256,6 +256,28 @@ void AuthorizeSecurityGroupRequest::setCallerUid(long callerUid) setParameter("CallerUid", std::to_string(callerUid)); } +std::string AuthorizeSecurityGroupRequest::getIpv6SourceCidrIp()const +{ + return ipv6SourceCidrIp_; +} + +void AuthorizeSecurityGroupRequest::setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp) +{ + ipv6SourceCidrIp_ = ipv6SourceCidrIp; + setParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp); +} + +std::string AuthorizeSecurityGroupRequest::getIpv6DestCidrIp()const +{ + return ipv6DestCidrIp_; +} + +void AuthorizeSecurityGroupRequest::setIpv6DestCidrIp(const std::string& ipv6DestCidrIp) +{ + ipv6DestCidrIp_ = ipv6DestCidrIp; + setParameter("Ipv6DestCidrIp", ipv6DestCidrIp); +} + std::string AuthorizeSecurityGroupRequest::getPolicy()const { return policy_; diff --git a/ecs/src/model/BindIpRangeRequest.cc b/ecs/src/model/BindIpRangeRequest.cc new file mode 100644 index 000000000..ebc4b25aa --- /dev/null +++ b/ecs/src/model/BindIpRangeRequest.cc @@ -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 + +using AlibabaCloud::Ecs::Model::BindIpRangeRequest; + +BindIpRangeRequest::BindIpRangeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "BindIpRange") +{} + +BindIpRangeRequest::~BindIpRangeRequest() +{} + +std::string BindIpRangeRequest::getIpAddress()const +{ + return ipAddress_; +} + +void BindIpRangeRequest::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; + setParameter("IpAddress", ipAddress); +} + +long BindIpRangeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void BindIpRangeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string BindIpRangeRequest::getInstanceId()const +{ + return instanceId_; +} + +void BindIpRangeRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string BindIpRangeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void BindIpRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string BindIpRangeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void BindIpRangeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long BindIpRangeRequest::getOwnerId()const +{ + return ownerId_; +} + +void BindIpRangeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/BindIpRangeResult.cc b/ecs/src/model/BindIpRangeResult.cc new file mode 100644 index 000000000..dd1b57f4b --- /dev/null +++ b/ecs/src/model/BindIpRangeResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +BindIpRangeResult::BindIpRangeResult() : + ServiceResult() +{} + +BindIpRangeResult::BindIpRangeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindIpRangeResult::~BindIpRangeResult() +{} + +void BindIpRangeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/CancelUserEventRequest.cc b/ecs/src/model/CancelUserEventRequest.cc new file mode 100644 index 000000000..b8dc6b3c8 --- /dev/null +++ b/ecs/src/model/CancelUserEventRequest.cc @@ -0,0 +1,291 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ecs::Model::CancelUserEventRequest; + +CancelUserEventRequest::CancelUserEventRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CancelUserEvent") +{} + +CancelUserEventRequest::~CancelUserEventRequest() +{} + +std::string CancelUserEventRequest::getEventId()const +{ + return eventId_; +} + +void CancelUserEventRequest::setEventId(const std::string& eventId) +{ + eventId_ = eventId; + setParameter("EventId", eventId); +} + +long CancelUserEventRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CancelUserEventRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long CancelUserEventRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CancelUserEventRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CancelUserEventRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CancelUserEventRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string CancelUserEventRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CancelUserEventRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CancelUserEventRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CancelUserEventRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CancelUserEventRequest::getCallerType()const +{ + return callerType_; +} + +void CancelUserEventRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string CancelUserEventRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CancelUserEventRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CancelUserEventRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CancelUserEventRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CancelUserEventRequest::getRegionId()const +{ + return regionId_; +} + +void CancelUserEventRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool CancelUserEventRequest::getEnable()const +{ + return enable_; +} + +void CancelUserEventRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string CancelUserEventRequest::getRequestContent()const +{ + return requestContent_; +} + +void CancelUserEventRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string CancelUserEventRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CancelUserEventRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string CancelUserEventRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CancelUserEventRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long CancelUserEventRequest::getCallerUid()const +{ + return callerUid_; +} + +void CancelUserEventRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CancelUserEventRequest::getApp_ip()const +{ + return app_ip_; +} + +void CancelUserEventRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string CancelUserEventRequest::getResourceId()const +{ + return resourceId_; +} + +void CancelUserEventRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setParameter("ResourceId", resourceId); +} + +std::string CancelUserEventRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CancelUserEventRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CancelUserEventRequest::getCallerBid()const +{ + return callerBid_; +} + +void CancelUserEventRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long CancelUserEventRequest::getOwnerId()const +{ + return ownerId_; +} + +void CancelUserEventRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool CancelUserEventRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CancelUserEventRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool CancelUserEventRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CancelUserEventRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool CancelUserEventRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CancelUserEventRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string CancelUserEventRequest::getRequestId()const +{ + return requestId_; +} + +void CancelUserEventRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ecs/src/model/CancelUserEventResult.cc b/ecs/src/model/CancelUserEventResult.cc new file mode 100644 index 000000000..d692be414 --- /dev/null +++ b/ecs/src/model/CancelUserEventResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CancelUserEventResult::CancelUserEventResult() : + ServiceResult() +{} + +CancelUserEventResult::CancelUserEventResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelUserEventResult::~CancelUserEventResult() +{} + +void CancelUserEventResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["EventId"].isNull()) + eventId_ = value["EventId"].asString(); + +} + +std::string CancelUserEventResult::getEventId()const +{ + return eventId_; +} + diff --git a/ecs/src/model/CheckAutoSnapshotPolicyRequest.cc b/ecs/src/model/CheckAutoSnapshotPolicyRequest.cc new file mode 100644 index 000000000..b3f0aae8c --- /dev/null +++ b/ecs/src/model/CheckAutoSnapshotPolicyRequest.cc @@ -0,0 +1,159 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ecs::Model::CheckAutoSnapshotPolicyRequest; + +CheckAutoSnapshotPolicyRequest::CheckAutoSnapshotPolicyRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CheckAutoSnapshotPolicy") +{} + +CheckAutoSnapshotPolicyRequest::~CheckAutoSnapshotPolicyRequest() +{} + +bool CheckAutoSnapshotPolicyRequest::getDataDiskPolicyEnabled()const +{ + return dataDiskPolicyEnabled_; +} + +void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyEnabled(bool dataDiskPolicyEnabled) +{ + dataDiskPolicyEnabled_ = dataDiskPolicyEnabled; + setParameter("DataDiskPolicyEnabled", std::to_string(dataDiskPolicyEnabled)); +} + +long CheckAutoSnapshotPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CheckAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int CheckAutoSnapshotPolicyRequest::getDataDiskPolicyRetentionDays()const +{ + return dataDiskPolicyRetentionDays_; +} + +void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyRetentionDays(int dataDiskPolicyRetentionDays) +{ + dataDiskPolicyRetentionDays_ = dataDiskPolicyRetentionDays; + setParameter("DataDiskPolicyRetentionDays", std::to_string(dataDiskPolicyRetentionDays)); +} + +std::string CheckAutoSnapshotPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CheckAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +bool CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyRetentionLastWeek()const +{ + return systemDiskPolicyRetentionLastWeek_; +} + +void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyRetentionLastWeek(bool systemDiskPolicyRetentionLastWeek) +{ + systemDiskPolicyRetentionLastWeek_ = systemDiskPolicyRetentionLastWeek; + setParameter("SystemDiskPolicyRetentionLastWeek", std::to_string(systemDiskPolicyRetentionLastWeek)); +} + +std::string CheckAutoSnapshotPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CheckAutoSnapshotPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyTimePeriod()const +{ + return systemDiskPolicyTimePeriod_; +} + +void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyTimePeriod(int systemDiskPolicyTimePeriod) +{ + systemDiskPolicyTimePeriod_ = systemDiskPolicyTimePeriod; + setParameter("SystemDiskPolicyTimePeriod", std::to_string(systemDiskPolicyTimePeriod)); +} + +long CheckAutoSnapshotPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void CheckAutoSnapshotPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool CheckAutoSnapshotPolicyRequest::getDataDiskPolicyRetentionLastWeek()const +{ + return dataDiskPolicyRetentionLastWeek_; +} + +void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyRetentionLastWeek(bool dataDiskPolicyRetentionLastWeek) +{ + dataDiskPolicyRetentionLastWeek_ = dataDiskPolicyRetentionLastWeek; + setParameter("DataDiskPolicyRetentionLastWeek", std::to_string(dataDiskPolicyRetentionLastWeek)); +} + +int CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyRetentionDays()const +{ + return systemDiskPolicyRetentionDays_; +} + +void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyRetentionDays(int systemDiskPolicyRetentionDays) +{ + systemDiskPolicyRetentionDays_ = systemDiskPolicyRetentionDays; + setParameter("SystemDiskPolicyRetentionDays", std::to_string(systemDiskPolicyRetentionDays)); +} + +int CheckAutoSnapshotPolicyRequest::getDataDiskPolicyTimePeriod()const +{ + return dataDiskPolicyTimePeriod_; +} + +void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyTimePeriod(int dataDiskPolicyTimePeriod) +{ + dataDiskPolicyTimePeriod_ = dataDiskPolicyTimePeriod; + setParameter("DataDiskPolicyTimePeriod", std::to_string(dataDiskPolicyTimePeriod)); +} + +bool CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyEnabled()const +{ + return systemDiskPolicyEnabled_; +} + +void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyEnabled(bool systemDiskPolicyEnabled) +{ + systemDiskPolicyEnabled_ = systemDiskPolicyEnabled; + setParameter("SystemDiskPolicyEnabled", std::to_string(systemDiskPolicyEnabled)); +} + diff --git a/ecs/src/model/CheckAutoSnapshotPolicyResult.cc b/ecs/src/model/CheckAutoSnapshotPolicyResult.cc new file mode 100644 index 000000000..03142ab73 --- /dev/null +++ b/ecs/src/model/CheckAutoSnapshotPolicyResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CheckAutoSnapshotPolicyResult::CheckAutoSnapshotPolicyResult() : + ServiceResult() +{} + +CheckAutoSnapshotPolicyResult::CheckAutoSnapshotPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckAutoSnapshotPolicyResult::~CheckAutoSnapshotPolicyResult() +{} + +void CheckAutoSnapshotPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["AutoSnapshotOccupation"].isNull()) + autoSnapshotOccupation_ = std::stoi(value["AutoSnapshotOccupation"].asString()); + if(!value["IsPermittedModify"].isNull()) + isPermittedModify_ = value["IsPermittedModify"].asString(); + +} + +int CheckAutoSnapshotPolicyResult::getAutoSnapshotOccupation()const +{ + return autoSnapshotOccupation_; +} + +std::string CheckAutoSnapshotPolicyResult::getIsPermittedModify()const +{ + return isPermittedModify_; +} + diff --git a/ecs/src/model/CheckDiskEnableAutoSnapshotValidationRequest.cc b/ecs/src/model/CheckDiskEnableAutoSnapshotValidationRequest.cc new file mode 100644 index 000000000..e28e5e9c9 --- /dev/null +++ b/ecs/src/model/CheckDiskEnableAutoSnapshotValidationRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ecs::Model::CheckDiskEnableAutoSnapshotValidationRequest; + +CheckDiskEnableAutoSnapshotValidationRequest::CheckDiskEnableAutoSnapshotValidationRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CheckDiskEnableAutoSnapshotValidation") +{} + +CheckDiskEnableAutoSnapshotValidationRequest::~CheckDiskEnableAutoSnapshotValidationRequest() +{} + +long CheckDiskEnableAutoSnapshotValidationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CheckDiskEnableAutoSnapshotValidationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CheckDiskEnableAutoSnapshotValidationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CheckDiskEnableAutoSnapshotValidationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CheckDiskEnableAutoSnapshotValidationRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CheckDiskEnableAutoSnapshotValidationRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CheckDiskEnableAutoSnapshotValidationRequest::getDiskIds()const +{ + return diskIds_; +} + +void CheckDiskEnableAutoSnapshotValidationRequest::setDiskIds(const std::string& diskIds) +{ + diskIds_ = diskIds; + setParameter("DiskIds", diskIds); +} + +long CheckDiskEnableAutoSnapshotValidationRequest::getOwnerId()const +{ + return ownerId_; +} + +void CheckDiskEnableAutoSnapshotValidationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/CheckDiskEnableAutoSnapshotValidationResult.cc b/ecs/src/model/CheckDiskEnableAutoSnapshotValidationResult.cc new file mode 100644 index 000000000..490cee9fa --- /dev/null +++ b/ecs/src/model/CheckDiskEnableAutoSnapshotValidationResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CheckDiskEnableAutoSnapshotValidationResult::CheckDiskEnableAutoSnapshotValidationResult() : + ServiceResult() +{} + +CheckDiskEnableAutoSnapshotValidationResult::CheckDiskEnableAutoSnapshotValidationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckDiskEnableAutoSnapshotValidationResult::~CheckDiskEnableAutoSnapshotValidationResult() +{} + +void CheckDiskEnableAutoSnapshotValidationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["IsPermitted"].isNull()) + isPermitted_ = value["IsPermitted"].asString(); + if(!value["AutoSnapshotOccupation"].isNull()) + autoSnapshotOccupation_ = std::stoi(value["AutoSnapshotOccupation"].asString()); + +} + +int CheckDiskEnableAutoSnapshotValidationResult::getAutoSnapshotOccupation()const +{ + return autoSnapshotOccupation_; +} + +std::string CheckDiskEnableAutoSnapshotValidationResult::getIsPermitted()const +{ + return isPermitted_; +} + diff --git a/ecs/src/model/CreateUserEventRequest.cc b/ecs/src/model/CreateUserEventRequest.cc new file mode 100644 index 000000000..eed480e6e --- /dev/null +++ b/ecs/src/model/CreateUserEventRequest.cc @@ -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 + +using AlibabaCloud::Ecs::Model::CreateUserEventRequest; + +CreateUserEventRequest::CreateUserEventRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateUserEvent") +{} + +CreateUserEventRequest::~CreateUserEventRequest() +{} + +long CreateUserEventRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateUserEventRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long CreateUserEventRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateUserEventRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CreateUserEventRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateUserEventRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string CreateUserEventRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateUserEventRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateUserEventRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CreateUserEventRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CreateUserEventRequest::getCallerType()const +{ + return callerType_; +} + +void CreateUserEventRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string CreateUserEventRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateUserEventRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateUserEventRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateUserEventRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateUserEventRequest::getRegionId()const +{ + return regionId_; +} + +void CreateUserEventRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool CreateUserEventRequest::getEnable()const +{ + return enable_; +} + +void CreateUserEventRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string CreateUserEventRequest::getRequestContent()const +{ + return requestContent_; +} + +void CreateUserEventRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string CreateUserEventRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CreateUserEventRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string CreateUserEventRequest::getPlanTime()const +{ + return planTime_; +} + +void CreateUserEventRequest::setPlanTime(const std::string& planTime) +{ + planTime_ = planTime; + setParameter("PlanTime", planTime); +} + +std::string CreateUserEventRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CreateUserEventRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long CreateUserEventRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateUserEventRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CreateUserEventRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateUserEventRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string CreateUserEventRequest::getExpireTime()const +{ + return expireTime_; +} + +void CreateUserEventRequest::setExpireTime(const std::string& expireTime) +{ + expireTime_ = expireTime; + setParameter("ExpireTime", expireTime); +} + +std::string CreateUserEventRequest::getResourceId()const +{ + return resourceId_; +} + +void CreateUserEventRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setParameter("ResourceId", resourceId); +} + +std::string CreateUserEventRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateUserEventRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateUserEventRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateUserEventRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long CreateUserEventRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateUserEventRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool CreateUserEventRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateUserEventRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool CreateUserEventRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateUserEventRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool CreateUserEventRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateUserEventRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string CreateUserEventRequest::getRequestId()const +{ + return requestId_; +} + +void CreateUserEventRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string CreateUserEventRequest::getEventType()const +{ + return eventType_; +} + +void CreateUserEventRequest::setEventType(const std::string& eventType) +{ + eventType_ = eventType; + setParameter("EventType", eventType); +} + diff --git a/ecs/src/model/CreateUserEventResult.cc b/ecs/src/model/CreateUserEventResult.cc new file mode 100644 index 000000000..b3d7b354b --- /dev/null +++ b/ecs/src/model/CreateUserEventResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateUserEventResult::CreateUserEventResult() : + ServiceResult() +{} + +CreateUserEventResult::CreateUserEventResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateUserEventResult::~CreateUserEventResult() +{} + +void CreateUserEventResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["EventId"].isNull()) + eventId_ = value["EventId"].asString(); + +} + +std::string CreateUserEventResult::getEventId()const +{ + return eventId_; +} + diff --git a/ecs/src/model/CreateVolumeRequest.cc b/ecs/src/model/CreateVolumeRequest.cc new file mode 100644 index 000000000..86b61d011 --- /dev/null +++ b/ecs/src/model/CreateVolumeRequest.cc @@ -0,0 +1,187 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateVolumeRequest; + +CreateVolumeRequest::CreateVolumeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateVolume") +{} + +CreateVolumeRequest::~CreateVolumeRequest() +{} + +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::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::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); +} + +long CreateVolumeRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateVolumeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +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::getZoneId()const +{ + return zoneId_; +} + +void CreateVolumeRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::vector CreateVolumeRequest::getTag()const +{ + return tag_; +} + +void CreateVolumeRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setParameter(str + ".Value", obj.value); + setParameter(str + ".Key", obj.key); + } +} + diff --git a/ecs/src/model/CreateVolumeResult.cc b/ecs/src/model/CreateVolumeResult.cc new file mode 100644 index 000000000..58571380a --- /dev/null +++ b/ecs/src/model/CreateVolumeResult.cc @@ -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 +#include + +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_; +} + diff --git a/ecs/src/model/DeleteVolumeRequest.cc b/ecs/src/model/DeleteVolumeRequest.cc new file mode 100644 index 000000000..92f5e57c4 --- /dev/null +++ b/ecs/src/model/DeleteVolumeRequest.cc @@ -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 + +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)); +} + diff --git a/ecs/src/model/DeleteVolumeResult.cc b/ecs/src/model/DeleteVolumeResult.cc new file mode 100644 index 000000000..470944a33 --- /dev/null +++ b/ecs/src/model/DeleteVolumeResult.cc @@ -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 +#include + +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()); + +} + diff --git a/ecs/src/model/DescribeAutoSnapshotPolicyRequest.cc b/ecs/src/model/DescribeAutoSnapshotPolicyRequest.cc new file mode 100644 index 000000000..d893154a1 --- /dev/null +++ b/ecs/src/model/DescribeAutoSnapshotPolicyRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeAutoSnapshotPolicyRequest; + +DescribeAutoSnapshotPolicyRequest::DescribeAutoSnapshotPolicyRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoSnapshotPolicy") +{} + +DescribeAutoSnapshotPolicyRequest::~DescribeAutoSnapshotPolicyRequest() +{} + +long DescribeAutoSnapshotPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAutoSnapshotPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAutoSnapshotPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAutoSnapshotPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeAutoSnapshotPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAutoSnapshotPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeAutoSnapshotPolicyResult.cc b/ecs/src/model/DescribeAutoSnapshotPolicyResult.cc new file mode 100644 index 000000000..960115094 --- /dev/null +++ b/ecs/src/model/DescribeAutoSnapshotPolicyResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeAutoSnapshotPolicyResult::DescribeAutoSnapshotPolicyResult() : + ServiceResult() +{} + +DescribeAutoSnapshotPolicyResult::DescribeAutoSnapshotPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAutoSnapshotPolicyResult::~DescribeAutoSnapshotPolicyResult() +{} + +void DescribeAutoSnapshotPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto autoSnapshotPolicyNode = value["AutoSnapshotPolicy"]; + if(!autoSnapshotPolicyNode["SystemDiskPolicyEnabled"].isNull()) + autoSnapshotPolicy_.systemDiskPolicyEnabled = autoSnapshotPolicyNode["SystemDiskPolicyEnabled"].asString(); + if(!autoSnapshotPolicyNode["SystemDiskPolicyTimePeriod"].isNull()) + autoSnapshotPolicy_.systemDiskPolicyTimePeriod = autoSnapshotPolicyNode["SystemDiskPolicyTimePeriod"].asString(); + if(!autoSnapshotPolicyNode["SystemDiskPolicyRetentionDays"].isNull()) + autoSnapshotPolicy_.systemDiskPolicyRetentionDays = autoSnapshotPolicyNode["SystemDiskPolicyRetentionDays"].asString(); + if(!autoSnapshotPolicyNode["SystemDiskPolicyRetentionLastWeek"].isNull()) + autoSnapshotPolicy_.systemDiskPolicyRetentionLastWeek = autoSnapshotPolicyNode["SystemDiskPolicyRetentionLastWeek"].asString(); + if(!autoSnapshotPolicyNode["DataDiskPolicyEnabled"].isNull()) + autoSnapshotPolicy_.dataDiskPolicyEnabled = autoSnapshotPolicyNode["DataDiskPolicyEnabled"].asString(); + if(!autoSnapshotPolicyNode["DataDiskPolicyTimePeriod"].isNull()) + autoSnapshotPolicy_.dataDiskPolicyTimePeriod = autoSnapshotPolicyNode["DataDiskPolicyTimePeriod"].asString(); + if(!autoSnapshotPolicyNode["DataDiskPolicyRetentionDays"].isNull()) + autoSnapshotPolicy_.dataDiskPolicyRetentionDays = autoSnapshotPolicyNode["DataDiskPolicyRetentionDays"].asString(); + if(!autoSnapshotPolicyNode["DataDiskPolicyRetentionLastWeek"].isNull()) + autoSnapshotPolicy_.dataDiskPolicyRetentionLastWeek = autoSnapshotPolicyNode["DataDiskPolicyRetentionLastWeek"].asString(); + auto autoSnapshotExcutionStatusNode = value["AutoSnapshotExcutionStatus"]; + if(!autoSnapshotExcutionStatusNode["SystemDiskExcutionStatus"].isNull()) + autoSnapshotExcutionStatus_.systemDiskExcutionStatus = autoSnapshotExcutionStatusNode["SystemDiskExcutionStatus"].asString(); + if(!autoSnapshotExcutionStatusNode["DataDiskExcutionStatus"].isNull()) + autoSnapshotExcutionStatus_.dataDiskExcutionStatus = autoSnapshotExcutionStatusNode["DataDiskExcutionStatus"].asString(); + if(!value["AutoSnapshotOccupation"].isNull()) + autoSnapshotOccupation_ = std::stoi(value["AutoSnapshotOccupation"].asString()); + +} + +int DescribeAutoSnapshotPolicyResult::getAutoSnapshotOccupation()const +{ + return autoSnapshotOccupation_; +} + +DescribeAutoSnapshotPolicyResult::AutoSnapshotExcutionStatus DescribeAutoSnapshotPolicyResult::getAutoSnapshotExcutionStatus()const +{ + return autoSnapshotExcutionStatus_; +} + +DescribeAutoSnapshotPolicyResult::AutoSnapshotPolicy DescribeAutoSnapshotPolicyResult::getAutoSnapshotPolicy()const +{ + return autoSnapshotPolicy_; +} + diff --git a/ecs/src/model/DescribeEventDetailRequest.cc b/ecs/src/model/DescribeEventDetailRequest.cc new file mode 100644 index 000000000..a19858ad5 --- /dev/null +++ b/ecs/src/model/DescribeEventDetailRequest.cc @@ -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 + +using AlibabaCloud::Ecs::Model::DescribeEventDetailRequest; + +DescribeEventDetailRequest::DescribeEventDetailRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeEventDetail") +{} + +DescribeEventDetailRequest::~DescribeEventDetailRequest() +{} + +std::string DescribeEventDetailRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeEventDetailRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeEventDetailRequest::getEventId()const +{ + return eventId_; +} + +void DescribeEventDetailRequest::setEventId(const std::string& eventId) +{ + eventId_ = eventId; + setParameter("EventId", eventId); +} + +long DescribeEventDetailRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeEventDetailRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeEventDetailRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeEventDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long DescribeEventDetailRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeEventDetailRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeEventDetailRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeEventDetailRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DescribeEventDetailRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeEventDetailRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeEventDetailRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeEventDetailRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeEventDetailRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeEventDetailRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeEventDetailRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeEventDetailRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeEventDetailRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeEventDetailRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool DescribeEventDetailRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeEventDetailRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DescribeEventDetailRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeEventDetailRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +std::string DescribeEventDetailRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeEventDetailRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +bool DescribeEventDetailRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeEventDetailRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DescribeEventDetailRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeEventDetailRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeEventDetailRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeEventDetailRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeEventDetailRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeEventDetailRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +bool DescribeEventDetailRequest::getEnable()const +{ + return enable_; +} + +void DescribeEventDetailRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string DescribeEventDetailRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeEventDetailRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DescribeEventDetailRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeEventDetailRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeEventDetailRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeEventDetailRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeEventDetailRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeEventDetailRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/ecs/src/model/DescribeEventDetailResult.cc b/ecs/src/model/DescribeEventDetailResult.cc new file mode 100644 index 000000000..935ff7310 --- /dev/null +++ b/ecs/src/model/DescribeEventDetailResult.cc @@ -0,0 +1,136 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeEventDetailResult::DescribeEventDetailResult() : + ServiceResult() +{} + +DescribeEventDetailResult::DescribeEventDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEventDetailResult::~DescribeEventDetailResult() +{} + +void DescribeEventDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["ResourceId"].isNull()) + resourceId_ = value["ResourceId"].asString(); + if(!value["EventType"].isNull()) + eventType_ = value["EventType"].asString(); + if(!value["EventCategory"].isNull()) + eventCategory_ = value["EventCategory"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["SupportModify"].isNull()) + supportModify_ = value["SupportModify"].asString(); + if(!value["PlanTime"].isNull()) + planTime_ = value["PlanTime"].asString(); + if(!value["ExpireTime"].isNull()) + expireTime_ = value["ExpireTime"].asString(); + if(!value["EventId"].isNull()) + eventId_ = value["EventId"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["EffectTime"].isNull()) + effectTime_ = value["EffectTime"].asString(); + if(!value["LimitTime"].isNull()) + limitTime_ = value["LimitTime"].asString(); + if(!value["Mark"].isNull()) + mark_ = value["Mark"].asString(); + +} + +std::string DescribeEventDetailResult::getStatus()const +{ + return status_; +} + +std::string DescribeEventDetailResult::getLimitTime()const +{ + return limitTime_; +} + +std::string DescribeEventDetailResult::getEventCategory()const +{ + return eventCategory_; +} + +std::string DescribeEventDetailResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeEventDetailResult::getEventType()const +{ + return eventType_; +} + +std::string DescribeEventDetailResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeEventDetailResult::getEffectTime()const +{ + return effectTime_; +} + +std::string DescribeEventDetailResult::getMark()const +{ + return mark_; +} + +std::string DescribeEventDetailResult::getPlanTime()const +{ + return planTime_; +} + +std::string DescribeEventDetailResult::getResourceId()const +{ + return resourceId_; +} + +std::string DescribeEventDetailResult::getSupportModify()const +{ + return supportModify_; +} + +std::string DescribeEventDetailResult::getEventId()const +{ + return eventId_; +} + +std::string DescribeEventDetailResult::getExpireTime()const +{ + return expireTime_; +} + diff --git a/ecs/src/model/DescribeEventsRequest.cc b/ecs/src/model/DescribeEventsRequest.cc new file mode 100644 index 000000000..2c902d992 --- /dev/null +++ b/ecs/src/model/DescribeEventsRequest.cc @@ -0,0 +1,357 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeEventsRequest; + +DescribeEventsRequest::DescribeEventsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeEvents") +{} + +DescribeEventsRequest::~DescribeEventsRequest() +{} + +std::string DescribeEventsRequest::getEventId()const +{ + return eventId_; +} + +void DescribeEventsRequest::setEventId(const std::string& eventId) +{ + eventId_ = eventId; + setParameter("EventId", eventId); +} + +long DescribeEventsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeEventsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeEventsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeEventsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeEventsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeEventsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DescribeEventsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeEventsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeEventsRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeEventsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeEventsRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeEventsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +int DescribeEventsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeEventsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeEventsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeEventsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeEventsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeEventsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeEventsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeEventsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DescribeEventsRequest::getEnable()const +{ + return enable_; +} + +void DescribeEventsRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string DescribeEventsRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeEventsRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +int DescribeEventsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeEventsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeEventsRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeEventsRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeEventsRequest::getPlanTime()const +{ + return planTime_; +} + +void DescribeEventsRequest::setPlanTime(const std::string& planTime) +{ + planTime_ = planTime; + setParameter("PlanTime", planTime); +} + +std::string DescribeEventsRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeEventsRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeEventsRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeEventsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeEventsRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeEventsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeEventsRequest::getExpireTime()const +{ + return expireTime_; +} + +void DescribeEventsRequest::setExpireTime(const std::string& expireTime) +{ + expireTime_ = expireTime; + setParameter("ExpireTime", expireTime); +} + +std::string DescribeEventsRequest::getResourceId()const +{ + return resourceId_; +} + +void DescribeEventsRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setParameter("ResourceId", resourceId); +} + +std::string DescribeEventsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeEventsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeEventsRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeEventsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeEventsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeEventsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool DescribeEventsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeEventsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DescribeEventsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeEventsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DescribeEventsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeEventsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DescribeEventsRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeEventsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DescribeEventsRequest::getEventType()const +{ + return eventType_; +} + +void DescribeEventsRequest::setEventType(const std::string& eventType) +{ + eventType_ = eventType; + setParameter("EventType", eventType); +} + +std::string DescribeEventsRequest::getStatus()const +{ + return status_; +} + +void DescribeEventsRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/ecs/src/model/DescribeEventsResult.cc b/ecs/src/model/DescribeEventsResult.cc new file mode 100644 index 000000000..ddd4b55ed --- /dev/null +++ b/ecs/src/model/DescribeEventsResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeEventsResult::DescribeEventsResult() : + ServiceResult() +{} + +DescribeEventsResult::DescribeEventsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEventsResult::~DescribeEventsResult() +{} + +void DescribeEventsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allEvents = value["Events"]["Event"]; + for (auto value : allEvents) + { + Event eventsObject; + if(!value["ResourceId"].isNull()) + eventsObject.resourceId = value["ResourceId"].asString(); + if(!value["EventType"].isNull()) + eventsObject.eventType = value["EventType"].asString(); + if(!value["EventCategory"].isNull()) + eventsObject.eventCategory = value["EventCategory"].asString(); + if(!value["Status"].isNull()) + eventsObject.status = value["Status"].asString(); + if(!value["SupportModify"].isNull()) + eventsObject.supportModify = value["SupportModify"].asString(); + if(!value["PlanTime"].isNull()) + eventsObject.planTime = value["PlanTime"].asString(); + if(!value["ExpireTime"].isNull()) + eventsObject.expireTime = value["ExpireTime"].asString(); + if(!value["EventId"].isNull()) + eventsObject.eventId = value["EventId"].asString(); + events_.push_back(eventsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeEventsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeEventsResult::getPageSize()const +{ + return pageSize_; +} + +std::vector DescribeEventsResult::getEvents()const +{ + return events_; +} + +int DescribeEventsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ecs/src/model/DescribeImagesResult.cc b/ecs/src/model/DescribeImagesResult.cc index 30f9c1e9c..ef03ded79 100644 --- a/ecs/src/model/DescribeImagesResult.cc +++ b/ecs/src/model/DescribeImagesResult.cc @@ -104,6 +104,10 @@ void DescribeImagesResult::parse(const std::string &payload) diskDeviceMappingsObject.importOSSBucket = value["ImportOSSBucket"].asString(); if(!value["ImportOSSObject"].isNull()) diskDeviceMappingsObject.importOSSObject = value["ImportOSSObject"].asString(); + if(!value["Progress"].isNull()) + diskDeviceMappingsObject.progress = value["Progress"].asString(); + if(!value["RemainTime"].isNull()) + diskDeviceMappingsObject.remainTime = std::stoi(value["RemainTime"].asString()); imagesObject.diskDeviceMappings.push_back(diskDeviceMappingsObject); } auto allTags = value["Tags"]["Tag"]; diff --git a/ecs/src/model/DescribeIntranetAttributeKbRequest.cc b/ecs/src/model/DescribeIntranetAttributeKbRequest.cc new file mode 100644 index 000000000..eb0d24664 --- /dev/null +++ b/ecs/src/model/DescribeIntranetAttributeKbRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeIntranetAttributeKbRequest; + +DescribeIntranetAttributeKbRequest::DescribeIntranetAttributeKbRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeIntranetAttributeKb") +{} + +DescribeIntranetAttributeKbRequest::~DescribeIntranetAttributeKbRequest() +{} + +long DescribeIntranetAttributeKbRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeIntranetAttributeKbRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeIntranetAttributeKbRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeIntranetAttributeKbRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeIntranetAttributeKbRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeIntranetAttributeKbRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeIntranetAttributeKbRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeIntranetAttributeKbRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeIntranetAttributeKbRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeIntranetAttributeKbRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeIntranetAttributeKbResult.cc b/ecs/src/model/DescribeIntranetAttributeKbResult.cc new file mode 100644 index 000000000..18a271eb8 --- /dev/null +++ b/ecs/src/model/DescribeIntranetAttributeKbResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeIntranetAttributeKbResult::DescribeIntranetAttributeKbResult() : + ServiceResult() +{} + +DescribeIntranetAttributeKbResult::DescribeIntranetAttributeKbResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeIntranetAttributeKbResult::~DescribeIntranetAttributeKbResult() +{} + +void DescribeIntranetAttributeKbResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["VlanId"].isNull()) + vlanId_ = value["VlanId"].asString(); + if(!value["IntranetIpAddress"].isNull()) + intranetIpAddress_ = value["IntranetIpAddress"].asString(); + if(!value["IntranetMaxBandwidthIn"].isNull()) + intranetMaxBandwidthIn_ = std::stoi(value["IntranetMaxBandwidthIn"].asString()); + if(!value["IntranetMaxBandwidthOut"].isNull()) + intranetMaxBandwidthOut_ = std::stoi(value["IntranetMaxBandwidthOut"].asString()); + +} + +std::string DescribeIntranetAttributeKbResult::getInstanceId()const +{ + return instanceId_; +} + +int DescribeIntranetAttributeKbResult::getIntranetMaxBandwidthOut()const +{ + return intranetMaxBandwidthOut_; +} + +std::string DescribeIntranetAttributeKbResult::getVlanId()const +{ + return vlanId_; +} + +std::string DescribeIntranetAttributeKbResult::getIntranetIpAddress()const +{ + return intranetIpAddress_; +} + +int DescribeIntranetAttributeKbResult::getIntranetMaxBandwidthIn()const +{ + return intranetMaxBandwidthIn_; +} + diff --git a/ecs/src/model/DescribeIpRangesRequest.cc b/ecs/src/model/DescribeIpRangesRequest.cc new file mode 100644 index 000000000..61a0e6405 --- /dev/null +++ b/ecs/src/model/DescribeIpRangesRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeIpRangesRequest; + +DescribeIpRangesRequest::DescribeIpRangesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeIpRanges") +{} + +DescribeIpRangesRequest::~DescribeIpRangesRequest() +{} + +std::string DescribeIpRangesRequest::getNicType()const +{ + return nicType_; +} + +void DescribeIpRangesRequest::setNicType(const std::string& nicType) +{ + nicType_ = nicType; + setParameter("NicType", nicType); +} + +long DescribeIpRangesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeIpRangesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeIpRangesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeIpRangesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeIpRangesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeIpRangesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeIpRangesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeIpRangesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeIpRangesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeIpRangesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeIpRangesRequest::getClusterId()const +{ + return clusterId_; +} + +void DescribeIpRangesRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +long DescribeIpRangesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeIpRangesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeIpRangesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeIpRangesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeIpRangesResult.cc b/ecs/src/model/DescribeIpRangesResult.cc new file mode 100644 index 000000000..cf5f9d175 --- /dev/null +++ b/ecs/src/model/DescribeIpRangesResult.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeIpRangesResult::DescribeIpRangesResult() : + ServiceResult() +{} + +DescribeIpRangesResult::DescribeIpRangesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeIpRangesResult::~DescribeIpRangesResult() +{} + +void DescribeIpRangesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allIpRanges = value["IpRanges"]["IpRange"]; + for (auto value : allIpRanges) + { + IpRange ipRangesObject; + if(!value["IpAddress"].isNull()) + ipRangesObject.ipAddress = value["IpAddress"].asString(); + if(!value["NicType"].isNull()) + ipRangesObject.nicType = value["NicType"].asString(); + ipRanges_.push_back(ipRangesObject); + } + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["ClusterId"].isNull()) + clusterId_ = value["ClusterId"].asString(); + 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 DescribeIpRangesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeIpRangesResult::getPageSize()const +{ + return pageSize_; +} + +std::string DescribeIpRangesResult::getClusterId()const +{ + return clusterId_; +} + +int DescribeIpRangesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeIpRangesResult::getIpRanges()const +{ + return ipRanges_; +} + +std::string DescribeIpRangesResult::getRegionId()const +{ + return regionId_; +} + diff --git a/ecs/src/model/DescribeNetworkInterfacesResult.cc b/ecs/src/model/DescribeNetworkInterfacesResult.cc index 85cb15287..466920857 100644 --- a/ecs/src/model/DescribeNetworkInterfacesResult.cc +++ b/ecs/src/model/DescribeNetworkInterfacesResult.cc @@ -85,6 +85,14 @@ void DescribeNetworkInterfacesResult::parse(const std::string &payload) privateIpSetsObject.associatedPublicIp1.allocationId = associatedPublicIp1Node["AllocationId"].asString(); networkInterfaceSetsObject.privateIpSets.push_back(privateIpSetsObject); } + auto allIpv6Sets = value["Ipv6Sets"]["Ipv6Set"]; + for (auto value : allIpv6Sets) + { + NetworkInterfaceSet::Ipv6Set ipv6SetsObject; + if(!value["Ipv6Address"].isNull()) + ipv6SetsObject.ipv6Address = value["Ipv6Address"].asString(); + networkInterfaceSetsObject.ipv6Sets.push_back(ipv6SetsObject); + } auto allTags = value["Tags"]["Tag"]; for (auto value : allTags) { diff --git a/ecs/src/model/DescribeSecurityGroupAttributeResult.cc b/ecs/src/model/DescribeSecurityGroupAttributeResult.cc index 488a6d845..105d0d274 100644 --- a/ecs/src/model/DescribeSecurityGroupAttributeResult.cc +++ b/ecs/src/model/DescribeSecurityGroupAttributeResult.cc @@ -56,6 +56,8 @@ void DescribeSecurityGroupAttributeResult::parse(const std::string &payload) permissionsObject.sourceGroupName = value["SourceGroupName"].asString(); if(!value["SourceCidrIp"].isNull()) permissionsObject.sourceCidrIp = value["SourceCidrIp"].asString(); + if(!value["Ipv6SourceCidrIp"].isNull()) + permissionsObject.ipv6SourceCidrIp = value["Ipv6SourceCidrIp"].asString(); if(!value["Policy"].isNull()) permissionsObject.policy = value["Policy"].asString(); if(!value["NicType"].isNull()) @@ -68,6 +70,8 @@ void DescribeSecurityGroupAttributeResult::parse(const std::string &payload) permissionsObject.destGroupName = value["DestGroupName"].asString(); if(!value["DestCidrIp"].isNull()) permissionsObject.destCidrIp = value["DestCidrIp"].asString(); + if(!value["Ipv6DestCidrIp"].isNull()) + permissionsObject.ipv6DestCidrIp = value["Ipv6DestCidrIp"].asString(); if(!value["DestGroupOwnerAccount"].isNull()) permissionsObject.destGroupOwnerAccount = value["DestGroupOwnerAccount"].asString(); if(!value["Priority"].isNull()) diff --git a/ecs/src/model/DescribeVSwitchesResult.cc b/ecs/src/model/DescribeVSwitchesResult.cc index 4fc6b92d1..5aa8db7a1 100644 --- a/ecs/src/model/DescribeVSwitchesResult.cc +++ b/ecs/src/model/DescribeVSwitchesResult.cc @@ -64,6 +64,8 @@ void DescribeVSwitchesResult::parse(const std::string &payload) vSwitchesObject.creationTime = value["CreationTime"].asString(); if(!value["IsDefault"].isNull()) vSwitchesObject.isDefault = value["IsDefault"].asString() == "true"; + if(!value["ResourceGroupId"].isNull()) + vSwitchesObject.resourceGroupId = value["ResourceGroupId"].asString(); vSwitches_.push_back(vSwitchesObject); } if(!value["TotalCount"].isNull()) diff --git a/ecs/src/model/DescribeVolumesRequest.cc b/ecs/src/model/DescribeVolumesRequest.cc new file mode 100644 index 000000000..fa54bf7c8 --- /dev/null +++ b/ecs/src/model/DescribeVolumesRequest.cc @@ -0,0 +1,220 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeVolumesRequest; + +DescribeVolumesRequest::DescribeVolumesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeVolumes") +{} + +DescribeVolumesRequest::~DescribeVolumesRequest() +{} + +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::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVolumesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVolumesRequest::getAutoSnapshotPolicyId()const +{ + return autoSnapshotPolicyId_; +} + +void DescribeVolumesRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId) +{ + autoSnapshotPolicyId_ = autoSnapshotPolicyId; + setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId); +} + +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)); +} + +int DescribeVolumesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVolumesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeVolumesRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeVolumesRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +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::getZoneId()const +{ + return zoneId_; +} + +void DescribeVolumesRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string DescribeVolumesRequest::getVolumeIds()const +{ + return volumeIds_; +} + +void DescribeVolumesRequest::setVolumeIds(const std::string& volumeIds) +{ + volumeIds_ = volumeIds; + setParameter("VolumeIds", volumeIds); +} + +std::vector DescribeVolumesRequest::getTag()const +{ + return tag_; +} + +void DescribeVolumesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setParameter(str + ".Value", obj.value); + setParameter(str + ".Key", obj.key); + } +} + +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); +} + diff --git a/ecs/src/model/DescribeVolumesResult.cc b/ecs/src/model/DescribeVolumesResult.cc new file mode 100644 index 000000000..48e1d5c1f --- /dev/null +++ b/ecs/src/model/DescribeVolumesResult.cc @@ -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 +#include + +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::getVolumes()const +{ + return volumes_; +} + +int DescribeVolumesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeVolumesResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ecs/src/model/DetachVolumeRequest.cc b/ecs/src/model/DetachVolumeRequest.cc new file mode 100644 index 000000000..f689d1bf2 --- /dev/null +++ b/ecs/src/model/DetachVolumeRequest.cc @@ -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 + +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)); +} + diff --git a/ecs/src/model/DetachVolumeResult.cc b/ecs/src/model/DetachVolumeResult.cc new file mode 100644 index 000000000..a058ceb36 --- /dev/null +++ b/ecs/src/model/DetachVolumeResult.cc @@ -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 +#include + +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()); + +} + diff --git a/ecs/src/model/ModifyIntranetBandwidthKbRequest.cc b/ecs/src/model/ModifyIntranetBandwidthKbRequest.cc new file mode 100644 index 000000000..a93e3aa38 --- /dev/null +++ b/ecs/src/model/ModifyIntranetBandwidthKbRequest.cc @@ -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 + +using AlibabaCloud::Ecs::Model::ModifyIntranetBandwidthKbRequest; + +ModifyIntranetBandwidthKbRequest::ModifyIntranetBandwidthKbRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyIntranetBandwidthKb") +{} + +ModifyIntranetBandwidthKbRequest::~ModifyIntranetBandwidthKbRequest() +{} + +long ModifyIntranetBandwidthKbRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyIntranetBandwidthKbRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int ModifyIntranetBandwidthKbRequest::getIntranetMaxBandwidthOut()const +{ + return intranetMaxBandwidthOut_; +} + +void ModifyIntranetBandwidthKbRequest::setIntranetMaxBandwidthOut(int intranetMaxBandwidthOut) +{ + intranetMaxBandwidthOut_ = intranetMaxBandwidthOut; + setParameter("IntranetMaxBandwidthOut", std::to_string(intranetMaxBandwidthOut)); +} + +std::string ModifyIntranetBandwidthKbRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyIntranetBandwidthKbRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int ModifyIntranetBandwidthKbRequest::getIntranetMaxBandwidthIn()const +{ + return intranetMaxBandwidthIn_; +} + +void ModifyIntranetBandwidthKbRequest::setIntranetMaxBandwidthIn(int intranetMaxBandwidthIn) +{ + intranetMaxBandwidthIn_ = intranetMaxBandwidthIn; + setParameter("IntranetMaxBandwidthIn", std::to_string(intranetMaxBandwidthIn)); +} + +std::string ModifyIntranetBandwidthKbRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyIntranetBandwidthKbRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyIntranetBandwidthKbRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyIntranetBandwidthKbRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyIntranetBandwidthKbRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyIntranetBandwidthKbRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ModifyIntranetBandwidthKbResult.cc b/ecs/src/model/ModifyIntranetBandwidthKbResult.cc new file mode 100644 index 000000000..b72bac119 --- /dev/null +++ b/ecs/src/model/ModifyIntranetBandwidthKbResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyIntranetBandwidthKbResult::ModifyIntranetBandwidthKbResult() : + ServiceResult() +{} + +ModifyIntranetBandwidthKbResult::ModifyIntranetBandwidthKbResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyIntranetBandwidthKbResult::~ModifyIntranetBandwidthKbResult() +{} + +void ModifyIntranetBandwidthKbResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc b/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc index 7e2e2c3e0..eb0f30037 100644 --- a/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc +++ b/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc @@ -234,6 +234,28 @@ void ModifySecurityGroupEgressRuleRequest::setCallerUid(long callerUid) setParameter("CallerUid", std::to_string(callerUid)); } +std::string ModifySecurityGroupEgressRuleRequest::getIpv6DestCidrIp()const +{ + return ipv6DestCidrIp_; +} + +void ModifySecurityGroupEgressRuleRequest::setIpv6DestCidrIp(const std::string& ipv6DestCidrIp) +{ + ipv6DestCidrIp_ = ipv6DestCidrIp; + setParameter("Ipv6DestCidrIp", ipv6DestCidrIp); +} + +std::string ModifySecurityGroupEgressRuleRequest::getIpv6SourceCidrIp()const +{ + return ipv6SourceCidrIp_; +} + +void ModifySecurityGroupEgressRuleRequest::setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp) +{ + ipv6SourceCidrIp_ = ipv6SourceCidrIp; + setParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp); +} + std::string ModifySecurityGroupEgressRuleRequest::getPolicy()const { return policy_; diff --git a/ecs/src/model/ModifySecurityGroupRuleRequest.cc b/ecs/src/model/ModifySecurityGroupRuleRequest.cc index 162664b20..64c979486 100644 --- a/ecs/src/model/ModifySecurityGroupRuleRequest.cc +++ b/ecs/src/model/ModifySecurityGroupRuleRequest.cc @@ -256,6 +256,28 @@ void ModifySecurityGroupRuleRequest::setCallerUid(long callerUid) setParameter("CallerUid", std::to_string(callerUid)); } +std::string ModifySecurityGroupRuleRequest::getIpv6SourceCidrIp()const +{ + return ipv6SourceCidrIp_; +} + +void ModifySecurityGroupRuleRequest::setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp) +{ + ipv6SourceCidrIp_ = ipv6SourceCidrIp; + setParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp); +} + +std::string ModifySecurityGroupRuleRequest::getIpv6DestCidrIp()const +{ + return ipv6DestCidrIp_; +} + +void ModifySecurityGroupRuleRequest::setIpv6DestCidrIp(const std::string& ipv6DestCidrIp) +{ + ipv6DestCidrIp_ = ipv6DestCidrIp; + setParameter("Ipv6DestCidrIp", ipv6DestCidrIp); +} + std::string ModifySecurityGroupRuleRequest::getPolicy()const { return policy_; diff --git a/ecs/src/model/ModifyUserEventAttributeRequest.cc b/ecs/src/model/ModifyUserEventAttributeRequest.cc new file mode 100644 index 000000000..288b7bf9b --- /dev/null +++ b/ecs/src/model/ModifyUserEventAttributeRequest.cc @@ -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 + +using AlibabaCloud::Ecs::Model::ModifyUserEventAttributeRequest; + +ModifyUserEventAttributeRequest::ModifyUserEventAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyUserEventAttribute") +{} + +ModifyUserEventAttributeRequest::~ModifyUserEventAttributeRequest() +{} + +std::string ModifyUserEventAttributeRequest::getEventId()const +{ + return eventId_; +} + +void ModifyUserEventAttributeRequest::setEventId(const std::string& eventId) +{ + eventId_ = eventId; + setParameter("EventId", eventId); +} + +long ModifyUserEventAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyUserEventAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long ModifyUserEventAttributeRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ModifyUserEventAttributeRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ModifyUserEventAttributeRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ModifyUserEventAttributeRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string ModifyUserEventAttributeRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ModifyUserEventAttributeRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ModifyUserEventAttributeRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void ModifyUserEventAttributeRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string ModifyUserEventAttributeRequest::getCallerType()const +{ + return callerType_; +} + +void ModifyUserEventAttributeRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string ModifyUserEventAttributeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyUserEventAttributeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyUserEventAttributeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyUserEventAttributeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyUserEventAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyUserEventAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool ModifyUserEventAttributeRequest::getEnable()const +{ + return enable_; +} + +void ModifyUserEventAttributeRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string ModifyUserEventAttributeRequest::getRequestContent()const +{ + return requestContent_; +} + +void ModifyUserEventAttributeRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string ModifyUserEventAttributeRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void ModifyUserEventAttributeRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string ModifyUserEventAttributeRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void ModifyUserEventAttributeRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long ModifyUserEventAttributeRequest::getCallerUid()const +{ + return callerUid_; +} + +void ModifyUserEventAttributeRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ModifyUserEventAttributeRequest::getApp_ip()const +{ + return app_ip_; +} + +void ModifyUserEventAttributeRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string ModifyUserEventAttributeRequest::getResourceId()const +{ + return resourceId_; +} + +void ModifyUserEventAttributeRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setParameter("ResourceId", resourceId); +} + +std::string ModifyUserEventAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyUserEventAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyUserEventAttributeRequest::getCallerBid()const +{ + return callerBid_; +} + +void ModifyUserEventAttributeRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +std::string ModifyUserEventAttributeRequest::getNewPlanTime()const +{ + return newPlanTime_; +} + +void ModifyUserEventAttributeRequest::setNewPlanTime(const std::string& newPlanTime) +{ + newPlanTime_ = newPlanTime; + setParameter("NewPlanTime", newPlanTime); +} + +long ModifyUserEventAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyUserEventAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool ModifyUserEventAttributeRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ModifyUserEventAttributeRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool ModifyUserEventAttributeRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ModifyUserEventAttributeRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool ModifyUserEventAttributeRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ModifyUserEventAttributeRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string ModifyUserEventAttributeRequest::getNewExpireTime()const +{ + return newExpireTime_; +} + +void ModifyUserEventAttributeRequest::setNewExpireTime(const std::string& newExpireTime) +{ + newExpireTime_ = newExpireTime; + setParameter("NewExpireTime", newExpireTime); +} + +std::string ModifyUserEventAttributeRequest::getRequestId()const +{ + return requestId_; +} + +void ModifyUserEventAttributeRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ecs/src/model/ModifyUserEventAttributeResult.cc b/ecs/src/model/ModifyUserEventAttributeResult.cc new file mode 100644 index 000000000..30ea93cfe --- /dev/null +++ b/ecs/src/model/ModifyUserEventAttributeResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyUserEventAttributeResult::ModifyUserEventAttributeResult() : + ServiceResult() +{} + +ModifyUserEventAttributeResult::ModifyUserEventAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyUserEventAttributeResult::~ModifyUserEventAttributeResult() +{} + +void ModifyUserEventAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["EventId"].isNull()) + eventId_ = value["EventId"].asString(); + +} + +std::string ModifyUserEventAttributeResult::getEventId()const +{ + return eventId_; +} + diff --git a/ecs/src/model/ModifyVolumeAttributeRequest.cc b/ecs/src/model/ModifyVolumeAttributeRequest.cc new file mode 100644 index 000000000..ba8335dec --- /dev/null +++ b/ecs/src/model/ModifyVolumeAttributeRequest.cc @@ -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 + +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)); +} + diff --git a/ecs/src/model/ModifyVolumeAttributeResult.cc b/ecs/src/model/ModifyVolumeAttributeResult.cc new file mode 100644 index 000000000..0bab49144 --- /dev/null +++ b/ecs/src/model/ModifyVolumeAttributeResult.cc @@ -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 +#include + +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()); + +} + diff --git a/ecs/src/model/ReInitVolumeRequest.cc b/ecs/src/model/ReInitVolumeRequest.cc new file mode 100644 index 000000000..dcd94f73b --- /dev/null +++ b/ecs/src/model/ReInitVolumeRequest.cc @@ -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 + +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)); +} + diff --git a/ecs/src/model/ReInitVolumeResult.cc b/ecs/src/model/ReInitVolumeResult.cc new file mode 100644 index 000000000..72910edf0 --- /dev/null +++ b/ecs/src/model/ReInitVolumeResult.cc @@ -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 +#include + +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()); + +} + diff --git a/ecs/src/model/ResizeVolumeRequest.cc b/ecs/src/model/ResizeVolumeRequest.cc new file mode 100644 index 000000000..473814d0c --- /dev/null +++ b/ecs/src/model/ResizeVolumeRequest.cc @@ -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 + +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)); +} + diff --git a/ecs/src/model/ResizeVolumeResult.cc b/ecs/src/model/ResizeVolumeResult.cc new file mode 100644 index 000000000..e041782e6 --- /dev/null +++ b/ecs/src/model/ResizeVolumeResult.cc @@ -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 +#include + +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()); + +} + diff --git a/ecs/src/model/RevokeSecurityGroupEgressRequest.cc b/ecs/src/model/RevokeSecurityGroupEgressRequest.cc index 815bb57c5..288825cd4 100644 --- a/ecs/src/model/RevokeSecurityGroupEgressRequest.cc +++ b/ecs/src/model/RevokeSecurityGroupEgressRequest.cc @@ -234,6 +234,28 @@ void RevokeSecurityGroupEgressRequest::setCallerUid(long callerUid) setParameter("CallerUid", std::to_string(callerUid)); } +std::string RevokeSecurityGroupEgressRequest::getIpv6DestCidrIp()const +{ + return ipv6DestCidrIp_; +} + +void RevokeSecurityGroupEgressRequest::setIpv6DestCidrIp(const std::string& ipv6DestCidrIp) +{ + ipv6DestCidrIp_ = ipv6DestCidrIp; + setParameter("Ipv6DestCidrIp", ipv6DestCidrIp); +} + +std::string RevokeSecurityGroupEgressRequest::getIpv6SourceCidrIp()const +{ + return ipv6SourceCidrIp_; +} + +void RevokeSecurityGroupEgressRequest::setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp) +{ + ipv6SourceCidrIp_ = ipv6SourceCidrIp; + setParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp); +} + std::string RevokeSecurityGroupEgressRequest::getPolicy()const { return policy_; diff --git a/ecs/src/model/RevokeSecurityGroupRequest.cc b/ecs/src/model/RevokeSecurityGroupRequest.cc index 20c5ff58e..0002ba26e 100644 --- a/ecs/src/model/RevokeSecurityGroupRequest.cc +++ b/ecs/src/model/RevokeSecurityGroupRequest.cc @@ -256,6 +256,28 @@ void RevokeSecurityGroupRequest::setCallerUid(long callerUid) setParameter("CallerUid", std::to_string(callerUid)); } +std::string RevokeSecurityGroupRequest::getIpv6DestCidrIp()const +{ + return ipv6DestCidrIp_; +} + +void RevokeSecurityGroupRequest::setIpv6DestCidrIp(const std::string& ipv6DestCidrIp) +{ + ipv6DestCidrIp_ = ipv6DestCidrIp; + setParameter("Ipv6DestCidrIp", ipv6DestCidrIp); +} + +std::string RevokeSecurityGroupRequest::getIpv6SourceCidrIp()const +{ + return ipv6SourceCidrIp_; +} + +void RevokeSecurityGroupRequest::setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp) +{ + ipv6SourceCidrIp_ = ipv6SourceCidrIp; + setParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp); +} + std::string RevokeSecurityGroupRequest::getPolicy()const { return policy_; diff --git a/ecs/src/model/RollbackVolumeRequest.cc b/ecs/src/model/RollbackVolumeRequest.cc new file mode 100644 index 000000000..dfeaa9678 --- /dev/null +++ b/ecs/src/model/RollbackVolumeRequest.cc @@ -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 + +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)); +} + diff --git a/ecs/src/model/RollbackVolumeResult.cc b/ecs/src/model/RollbackVolumeResult.cc new file mode 100644 index 000000000..1b5fd84a6 --- /dev/null +++ b/ecs/src/model/RollbackVolumeResult.cc @@ -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 +#include + +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()); + +} + diff --git a/ecs/src/model/RunInstancesRequest.cc b/ecs/src/model/RunInstancesRequest.cc index 6175e8ab3..894fc8009 100644 --- a/ecs/src/model/RunInstancesRequest.cc +++ b/ecs/src/model/RunInstancesRequest.cc @@ -284,6 +284,17 @@ void RunInstancesRequest::setLaunchTemplateId(const std::string& launchTemplateI setParameter("LaunchTemplateId", launchTemplateId); } +int RunInstancesRequest::getIpv6AddressCount()const +{ + return ipv6AddressCount_; +} + +void RunInstancesRequest::setIpv6AddressCount(int ipv6AddressCount) +{ + ipv6AddressCount_ = ipv6AddressCount; + setParameter("Ipv6AddressCount", std::to_string(ipv6AddressCount)); +} + long RunInstancesRequest::getOwnerId()const { return ownerId_; @@ -416,6 +427,18 @@ void RunInstancesRequest::setZoneId(const std::string& zoneId) setParameter("ZoneId", zoneId); } +std::vector RunInstancesRequest::getIpv6Address()const +{ + return ipv6Address_; +} + +void RunInstancesRequest::setIpv6Address(const std::vector& ipv6Address) +{ + ipv6Address_ = ipv6Address; + for(int i = 0; i!= ipv6Address.size(); i++) + setParameter("Ipv6Address."+ std::to_string(i), ipv6Address.at(i)); +} + int RunInstancesRequest::getInternetMaxBandwidthIn()const { return internetMaxBandwidthIn_; diff --git a/ecs/src/model/UnassignIpv6AddressesRequest.cc b/ecs/src/model/UnassignIpv6AddressesRequest.cc new file mode 100644 index 000000000..560458bf7 --- /dev/null +++ b/ecs/src/model/UnassignIpv6AddressesRequest.cc @@ -0,0 +1,314 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ecs::Model::UnassignIpv6AddressesRequest; + +UnassignIpv6AddressesRequest::UnassignIpv6AddressesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "UnassignIpv6Addresses") +{} + +UnassignIpv6AddressesRequest::~UnassignIpv6AddressesRequest() +{} + +long UnassignIpv6AddressesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UnassignIpv6AddressesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long UnassignIpv6AddressesRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void UnassignIpv6AddressesRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool UnassignIpv6AddressesRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void UnassignIpv6AddressesRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string UnassignIpv6AddressesRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void UnassignIpv6AddressesRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string UnassignIpv6AddressesRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void UnassignIpv6AddressesRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string UnassignIpv6AddressesRequest::getCallerType()const +{ + return callerType_; +} + +void UnassignIpv6AddressesRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string UnassignIpv6AddressesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UnassignIpv6AddressesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string UnassignIpv6AddressesRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void UnassignIpv6AddressesRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string UnassignIpv6AddressesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void UnassignIpv6AddressesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string UnassignIpv6AddressesRequest::getRegionId()const +{ + return regionId_; +} + +void UnassignIpv6AddressesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool UnassignIpv6AddressesRequest::getEnable()const +{ + return enable_; +} + +void UnassignIpv6AddressesRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string UnassignIpv6AddressesRequest::getRequestContent()const +{ + return requestContent_; +} + +void UnassignIpv6AddressesRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string UnassignIpv6AddressesRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void UnassignIpv6AddressesRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string UnassignIpv6AddressesRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void UnassignIpv6AddressesRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long UnassignIpv6AddressesRequest::getCallerUid()const +{ + return callerUid_; +} + +void UnassignIpv6AddressesRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string UnassignIpv6AddressesRequest::getApp_ip()const +{ + return app_ip_; +} + +void UnassignIpv6AddressesRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string UnassignIpv6AddressesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UnassignIpv6AddressesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UnassignIpv6AddressesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UnassignIpv6AddressesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string UnassignIpv6AddressesRequest::getCallerBid()const +{ + return callerBid_; +} + +void UnassignIpv6AddressesRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long UnassignIpv6AddressesRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnassignIpv6AddressesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool UnassignIpv6AddressesRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void UnassignIpv6AddressesRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool UnassignIpv6AddressesRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void UnassignIpv6AddressesRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool UnassignIpv6AddressesRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void UnassignIpv6AddressesRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string UnassignIpv6AddressesRequest::getRequestId()const +{ + return requestId_; +} + +void UnassignIpv6AddressesRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string UnassignIpv6AddressesRequest::getNetworkInterfaceId()const +{ + return networkInterfaceId_; +} + +void UnassignIpv6AddressesRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) +{ + networkInterfaceId_ = networkInterfaceId; + setParameter("NetworkInterfaceId", networkInterfaceId); +} + +std::vector UnassignIpv6AddressesRequest::getIpv6Address()const +{ + return ipv6Address_; +} + +void UnassignIpv6AddressesRequest::setIpv6Address(const std::vector& ipv6Address) +{ + ipv6Address_ = ipv6Address; + for(int i = 0; i!= ipv6Address.size(); i++) + setParameter("Ipv6Address."+ std::to_string(i), ipv6Address.at(i)); +} + diff --git a/ecs/src/model/UnassignIpv6AddressesResult.cc b/ecs/src/model/UnassignIpv6AddressesResult.cc new file mode 100644 index 000000000..212a7f3f7 --- /dev/null +++ b/ecs/src/model/UnassignIpv6AddressesResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +UnassignIpv6AddressesResult::UnassignIpv6AddressesResult() : + ServiceResult() +{} + +UnassignIpv6AddressesResult::UnassignIpv6AddressesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnassignIpv6AddressesResult::~UnassignIpv6AddressesResult() +{} + +void UnassignIpv6AddressesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/UnbindIpRangeRequest.cc b/ecs/src/model/UnbindIpRangeRequest.cc new file mode 100644 index 000000000..d5cdb06c6 --- /dev/null +++ b/ecs/src/model/UnbindIpRangeRequest.cc @@ -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 + +using AlibabaCloud::Ecs::Model::UnbindIpRangeRequest; + +UnbindIpRangeRequest::UnbindIpRangeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "UnbindIpRange") +{} + +UnbindIpRangeRequest::~UnbindIpRangeRequest() +{} + +std::string UnbindIpRangeRequest::getIpAddress()const +{ + return ipAddress_; +} + +void UnbindIpRangeRequest::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; + setParameter("IpAddress", ipAddress); +} + +long UnbindIpRangeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UnbindIpRangeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UnbindIpRangeRequest::getInstanceId()const +{ + return instanceId_; +} + +void UnbindIpRangeRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UnbindIpRangeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UnbindIpRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UnbindIpRangeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UnbindIpRangeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long UnbindIpRangeRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnbindIpRangeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/UnbindIpRangeResult.cc b/ecs/src/model/UnbindIpRangeResult.cc new file mode 100644 index 000000000..f9c087a95 --- /dev/null +++ b/ecs/src/model/UnbindIpRangeResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +UnbindIpRangeResult::UnbindIpRangeResult() : + ServiceResult() +{} + +UnbindIpRangeResult::UnbindIpRangeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindIpRangeResult::~UnbindIpRangeResult() +{} + +void UnbindIpRangeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ValidateSecurityGroupRequest.cc b/ecs/src/model/ValidateSecurityGroupRequest.cc new file mode 100644 index 000000000..93b29a257 --- /dev/null +++ b/ecs/src/model/ValidateSecurityGroupRequest.cc @@ -0,0 +1,368 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ecs::Model::ValidateSecurityGroupRequest; + +ValidateSecurityGroupRequest::ValidateSecurityGroupRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ValidateSecurityGroup") +{} + +ValidateSecurityGroupRequest::~ValidateSecurityGroupRequest() +{} + +std::string ValidateSecurityGroupRequest::getNicType()const +{ + return nicType_; +} + +void ValidateSecurityGroupRequest::setNicType(const std::string& nicType) +{ + nicType_ = nicType; + setParameter("NicType", nicType); +} + +long ValidateSecurityGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ValidateSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long ValidateSecurityGroupRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ValidateSecurityGroupRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ValidateSecurityGroupRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ValidateSecurityGroupRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string ValidateSecurityGroupRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ValidateSecurityGroupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ValidateSecurityGroupRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void ValidateSecurityGroupRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string ValidateSecurityGroupRequest::getCallerType()const +{ + return callerType_; +} + +void ValidateSecurityGroupRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string ValidateSecurityGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ValidateSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +int ValidateSecurityGroupRequest::getSourcePort()const +{ + return sourcePort_; +} + +void ValidateSecurityGroupRequest::setSourcePort(int sourcePort) +{ + sourcePort_ = sourcePort; + setParameter("SourcePort", std::to_string(sourcePort)); +} + +std::string ValidateSecurityGroupRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ValidateSecurityGroupRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string ValidateSecurityGroupRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ValidateSecurityGroupRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ValidateSecurityGroupRequest::getRegionId()const +{ + return regionId_; +} + +void ValidateSecurityGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool ValidateSecurityGroupRequest::getEnable()const +{ + return enable_; +} + +void ValidateSecurityGroupRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string ValidateSecurityGroupRequest::getRequestContent()const +{ + return requestContent_; +} + +void ValidateSecurityGroupRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string ValidateSecurityGroupRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void ValidateSecurityGroupRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string ValidateSecurityGroupRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void ValidateSecurityGroupRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long ValidateSecurityGroupRequest::getCallerUid()const +{ + return callerUid_; +} + +void ValidateSecurityGroupRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ValidateSecurityGroupRequest::getDirection()const +{ + return direction_; +} + +void ValidateSecurityGroupRequest::setDirection(const std::string& direction) +{ + direction_ = direction; + setParameter("Direction", direction); +} + +std::string ValidateSecurityGroupRequest::getDestIp()const +{ + return destIp_; +} + +void ValidateSecurityGroupRequest::setDestIp(const std::string& destIp) +{ + destIp_ = destIp; + setParameter("DestIp", destIp); +} + +std::string ValidateSecurityGroupRequest::getApp_ip()const +{ + return app_ip_; +} + +void ValidateSecurityGroupRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string ValidateSecurityGroupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ValidateSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ValidateSecurityGroupRequest::getIpProtocol()const +{ + return ipProtocol_; +} + +void ValidateSecurityGroupRequest::setIpProtocol(const std::string& ipProtocol) +{ + ipProtocol_ = ipProtocol; + setParameter("IpProtocol", ipProtocol); +} + +std::string ValidateSecurityGroupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ValidateSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ValidateSecurityGroupRequest::getCallerBid()const +{ + return callerBid_; +} + +void ValidateSecurityGroupRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long ValidateSecurityGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void ValidateSecurityGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool ValidateSecurityGroupRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ValidateSecurityGroupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool ValidateSecurityGroupRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ValidateSecurityGroupRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool ValidateSecurityGroupRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ValidateSecurityGroupRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string ValidateSecurityGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void ValidateSecurityGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ValidateSecurityGroupRequest::getRequestId()const +{ + return requestId_; +} + +void ValidateSecurityGroupRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +int ValidateSecurityGroupRequest::getDestPort()const +{ + return destPort_; +} + +void ValidateSecurityGroupRequest::setDestPort(int destPort) +{ + destPort_ = destPort; + setParameter("DestPort", std::to_string(destPort)); +} + diff --git a/ecs/src/model/ValidateSecurityGroupResult.cc b/ecs/src/model/ValidateSecurityGroupResult.cc new file mode 100644 index 000000000..57262ca86 --- /dev/null +++ b/ecs/src/model/ValidateSecurityGroupResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ValidateSecurityGroupResult::ValidateSecurityGroupResult() : + ServiceResult() +{} + +ValidateSecurityGroupResult::ValidateSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ValidateSecurityGroupResult::~ValidateSecurityGroupResult() +{} + +void ValidateSecurityGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto triggeredGroupRuleNode = value["TriggeredGroupRule"]; + if(!triggeredGroupRuleNode["IpProtocol"].isNull()) + triggeredGroupRule_.ipProtocol = triggeredGroupRuleNode["IpProtocol"].asString(); + if(!triggeredGroupRuleNode["PortRange"].isNull()) + triggeredGroupRule_.portRange = triggeredGroupRuleNode["PortRange"].asString(); + if(!triggeredGroupRuleNode["SourceGroupId"].isNull()) + triggeredGroupRule_.sourceGroupId = triggeredGroupRuleNode["SourceGroupId"].asString(); + if(!triggeredGroupRuleNode["SourceGroupName"].isNull()) + triggeredGroupRule_.sourceGroupName = triggeredGroupRuleNode["SourceGroupName"].asString(); + if(!triggeredGroupRuleNode["SourceCidrIp"].isNull()) + triggeredGroupRule_.sourceCidrIp = triggeredGroupRuleNode["SourceCidrIp"].asString(); + if(!triggeredGroupRuleNode["Policy"].isNull()) + triggeredGroupRule_.policy = triggeredGroupRuleNode["Policy"].asString(); + if(!triggeredGroupRuleNode["NicType"].isNull()) + triggeredGroupRule_.nicType = triggeredGroupRuleNode["NicType"].asString(); + if(!triggeredGroupRuleNode["SourceGroupOwnerAccount"].isNull()) + triggeredGroupRule_.sourceGroupOwnerAccount = triggeredGroupRuleNode["SourceGroupOwnerAccount"].asString(); + if(!triggeredGroupRuleNode["DestGroupId"].isNull()) + triggeredGroupRule_.destGroupId = triggeredGroupRuleNode["DestGroupId"].asString(); + if(!triggeredGroupRuleNode["DestGroupName"].isNull()) + triggeredGroupRule_.destGroupName = triggeredGroupRuleNode["DestGroupName"].asString(); + if(!triggeredGroupRuleNode["DestCidrIp"].isNull()) + triggeredGroupRule_.destCidrIp = triggeredGroupRuleNode["DestCidrIp"].asString(); + if(!triggeredGroupRuleNode["DestGroupOwnerAccount"].isNull()) + triggeredGroupRule_.destGroupOwnerAccount = triggeredGroupRuleNode["DestGroupOwnerAccount"].asString(); + if(!triggeredGroupRuleNode["Priority"].isNull()) + triggeredGroupRule_.priority = triggeredGroupRuleNode["Priority"].asString(); + if(!triggeredGroupRuleNode["Direction"].isNull()) + triggeredGroupRule_.direction = triggeredGroupRuleNode["Direction"].asString(); + if(!triggeredGroupRuleNode["Description"].isNull()) + triggeredGroupRule_.description = triggeredGroupRuleNode["Description"].asString(); + if(!triggeredGroupRuleNode["CreateTime"].isNull()) + triggeredGroupRule_.createTime = triggeredGroupRuleNode["CreateTime"].asString(); + if(!value["Policy"].isNull()) + policy_ = value["Policy"].asString(); + +} + +std::string ValidateSecurityGroupResult::getPolicy()const +{ + return policy_; +} + +ValidateSecurityGroupResult::TriggeredGroupRule ValidateSecurityGroupResult::getTriggeredGroupRule()const +{ + return triggeredGroupRule_; +} +