diff --git a/CHANGELOG b/CHANGELOG index 72b1a0216..cac6e114c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-01-21 Version: patch +- Supported RunInstances specifiy Dedicated Host Cluster Id. + 2021-01-19 Version: patch - Update Function. diff --git a/ecs/CMakeLists.txt b/ecs/CMakeLists.txt index de67c7b25..f8a716c05 100644 --- a/ecs/CMakeLists.txt +++ b/ecs/CMakeLists.txt @@ -63,6 +63,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyResult.h include/alibabacloud/ecs/model/CancelCopyImageRequest.h include/alibabacloud/ecs/model/CancelCopyImageResult.h + include/alibabacloud/ecs/model/CancelImagePipelineExecutionRequest.h + include/alibabacloud/ecs/model/CancelImagePipelineExecutionResult.h include/alibabacloud/ecs/model/CancelPhysicalConnectionRequest.h include/alibabacloud/ecs/model/CancelPhysicalConnectionResult.h include/alibabacloud/ecs/model/CancelSimulatedSystemEventsRequest.h @@ -77,6 +79,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/CopyImageResult.h include/alibabacloud/ecs/model/CopySnapshotRequest.h include/alibabacloud/ecs/model/CopySnapshotResult.h + include/alibabacloud/ecs/model/CreateActivationRequest.h + include/alibabacloud/ecs/model/CreateActivationResult.h include/alibabacloud/ecs/model/CreateAutoProvisioningGroupRequest.h include/alibabacloud/ecs/model/CreateAutoProvisioningGroupResult.h include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h @@ -103,6 +107,10 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/CreateHpcClusterResult.h include/alibabacloud/ecs/model/CreateImageRequest.h include/alibabacloud/ecs/model/CreateImageResult.h + include/alibabacloud/ecs/model/CreateImageComponentRequest.h + include/alibabacloud/ecs/model/CreateImageComponentResult.h + include/alibabacloud/ecs/model/CreateImagePipelineRequest.h + include/alibabacloud/ecs/model/CreateImagePipelineResult.h include/alibabacloud/ecs/model/CreateInstanceRequest.h include/alibabacloud/ecs/model/CreateInstanceResult.h include/alibabacloud/ecs/model/CreateKeyPairRequest.h @@ -129,6 +137,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/CreateSimulatedSystemEventsResult.h include/alibabacloud/ecs/model/CreateSnapshotRequest.h include/alibabacloud/ecs/model/CreateSnapshotResult.h + include/alibabacloud/ecs/model/CreateSnapshotGroupRequest.h + include/alibabacloud/ecs/model/CreateSnapshotGroupResult.h include/alibabacloud/ecs/model/CreateStorageSetRequest.h include/alibabacloud/ecs/model/CreateStorageSetResult.h include/alibabacloud/ecs/model/CreateVSwitchRequest.h @@ -139,6 +149,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/CreateVpcResult.h include/alibabacloud/ecs/model/DeactivateRouterInterfaceRequest.h include/alibabacloud/ecs/model/DeactivateRouterInterfaceResult.h + include/alibabacloud/ecs/model/DeleteActivationRequest.h + include/alibabacloud/ecs/model/DeleteActivationResult.h include/alibabacloud/ecs/model/DeleteAutoProvisioningGroupRequest.h include/alibabacloud/ecs/model/DeleteAutoProvisioningGroupResult.h include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyRequest.h @@ -163,6 +175,10 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/DeleteHpcClusterResult.h include/alibabacloud/ecs/model/DeleteImageRequest.h include/alibabacloud/ecs/model/DeleteImageResult.h + include/alibabacloud/ecs/model/DeleteImageComponentRequest.h + include/alibabacloud/ecs/model/DeleteImageComponentResult.h + include/alibabacloud/ecs/model/DeleteImagePipelineRequest.h + include/alibabacloud/ecs/model/DeleteImagePipelineResult.h include/alibabacloud/ecs/model/DeleteInstanceRequest.h include/alibabacloud/ecs/model/DeleteInstanceResult.h include/alibabacloud/ecs/model/DeleteInstancesRequest.h @@ -189,6 +205,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/DeleteSecurityGroupResult.h include/alibabacloud/ecs/model/DeleteSnapshotRequest.h include/alibabacloud/ecs/model/DeleteSnapshotResult.h + include/alibabacloud/ecs/model/DeleteSnapshotGroupRequest.h + include/alibabacloud/ecs/model/DeleteSnapshotGroupResult.h include/alibabacloud/ecs/model/DeleteStorageSetRequest.h include/alibabacloud/ecs/model/DeleteStorageSetResult.h include/alibabacloud/ecs/model/DeleteVSwitchRequest.h @@ -197,10 +215,14 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/DeleteVirtualBorderRouterResult.h include/alibabacloud/ecs/model/DeleteVpcRequest.h include/alibabacloud/ecs/model/DeleteVpcResult.h + include/alibabacloud/ecs/model/DeregisterManagedInstanceRequest.h + include/alibabacloud/ecs/model/DeregisterManagedInstanceResult.h include/alibabacloud/ecs/model/DescribeAccessPointsRequest.h include/alibabacloud/ecs/model/DescribeAccessPointsResult.h include/alibabacloud/ecs/model/DescribeAccountAttributesRequest.h include/alibabacloud/ecs/model/DescribeAccountAttributesResult.h + include/alibabacloud/ecs/model/DescribeActivationsRequest.h + include/alibabacloud/ecs/model/DescribeActivationsResult.h include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupHistoryRequest.h include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupHistoryResult.h include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesRequest.h @@ -263,8 +285,14 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/DescribeHaVipsResult.h include/alibabacloud/ecs/model/DescribeHpcClustersRequest.h include/alibabacloud/ecs/model/DescribeHpcClustersResult.h + include/alibabacloud/ecs/model/DescribeImageComponentsRequest.h + include/alibabacloud/ecs/model/DescribeImageComponentsResult.h include/alibabacloud/ecs/model/DescribeImageFromFamilyRequest.h include/alibabacloud/ecs/model/DescribeImageFromFamilyResult.h + include/alibabacloud/ecs/model/DescribeImagePipelineExecutionsRequest.h + include/alibabacloud/ecs/model/DescribeImagePipelineExecutionsResult.h + include/alibabacloud/ecs/model/DescribeImagePipelinesRequest.h + include/alibabacloud/ecs/model/DescribeImagePipelinesResult.h include/alibabacloud/ecs/model/DescribeImageSharePermissionRequest.h include/alibabacloud/ecs/model/DescribeImageSharePermissionResult.h include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesRequest.h @@ -313,6 +341,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/DescribeLaunchTemplatesResult.h include/alibabacloud/ecs/model/DescribeLimitationRequest.h include/alibabacloud/ecs/model/DescribeLimitationResult.h + include/alibabacloud/ecs/model/DescribeManagedInstancesRequest.h + include/alibabacloud/ecs/model/DescribeManagedInstancesResult.h include/alibabacloud/ecs/model/DescribeNatGatewaysRequest.h include/alibabacloud/ecs/model/DescribeNatGatewaysResult.h include/alibabacloud/ecs/model/DescribeNetworkInterfaceAttributeRequest.h @@ -351,6 +381,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/DescribeSecurityGroupsResult.h include/alibabacloud/ecs/model/DescribeSendFileResultsRequest.h include/alibabacloud/ecs/model/DescribeSendFileResultsResult.h + include/alibabacloud/ecs/model/DescribeSnapshotGroupsRequest.h + include/alibabacloud/ecs/model/DescribeSnapshotGroupsResult.h include/alibabacloud/ecs/model/DescribeSnapshotLinksRequest.h include/alibabacloud/ecs/model/DescribeSnapshotLinksResult.h include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataRequest.h @@ -403,6 +435,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/DetachKeyPairResult.h include/alibabacloud/ecs/model/DetachNetworkInterfaceRequest.h include/alibabacloud/ecs/model/DetachNetworkInterfaceResult.h + include/alibabacloud/ecs/model/DisableActivationRequest.h + include/alibabacloud/ecs/model/DisableActivationResult.h include/alibabacloud/ecs/model/EipFillParamsRequest.h include/alibabacloud/ecs/model/EipFillParamsResult.h include/alibabacloud/ecs/model/EipFillProductRequest.h @@ -511,6 +545,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeResult.h include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionRequest.h include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionResult.h + include/alibabacloud/ecs/model/ModifyManagedInstanceRequest.h + include/alibabacloud/ecs/model/ModifyManagedInstanceResult.h include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeRequest.h include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeResult.h include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeRequest.h @@ -535,6 +571,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/ModifySecurityGroupRuleResult.h include/alibabacloud/ecs/model/ModifySnapshotAttributeRequest.h include/alibabacloud/ecs/model/ModifySnapshotAttributeResult.h + include/alibabacloud/ecs/model/ModifySnapshotGroupRequest.h + include/alibabacloud/ecs/model/ModifySnapshotGroupResult.h include/alibabacloud/ecs/model/ModifyStorageCapacityUnitAttributeRequest.h include/alibabacloud/ecs/model/ModifyStorageCapacityUnitAttributeResult.h include/alibabacloud/ecs/model/ModifyStorageSetAttributeRequest.h @@ -589,6 +627,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/ReportInstancesStatusResult.h include/alibabacloud/ecs/model/ResetDiskRequest.h include/alibabacloud/ecs/model/ResetDiskResult.h + include/alibabacloud/ecs/model/ResetDisksRequest.h + include/alibabacloud/ecs/model/ResetDisksResult.h include/alibabacloud/ecs/model/ResizeDiskRequest.h include/alibabacloud/ecs/model/ResizeDiskResult.h include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h @@ -603,6 +643,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/SendFileResult.h include/alibabacloud/ecs/model/StartElasticityAssuranceRequest.h include/alibabacloud/ecs/model/StartElasticityAssuranceResult.h + include/alibabacloud/ecs/model/StartImagePipelineExecutionRequest.h + include/alibabacloud/ecs/model/StartImagePipelineExecutionResult.h include/alibabacloud/ecs/model/StartInstanceRequest.h include/alibabacloud/ecs/model/StartInstanceResult.h include/alibabacloud/ecs/model/StartInstancesRequest.h @@ -674,6 +716,8 @@ set(ecs_src src/model/CancelAutoSnapshotPolicyResult.cc src/model/CancelCopyImageRequest.cc src/model/CancelCopyImageResult.cc + src/model/CancelImagePipelineExecutionRequest.cc + src/model/CancelImagePipelineExecutionResult.cc src/model/CancelPhysicalConnectionRequest.cc src/model/CancelPhysicalConnectionResult.cc src/model/CancelSimulatedSystemEventsRequest.cc @@ -688,6 +732,8 @@ set(ecs_src src/model/CopyImageResult.cc src/model/CopySnapshotRequest.cc src/model/CopySnapshotResult.cc + src/model/CreateActivationRequest.cc + src/model/CreateActivationResult.cc src/model/CreateAutoProvisioningGroupRequest.cc src/model/CreateAutoProvisioningGroupResult.cc src/model/CreateAutoSnapshotPolicyRequest.cc @@ -714,6 +760,10 @@ set(ecs_src src/model/CreateHpcClusterResult.cc src/model/CreateImageRequest.cc src/model/CreateImageResult.cc + src/model/CreateImageComponentRequest.cc + src/model/CreateImageComponentResult.cc + src/model/CreateImagePipelineRequest.cc + src/model/CreateImagePipelineResult.cc src/model/CreateInstanceRequest.cc src/model/CreateInstanceResult.cc src/model/CreateKeyPairRequest.cc @@ -740,6 +790,8 @@ set(ecs_src src/model/CreateSimulatedSystemEventsResult.cc src/model/CreateSnapshotRequest.cc src/model/CreateSnapshotResult.cc + src/model/CreateSnapshotGroupRequest.cc + src/model/CreateSnapshotGroupResult.cc src/model/CreateStorageSetRequest.cc src/model/CreateStorageSetResult.cc src/model/CreateVSwitchRequest.cc @@ -750,6 +802,8 @@ set(ecs_src src/model/CreateVpcResult.cc src/model/DeactivateRouterInterfaceRequest.cc src/model/DeactivateRouterInterfaceResult.cc + src/model/DeleteActivationRequest.cc + src/model/DeleteActivationResult.cc src/model/DeleteAutoProvisioningGroupRequest.cc src/model/DeleteAutoProvisioningGroupResult.cc src/model/DeleteAutoSnapshotPolicyRequest.cc @@ -774,6 +828,10 @@ set(ecs_src src/model/DeleteHpcClusterResult.cc src/model/DeleteImageRequest.cc src/model/DeleteImageResult.cc + src/model/DeleteImageComponentRequest.cc + src/model/DeleteImageComponentResult.cc + src/model/DeleteImagePipelineRequest.cc + src/model/DeleteImagePipelineResult.cc src/model/DeleteInstanceRequest.cc src/model/DeleteInstanceResult.cc src/model/DeleteInstancesRequest.cc @@ -800,6 +858,8 @@ set(ecs_src src/model/DeleteSecurityGroupResult.cc src/model/DeleteSnapshotRequest.cc src/model/DeleteSnapshotResult.cc + src/model/DeleteSnapshotGroupRequest.cc + src/model/DeleteSnapshotGroupResult.cc src/model/DeleteStorageSetRequest.cc src/model/DeleteStorageSetResult.cc src/model/DeleteVSwitchRequest.cc @@ -808,10 +868,14 @@ set(ecs_src src/model/DeleteVirtualBorderRouterResult.cc src/model/DeleteVpcRequest.cc src/model/DeleteVpcResult.cc + src/model/DeregisterManagedInstanceRequest.cc + src/model/DeregisterManagedInstanceResult.cc src/model/DescribeAccessPointsRequest.cc src/model/DescribeAccessPointsResult.cc src/model/DescribeAccountAttributesRequest.cc src/model/DescribeAccountAttributesResult.cc + src/model/DescribeActivationsRequest.cc + src/model/DescribeActivationsResult.cc src/model/DescribeAutoProvisioningGroupHistoryRequest.cc src/model/DescribeAutoProvisioningGroupHistoryResult.cc src/model/DescribeAutoProvisioningGroupInstancesRequest.cc @@ -874,8 +938,14 @@ set(ecs_src src/model/DescribeHaVipsResult.cc src/model/DescribeHpcClustersRequest.cc src/model/DescribeHpcClustersResult.cc + src/model/DescribeImageComponentsRequest.cc + src/model/DescribeImageComponentsResult.cc src/model/DescribeImageFromFamilyRequest.cc src/model/DescribeImageFromFamilyResult.cc + src/model/DescribeImagePipelineExecutionsRequest.cc + src/model/DescribeImagePipelineExecutionsResult.cc + src/model/DescribeImagePipelinesRequest.cc + src/model/DescribeImagePipelinesResult.cc src/model/DescribeImageSharePermissionRequest.cc src/model/DescribeImageSharePermissionResult.cc src/model/DescribeImageSupportInstanceTypesRequest.cc @@ -924,6 +994,8 @@ set(ecs_src src/model/DescribeLaunchTemplatesResult.cc src/model/DescribeLimitationRequest.cc src/model/DescribeLimitationResult.cc + src/model/DescribeManagedInstancesRequest.cc + src/model/DescribeManagedInstancesResult.cc src/model/DescribeNatGatewaysRequest.cc src/model/DescribeNatGatewaysResult.cc src/model/DescribeNetworkInterfaceAttributeRequest.cc @@ -962,6 +1034,8 @@ set(ecs_src src/model/DescribeSecurityGroupsResult.cc src/model/DescribeSendFileResultsRequest.cc src/model/DescribeSendFileResultsResult.cc + src/model/DescribeSnapshotGroupsRequest.cc + src/model/DescribeSnapshotGroupsResult.cc src/model/DescribeSnapshotLinksRequest.cc src/model/DescribeSnapshotLinksResult.cc src/model/DescribeSnapshotMonitorDataRequest.cc @@ -1014,6 +1088,8 @@ set(ecs_src src/model/DetachKeyPairResult.cc src/model/DetachNetworkInterfaceRequest.cc src/model/DetachNetworkInterfaceResult.cc + src/model/DisableActivationRequest.cc + src/model/DisableActivationResult.cc src/model/EipFillParamsRequest.cc src/model/EipFillParamsResult.cc src/model/EipFillProductRequest.cc @@ -1122,6 +1198,8 @@ set(ecs_src src/model/ModifyInstanceVpcAttributeResult.cc src/model/ModifyLaunchTemplateDefaultVersionRequest.cc src/model/ModifyLaunchTemplateDefaultVersionResult.cc + src/model/ModifyManagedInstanceRequest.cc + src/model/ModifyManagedInstanceResult.cc src/model/ModifyNetworkInterfaceAttributeRequest.cc src/model/ModifyNetworkInterfaceAttributeResult.cc src/model/ModifyPhysicalConnectionAttributeRequest.cc @@ -1146,6 +1224,8 @@ set(ecs_src src/model/ModifySecurityGroupRuleResult.cc src/model/ModifySnapshotAttributeRequest.cc src/model/ModifySnapshotAttributeResult.cc + src/model/ModifySnapshotGroupRequest.cc + src/model/ModifySnapshotGroupResult.cc src/model/ModifyStorageCapacityUnitAttributeRequest.cc src/model/ModifyStorageCapacityUnitAttributeResult.cc src/model/ModifyStorageSetAttributeRequest.cc @@ -1200,6 +1280,8 @@ set(ecs_src src/model/ReportInstancesStatusResult.cc src/model/ResetDiskRequest.cc src/model/ResetDiskResult.cc + src/model/ResetDisksRequest.cc + src/model/ResetDisksResult.cc src/model/ResizeDiskRequest.cc src/model/ResizeDiskResult.cc src/model/RevokeSecurityGroupRequest.cc @@ -1214,6 +1296,8 @@ set(ecs_src src/model/SendFileResult.cc src/model/StartElasticityAssuranceRequest.cc src/model/StartElasticityAssuranceResult.cc + src/model/StartImagePipelineExecutionRequest.cc + src/model/StartImagePipelineExecutionResult.cc src/model/StartInstanceRequest.cc src/model/StartInstanceResult.cc src/model/StartInstancesRequest.cc diff --git a/ecs/include/alibabacloud/ecs/EcsClient.h b/ecs/include/alibabacloud/ecs/EcsClient.h index ca95f654e..1153bd0d9 100644 --- a/ecs/include/alibabacloud/ecs/EcsClient.h +++ b/ecs/include/alibabacloud/ecs/EcsClient.h @@ -64,6 +64,8 @@ #include "model/CancelAutoSnapshotPolicyResult.h" #include "model/CancelCopyImageRequest.h" #include "model/CancelCopyImageResult.h" +#include "model/CancelImagePipelineExecutionRequest.h" +#include "model/CancelImagePipelineExecutionResult.h" #include "model/CancelPhysicalConnectionRequest.h" #include "model/CancelPhysicalConnectionResult.h" #include "model/CancelSimulatedSystemEventsRequest.h" @@ -78,6 +80,8 @@ #include "model/CopyImageResult.h" #include "model/CopySnapshotRequest.h" #include "model/CopySnapshotResult.h" +#include "model/CreateActivationRequest.h" +#include "model/CreateActivationResult.h" #include "model/CreateAutoProvisioningGroupRequest.h" #include "model/CreateAutoProvisioningGroupResult.h" #include "model/CreateAutoSnapshotPolicyRequest.h" @@ -104,6 +108,10 @@ #include "model/CreateHpcClusterResult.h" #include "model/CreateImageRequest.h" #include "model/CreateImageResult.h" +#include "model/CreateImageComponentRequest.h" +#include "model/CreateImageComponentResult.h" +#include "model/CreateImagePipelineRequest.h" +#include "model/CreateImagePipelineResult.h" #include "model/CreateInstanceRequest.h" #include "model/CreateInstanceResult.h" #include "model/CreateKeyPairRequest.h" @@ -130,6 +138,8 @@ #include "model/CreateSimulatedSystemEventsResult.h" #include "model/CreateSnapshotRequest.h" #include "model/CreateSnapshotResult.h" +#include "model/CreateSnapshotGroupRequest.h" +#include "model/CreateSnapshotGroupResult.h" #include "model/CreateStorageSetRequest.h" #include "model/CreateStorageSetResult.h" #include "model/CreateVSwitchRequest.h" @@ -140,6 +150,8 @@ #include "model/CreateVpcResult.h" #include "model/DeactivateRouterInterfaceRequest.h" #include "model/DeactivateRouterInterfaceResult.h" +#include "model/DeleteActivationRequest.h" +#include "model/DeleteActivationResult.h" #include "model/DeleteAutoProvisioningGroupRequest.h" #include "model/DeleteAutoProvisioningGroupResult.h" #include "model/DeleteAutoSnapshotPolicyRequest.h" @@ -164,6 +176,10 @@ #include "model/DeleteHpcClusterResult.h" #include "model/DeleteImageRequest.h" #include "model/DeleteImageResult.h" +#include "model/DeleteImageComponentRequest.h" +#include "model/DeleteImageComponentResult.h" +#include "model/DeleteImagePipelineRequest.h" +#include "model/DeleteImagePipelineResult.h" #include "model/DeleteInstanceRequest.h" #include "model/DeleteInstanceResult.h" #include "model/DeleteInstancesRequest.h" @@ -190,6 +206,8 @@ #include "model/DeleteSecurityGroupResult.h" #include "model/DeleteSnapshotRequest.h" #include "model/DeleteSnapshotResult.h" +#include "model/DeleteSnapshotGroupRequest.h" +#include "model/DeleteSnapshotGroupResult.h" #include "model/DeleteStorageSetRequest.h" #include "model/DeleteStorageSetResult.h" #include "model/DeleteVSwitchRequest.h" @@ -198,10 +216,14 @@ #include "model/DeleteVirtualBorderRouterResult.h" #include "model/DeleteVpcRequest.h" #include "model/DeleteVpcResult.h" +#include "model/DeregisterManagedInstanceRequest.h" +#include "model/DeregisterManagedInstanceResult.h" #include "model/DescribeAccessPointsRequest.h" #include "model/DescribeAccessPointsResult.h" #include "model/DescribeAccountAttributesRequest.h" #include "model/DescribeAccountAttributesResult.h" +#include "model/DescribeActivationsRequest.h" +#include "model/DescribeActivationsResult.h" #include "model/DescribeAutoProvisioningGroupHistoryRequest.h" #include "model/DescribeAutoProvisioningGroupHistoryResult.h" #include "model/DescribeAutoProvisioningGroupInstancesRequest.h" @@ -264,8 +286,14 @@ #include "model/DescribeHaVipsResult.h" #include "model/DescribeHpcClustersRequest.h" #include "model/DescribeHpcClustersResult.h" +#include "model/DescribeImageComponentsRequest.h" +#include "model/DescribeImageComponentsResult.h" #include "model/DescribeImageFromFamilyRequest.h" #include "model/DescribeImageFromFamilyResult.h" +#include "model/DescribeImagePipelineExecutionsRequest.h" +#include "model/DescribeImagePipelineExecutionsResult.h" +#include "model/DescribeImagePipelinesRequest.h" +#include "model/DescribeImagePipelinesResult.h" #include "model/DescribeImageSharePermissionRequest.h" #include "model/DescribeImageSharePermissionResult.h" #include "model/DescribeImageSupportInstanceTypesRequest.h" @@ -314,6 +342,8 @@ #include "model/DescribeLaunchTemplatesResult.h" #include "model/DescribeLimitationRequest.h" #include "model/DescribeLimitationResult.h" +#include "model/DescribeManagedInstancesRequest.h" +#include "model/DescribeManagedInstancesResult.h" #include "model/DescribeNatGatewaysRequest.h" #include "model/DescribeNatGatewaysResult.h" #include "model/DescribeNetworkInterfaceAttributeRequest.h" @@ -352,6 +382,8 @@ #include "model/DescribeSecurityGroupsResult.h" #include "model/DescribeSendFileResultsRequest.h" #include "model/DescribeSendFileResultsResult.h" +#include "model/DescribeSnapshotGroupsRequest.h" +#include "model/DescribeSnapshotGroupsResult.h" #include "model/DescribeSnapshotLinksRequest.h" #include "model/DescribeSnapshotLinksResult.h" #include "model/DescribeSnapshotMonitorDataRequest.h" @@ -404,6 +436,8 @@ #include "model/DetachKeyPairResult.h" #include "model/DetachNetworkInterfaceRequest.h" #include "model/DetachNetworkInterfaceResult.h" +#include "model/DisableActivationRequest.h" +#include "model/DisableActivationResult.h" #include "model/EipFillParamsRequest.h" #include "model/EipFillParamsResult.h" #include "model/EipFillProductRequest.h" @@ -512,6 +546,8 @@ #include "model/ModifyInstanceVpcAttributeResult.h" #include "model/ModifyLaunchTemplateDefaultVersionRequest.h" #include "model/ModifyLaunchTemplateDefaultVersionResult.h" +#include "model/ModifyManagedInstanceRequest.h" +#include "model/ModifyManagedInstanceResult.h" #include "model/ModifyNetworkInterfaceAttributeRequest.h" #include "model/ModifyNetworkInterfaceAttributeResult.h" #include "model/ModifyPhysicalConnectionAttributeRequest.h" @@ -536,6 +572,8 @@ #include "model/ModifySecurityGroupRuleResult.h" #include "model/ModifySnapshotAttributeRequest.h" #include "model/ModifySnapshotAttributeResult.h" +#include "model/ModifySnapshotGroupRequest.h" +#include "model/ModifySnapshotGroupResult.h" #include "model/ModifyStorageCapacityUnitAttributeRequest.h" #include "model/ModifyStorageCapacityUnitAttributeResult.h" #include "model/ModifyStorageSetAttributeRequest.h" @@ -590,6 +628,8 @@ #include "model/ReportInstancesStatusResult.h" #include "model/ResetDiskRequest.h" #include "model/ResetDiskResult.h" +#include "model/ResetDisksRequest.h" +#include "model/ResetDisksResult.h" #include "model/ResizeDiskRequest.h" #include "model/ResizeDiskResult.h" #include "model/RevokeSecurityGroupRequest.h" @@ -604,6 +644,8 @@ #include "model/SendFileResult.h" #include "model/StartElasticityAssuranceRequest.h" #include "model/StartElasticityAssuranceResult.h" +#include "model/StartImagePipelineExecutionRequest.h" +#include "model/StartImagePipelineExecutionResult.h" #include "model/StartInstanceRequest.h" #include "model/StartInstanceResult.h" #include "model/StartInstancesRequest.h" @@ -702,6 +744,9 @@ namespace AlibabaCloud typedef Outcome CancelCopyImageOutcome; typedef std::future CancelCopyImageOutcomeCallable; typedef std::function&)> CancelCopyImageAsyncHandler; + typedef Outcome CancelImagePipelineExecutionOutcome; + typedef std::future CancelImagePipelineExecutionOutcomeCallable; + typedef std::function&)> CancelImagePipelineExecutionAsyncHandler; typedef Outcome CancelPhysicalConnectionOutcome; typedef std::future CancelPhysicalConnectionOutcomeCallable; typedef std::function&)> CancelPhysicalConnectionAsyncHandler; @@ -723,6 +768,9 @@ namespace AlibabaCloud typedef Outcome CopySnapshotOutcome; typedef std::future CopySnapshotOutcomeCallable; typedef std::function&)> CopySnapshotAsyncHandler; + typedef Outcome CreateActivationOutcome; + typedef std::future CreateActivationOutcomeCallable; + typedef std::function&)> CreateActivationAsyncHandler; typedef Outcome CreateAutoProvisioningGroupOutcome; typedef std::future CreateAutoProvisioningGroupOutcomeCallable; typedef std::function&)> CreateAutoProvisioningGroupAsyncHandler; @@ -762,6 +810,12 @@ namespace AlibabaCloud typedef Outcome CreateImageOutcome; typedef std::future CreateImageOutcomeCallable; typedef std::function&)> CreateImageAsyncHandler; + typedef Outcome CreateImageComponentOutcome; + typedef std::future CreateImageComponentOutcomeCallable; + typedef std::function&)> CreateImageComponentAsyncHandler; + typedef Outcome CreateImagePipelineOutcome; + typedef std::future CreateImagePipelineOutcomeCallable; + typedef std::function&)> CreateImagePipelineAsyncHandler; typedef Outcome CreateInstanceOutcome; typedef std::future CreateInstanceOutcomeCallable; typedef std::function&)> CreateInstanceAsyncHandler; @@ -801,6 +855,9 @@ namespace AlibabaCloud typedef Outcome CreateSnapshotOutcome; typedef std::future CreateSnapshotOutcomeCallable; typedef std::function&)> CreateSnapshotAsyncHandler; + typedef Outcome CreateSnapshotGroupOutcome; + typedef std::future CreateSnapshotGroupOutcomeCallable; + typedef std::function&)> CreateSnapshotGroupAsyncHandler; typedef Outcome CreateStorageSetOutcome; typedef std::future CreateStorageSetOutcomeCallable; typedef std::function&)> CreateStorageSetAsyncHandler; @@ -816,6 +873,9 @@ namespace AlibabaCloud typedef Outcome DeactivateRouterInterfaceOutcome; typedef std::future DeactivateRouterInterfaceOutcomeCallable; typedef std::function&)> DeactivateRouterInterfaceAsyncHandler; + typedef Outcome DeleteActivationOutcome; + typedef std::future DeleteActivationOutcomeCallable; + typedef std::function&)> DeleteActivationAsyncHandler; typedef Outcome DeleteAutoProvisioningGroupOutcome; typedef std::future DeleteAutoProvisioningGroupOutcomeCallable; typedef std::function&)> DeleteAutoProvisioningGroupAsyncHandler; @@ -852,6 +912,12 @@ namespace AlibabaCloud typedef Outcome DeleteImageOutcome; typedef std::future DeleteImageOutcomeCallable; typedef std::function&)> DeleteImageAsyncHandler; + typedef Outcome DeleteImageComponentOutcome; + typedef std::future DeleteImageComponentOutcomeCallable; + typedef std::function&)> DeleteImageComponentAsyncHandler; + typedef Outcome DeleteImagePipelineOutcome; + typedef std::future DeleteImagePipelineOutcomeCallable; + typedef std::function&)> DeleteImagePipelineAsyncHandler; typedef Outcome DeleteInstanceOutcome; typedef std::future DeleteInstanceOutcomeCallable; typedef std::function&)> DeleteInstanceAsyncHandler; @@ -891,6 +957,9 @@ namespace AlibabaCloud typedef Outcome DeleteSnapshotOutcome; typedef std::future DeleteSnapshotOutcomeCallable; typedef std::function&)> DeleteSnapshotAsyncHandler; + typedef Outcome DeleteSnapshotGroupOutcome; + typedef std::future DeleteSnapshotGroupOutcomeCallable; + typedef std::function&)> DeleteSnapshotGroupAsyncHandler; typedef Outcome DeleteStorageSetOutcome; typedef std::future DeleteStorageSetOutcomeCallable; typedef std::function&)> DeleteStorageSetAsyncHandler; @@ -903,12 +972,18 @@ namespace AlibabaCloud typedef Outcome DeleteVpcOutcome; typedef std::future DeleteVpcOutcomeCallable; typedef std::function&)> DeleteVpcAsyncHandler; + typedef Outcome DeregisterManagedInstanceOutcome; + typedef std::future DeregisterManagedInstanceOutcomeCallable; + typedef std::function&)> DeregisterManagedInstanceAsyncHandler; typedef Outcome DescribeAccessPointsOutcome; typedef std::future DescribeAccessPointsOutcomeCallable; typedef std::function&)> DescribeAccessPointsAsyncHandler; typedef Outcome DescribeAccountAttributesOutcome; typedef std::future DescribeAccountAttributesOutcomeCallable; typedef std::function&)> DescribeAccountAttributesAsyncHandler; + typedef Outcome DescribeActivationsOutcome; + typedef std::future DescribeActivationsOutcomeCallable; + typedef std::function&)> DescribeActivationsAsyncHandler; typedef Outcome DescribeAutoProvisioningGroupHistoryOutcome; typedef std::future DescribeAutoProvisioningGroupHistoryOutcomeCallable; typedef std::function&)> DescribeAutoProvisioningGroupHistoryAsyncHandler; @@ -1002,9 +1077,18 @@ namespace AlibabaCloud typedef Outcome DescribeHpcClustersOutcome; typedef std::future DescribeHpcClustersOutcomeCallable; typedef std::function&)> DescribeHpcClustersAsyncHandler; + typedef Outcome DescribeImageComponentsOutcome; + typedef std::future DescribeImageComponentsOutcomeCallable; + typedef std::function&)> DescribeImageComponentsAsyncHandler; typedef Outcome DescribeImageFromFamilyOutcome; typedef std::future DescribeImageFromFamilyOutcomeCallable; typedef std::function&)> DescribeImageFromFamilyAsyncHandler; + typedef Outcome DescribeImagePipelineExecutionsOutcome; + typedef std::future DescribeImagePipelineExecutionsOutcomeCallable; + typedef std::function&)> DescribeImagePipelineExecutionsAsyncHandler; + typedef Outcome DescribeImagePipelinesOutcome; + typedef std::future DescribeImagePipelinesOutcomeCallable; + typedef std::function&)> DescribeImagePipelinesAsyncHandler; typedef Outcome DescribeImageSharePermissionOutcome; typedef std::future DescribeImageSharePermissionOutcomeCallable; typedef std::function&)> DescribeImageSharePermissionAsyncHandler; @@ -1077,6 +1161,9 @@ namespace AlibabaCloud typedef Outcome DescribeLimitationOutcome; typedef std::future DescribeLimitationOutcomeCallable; typedef std::function&)> DescribeLimitationAsyncHandler; + typedef Outcome DescribeManagedInstancesOutcome; + typedef std::future DescribeManagedInstancesOutcomeCallable; + typedef std::function&)> DescribeManagedInstancesAsyncHandler; typedef Outcome DescribeNatGatewaysOutcome; typedef std::future DescribeNatGatewaysOutcomeCallable; typedef std::function&)> DescribeNatGatewaysAsyncHandler; @@ -1134,6 +1221,9 @@ namespace AlibabaCloud typedef Outcome DescribeSendFileResultsOutcome; typedef std::future DescribeSendFileResultsOutcomeCallable; typedef std::function&)> DescribeSendFileResultsAsyncHandler; + typedef Outcome DescribeSnapshotGroupsOutcome; + typedef std::future DescribeSnapshotGroupsOutcomeCallable; + typedef std::function&)> DescribeSnapshotGroupsAsyncHandler; typedef Outcome DescribeSnapshotLinksOutcome; typedef std::future DescribeSnapshotLinksOutcomeCallable; typedef std::function&)> DescribeSnapshotLinksAsyncHandler; @@ -1212,6 +1302,9 @@ namespace AlibabaCloud typedef Outcome DetachNetworkInterfaceOutcome; typedef std::future DetachNetworkInterfaceOutcomeCallable; typedef std::function&)> DetachNetworkInterfaceAsyncHandler; + typedef Outcome DisableActivationOutcome; + typedef std::future DisableActivationOutcomeCallable; + typedef std::function&)> DisableActivationAsyncHandler; typedef Outcome EipFillParamsOutcome; typedef std::future EipFillParamsOutcomeCallable; typedef std::function&)> EipFillParamsAsyncHandler; @@ -1374,6 +1467,9 @@ namespace AlibabaCloud typedef Outcome ModifyLaunchTemplateDefaultVersionOutcome; typedef std::future ModifyLaunchTemplateDefaultVersionOutcomeCallable; typedef std::function&)> ModifyLaunchTemplateDefaultVersionAsyncHandler; + typedef Outcome ModifyManagedInstanceOutcome; + typedef std::future ModifyManagedInstanceOutcomeCallable; + typedef std::function&)> ModifyManagedInstanceAsyncHandler; typedef Outcome ModifyNetworkInterfaceAttributeOutcome; typedef std::future ModifyNetworkInterfaceAttributeOutcomeCallable; typedef std::function&)> ModifyNetworkInterfaceAttributeAsyncHandler; @@ -1410,6 +1506,9 @@ namespace AlibabaCloud typedef Outcome ModifySnapshotAttributeOutcome; typedef std::future ModifySnapshotAttributeOutcomeCallable; typedef std::function&)> ModifySnapshotAttributeAsyncHandler; + typedef Outcome ModifySnapshotGroupOutcome; + typedef std::future ModifySnapshotGroupOutcomeCallable; + typedef std::function&)> ModifySnapshotGroupAsyncHandler; typedef Outcome ModifyStorageCapacityUnitAttributeOutcome; typedef std::future ModifyStorageCapacityUnitAttributeOutcomeCallable; typedef std::function&)> ModifyStorageCapacityUnitAttributeAsyncHandler; @@ -1491,6 +1590,9 @@ namespace AlibabaCloud typedef Outcome ResetDiskOutcome; typedef std::future ResetDiskOutcomeCallable; typedef std::function&)> ResetDiskAsyncHandler; + typedef Outcome ResetDisksOutcome; + typedef std::future ResetDisksOutcomeCallable; + typedef std::function&)> ResetDisksAsyncHandler; typedef Outcome ResizeDiskOutcome; typedef std::future ResizeDiskOutcomeCallable; typedef std::function&)> ResizeDiskAsyncHandler; @@ -1512,6 +1614,9 @@ namespace AlibabaCloud typedef Outcome StartElasticityAssuranceOutcome; typedef std::future StartElasticityAssuranceOutcomeCallable; typedef std::function&)> StartElasticityAssuranceAsyncHandler; + typedef Outcome StartImagePipelineExecutionOutcome; + typedef std::future StartImagePipelineExecutionOutcomeCallable; + typedef std::function&)> StartImagePipelineExecutionAsyncHandler; typedef Outcome StartInstanceOutcome; typedef std::future StartInstanceOutcomeCallable; typedef std::function&)> StartInstanceAsyncHandler; @@ -1619,6 +1724,9 @@ namespace AlibabaCloud CancelCopyImageOutcome cancelCopyImage(const Model::CancelCopyImageRequest &request)const; void cancelCopyImageAsync(const Model::CancelCopyImageRequest& request, const CancelCopyImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelCopyImageOutcomeCallable cancelCopyImageCallable(const Model::CancelCopyImageRequest& request) const; + CancelImagePipelineExecutionOutcome cancelImagePipelineExecution(const Model::CancelImagePipelineExecutionRequest &request)const; + void cancelImagePipelineExecutionAsync(const Model::CancelImagePipelineExecutionRequest& request, const CancelImagePipelineExecutionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelImagePipelineExecutionOutcomeCallable cancelImagePipelineExecutionCallable(const Model::CancelImagePipelineExecutionRequest& request) const; CancelPhysicalConnectionOutcome cancelPhysicalConnection(const Model::CancelPhysicalConnectionRequest &request)const; void cancelPhysicalConnectionAsync(const Model::CancelPhysicalConnectionRequest& request, const CancelPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelPhysicalConnectionOutcomeCallable cancelPhysicalConnectionCallable(const Model::CancelPhysicalConnectionRequest& request) const; @@ -1640,6 +1748,9 @@ namespace AlibabaCloud CopySnapshotOutcome copySnapshot(const Model::CopySnapshotRequest &request)const; void copySnapshotAsync(const Model::CopySnapshotRequest& request, const CopySnapshotAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CopySnapshotOutcomeCallable copySnapshotCallable(const Model::CopySnapshotRequest& request) const; + CreateActivationOutcome createActivation(const Model::CreateActivationRequest &request)const; + void createActivationAsync(const Model::CreateActivationRequest& request, const CreateActivationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateActivationOutcomeCallable createActivationCallable(const Model::CreateActivationRequest& request) const; CreateAutoProvisioningGroupOutcome createAutoProvisioningGroup(const Model::CreateAutoProvisioningGroupRequest &request)const; void createAutoProvisioningGroupAsync(const Model::CreateAutoProvisioningGroupRequest& request, const CreateAutoProvisioningGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAutoProvisioningGroupOutcomeCallable createAutoProvisioningGroupCallable(const Model::CreateAutoProvisioningGroupRequest& request) const; @@ -1679,6 +1790,12 @@ namespace AlibabaCloud CreateImageOutcome createImage(const Model::CreateImageRequest &request)const; void createImageAsync(const Model::CreateImageRequest& request, const CreateImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateImageOutcomeCallable createImageCallable(const Model::CreateImageRequest& request) const; + CreateImageComponentOutcome createImageComponent(const Model::CreateImageComponentRequest &request)const; + void createImageComponentAsync(const Model::CreateImageComponentRequest& request, const CreateImageComponentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateImageComponentOutcomeCallable createImageComponentCallable(const Model::CreateImageComponentRequest& request) const; + CreateImagePipelineOutcome createImagePipeline(const Model::CreateImagePipelineRequest &request)const; + void createImagePipelineAsync(const Model::CreateImagePipelineRequest& request, const CreateImagePipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateImagePipelineOutcomeCallable createImagePipelineCallable(const Model::CreateImagePipelineRequest& request) const; CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const; void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const; @@ -1718,6 +1835,9 @@ namespace AlibabaCloud CreateSnapshotOutcome createSnapshot(const Model::CreateSnapshotRequest &request)const; void createSnapshotAsync(const Model::CreateSnapshotRequest& request, const CreateSnapshotAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSnapshotOutcomeCallable createSnapshotCallable(const Model::CreateSnapshotRequest& request) const; + CreateSnapshotGroupOutcome createSnapshotGroup(const Model::CreateSnapshotGroupRequest &request)const; + void createSnapshotGroupAsync(const Model::CreateSnapshotGroupRequest& request, const CreateSnapshotGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSnapshotGroupOutcomeCallable createSnapshotGroupCallable(const Model::CreateSnapshotGroupRequest& request) const; CreateStorageSetOutcome createStorageSet(const Model::CreateStorageSetRequest &request)const; void createStorageSetAsync(const Model::CreateStorageSetRequest& request, const CreateStorageSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateStorageSetOutcomeCallable createStorageSetCallable(const Model::CreateStorageSetRequest& request) const; @@ -1733,6 +1853,9 @@ namespace AlibabaCloud DeactivateRouterInterfaceOutcome deactivateRouterInterface(const Model::DeactivateRouterInterfaceRequest &request)const; void deactivateRouterInterfaceAsync(const Model::DeactivateRouterInterfaceRequest& request, const DeactivateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeactivateRouterInterfaceOutcomeCallable deactivateRouterInterfaceCallable(const Model::DeactivateRouterInterfaceRequest& request) const; + DeleteActivationOutcome deleteActivation(const Model::DeleteActivationRequest &request)const; + void deleteActivationAsync(const Model::DeleteActivationRequest& request, const DeleteActivationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteActivationOutcomeCallable deleteActivationCallable(const Model::DeleteActivationRequest& request) const; DeleteAutoProvisioningGroupOutcome deleteAutoProvisioningGroup(const Model::DeleteAutoProvisioningGroupRequest &request)const; void deleteAutoProvisioningGroupAsync(const Model::DeleteAutoProvisioningGroupRequest& request, const DeleteAutoProvisioningGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAutoProvisioningGroupOutcomeCallable deleteAutoProvisioningGroupCallable(const Model::DeleteAutoProvisioningGroupRequest& request) const; @@ -1769,6 +1892,12 @@ namespace AlibabaCloud DeleteImageOutcome deleteImage(const Model::DeleteImageRequest &request)const; void deleteImageAsync(const Model::DeleteImageRequest& request, const DeleteImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteImageOutcomeCallable deleteImageCallable(const Model::DeleteImageRequest& request) const; + DeleteImageComponentOutcome deleteImageComponent(const Model::DeleteImageComponentRequest &request)const; + void deleteImageComponentAsync(const Model::DeleteImageComponentRequest& request, const DeleteImageComponentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteImageComponentOutcomeCallable deleteImageComponentCallable(const Model::DeleteImageComponentRequest& request) const; + DeleteImagePipelineOutcome deleteImagePipeline(const Model::DeleteImagePipelineRequest &request)const; + void deleteImagePipelineAsync(const Model::DeleteImagePipelineRequest& request, const DeleteImagePipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteImagePipelineOutcomeCallable deleteImagePipelineCallable(const Model::DeleteImagePipelineRequest& request) const; DeleteInstanceOutcome deleteInstance(const Model::DeleteInstanceRequest &request)const; void deleteInstanceAsync(const Model::DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteInstanceOutcomeCallable deleteInstanceCallable(const Model::DeleteInstanceRequest& request) const; @@ -1808,6 +1937,9 @@ namespace AlibabaCloud DeleteSnapshotOutcome deleteSnapshot(const Model::DeleteSnapshotRequest &request)const; void deleteSnapshotAsync(const Model::DeleteSnapshotRequest& request, const DeleteSnapshotAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSnapshotOutcomeCallable deleteSnapshotCallable(const Model::DeleteSnapshotRequest& request) const; + DeleteSnapshotGroupOutcome deleteSnapshotGroup(const Model::DeleteSnapshotGroupRequest &request)const; + void deleteSnapshotGroupAsync(const Model::DeleteSnapshotGroupRequest& request, const DeleteSnapshotGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSnapshotGroupOutcomeCallable deleteSnapshotGroupCallable(const Model::DeleteSnapshotGroupRequest& request) const; DeleteStorageSetOutcome deleteStorageSet(const Model::DeleteStorageSetRequest &request)const; void deleteStorageSetAsync(const Model::DeleteStorageSetRequest& request, const DeleteStorageSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteStorageSetOutcomeCallable deleteStorageSetCallable(const Model::DeleteStorageSetRequest& request) const; @@ -1820,12 +1952,18 @@ namespace AlibabaCloud DeleteVpcOutcome deleteVpc(const Model::DeleteVpcRequest &request)const; void deleteVpcAsync(const Model::DeleteVpcRequest& request, const DeleteVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteVpcOutcomeCallable deleteVpcCallable(const Model::DeleteVpcRequest& request) const; + DeregisterManagedInstanceOutcome deregisterManagedInstance(const Model::DeregisterManagedInstanceRequest &request)const; + void deregisterManagedInstanceAsync(const Model::DeregisterManagedInstanceRequest& request, const DeregisterManagedInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeregisterManagedInstanceOutcomeCallable deregisterManagedInstanceCallable(const Model::DeregisterManagedInstanceRequest& request) const; DescribeAccessPointsOutcome describeAccessPoints(const Model::DescribeAccessPointsRequest &request)const; void describeAccessPointsAsync(const Model::DescribeAccessPointsRequest& request, const DescribeAccessPointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAccessPointsOutcomeCallable describeAccessPointsCallable(const Model::DescribeAccessPointsRequest& request) const; DescribeAccountAttributesOutcome describeAccountAttributes(const Model::DescribeAccountAttributesRequest &request)const; void describeAccountAttributesAsync(const Model::DescribeAccountAttributesRequest& request, const DescribeAccountAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAccountAttributesOutcomeCallable describeAccountAttributesCallable(const Model::DescribeAccountAttributesRequest& request) const; + DescribeActivationsOutcome describeActivations(const Model::DescribeActivationsRequest &request)const; + void describeActivationsAsync(const Model::DescribeActivationsRequest& request, const DescribeActivationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeActivationsOutcomeCallable describeActivationsCallable(const Model::DescribeActivationsRequest& request) const; DescribeAutoProvisioningGroupHistoryOutcome describeAutoProvisioningGroupHistory(const Model::DescribeAutoProvisioningGroupHistoryRequest &request)const; void describeAutoProvisioningGroupHistoryAsync(const Model::DescribeAutoProvisioningGroupHistoryRequest& request, const DescribeAutoProvisioningGroupHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAutoProvisioningGroupHistoryOutcomeCallable describeAutoProvisioningGroupHistoryCallable(const Model::DescribeAutoProvisioningGroupHistoryRequest& request) const; @@ -1919,9 +2057,18 @@ namespace AlibabaCloud DescribeHpcClustersOutcome describeHpcClusters(const Model::DescribeHpcClustersRequest &request)const; void describeHpcClustersAsync(const Model::DescribeHpcClustersRequest& request, const DescribeHpcClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeHpcClustersOutcomeCallable describeHpcClustersCallable(const Model::DescribeHpcClustersRequest& request) const; + DescribeImageComponentsOutcome describeImageComponents(const Model::DescribeImageComponentsRequest &request)const; + void describeImageComponentsAsync(const Model::DescribeImageComponentsRequest& request, const DescribeImageComponentsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeImageComponentsOutcomeCallable describeImageComponentsCallable(const Model::DescribeImageComponentsRequest& request) const; DescribeImageFromFamilyOutcome describeImageFromFamily(const Model::DescribeImageFromFamilyRequest &request)const; void describeImageFromFamilyAsync(const Model::DescribeImageFromFamilyRequest& request, const DescribeImageFromFamilyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeImageFromFamilyOutcomeCallable describeImageFromFamilyCallable(const Model::DescribeImageFromFamilyRequest& request) const; + DescribeImagePipelineExecutionsOutcome describeImagePipelineExecutions(const Model::DescribeImagePipelineExecutionsRequest &request)const; + void describeImagePipelineExecutionsAsync(const Model::DescribeImagePipelineExecutionsRequest& request, const DescribeImagePipelineExecutionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeImagePipelineExecutionsOutcomeCallable describeImagePipelineExecutionsCallable(const Model::DescribeImagePipelineExecutionsRequest& request) const; + DescribeImagePipelinesOutcome describeImagePipelines(const Model::DescribeImagePipelinesRequest &request)const; + void describeImagePipelinesAsync(const Model::DescribeImagePipelinesRequest& request, const DescribeImagePipelinesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeImagePipelinesOutcomeCallable describeImagePipelinesCallable(const Model::DescribeImagePipelinesRequest& request) const; DescribeImageSharePermissionOutcome describeImageSharePermission(const Model::DescribeImageSharePermissionRequest &request)const; void describeImageSharePermissionAsync(const Model::DescribeImageSharePermissionRequest& request, const DescribeImageSharePermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeImageSharePermissionOutcomeCallable describeImageSharePermissionCallable(const Model::DescribeImageSharePermissionRequest& request) const; @@ -1994,6 +2141,9 @@ namespace AlibabaCloud DescribeLimitationOutcome describeLimitation(const Model::DescribeLimitationRequest &request)const; void describeLimitationAsync(const Model::DescribeLimitationRequest& request, const DescribeLimitationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLimitationOutcomeCallable describeLimitationCallable(const Model::DescribeLimitationRequest& request) const; + DescribeManagedInstancesOutcome describeManagedInstances(const Model::DescribeManagedInstancesRequest &request)const; + void describeManagedInstancesAsync(const Model::DescribeManagedInstancesRequest& request, const DescribeManagedInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeManagedInstancesOutcomeCallable describeManagedInstancesCallable(const Model::DescribeManagedInstancesRequest& request) const; DescribeNatGatewaysOutcome describeNatGateways(const Model::DescribeNatGatewaysRequest &request)const; void describeNatGatewaysAsync(const Model::DescribeNatGatewaysRequest& request, const DescribeNatGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeNatGatewaysOutcomeCallable describeNatGatewaysCallable(const Model::DescribeNatGatewaysRequest& request) const; @@ -2051,6 +2201,9 @@ namespace AlibabaCloud DescribeSendFileResultsOutcome describeSendFileResults(const Model::DescribeSendFileResultsRequest &request)const; void describeSendFileResultsAsync(const Model::DescribeSendFileResultsRequest& request, const DescribeSendFileResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSendFileResultsOutcomeCallable describeSendFileResultsCallable(const Model::DescribeSendFileResultsRequest& request) const; + DescribeSnapshotGroupsOutcome describeSnapshotGroups(const Model::DescribeSnapshotGroupsRequest &request)const; + void describeSnapshotGroupsAsync(const Model::DescribeSnapshotGroupsRequest& request, const DescribeSnapshotGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSnapshotGroupsOutcomeCallable describeSnapshotGroupsCallable(const Model::DescribeSnapshotGroupsRequest& request) const; 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; @@ -2129,6 +2282,9 @@ namespace AlibabaCloud DetachNetworkInterfaceOutcome detachNetworkInterface(const Model::DetachNetworkInterfaceRequest &request)const; void detachNetworkInterfaceAsync(const Model::DetachNetworkInterfaceRequest& request, const DetachNetworkInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetachNetworkInterfaceOutcomeCallable detachNetworkInterfaceCallable(const Model::DetachNetworkInterfaceRequest& request) const; + DisableActivationOutcome disableActivation(const Model::DisableActivationRequest &request)const; + void disableActivationAsync(const Model::DisableActivationRequest& request, const DisableActivationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableActivationOutcomeCallable disableActivationCallable(const Model::DisableActivationRequest& request) const; EipFillParamsOutcome eipFillParams(const Model::EipFillParamsRequest &request)const; void eipFillParamsAsync(const Model::EipFillParamsRequest& request, const EipFillParamsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EipFillParamsOutcomeCallable eipFillParamsCallable(const Model::EipFillParamsRequest& request) const; @@ -2291,6 +2447,9 @@ namespace AlibabaCloud ModifyLaunchTemplateDefaultVersionOutcome modifyLaunchTemplateDefaultVersion(const Model::ModifyLaunchTemplateDefaultVersionRequest &request)const; void modifyLaunchTemplateDefaultVersionAsync(const Model::ModifyLaunchTemplateDefaultVersionRequest& request, const ModifyLaunchTemplateDefaultVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyLaunchTemplateDefaultVersionOutcomeCallable modifyLaunchTemplateDefaultVersionCallable(const Model::ModifyLaunchTemplateDefaultVersionRequest& request) const; + ModifyManagedInstanceOutcome modifyManagedInstance(const Model::ModifyManagedInstanceRequest &request)const; + void modifyManagedInstanceAsync(const Model::ModifyManagedInstanceRequest& request, const ModifyManagedInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyManagedInstanceOutcomeCallable modifyManagedInstanceCallable(const Model::ModifyManagedInstanceRequest& request) const; ModifyNetworkInterfaceAttributeOutcome modifyNetworkInterfaceAttribute(const Model::ModifyNetworkInterfaceAttributeRequest &request)const; void modifyNetworkInterfaceAttributeAsync(const Model::ModifyNetworkInterfaceAttributeRequest& request, const ModifyNetworkInterfaceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyNetworkInterfaceAttributeOutcomeCallable modifyNetworkInterfaceAttributeCallable(const Model::ModifyNetworkInterfaceAttributeRequest& request) const; @@ -2327,6 +2486,9 @@ namespace AlibabaCloud ModifySnapshotAttributeOutcome modifySnapshotAttribute(const Model::ModifySnapshotAttributeRequest &request)const; void modifySnapshotAttributeAsync(const Model::ModifySnapshotAttributeRequest& request, const ModifySnapshotAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySnapshotAttributeOutcomeCallable modifySnapshotAttributeCallable(const Model::ModifySnapshotAttributeRequest& request) const; + ModifySnapshotGroupOutcome modifySnapshotGroup(const Model::ModifySnapshotGroupRequest &request)const; + void modifySnapshotGroupAsync(const Model::ModifySnapshotGroupRequest& request, const ModifySnapshotGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySnapshotGroupOutcomeCallable modifySnapshotGroupCallable(const Model::ModifySnapshotGroupRequest& request) const; ModifyStorageCapacityUnitAttributeOutcome modifyStorageCapacityUnitAttribute(const Model::ModifyStorageCapacityUnitAttributeRequest &request)const; void modifyStorageCapacityUnitAttributeAsync(const Model::ModifyStorageCapacityUnitAttributeRequest& request, const ModifyStorageCapacityUnitAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyStorageCapacityUnitAttributeOutcomeCallable modifyStorageCapacityUnitAttributeCallable(const Model::ModifyStorageCapacityUnitAttributeRequest& request) const; @@ -2408,6 +2570,9 @@ namespace AlibabaCloud ResetDiskOutcome resetDisk(const Model::ResetDiskRequest &request)const; void resetDiskAsync(const Model::ResetDiskRequest& request, const ResetDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResetDiskOutcomeCallable resetDiskCallable(const Model::ResetDiskRequest& request) const; + ResetDisksOutcome resetDisks(const Model::ResetDisksRequest &request)const; + void resetDisksAsync(const Model::ResetDisksRequest& request, const ResetDisksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetDisksOutcomeCallable resetDisksCallable(const Model::ResetDisksRequest& request) const; 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; @@ -2429,6 +2594,9 @@ namespace AlibabaCloud StartElasticityAssuranceOutcome startElasticityAssurance(const Model::StartElasticityAssuranceRequest &request)const; void startElasticityAssuranceAsync(const Model::StartElasticityAssuranceRequest& request, const StartElasticityAssuranceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartElasticityAssuranceOutcomeCallable startElasticityAssuranceCallable(const Model::StartElasticityAssuranceRequest& request) const; + StartImagePipelineExecutionOutcome startImagePipelineExecution(const Model::StartImagePipelineExecutionRequest &request)const; + void startImagePipelineExecutionAsync(const Model::StartImagePipelineExecutionRequest& request, const StartImagePipelineExecutionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartImagePipelineExecutionOutcomeCallable startImagePipelineExecutionCallable(const Model::StartImagePipelineExecutionRequest& request) const; StartInstanceOutcome startInstance(const Model::StartInstanceRequest &request)const; void startInstanceAsync(const Model::StartInstanceRequest& request, const StartInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartInstanceOutcomeCallable startInstanceCallable(const Model::StartInstanceRequest& request) const; diff --git a/ecs/include/alibabacloud/ecs/model/CancelImagePipelineExecutionRequest.h b/ecs/include/alibabacloud/ecs/model/CancelImagePipelineExecutionRequest.h new file mode 100644 index 000000000..4e309557e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CancelImagePipelineExecutionRequest.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_CANCELIMAGEPIPELINEEXECUTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELIMAGEPIPELINEEXECUTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelImagePipelineExecutionRequest : public RpcServiceRequest + { + public: + struct TemplateTag + { + std::string key; + std::string value; + }; + + public: + CancelImagePipelineExecutionRequest(); + ~CancelImagePipelineExecutionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getExecutionId()const; + void setExecutionId(const std::string& executionId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTemplateTag()const; + void setTemplateTag(const std::vector& templateTag); + 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 executionId_; + std::string regionId_; + std::vector templateTag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELIMAGEPIPELINEEXECUTIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelImagePipelineExecutionResult.h b/ecs/include/alibabacloud/ecs/model/CancelImagePipelineExecutionResult.h new file mode 100644 index 000000000..b95160c35 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CancelImagePipelineExecutionResult.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_CANCELIMAGEPIPELINEEXECUTIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELIMAGEPIPELINEEXECUTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelImagePipelineExecutionResult : public ServiceResult + { + public: + + + CancelImagePipelineExecutionResult(); + explicit CancelImagePipelineExecutionResult(const std::string &payload); + ~CancelImagePipelineExecutionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELIMAGEPIPELINEEXECUTIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateActivationRequest.h b/ecs/include/alibabacloud/ecs/model/CreateActivationRequest.h new file mode 100644 index 000000000..88b45f51a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateActivationRequest.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_CREATEACTIVATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEACTIVATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateActivationRequest : public RpcServiceRequest + { + + public: + CreateActivationRequest(); + ~CreateActivationRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getInstanceCount()const; + void setInstanceCount(int instanceCount); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceName()const; + void setInstanceName(const std::string& instanceName); + long getTimeToLiveInHours()const; + void setTimeToLiveInHours(long timeToLiveInHours); + std::string getIpAddressRange()const; + void setIpAddressRange(const std::string& ipAddressRange); + + private: + long resourceOwnerId_; + std::string description_; + std::string regionId_; + int instanceCount_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceName_; + long timeToLiveInHours_; + std::string ipAddressRange_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEACTIVATIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateActivationResult.h b/ecs/include/alibabacloud/ecs/model/CreateActivationResult.h new file mode 100644 index 000000000..024605fb3 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateActivationResult.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_CREATEACTIVATIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEACTIVATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateActivationResult : public ServiceResult + { + public: + + + CreateActivationResult(); + explicit CreateActivationResult(const std::string &payload); + ~CreateActivationResult(); + std::string getActivationId()const; + std::string getActivationCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string activationId_; + std::string activationCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEACTIVATIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateDiskResult.h b/ecs/include/alibabacloud/ecs/model/CreateDiskResult.h index a76ea81f1..8e6554465 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateDiskResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateDiskResult.h @@ -37,11 +37,13 @@ namespace AlibabaCloud CreateDiskResult(); explicit CreateDiskResult(const std::string &payload); ~CreateDiskResult(); + std::string getOrderId()const; std::string getDiskId()const; protected: void parse(const std::string &payload); private: + std::string orderId_; std::string diskId_; }; diff --git a/ecs/include/alibabacloud/ecs/model/CreateImageComponentRequest.h b/ecs/include/alibabacloud/ecs/model/CreateImageComponentRequest.h new file mode 100644 index 000000000..64cb1f692 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateImageComponentRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEIMAGECOMPONENTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEIMAGECOMPONENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateImageComponentRequest : public RpcServiceRequest + { + public: + struct Tag + { + std::string key; + std::string value; + }; + + public: + CreateImageComponentRequest(); + ~CreateImageComponentRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getSystemType()const; + void setSystemType(const std::string& systemType); + std::string getContent()const; + void setContent(const std::string& content); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTag()const; + void setTag(const std::vector& tag); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getComponentType()const; + void setComponentType(const std::string& componentType); + std::string getName()const; + void setName(const std::string& name); + + private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string systemType_; + std::string content_; + std::string resourceGroupId_; + std::string regionId_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string componentType_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEIMAGECOMPONENTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateImageComponentResult.h b/ecs/include/alibabacloud/ecs/model/CreateImageComponentResult.h new file mode 100644 index 000000000..babbbb373 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateImageComponentResult.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_CREATEIMAGECOMPONENTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEIMAGECOMPONENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateImageComponentResult : public ServiceResult + { + public: + + + CreateImageComponentResult(); + explicit CreateImageComponentResult(const std::string &payload); + ~CreateImageComponentResult(); + std::string getImageComponentId()const; + + protected: + void parse(const std::string &payload); + private: + std::string imageComponentId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEIMAGECOMPONENTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateImagePipelineRequest.h b/ecs/include/alibabacloud/ecs/model/CreateImagePipelineRequest.h new file mode 100644 index 000000000..8a1d6c957 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateImagePipelineRequest.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_CREATEIMAGEPIPELINEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEIMAGEPIPELINEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateImagePipelineRequest : public RpcServiceRequest + { + public: + struct Tag + { + std::string key; + std::string value; + }; + + public: + CreateImagePipelineRequest(); + ~CreateImagePipelineRequest(); + + std::string getBaseImageType()const; + void setBaseImageType(const std::string& baseImageType); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::vector getToRegionId()const; + void setToRegionId(const std::vector& toRegionId); + int getInternetMaxBandwidthOut()const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getImageName()const; + void setImageName(const std::string& imageName); + int getSystemDiskSize()const; + void setSystemDiskSize(int systemDiskSize); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::vector getTag()const; + void setTag(const std::vector& tag); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getBaseImage()const; + void setBaseImage(const std::string& baseImage); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::vector getAddAccount()const; + void setAddAccount(const std::vector& addAccount); + bool getDeleteInstanceOnFailure()const; + void setDeleteInstanceOnFailure(bool deleteInstanceOnFailure); + std::string getName()const; + void setName(const std::string& name); + std::string getBuildContent()const; + void setBuildContent(const std::string& buildContent); + + private: + std::string baseImageType_; + long resourceOwnerId_; + std::string clientToken_; + std::vector toRegionId_; + int internetMaxBandwidthOut_; + std::string description_; + std::string resourceGroupId_; + std::string regionId_; + std::string imageName_; + int systemDiskSize_; + std::string instanceType_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string baseImage_; + std::string vSwitchId_; + std::vector addAccount_; + bool deleteInstanceOnFailure_; + std::string name_; + std::string buildContent_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEIMAGEPIPELINEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateImagePipelineResult.h b/ecs/include/alibabacloud/ecs/model/CreateImagePipelineResult.h new file mode 100644 index 000000000..d42f10cb0 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateImagePipelineResult.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_CREATEIMAGEPIPELINERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEIMAGEPIPELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateImagePipelineResult : public ServiceResult + { + public: + + + CreateImagePipelineResult(); + explicit CreateImagePipelineResult(const std::string &payload); + ~CreateImagePipelineResult(); + std::string getImagePipelineId()const; + + protected: + void parse(const std::string &payload); + private: + std::string imagePipelineId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEIMAGEPIPELINERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateSnapshotGroupRequest.h b/ecs/include/alibabacloud/ecs/model/CreateSnapshotGroupRequest.h new file mode 100644 index 000000000..1cdb9f7d3 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateSnapshotGroupRequest.h @@ -0,0 +1,78 @@ +/* + * 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_CREATESNAPSHOTGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateSnapshotGroupRequest : public RpcServiceRequest + { + + public: + CreateSnapshotGroupRequest(); + ~CreateSnapshotGroupRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getExcludeDiskId()const; + void setExcludeDiskId(const std::vector& excludeDiskId); + bool getInstantAccess()const; + void setInstantAccess(bool instantAccess); + std::string getDescription()const; + void setDescription(const std::string& description); + int getInstantAccessRetentionDays()const; + void setInstantAccessRetentionDays(int instantAccessRetentionDays); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getName()const; + void setName(const std::string& name); + + private: + long resourceOwnerId_; + std::vector excludeDiskId_; + bool instantAccess_; + std::string description_; + int instantAccessRetentionDays_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateSnapshotGroupResult.h b/ecs/include/alibabacloud/ecs/model/CreateSnapshotGroupResult.h new file mode 100644 index 000000000..b3d142e4f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateSnapshotGroupResult.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_CREATESNAPSHOTGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateSnapshotGroupResult : public ServiceResult + { + public: + + + CreateSnapshotGroupResult(); + explicit CreateSnapshotGroupResult(const std::string &payload); + ~CreateSnapshotGroupResult(); + std::string getSnapshotGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string snapshotGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteActivationRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteActivationRequest.h new file mode 100644 index 000000000..c8efc59fd --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteActivationRequest.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_DELETEACTIVATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEACTIVATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteActivationRequest : public RpcServiceRequest + { + + public: + DeleteActivationRequest(); + ~DeleteActivationRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getActivationId()const; + void setActivationId(const std::string& activationId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string activationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEACTIVATIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteActivationResult.h b/ecs/include/alibabacloud/ecs/model/DeleteActivationResult.h new file mode 100644 index 000000000..c4f69e83a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteActivationResult.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_DELETEACTIVATIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEACTIVATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteActivationResult : public ServiceResult + { + public: + struct Activation + { + std::string instanceName; + int instanceCount; + int deregisteredCount; + std::string description; + std::string activationId; + std::string creationTime; + long timeToLiveInHours; + int registeredCount; + std::string ipAddressRange; + }; + + + DeleteActivationResult(); + explicit DeleteActivationResult(const std::string &payload); + ~DeleteActivationResult(); + Activation getActivation()const; + + protected: + void parse(const std::string &payload); + private: + Activation activation_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEACTIVATIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteImageComponentRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteImageComponentRequest.h new file mode 100644 index 000000000..63b7e709b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteImageComponentRequest.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_DELETEIMAGECOMPONENTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEIMAGECOMPONENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteImageComponentRequest : public RpcServiceRequest + { + public: + struct TemplateTag + { + std::string key; + std::string value; + }; + + public: + DeleteImageComponentRequest(); + ~DeleteImageComponentRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageComponentId()const; + void setImageComponentId(const std::string& imageComponentId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTemplateTag()const; + void setTemplateTag(const std::vector& templateTag); + 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 imageComponentId_; + std::string regionId_; + std::vector templateTag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEIMAGECOMPONENTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteImageComponentResult.h b/ecs/include/alibabacloud/ecs/model/DeleteImageComponentResult.h new file mode 100644 index 000000000..50421cb68 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteImageComponentResult.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_DELETEIMAGECOMPONENTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEIMAGECOMPONENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteImageComponentResult : public ServiceResult + { + public: + + + DeleteImageComponentResult(); + explicit DeleteImageComponentResult(const std::string &payload); + ~DeleteImageComponentResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEIMAGECOMPONENTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteImagePipelineRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteImagePipelineRequest.h new file mode 100644 index 000000000..2a4b1a70f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteImagePipelineRequest.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_DELETEIMAGEPIPELINEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEIMAGEPIPELINEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteImagePipelineRequest : public RpcServiceRequest + { + public: + struct TemplateTag + { + std::string key; + std::string value; + }; + + public: + DeleteImagePipelineRequest(); + ~DeleteImagePipelineRequest(); + + std::string getImagePipelineId()const; + void setImagePipelineId(const std::string& imagePipelineId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTemplateTag()const; + void setTemplateTag(const std::vector& templateTag); + 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 imagePipelineId_; + long resourceOwnerId_; + std::string regionId_; + std::vector templateTag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEIMAGEPIPELINEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteImagePipelineResult.h b/ecs/include/alibabacloud/ecs/model/DeleteImagePipelineResult.h new file mode 100644 index 000000000..d6a29ccac --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteImagePipelineResult.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_DELETEIMAGEPIPELINERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEIMAGEPIPELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteImagePipelineResult : public ServiceResult + { + public: + + + DeleteImagePipelineResult(); + explicit DeleteImagePipelineResult(const std::string &payload); + ~DeleteImagePipelineResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEIMAGEPIPELINERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteSnapshotGroupRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteSnapshotGroupRequest.h new file mode 100644 index 000000000..2bbd7cfae --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteSnapshotGroupRequest.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_DELETESNAPSHOTGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteSnapshotGroupRequest : public RpcServiceRequest + { + + public: + DeleteSnapshotGroupRequest(); + ~DeleteSnapshotGroupRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSnapshotGroupId()const; + void setSnapshotGroupId(const std::string& snapshotGroupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string snapshotGroupId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteSnapshotGroupResult.h b/ecs/include/alibabacloud/ecs/model/DeleteSnapshotGroupResult.h new file mode 100644 index 000000000..9c590366c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteSnapshotGroupResult.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_DELETESNAPSHOTGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteSnapshotGroupResult : public ServiceResult + { + public: + struct OperationProgress + { + struct RelatedItem + { + std::string value; + std::string name; + }; + std::string operationStatus; + std::string errorMsg; + std::vector relatedItemSet; + std::string errorCode; + }; + + + DeleteSnapshotGroupResult(); + explicit DeleteSnapshotGroupResult(const std::string &payload); + ~DeleteSnapshotGroupResult(); + std::vector getOperationProgressSet()const; + + protected: + void parse(const std::string &payload); + private: + std::vector operationProgressSet_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeregisterManagedInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/DeregisterManagedInstanceRequest.h new file mode 100644 index 000000000..d7de78434 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeregisterManagedInstanceRequest.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_DEREGISTERMANAGEDINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DEREGISTERMANAGEDINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeregisterManagedInstanceRequest : public RpcServiceRequest + { + + public: + DeregisterManagedInstanceRequest(); + ~DeregisterManagedInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DEREGISTERMANAGEDINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeregisterManagedInstanceResult.h b/ecs/include/alibabacloud/ecs/model/DeregisterManagedInstanceResult.h new file mode 100644 index 000000000..83b954724 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeregisterManagedInstanceResult.h @@ -0,0 +1,67 @@ +/* + * 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_DEREGISTERMANAGEDINSTANCERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DEREGISTERMANAGEDINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeregisterManagedInstanceResult : public ServiceResult + { + public: + struct Instance + { + std::string machineId; + std::string instanceId; + std::string agentVersion; + long invocationCount; + std::string osVersion; + std::string activationId; + std::string hostname; + std::string registrationTime; + std::string intranetIp; + std::string instanceName; + std::string internetIp; + std::string osType; + std::string lastInvokedTime; + }; + + + DeregisterManagedInstanceResult(); + explicit DeregisterManagedInstanceResult(const std::string &payload); + ~DeregisterManagedInstanceResult(); + Instance getInstance()const; + + protected: + void parse(const std::string &payload); + private: + Instance instance_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DEREGISTERMANAGEDINSTANCERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeActivationsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeActivationsRequest.h new file mode 100644 index 000000000..3d7de1aba --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeActivationsRequest.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_DESCRIBEACTIVATIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEACTIVATIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeActivationsRequest : public RpcServiceRequest + { + + public: + DescribeActivationsRequest(); + ~DescribeActivationsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getPageNumber()const; + void setPageNumber(long pageNumber); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceName()const; + void setInstanceName(const std::string& instanceName); + std::string getActivationId()const; + void setActivationId(const std::string& activationId); + + private: + long resourceOwnerId_; + long pageNumber_; + std::string regionId_; + long pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceName_; + std::string activationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEACTIVATIONSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeActivationsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeActivationsResult.h new file mode 100644 index 000000000..84442d6f4 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeActivationsResult.h @@ -0,0 +1,70 @@ +/* + * 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_DESCRIBEACTIVATIONSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEACTIVATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeActivationsResult : public ServiceResult + { + public: + struct Activation + { + std::string instanceName; + int instanceCount; + int deregisteredCount; + std::string description; + std::string activationId; + std::string creationTime; + long timeToLiveInHours; + int registeredCount; + bool disabled; + std::string ipAddressRange; + }; + + + DescribeActivationsResult(); + explicit DescribeActivationsResult(const std::string &payload); + ~DescribeActivationsResult(); + long getTotalCount()const; + long getPageSize()const; + long getPageNumber()const; + std::vector getActivationList()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + long pageSize_; + long pageNumber_; + std::vector activationList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEACTIVATIONSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeCommandsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeCommandsRequest.h index 1a078d36c..94e43105f 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeCommandsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeCommandsRequest.h @@ -47,6 +47,8 @@ namespace AlibabaCloud void setPageNumber(long pageNumber); std::string getRegionId()const; void setRegionId(const std::string& regionId); + std::string getProvider()const; + void setProvider(const std::string& provider); std::string getContentEncoding()const; void setContentEncoding(const std::string& contentEncoding); long getPageSize()const; @@ -67,6 +69,7 @@ namespace AlibabaCloud std::string commandId_; long pageNumber_; std::string regionId_; + std::string provider_; std::string contentEncoding_; long pageSize_; std::string resourceOwnerAccount_; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeCommandsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeCommandsResult.h index 8596e6563..32e825dd9 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeCommandsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeCommandsResult.h @@ -34,17 +34,21 @@ namespace AlibabaCloud public: struct Command { - std::string commandContent; - std::string workingDir; - std::string type; + std::string category; std::string description; std::vector parameterNames; long timeout; + std::string name; + std::string provider; + std::string commandContent; + std::string workingDir; + std::string type; + int version; int invokeTimes; std::string creationTime; + bool latest; bool enableParameter; std::string commandId; - std::string name; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImageComponentsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeImageComponentsRequest.h new file mode 100644 index 000000000..91febc88f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeImageComponentsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGECOMPONENTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGECOMPONENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeImageComponentsRequest : public RpcServiceRequest + { + public: + struct Tag + { + std::string key; + std::string value; + }; + + public: + DescribeImageComponentsRequest(); + ~DescribeImageComponentsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getImageComponentId()const; + void setImageComponentId(const std::vector& imageComponentId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::vector getTag()const; + void setTag(const std::vector& tag); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getName()const; + void setName(const std::string& name); + int getMaxResults()const; + void setMaxResults(int maxResults); + + private: + long resourceOwnerId_; + std::vector imageComponentId_; + std::string resourceGroupId_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGECOMPONENTSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImageComponentsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeImageComponentsResult.h new file mode 100644 index 000000000..78eb8d6ad --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeImageComponentsResult.h @@ -0,0 +1,74 @@ +/* + * 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_DESCRIBEIMAGECOMPONENTSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGECOMPONENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeImageComponentsResult : public ServiceResult + { + public: + struct ImageComponentSet + { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string componentType; + std::string description; + std::string resourceGroupId; + std::string content; + std::string creationTime; + std::string systemType; + std::string imageComponentId; + std::vector tags; + std::string name; + }; + + + DescribeImageComponentsResult(); + explicit DescribeImageComponentsResult(const std::string &payload); + ~DescribeImageComponentsResult(); + int getTotalCount()const; + std::vector getImageComponent()const; + std::string getNextToken()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector imageComponent_; + std::string nextToken_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGECOMPONENTSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImagePipelineExecutionsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeImagePipelineExecutionsRequest.h new file mode 100644 index 000000000..b5e13285e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeImagePipelineExecutionsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINEEXECUTIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINEEXECUTIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeImagePipelineExecutionsRequest : public RpcServiceRequest + { + public: + struct Tag + { + std::string key; + std::string value; + }; + + public: + DescribeImagePipelineExecutionsRequest(); + ~DescribeImagePipelineExecutionsRequest(); + + std::string getImagePipelineId()const; + void setImagePipelineId(const std::string& imagePipelineId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getExecutionId()const; + void setExecutionId(const std::string& executionId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::vector getTag()const; + void setTag(const std::vector& tag); + 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); + int getMaxResults()const; + void setMaxResults(int maxResults); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string imagePipelineId_; + long resourceOwnerId_; + std::string executionId_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int maxResults_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINEEXECUTIONSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImagePipelineExecutionsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeImagePipelineExecutionsResult.h new file mode 100644 index 000000000..7076d4fa1 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeImagePipelineExecutionsResult.h @@ -0,0 +1,74 @@ +/* + * 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_DESCRIBEIMAGEPIPELINEEXECUTIONSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINEEXECUTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeImagePipelineExecutionsResult : public ServiceResult + { + public: + struct ImagePipelineExecutionSet + { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string status; + std::string modifiedTime; + std::string message; + std::string resourceGroupId; + std::string imagePipelineId; + std::string creationTime; + std::string imageId; + std::vector tags; + std::string executionId; + }; + + + DescribeImagePipelineExecutionsResult(); + explicit DescribeImagePipelineExecutionsResult(const std::string &payload); + ~DescribeImagePipelineExecutionsResult(); + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + std::vector getImagePipelineExecution()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + int maxResults_; + std::vector imagePipelineExecution_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINEEXECUTIONSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImagePipelinesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeImagePipelinesRequest.h new file mode 100644 index 000000000..3b256b25e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeImagePipelinesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeImagePipelinesRequest : public RpcServiceRequest + { + public: + struct Tag + { + std::string key; + std::string value; + }; + + public: + DescribeImagePipelinesRequest(); + ~DescribeImagePipelinesRequest(); + + std::vector getImagePipelineId()const; + void setImagePipelineId(const std::vector& imagePipelineId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::vector getTag()const; + void setTag(const std::vector& tag); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getName()const; + void setName(const std::string& name); + int getMaxResults()const; + void setMaxResults(int maxResults); + + private: + std::vector imagePipelineId_; + long resourceOwnerId_; + std::string resourceGroupId_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImagePipelinesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeImagePipelinesResult.h new file mode 100644 index 000000000..83452ae39 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeImagePipelinesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeImagePipelinesResult : public ServiceResult + { + public: + struct ImagePipelineSet + { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string description; + std::string baseImageType; + std::string resourceGroupId; + int systemDiskSize; + std::string imagePipelineId; + std::string vSwitchId; + std::vector toRegionIds; + std::string name; + std::string imageName; + bool deleteInstanceOnFailure; + std::vector addAccounts; + int internetMaxBandwidthOut; + std::string creationTime; + std::string instanceType; + std::vector tags; + std::string baseImage; + std::string buildContent; + }; + + + DescribeImagePipelinesResult(); + explicit DescribeImagePipelinesResult(const std::string &payload); + ~DescribeImagePipelinesResult(); + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + std::vector getImagePipeline()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + int maxResults_; + std::vector imagePipeline_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstancesRequest.h index 0917e57b9..1a68ededd 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstancesRequest.h @@ -87,6 +87,8 @@ namespace AlibabaCloud void setInternetChargeType(const std::string& internetChargeType); std::string getZoneId()const; void setZoneId(const std::string& zoneId); + int getMaxResults()const; + void setMaxResults(int maxResults); std::string getInstanceNetworkType()const; void setInstanceNetworkType(const std::string& instanceNetworkType); std::string getStatus()const; @@ -105,6 +107,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getRegionId()const; void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); std::string getRdmaIpAddresses()const; void setRdmaIpAddresses(const std::string& rdmaIpAddresses); std::string getHttpEndpoint()const; @@ -158,6 +162,7 @@ namespace AlibabaCloud std::string instanceIds_; std::string internetChargeType_; std::string zoneId_; + int maxResults_; std::string instanceNetworkType_; std::string status_; std::string imageId_; @@ -167,6 +172,7 @@ namespace AlibabaCloud std::string filter4Key_; int pageNumber_; std::string regionId_; + std::string nextToken_; std::string rdmaIpAddresses_; std::string httpEndpoint_; int pageSize_; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstancesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstancesResult.h index 502bbd8a9..474d6461c 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstancesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstancesResult.h @@ -175,6 +175,7 @@ namespace AlibabaCloud std::vector getInstances()const; int getTotalCount()const; int getPageSize()const; + std::string getNextToken()const; int getPageNumber()const; protected: @@ -183,6 +184,7 @@ namespace AlibabaCloud std::vector instances_; int totalCount_; int pageSize_; + std::string nextToken_; int pageNumber_; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeManagedInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeManagedInstancesRequest.h new file mode 100644 index 000000000..7e14ed8aa --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeManagedInstancesRequest.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_DESCRIBEMANAGEDINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEMANAGEDINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeManagedInstancesRequest : public RpcServiceRequest + { + + public: + DescribeManagedInstancesRequest(); + ~DescribeManagedInstancesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getPageNumber()const; + void setPageNumber(long pageNumber); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getOsType()const; + void setOsType(const std::string& osType); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceName()const; + void setInstanceName(const std::string& instanceName); + std::vector getInstanceId()const; + void setInstanceId(const std::vector& instanceId); + std::string getInstanceIp()const; + void setInstanceIp(const std::string& instanceIp); + std::string getActivationId()const; + void setActivationId(const std::string& activationId); + + private: + long resourceOwnerId_; + long pageNumber_; + std::string regionId_; + long pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string osType_; + long ownerId_; + std::string instanceName_; + std::vector instanceId_; + std::string instanceIp_; + std::string activationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEMANAGEDINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeManagedInstancesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeManagedInstancesResult.h new file mode 100644 index 000000000..d62a535ea --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeManagedInstancesResult.h @@ -0,0 +1,74 @@ +/* + * 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_DESCRIBEMANAGEDINSTANCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEMANAGEDINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeManagedInstancesResult : public ServiceResult + { + public: + struct Instance + { + std::string machineId; + std::string instanceId; + std::string agentVersion; + bool connected; + long invocationCount; + std::string osVersion; + std::string activationId; + std::string hostname; + std::string registrationTime; + std::string intranetIp; + std::string instanceName; + std::string internetIp; + std::string osType; + std::string lastInvokedTime; + }; + + + DescribeManagedInstancesResult(); + explicit DescribeManagedInstancesResult(const std::string &payload); + ~DescribeManagedInstancesResult(); + std::vector getInstances()const; + long getTotalCount()const; + long getPageSize()const; + long getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instances_; + long totalCount_; + long pageSize_; + long pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEMANAGEDINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotGroupsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotGroupsRequest.h new file mode 100644 index 000000000..8fc87c723 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotGroupsRequest.h @@ -0,0 +1,78 @@ +/* + * 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_DESCRIBESNAPSHOTGROUPSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotGroupsRequest : public RpcServiceRequest + { + + public: + DescribeSnapshotGroupsRequest(); + ~DescribeSnapshotGroupsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::vector getSnapshotGroupId()const; + void setSnapshotGroupId(const std::vector& snapshotGroupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getName()const; + void setName(const std::string& name); + int getMaxResults()const; + void setMaxResults(int maxResults); + std::vector getStatus()const; + void setStatus(const std::vector& status); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string nextToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::vector snapshotGroupId_; + long ownerId_; + std::string instanceId_; + std::string name_; + int maxResults_; + std::vector status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTGROUPSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotGroupsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotGroupsResult.h new file mode 100644 index 000000000..3caf39183 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotGroupsResult.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_DESCRIBESNAPSHOTGROUPSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotGroupsResult : public ServiceResult + { + public: + struct SnapshotGroup + { + struct Snapshot + { + std::string snapshotId; + bool instantAccess; + std::string progress; + std::string sourceDiskType; + std::string sourceDiskId; + }; + std::string status; + std::string description; + std::string instanceId; + std::string creationTime; + std::string snapshotGroupId; + std::vector snapshots; + std::string name; + }; + + + DescribeSnapshotGroupsResult(); + explicit DescribeSnapshotGroupsResult(const std::string &payload); + ~DescribeSnapshotGroupsResult(); + std::string getNextToken()const; + std::vector getSnapshotGroups()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector snapshotGroups_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTGROUPSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DisableActivationRequest.h b/ecs/include/alibabacloud/ecs/model/DisableActivationRequest.h new file mode 100644 index 000000000..bf2a73ba7 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DisableActivationRequest.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_DISABLEACTIVATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DISABLEACTIVATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DisableActivationRequest : public RpcServiceRequest + { + + public: + DisableActivationRequest(); + ~DisableActivationRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getActivationId()const; + void setActivationId(const std::string& activationId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string activationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DISABLEACTIVATIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DisableActivationResult.h b/ecs/include/alibabacloud/ecs/model/DisableActivationResult.h new file mode 100644 index 000000000..523742706 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DisableActivationResult.h @@ -0,0 +1,64 @@ +/* + * 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_DISABLEACTIVATIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DISABLEACTIVATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DisableActivationResult : public ServiceResult + { + public: + struct Activation + { + std::string instanceName; + int instanceCount; + int deregisteredCount; + std::string description; + std::string activationId; + std::string creationTime; + long timeToLiveInHours; + int registeredCount; + bool disabled; + std::string ipAddressRange; + }; + + + DisableActivationResult(); + explicit DisableActivationResult(const std::string &payload); + ~DisableActivationResult(); + Activation getActivation()const; + + protected: + void parse(const std::string &payload); + private: + Activation activation_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DISABLEACTIVATIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDiskSpecResult.h b/ecs/include/alibabacloud/ecs/model/ModifyDiskSpecResult.h index 8c8224f2f..eea0e4429 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDiskSpecResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDiskSpecResult.h @@ -38,11 +38,13 @@ namespace AlibabaCloud explicit ModifyDiskSpecResult(const std::string &payload); ~ModifyDiskSpecResult(); std::string getTaskId()const; + std::string getOrderId()const; protected: void parse(const std::string &payload); private: std::string taskId_; + std::string orderId_; }; } diff --git a/ecs/include/alibabacloud/ecs/model/ModifyManagedInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyManagedInstanceRequest.h new file mode 100644 index 000000000..d57ecb303 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyManagedInstanceRequest.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_MODIFYMANAGEDINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYMANAGEDINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyManagedInstanceRequest : public RpcServiceRequest + { + + public: + ModifyManagedInstanceRequest(); + ~ModifyManagedInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getInstanceName()const; + void setInstanceName(const std::string& instanceName); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string instanceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYMANAGEDINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyManagedInstanceResult.h b/ecs/include/alibabacloud/ecs/model/ModifyManagedInstanceResult.h new file mode 100644 index 000000000..38638069e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyManagedInstanceResult.h @@ -0,0 +1,56 @@ +/* + * 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_MODIFYMANAGEDINSTANCERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYMANAGEDINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyManagedInstanceResult : public ServiceResult + { + public: + struct Instance + { + std::string instanceName; + std::string instanceId; + }; + + + ModifyManagedInstanceResult(); + explicit ModifyManagedInstanceResult(const std::string &payload); + ~ModifyManagedInstanceResult(); + Instance getInstance()const; + + protected: + void parse(const std::string &payload); + private: + Instance instance_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYMANAGEDINSTANCERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySnapshotGroupRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySnapshotGroupRequest.h new file mode 100644 index 000000000..84c397155 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifySnapshotGroupRequest.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_MODIFYSNAPSHOTGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySnapshotGroupRequest : public RpcServiceRequest + { + + public: + ModifySnapshotGroupRequest(); + ~ModifySnapshotGroupRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSnapshotGroupId()const; + void setSnapshotGroupId(const std::string& snapshotGroupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getName()const; + void setName(const std::string& name); + + private: + long resourceOwnerId_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string snapshotGroupId_; + long ownerId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySnapshotGroupResult.h b/ecs/include/alibabacloud/ecs/model/ModifySnapshotGroupResult.h new file mode 100644 index 000000000..daf5f28aa --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifySnapshotGroupResult.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_MODIFYSNAPSHOTGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySnapshotGroupResult : public ServiceResult + { + public: + + + ModifySnapshotGroupResult(); + explicit ModifySnapshotGroupResult(const std::string &payload); + ~ModifySnapshotGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ResetDisksRequest.h b/ecs/include/alibabacloud/ecs/model/ResetDisksRequest.h new file mode 100644 index 000000000..41b7e174b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ResetDisksRequest.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_RESETDISKSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RESETDISKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ResetDisksRequest : public RpcServiceRequest + { + public: + struct Disk + { + std::string diskId; + std::string snapshotId; + }; + + public: + ResetDisksRequest(); + ~ResetDisksRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::vector getDisk()const; + void setDisk(const std::vector& disk); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector disk_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_RESETDISKSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ResetDisksResult.h b/ecs/include/alibabacloud/ecs/model/ResetDisksResult.h new file mode 100644 index 000000000..dd68d192e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ResetDisksResult.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_RESETDISKSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_RESETDISKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ResetDisksResult : public ServiceResult + { + public: + struct OperationProgress + { + struct RelatedItem + { + std::string value; + std::string name; + }; + std::string operationStatus; + std::string errorMsg; + std::vector relatedItemSet; + std::string errorCode; + }; + + + ResetDisksResult(); + explicit ResetDisksResult(const std::string &payload); + ~ResetDisksResult(); + std::vector getOperationProgressSet()const; + + protected: + void parse(const std::string &payload); + private: + std::vector operationProgressSet_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_RESETDISKSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ResizeDiskResult.h b/ecs/include/alibabacloud/ecs/model/ResizeDiskResult.h index e84c7dd60..ef43d61ef 100644 --- a/ecs/include/alibabacloud/ecs/model/ResizeDiskResult.h +++ b/ecs/include/alibabacloud/ecs/model/ResizeDiskResult.h @@ -37,10 +37,12 @@ namespace AlibabaCloud ResizeDiskResult(); explicit ResizeDiskResult(const std::string &payload); ~ResizeDiskResult(); + std::string getOrderId()const; protected: void parse(const std::string &payload); private: + std::string orderId_; }; } diff --git a/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h index 2472c1d3b..021c0be55 100644 --- a/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h @@ -140,6 +140,8 @@ namespace AlibabaCloud void setSchedulerOptions(const std::string& schedulerOptions); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getSchedulerOptionsDedicatedHostClusterId()const; + void setSchedulerOptionsDedicatedHostClusterId(const std::string& schedulerOptionsDedicatedHostClusterId); std::string getSystemDiskDiskName()const; void setSystemDiskDiskName(const std::string& systemDiskDiskName); std::string getDedicatedHostId()const; @@ -272,6 +274,7 @@ namespace AlibabaCloud std::vector arn_; std::string schedulerOptions_; std::string resourceOwnerAccount_; + std::string schedulerOptionsDedicatedHostClusterId_; std::string systemDiskDiskName_; std::string dedicatedHostId_; std::vector securityGroupIds_; diff --git a/ecs/include/alibabacloud/ecs/model/StartImagePipelineExecutionRequest.h b/ecs/include/alibabacloud/ecs/model/StartImagePipelineExecutionRequest.h new file mode 100644 index 000000000..73300024d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/StartImagePipelineExecutionRequest.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_STARTIMAGEPIPELINEEXECUTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_STARTIMAGEPIPELINEEXECUTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT StartImagePipelineExecutionRequest : public RpcServiceRequest + { + public: + struct TemplateTag + { + std::string key; + std::string value; + }; + + public: + StartImagePipelineExecutionRequest(); + ~StartImagePipelineExecutionRequest(); + + std::string getImagePipelineId()const; + void setImagePipelineId(const std::string& imagePipelineId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTemplateTag()const; + void setTemplateTag(const std::vector& templateTag); + 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 imagePipelineId_; + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::vector templateTag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_STARTIMAGEPIPELINEEXECUTIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/StartImagePipelineExecutionResult.h b/ecs/include/alibabacloud/ecs/model/StartImagePipelineExecutionResult.h new file mode 100644 index 000000000..0afa0dc60 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/StartImagePipelineExecutionResult.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_STARTIMAGEPIPELINEEXECUTIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_STARTIMAGEPIPELINEEXECUTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT StartImagePipelineExecutionResult : public ServiceResult + { + public: + + + StartImagePipelineExecutionResult(); + explicit StartImagePipelineExecutionResult(const std::string &payload); + ~StartImagePipelineExecutionResult(); + std::string getExecutionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string executionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_STARTIMAGEPIPELINEEXECUTIONRESULT_H_ \ No newline at end of file diff --git a/ecs/src/EcsClient.cc b/ecs/src/EcsClient.cc index cc1c8a057..033a414da 100644 --- a/ecs/src/EcsClient.cc +++ b/ecs/src/EcsClient.cc @@ -807,6 +807,42 @@ EcsClient::CancelCopyImageOutcomeCallable EcsClient::cancelCopyImageCallable(con return task->get_future(); } +EcsClient::CancelImagePipelineExecutionOutcome EcsClient::cancelImagePipelineExecution(const CancelImagePipelineExecutionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelImagePipelineExecutionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelImagePipelineExecutionOutcome(CancelImagePipelineExecutionResult(outcome.result())); + else + return CancelImagePipelineExecutionOutcome(outcome.error()); +} + +void EcsClient::cancelImagePipelineExecutionAsync(const CancelImagePipelineExecutionRequest& request, const CancelImagePipelineExecutionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelImagePipelineExecution(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CancelImagePipelineExecutionOutcomeCallable EcsClient::cancelImagePipelineExecutionCallable(const CancelImagePipelineExecutionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelImagePipelineExecution(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::CancelPhysicalConnectionOutcome EcsClient::cancelPhysicalConnection(const CancelPhysicalConnectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,6 +1095,42 @@ EcsClient::CopySnapshotOutcomeCallable EcsClient::copySnapshotCallable(const Cop return task->get_future(); } +EcsClient::CreateActivationOutcome EcsClient::createActivation(const CreateActivationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateActivationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateActivationOutcome(CreateActivationResult(outcome.result())); + else + return CreateActivationOutcome(outcome.error()); +} + +void EcsClient::createActivationAsync(const CreateActivationRequest& request, const CreateActivationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createActivation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateActivationOutcomeCallable EcsClient::createActivationCallable(const CreateActivationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createActivation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::CreateAutoProvisioningGroupOutcome EcsClient::createAutoProvisioningGroup(const CreateAutoProvisioningGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1527,6 +1599,78 @@ EcsClient::CreateImageOutcomeCallable EcsClient::createImageCallable(const Creat return task->get_future(); } +EcsClient::CreateImageComponentOutcome EcsClient::createImageComponent(const CreateImageComponentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateImageComponentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateImageComponentOutcome(CreateImageComponentResult(outcome.result())); + else + return CreateImageComponentOutcome(outcome.error()); +} + +void EcsClient::createImageComponentAsync(const CreateImageComponentRequest& request, const CreateImageComponentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createImageComponent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateImageComponentOutcomeCallable EcsClient::createImageComponentCallable(const CreateImageComponentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createImageComponent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateImagePipelineOutcome EcsClient::createImagePipeline(const CreateImagePipelineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateImagePipelineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateImagePipelineOutcome(CreateImagePipelineResult(outcome.result())); + else + return CreateImagePipelineOutcome(outcome.error()); +} + +void EcsClient::createImagePipelineAsync(const CreateImagePipelineRequest& request, const CreateImagePipelineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createImagePipeline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateImagePipelineOutcomeCallable EcsClient::createImagePipelineCallable(const CreateImagePipelineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createImagePipeline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::CreateInstanceOutcome EcsClient::createInstance(const CreateInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1995,6 +2139,42 @@ EcsClient::CreateSnapshotOutcomeCallable EcsClient::createSnapshotCallable(const return task->get_future(); } +EcsClient::CreateSnapshotGroupOutcome EcsClient::createSnapshotGroup(const CreateSnapshotGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSnapshotGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSnapshotGroupOutcome(CreateSnapshotGroupResult(outcome.result())); + else + return CreateSnapshotGroupOutcome(outcome.error()); +} + +void EcsClient::createSnapshotGroupAsync(const CreateSnapshotGroupRequest& request, const CreateSnapshotGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSnapshotGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateSnapshotGroupOutcomeCallable EcsClient::createSnapshotGroupCallable(const CreateSnapshotGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSnapshotGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::CreateStorageSetOutcome EcsClient::createStorageSet(const CreateStorageSetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2175,6 +2355,42 @@ EcsClient::DeactivateRouterInterfaceOutcomeCallable EcsClient::deactivateRouterI return task->get_future(); } +EcsClient::DeleteActivationOutcome EcsClient::deleteActivation(const DeleteActivationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteActivationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteActivationOutcome(DeleteActivationResult(outcome.result())); + else + return DeleteActivationOutcome(outcome.error()); +} + +void EcsClient::deleteActivationAsync(const DeleteActivationRequest& request, const DeleteActivationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteActivation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteActivationOutcomeCallable EcsClient::deleteActivationCallable(const DeleteActivationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteActivation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DeleteAutoProvisioningGroupOutcome EcsClient::deleteAutoProvisioningGroup(const DeleteAutoProvisioningGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2607,6 +2823,78 @@ EcsClient::DeleteImageOutcomeCallable EcsClient::deleteImageCallable(const Delet return task->get_future(); } +EcsClient::DeleteImageComponentOutcome EcsClient::deleteImageComponent(const DeleteImageComponentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteImageComponentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteImageComponentOutcome(DeleteImageComponentResult(outcome.result())); + else + return DeleteImageComponentOutcome(outcome.error()); +} + +void EcsClient::deleteImageComponentAsync(const DeleteImageComponentRequest& request, const DeleteImageComponentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteImageComponent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteImageComponentOutcomeCallable EcsClient::deleteImageComponentCallable(const DeleteImageComponentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteImageComponent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteImagePipelineOutcome EcsClient::deleteImagePipeline(const DeleteImagePipelineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteImagePipelineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteImagePipelineOutcome(DeleteImagePipelineResult(outcome.result())); + else + return DeleteImagePipelineOutcome(outcome.error()); +} + +void EcsClient::deleteImagePipelineAsync(const DeleteImagePipelineRequest& request, const DeleteImagePipelineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteImagePipeline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteImagePipelineOutcomeCallable EcsClient::deleteImagePipelineCallable(const DeleteImagePipelineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteImagePipeline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DeleteInstanceOutcome EcsClient::deleteInstance(const DeleteInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3075,6 +3363,42 @@ EcsClient::DeleteSnapshotOutcomeCallable EcsClient::deleteSnapshotCallable(const return task->get_future(); } +EcsClient::DeleteSnapshotGroupOutcome EcsClient::deleteSnapshotGroup(const DeleteSnapshotGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSnapshotGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSnapshotGroupOutcome(DeleteSnapshotGroupResult(outcome.result())); + else + return DeleteSnapshotGroupOutcome(outcome.error()); +} + +void EcsClient::deleteSnapshotGroupAsync(const DeleteSnapshotGroupRequest& request, const DeleteSnapshotGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSnapshotGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteSnapshotGroupOutcomeCallable EcsClient::deleteSnapshotGroupCallable(const DeleteSnapshotGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSnapshotGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DeleteStorageSetOutcome EcsClient::deleteStorageSet(const DeleteStorageSetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3219,6 +3543,42 @@ EcsClient::DeleteVpcOutcomeCallable EcsClient::deleteVpcCallable(const DeleteVpc return task->get_future(); } +EcsClient::DeregisterManagedInstanceOutcome EcsClient::deregisterManagedInstance(const DeregisterManagedInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeregisterManagedInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeregisterManagedInstanceOutcome(DeregisterManagedInstanceResult(outcome.result())); + else + return DeregisterManagedInstanceOutcome(outcome.error()); +} + +void EcsClient::deregisterManagedInstanceAsync(const DeregisterManagedInstanceRequest& request, const DeregisterManagedInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deregisterManagedInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeregisterManagedInstanceOutcomeCallable EcsClient::deregisterManagedInstanceCallable(const DeregisterManagedInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deregisterManagedInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeAccessPointsOutcome EcsClient::describeAccessPoints(const DescribeAccessPointsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3291,6 +3651,42 @@ EcsClient::DescribeAccountAttributesOutcomeCallable EcsClient::describeAccountAt return task->get_future(); } +EcsClient::DescribeActivationsOutcome EcsClient::describeActivations(const DescribeActivationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeActivationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeActivationsOutcome(DescribeActivationsResult(outcome.result())); + else + return DescribeActivationsOutcome(outcome.error()); +} + +void EcsClient::describeActivationsAsync(const DescribeActivationsRequest& request, const DescribeActivationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeActivations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeActivationsOutcomeCallable EcsClient::describeActivationsCallable(const DescribeActivationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeActivations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeAutoProvisioningGroupHistoryOutcome EcsClient::describeAutoProvisioningGroupHistory(const DescribeAutoProvisioningGroupHistoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4407,6 +4803,42 @@ EcsClient::DescribeHpcClustersOutcomeCallable EcsClient::describeHpcClustersCall return task->get_future(); } +EcsClient::DescribeImageComponentsOutcome EcsClient::describeImageComponents(const DescribeImageComponentsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeImageComponentsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeImageComponentsOutcome(DescribeImageComponentsResult(outcome.result())); + else + return DescribeImageComponentsOutcome(outcome.error()); +} + +void EcsClient::describeImageComponentsAsync(const DescribeImageComponentsRequest& request, const DescribeImageComponentsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeImageComponents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeImageComponentsOutcomeCallable EcsClient::describeImageComponentsCallable(const DescribeImageComponentsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeImageComponents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeImageFromFamilyOutcome EcsClient::describeImageFromFamily(const DescribeImageFromFamilyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4443,6 +4875,78 @@ EcsClient::DescribeImageFromFamilyOutcomeCallable EcsClient::describeImageFromFa return task->get_future(); } +EcsClient::DescribeImagePipelineExecutionsOutcome EcsClient::describeImagePipelineExecutions(const DescribeImagePipelineExecutionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeImagePipelineExecutionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeImagePipelineExecutionsOutcome(DescribeImagePipelineExecutionsResult(outcome.result())); + else + return DescribeImagePipelineExecutionsOutcome(outcome.error()); +} + +void EcsClient::describeImagePipelineExecutionsAsync(const DescribeImagePipelineExecutionsRequest& request, const DescribeImagePipelineExecutionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeImagePipelineExecutions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeImagePipelineExecutionsOutcomeCallable EcsClient::describeImagePipelineExecutionsCallable(const DescribeImagePipelineExecutionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeImagePipelineExecutions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeImagePipelinesOutcome EcsClient::describeImagePipelines(const DescribeImagePipelinesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeImagePipelinesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeImagePipelinesOutcome(DescribeImagePipelinesResult(outcome.result())); + else + return DescribeImagePipelinesOutcome(outcome.error()); +} + +void EcsClient::describeImagePipelinesAsync(const DescribeImagePipelinesRequest& request, const DescribeImagePipelinesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeImagePipelines(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeImagePipelinesOutcomeCallable EcsClient::describeImagePipelinesCallable(const DescribeImagePipelinesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeImagePipelines(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeImageSharePermissionOutcome EcsClient::describeImageSharePermission(const DescribeImageSharePermissionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5307,6 +5811,42 @@ EcsClient::DescribeLimitationOutcomeCallable EcsClient::describeLimitationCallab return task->get_future(); } +EcsClient::DescribeManagedInstancesOutcome EcsClient::describeManagedInstances(const DescribeManagedInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeManagedInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeManagedInstancesOutcome(DescribeManagedInstancesResult(outcome.result())); + else + return DescribeManagedInstancesOutcome(outcome.error()); +} + +void EcsClient::describeManagedInstancesAsync(const DescribeManagedInstancesRequest& request, const DescribeManagedInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeManagedInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeManagedInstancesOutcomeCallable EcsClient::describeManagedInstancesCallable(const DescribeManagedInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeManagedInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeNatGatewaysOutcome EcsClient::describeNatGateways(const DescribeNatGatewaysRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5991,6 +6531,42 @@ EcsClient::DescribeSendFileResultsOutcomeCallable EcsClient::describeSendFileRes return task->get_future(); } +EcsClient::DescribeSnapshotGroupsOutcome EcsClient::describeSnapshotGroups(const DescribeSnapshotGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSnapshotGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSnapshotGroupsOutcome(DescribeSnapshotGroupsResult(outcome.result())); + else + return DescribeSnapshotGroupsOutcome(outcome.error()); +} + +void EcsClient::describeSnapshotGroupsAsync(const DescribeSnapshotGroupsRequest& request, const DescribeSnapshotGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSnapshotGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeSnapshotGroupsOutcomeCallable EcsClient::describeSnapshotGroupsCallable(const DescribeSnapshotGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSnapshotGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeSnapshotLinksOutcome EcsClient::describeSnapshotLinks(const DescribeSnapshotLinksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6927,6 +7503,42 @@ EcsClient::DetachNetworkInterfaceOutcomeCallable EcsClient::detachNetworkInterfa return task->get_future(); } +EcsClient::DisableActivationOutcome EcsClient::disableActivation(const DisableActivationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableActivationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableActivationOutcome(DisableActivationResult(outcome.result())); + else + return DisableActivationOutcome(outcome.error()); +} + +void EcsClient::disableActivationAsync(const DisableActivationRequest& request, const DisableActivationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableActivation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DisableActivationOutcomeCallable EcsClient::disableActivationCallable(const DisableActivationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableActivation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::EipFillParamsOutcome EcsClient::eipFillParams(const EipFillParamsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8871,6 +9483,42 @@ EcsClient::ModifyLaunchTemplateDefaultVersionOutcomeCallable EcsClient::modifyLa return task->get_future(); } +EcsClient::ModifyManagedInstanceOutcome EcsClient::modifyManagedInstance(const ModifyManagedInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyManagedInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyManagedInstanceOutcome(ModifyManagedInstanceResult(outcome.result())); + else + return ModifyManagedInstanceOutcome(outcome.error()); +} + +void EcsClient::modifyManagedInstanceAsync(const ModifyManagedInstanceRequest& request, const ModifyManagedInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyManagedInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyManagedInstanceOutcomeCallable EcsClient::modifyManagedInstanceCallable(const ModifyManagedInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyManagedInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::ModifyNetworkInterfaceAttributeOutcome EcsClient::modifyNetworkInterfaceAttribute(const ModifyNetworkInterfaceAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9303,6 +9951,42 @@ EcsClient::ModifySnapshotAttributeOutcomeCallable EcsClient::modifySnapshotAttri return task->get_future(); } +EcsClient::ModifySnapshotGroupOutcome EcsClient::modifySnapshotGroup(const ModifySnapshotGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySnapshotGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySnapshotGroupOutcome(ModifySnapshotGroupResult(outcome.result())); + else + return ModifySnapshotGroupOutcome(outcome.error()); +} + +void EcsClient::modifySnapshotGroupAsync(const ModifySnapshotGroupRequest& request, const ModifySnapshotGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySnapshotGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifySnapshotGroupOutcomeCallable EcsClient::modifySnapshotGroupCallable(const ModifySnapshotGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySnapshotGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::ModifyStorageCapacityUnitAttributeOutcome EcsClient::modifyStorageCapacityUnitAttribute(const ModifyStorageCapacityUnitAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10275,6 +10959,42 @@ EcsClient::ResetDiskOutcomeCallable EcsClient::resetDiskCallable(const ResetDisk return task->get_future(); } +EcsClient::ResetDisksOutcome EcsClient::resetDisks(const ResetDisksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetDisksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetDisksOutcome(ResetDisksResult(outcome.result())); + else + return ResetDisksOutcome(outcome.error()); +} + +void EcsClient::resetDisksAsync(const ResetDisksRequest& request, const ResetDisksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetDisks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ResetDisksOutcomeCallable EcsClient::resetDisksCallable(const ResetDisksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetDisks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::ResizeDiskOutcome EcsClient::resizeDisk(const ResizeDiskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10527,6 +11247,42 @@ EcsClient::StartElasticityAssuranceOutcomeCallable EcsClient::startElasticityAss return task->get_future(); } +EcsClient::StartImagePipelineExecutionOutcome EcsClient::startImagePipelineExecution(const StartImagePipelineExecutionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartImagePipelineExecutionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartImagePipelineExecutionOutcome(StartImagePipelineExecutionResult(outcome.result())); + else + return StartImagePipelineExecutionOutcome(outcome.error()); +} + +void EcsClient::startImagePipelineExecutionAsync(const StartImagePipelineExecutionRequest& request, const StartImagePipelineExecutionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startImagePipelineExecution(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::StartImagePipelineExecutionOutcomeCallable EcsClient::startImagePipelineExecutionCallable(const StartImagePipelineExecutionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startImagePipelineExecution(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::StartInstanceOutcome EcsClient::startInstance(const StartInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ecs/src/model/CancelImagePipelineExecutionRequest.cc b/ecs/src/model/CancelImagePipelineExecutionRequest.cc new file mode 100644 index 000000000..b2a7b4336 --- /dev/null +++ b/ecs/src/model/CancelImagePipelineExecutionRequest.cc @@ -0,0 +1,111 @@ +/* + * 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::CancelImagePipelineExecutionRequest; + +CancelImagePipelineExecutionRequest::CancelImagePipelineExecutionRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CancelImagePipelineExecution") +{ + setMethod(HttpRequest::Method::Post); +} + +CancelImagePipelineExecutionRequest::~CancelImagePipelineExecutionRequest() +{} + +long CancelImagePipelineExecutionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CancelImagePipelineExecutionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CancelImagePipelineExecutionRequest::getExecutionId()const +{ + return executionId_; +} + +void CancelImagePipelineExecutionRequest::setExecutionId(const std::string& executionId) +{ + executionId_ = executionId; + setParameter("ExecutionId", executionId); +} + +std::string CancelImagePipelineExecutionRequest::getRegionId()const +{ + return regionId_; +} + +void CancelImagePipelineExecutionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::vector CancelImagePipelineExecutionRequest::getTemplateTag()const +{ + return templateTag_; +} + +void CancelImagePipelineExecutionRequest::setTemplateTag(const std::vector& templateTag) +{ + templateTag_ = templateTag; + for(int dep1 = 0; dep1!= templateTag.size(); dep1++) { + auto templateTagObj = templateTag.at(dep1); + std::string templateTagObjStr = "TemplateTag." + std::to_string(dep1 + 1); + setParameter(templateTagObjStr + ".Key", templateTagObj.key); + setParameter(templateTagObjStr + ".Value", templateTagObj.value); + } +} + +std::string CancelImagePipelineExecutionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CancelImagePipelineExecutionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CancelImagePipelineExecutionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CancelImagePipelineExecutionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CancelImagePipelineExecutionRequest::getOwnerId()const +{ + return ownerId_; +} + +void CancelImagePipelineExecutionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/CancelImagePipelineExecutionResult.cc b/ecs/src/model/CancelImagePipelineExecutionResult.cc new file mode 100644 index 000000000..d627dfe8b --- /dev/null +++ b/ecs/src/model/CancelImagePipelineExecutionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CancelImagePipelineExecutionResult::CancelImagePipelineExecutionResult() : + ServiceResult() +{} + +CancelImagePipelineExecutionResult::CancelImagePipelineExecutionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelImagePipelineExecutionResult::~CancelImagePipelineExecutionResult() +{} + +void CancelImagePipelineExecutionResult::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/CreateActivationRequest.cc b/ecs/src/model/CreateActivationRequest.cc new file mode 100644 index 000000000..0c33b5a0b --- /dev/null +++ b/ecs/src/model/CreateActivationRequest.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 + +using AlibabaCloud::Ecs::Model::CreateActivationRequest; + +CreateActivationRequest::CreateActivationRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateActivation") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateActivationRequest::~CreateActivationRequest() +{} + +long CreateActivationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateActivationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateActivationRequest::getDescription()const +{ + return description_; +} + +void CreateActivationRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateActivationRequest::getRegionId()const +{ + return regionId_; +} + +void CreateActivationRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int CreateActivationRequest::getInstanceCount()const +{ + return instanceCount_; +} + +void CreateActivationRequest::setInstanceCount(int instanceCount) +{ + instanceCount_ = instanceCount; + setParameter("InstanceCount", std::to_string(instanceCount)); +} + +std::string CreateActivationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateActivationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateActivationRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateActivationRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CreateActivationRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateActivationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateActivationRequest::getInstanceName()const +{ + return instanceName_; +} + +void CreateActivationRequest::setInstanceName(const std::string& instanceName) +{ + instanceName_ = instanceName; + setParameter("InstanceName", instanceName); +} + +long CreateActivationRequest::getTimeToLiveInHours()const +{ + return timeToLiveInHours_; +} + +void CreateActivationRequest::setTimeToLiveInHours(long timeToLiveInHours) +{ + timeToLiveInHours_ = timeToLiveInHours; + setParameter("TimeToLiveInHours", std::to_string(timeToLiveInHours)); +} + +std::string CreateActivationRequest::getIpAddressRange()const +{ + return ipAddressRange_; +} + +void CreateActivationRequest::setIpAddressRange(const std::string& ipAddressRange) +{ + ipAddressRange_ = ipAddressRange; + setParameter("IpAddressRange", ipAddressRange); +} + diff --git a/ecs/src/model/CreateActivationResult.cc b/ecs/src/model/CreateActivationResult.cc new file mode 100644 index 000000000..2f0826162 --- /dev/null +++ b/ecs/src/model/CreateActivationResult.cc @@ -0,0 +1,58 @@ +/* + * 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; + +CreateActivationResult::CreateActivationResult() : + ServiceResult() +{} + +CreateActivationResult::CreateActivationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateActivationResult::~CreateActivationResult() +{} + +void CreateActivationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ActivationId"].isNull()) + activationId_ = value["ActivationId"].asString(); + if(!value["ActivationCode"].isNull()) + activationCode_ = value["ActivationCode"].asString(); + +} + +std::string CreateActivationResult::getActivationId()const +{ + return activationId_; +} + +std::string CreateActivationResult::getActivationCode()const +{ + return activationCode_; +} + diff --git a/ecs/src/model/CreateDiskResult.cc b/ecs/src/model/CreateDiskResult.cc index 4b6842855..66e04776f 100644 --- a/ecs/src/model/CreateDiskResult.cc +++ b/ecs/src/model/CreateDiskResult.cc @@ -41,9 +41,16 @@ void CreateDiskResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["DiskId"].isNull()) diskId_ = value["DiskId"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); } +std::string CreateDiskResult::getOrderId()const +{ + return orderId_; +} + std::string CreateDiskResult::getDiskId()const { return diskId_; diff --git a/ecs/src/model/CreateImageComponentRequest.cc b/ecs/src/model/CreateImageComponentRequest.cc new file mode 100644 index 000000000..532d468d6 --- /dev/null +++ b/ecs/src/model/CreateImageComponentRequest.cc @@ -0,0 +1,177 @@ +/* + * 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::CreateImageComponentRequest; + +CreateImageComponentRequest::CreateImageComponentRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateImageComponent") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateImageComponentRequest::~CreateImageComponentRequest() +{} + +long CreateImageComponentRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateImageComponentRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateImageComponentRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateImageComponentRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateImageComponentRequest::getDescription()const +{ + return description_; +} + +void CreateImageComponentRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateImageComponentRequest::getSystemType()const +{ + return systemType_; +} + +void CreateImageComponentRequest::setSystemType(const std::string& systemType) +{ + systemType_ = systemType; + setParameter("SystemType", systemType); +} + +std::string CreateImageComponentRequest::getContent()const +{ + return content_; +} + +void CreateImageComponentRequest::setContent(const std::string& content) +{ + content_ = content; + setParameter("Content", content); +} + +std::string CreateImageComponentRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void CreateImageComponentRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string CreateImageComponentRequest::getRegionId()const +{ + return regionId_; +} + +void CreateImageComponentRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::vector CreateImageComponentRequest::getTag()const +{ + return tag_; +} + +void CreateImageComponentRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + +std::string CreateImageComponentRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateImageComponentRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateImageComponentRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateImageComponentRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CreateImageComponentRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateImageComponentRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateImageComponentRequest::getComponentType()const +{ + return componentType_; +} + +void CreateImageComponentRequest::setComponentType(const std::string& componentType) +{ + componentType_ = componentType; + setParameter("ComponentType", componentType); +} + +std::string CreateImageComponentRequest::getName()const +{ + return name_; +} + +void CreateImageComponentRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/ecs/src/model/CreateImageComponentResult.cc b/ecs/src/model/CreateImageComponentResult.cc new file mode 100644 index 000000000..fb4fd7b01 --- /dev/null +++ b/ecs/src/model/CreateImageComponentResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateImageComponentResult::CreateImageComponentResult() : + ServiceResult() +{} + +CreateImageComponentResult::CreateImageComponentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateImageComponentResult::~CreateImageComponentResult() +{} + +void CreateImageComponentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ImageComponentId"].isNull()) + imageComponentId_ = value["ImageComponentId"].asString(); + +} + +std::string CreateImageComponentResult::getImageComponentId()const +{ + return imageComponentId_; +} + diff --git a/ecs/src/model/CreateImagePipelineRequest.cc b/ecs/src/model/CreateImagePipelineRequest.cc new file mode 100644 index 000000000..8e1ca4a94 --- /dev/null +++ b/ecs/src/model/CreateImagePipelineRequest.cc @@ -0,0 +1,269 @@ +/* + * 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::CreateImagePipelineRequest; + +CreateImagePipelineRequest::CreateImagePipelineRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateImagePipeline") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateImagePipelineRequest::~CreateImagePipelineRequest() +{} + +std::string CreateImagePipelineRequest::getBaseImageType()const +{ + return baseImageType_; +} + +void CreateImagePipelineRequest::setBaseImageType(const std::string& baseImageType) +{ + baseImageType_ = baseImageType; + setParameter("BaseImageType", baseImageType); +} + +long CreateImagePipelineRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateImagePipelineRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateImagePipelineRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateImagePipelineRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::vector CreateImagePipelineRequest::getToRegionId()const +{ + return toRegionId_; +} + +void CreateImagePipelineRequest::setToRegionId(const std::vector& toRegionId) +{ + toRegionId_ = toRegionId; + for(int dep1 = 0; dep1!= toRegionId.size(); dep1++) { + setParameter("ToRegionId."+ std::to_string(dep1), toRegionId.at(dep1)); + } +} + +int CreateImagePipelineRequest::getInternetMaxBandwidthOut()const +{ + return internetMaxBandwidthOut_; +} + +void CreateImagePipelineRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) +{ + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut)); +} + +std::string CreateImagePipelineRequest::getDescription()const +{ + return description_; +} + +void CreateImagePipelineRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateImagePipelineRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void CreateImagePipelineRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string CreateImagePipelineRequest::getRegionId()const +{ + return regionId_; +} + +void CreateImagePipelineRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateImagePipelineRequest::getImageName()const +{ + return imageName_; +} + +void CreateImagePipelineRequest::setImageName(const std::string& imageName) +{ + imageName_ = imageName; + setParameter("ImageName", imageName); +} + +int CreateImagePipelineRequest::getSystemDiskSize()const +{ + return systemDiskSize_; +} + +void CreateImagePipelineRequest::setSystemDiskSize(int systemDiskSize) +{ + systemDiskSize_ = systemDiskSize; + setParameter("SystemDiskSize", std::to_string(systemDiskSize)); +} + +std::string CreateImagePipelineRequest::getInstanceType()const +{ + return instanceType_; +} + +void CreateImagePipelineRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +std::vector CreateImagePipelineRequest::getTag()const +{ + return tag_; +} + +void CreateImagePipelineRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + +std::string CreateImagePipelineRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateImagePipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateImagePipelineRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateImagePipelineRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CreateImagePipelineRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateImagePipelineRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateImagePipelineRequest::getBaseImage()const +{ + return baseImage_; +} + +void CreateImagePipelineRequest::setBaseImage(const std::string& baseImage) +{ + baseImage_ = baseImage; + setParameter("BaseImage", baseImage); +} + +std::string CreateImagePipelineRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateImagePipelineRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::vector CreateImagePipelineRequest::getAddAccount()const +{ + return addAccount_; +} + +void CreateImagePipelineRequest::setAddAccount(const std::vector& addAccount) +{ + addAccount_ = addAccount; + for(int dep1 = 0; dep1!= addAccount.size(); dep1++) { + setParameter("AddAccount."+ std::to_string(dep1), std::to_string(addAccount.at(dep1))); + } +} + +bool CreateImagePipelineRequest::getDeleteInstanceOnFailure()const +{ + return deleteInstanceOnFailure_; +} + +void CreateImagePipelineRequest::setDeleteInstanceOnFailure(bool deleteInstanceOnFailure) +{ + deleteInstanceOnFailure_ = deleteInstanceOnFailure; + setParameter("DeleteInstanceOnFailure", deleteInstanceOnFailure ? "true" : "false"); +} + +std::string CreateImagePipelineRequest::getName()const +{ + return name_; +} + +void CreateImagePipelineRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateImagePipelineRequest::getBuildContent()const +{ + return buildContent_; +} + +void CreateImagePipelineRequest::setBuildContent(const std::string& buildContent) +{ + buildContent_ = buildContent; + setParameter("BuildContent", buildContent); +} + diff --git a/ecs/src/model/CreateImagePipelineResult.cc b/ecs/src/model/CreateImagePipelineResult.cc new file mode 100644 index 000000000..e2ba0a239 --- /dev/null +++ b/ecs/src/model/CreateImagePipelineResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateImagePipelineResult::CreateImagePipelineResult() : + ServiceResult() +{} + +CreateImagePipelineResult::CreateImagePipelineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateImagePipelineResult::~CreateImagePipelineResult() +{} + +void CreateImagePipelineResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ImagePipelineId"].isNull()) + imagePipelineId_ = value["ImagePipelineId"].asString(); + +} + +std::string CreateImagePipelineResult::getImagePipelineId()const +{ + return imagePipelineId_; +} + diff --git a/ecs/src/model/CreateSnapshotGroupRequest.cc b/ecs/src/model/CreateSnapshotGroupRequest.cc new file mode 100644 index 000000000..ef9aa32d8 --- /dev/null +++ b/ecs/src/model/CreateSnapshotGroupRequest.cc @@ -0,0 +1,152 @@ +/* + * 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::CreateSnapshotGroupRequest; + +CreateSnapshotGroupRequest::CreateSnapshotGroupRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateSnapshotGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateSnapshotGroupRequest::~CreateSnapshotGroupRequest() +{} + +long CreateSnapshotGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateSnapshotGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector CreateSnapshotGroupRequest::getExcludeDiskId()const +{ + return excludeDiskId_; +} + +void CreateSnapshotGroupRequest::setExcludeDiskId(const std::vector& excludeDiskId) +{ + excludeDiskId_ = excludeDiskId; + for(int dep1 = 0; dep1!= excludeDiskId.size(); dep1++) { + setParameter("ExcludeDiskId."+ std::to_string(dep1), excludeDiskId.at(dep1)); + } +} + +bool CreateSnapshotGroupRequest::getInstantAccess()const +{ + return instantAccess_; +} + +void CreateSnapshotGroupRequest::setInstantAccess(bool instantAccess) +{ + instantAccess_ = instantAccess; + setParameter("InstantAccess", instantAccess ? "true" : "false"); +} + +std::string CreateSnapshotGroupRequest::getDescription()const +{ + return description_; +} + +void CreateSnapshotGroupRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +int CreateSnapshotGroupRequest::getInstantAccessRetentionDays()const +{ + return instantAccessRetentionDays_; +} + +void CreateSnapshotGroupRequest::setInstantAccessRetentionDays(int instantAccessRetentionDays) +{ + instantAccessRetentionDays_ = instantAccessRetentionDays; + setParameter("InstantAccessRetentionDays", std::to_string(instantAccessRetentionDays)); +} + +std::string CreateSnapshotGroupRequest::getRegionId()const +{ + return regionId_; +} + +void CreateSnapshotGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateSnapshotGroupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateSnapshotGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateSnapshotGroupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateSnapshotGroupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CreateSnapshotGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateSnapshotGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateSnapshotGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateSnapshotGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string CreateSnapshotGroupRequest::getName()const +{ + return name_; +} + +void CreateSnapshotGroupRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/ecs/src/model/CreateSnapshotGroupResult.cc b/ecs/src/model/CreateSnapshotGroupResult.cc new file mode 100644 index 000000000..66ab4206b --- /dev/null +++ b/ecs/src/model/CreateSnapshotGroupResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateSnapshotGroupResult::CreateSnapshotGroupResult() : + ServiceResult() +{} + +CreateSnapshotGroupResult::CreateSnapshotGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSnapshotGroupResult::~CreateSnapshotGroupResult() +{} + +void CreateSnapshotGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["SnapshotGroupId"].isNull()) + snapshotGroupId_ = value["SnapshotGroupId"].asString(); + +} + +std::string CreateSnapshotGroupResult::getSnapshotGroupId()const +{ + return snapshotGroupId_; +} + diff --git a/ecs/src/model/DeleteActivationRequest.cc b/ecs/src/model/DeleteActivationRequest.cc new file mode 100644 index 000000000..facd9ed80 --- /dev/null +++ b/ecs/src/model/DeleteActivationRequest.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 + +using AlibabaCloud::Ecs::Model::DeleteActivationRequest; + +DeleteActivationRequest::DeleteActivationRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteActivation") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteActivationRequest::~DeleteActivationRequest() +{} + +long DeleteActivationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteActivationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteActivationRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteActivationRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteActivationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteActivationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteActivationRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteActivationRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteActivationRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteActivationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteActivationRequest::getActivationId()const +{ + return activationId_; +} + +void DeleteActivationRequest::setActivationId(const std::string& activationId) +{ + activationId_ = activationId; + setParameter("ActivationId", activationId); +} + diff --git a/ecs/src/model/DeleteActivationResult.cc b/ecs/src/model/DeleteActivationResult.cc new file mode 100644 index 000000000..c8e9c85a1 --- /dev/null +++ b/ecs/src/model/DeleteActivationResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteActivationResult::DeleteActivationResult() : + ServiceResult() +{} + +DeleteActivationResult::DeleteActivationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteActivationResult::~DeleteActivationResult() +{} + +void DeleteActivationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto activationNode = value["Activation"]; + if(!activationNode["ActivationId"].isNull()) + activation_.activationId = activationNode["ActivationId"].asString(); + if(!activationNode["InstanceName"].isNull()) + activation_.instanceName = activationNode["InstanceName"].asString(); + if(!activationNode["Description"].isNull()) + activation_.description = activationNode["Description"].asString(); + if(!activationNode["InstanceCount"].isNull()) + activation_.instanceCount = std::stoi(activationNode["InstanceCount"].asString()); + if(!activationNode["TimeToLiveInHours"].isNull()) + activation_.timeToLiveInHours = std::stol(activationNode["TimeToLiveInHours"].asString()); + if(!activationNode["IpAddressRange"].isNull()) + activation_.ipAddressRange = activationNode["IpAddressRange"].asString(); + if(!activationNode["RegisteredCount"].isNull()) + activation_.registeredCount = std::stoi(activationNode["RegisteredCount"].asString()); + if(!activationNode["DeregisteredCount"].isNull()) + activation_.deregisteredCount = std::stoi(activationNode["DeregisteredCount"].asString()); + if(!activationNode["CreationTime"].isNull()) + activation_.creationTime = activationNode["CreationTime"].asString(); + +} + +DeleteActivationResult::Activation DeleteActivationResult::getActivation()const +{ + return activation_; +} + diff --git a/ecs/src/model/DeleteImageComponentRequest.cc b/ecs/src/model/DeleteImageComponentRequest.cc new file mode 100644 index 000000000..3e239f9a5 --- /dev/null +++ b/ecs/src/model/DeleteImageComponentRequest.cc @@ -0,0 +1,111 @@ +/* + * 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::DeleteImageComponentRequest; + +DeleteImageComponentRequest::DeleteImageComponentRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteImageComponent") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteImageComponentRequest::~DeleteImageComponentRequest() +{} + +long DeleteImageComponentRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteImageComponentRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteImageComponentRequest::getImageComponentId()const +{ + return imageComponentId_; +} + +void DeleteImageComponentRequest::setImageComponentId(const std::string& imageComponentId) +{ + imageComponentId_ = imageComponentId; + setParameter("ImageComponentId", imageComponentId); +} + +std::string DeleteImageComponentRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteImageComponentRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::vector DeleteImageComponentRequest::getTemplateTag()const +{ + return templateTag_; +} + +void DeleteImageComponentRequest::setTemplateTag(const std::vector& templateTag) +{ + templateTag_ = templateTag; + for(int dep1 = 0; dep1!= templateTag.size(); dep1++) { + auto templateTagObj = templateTag.at(dep1); + std::string templateTagObjStr = "TemplateTag." + std::to_string(dep1 + 1); + setParameter(templateTagObjStr + ".Key", templateTagObj.key); + setParameter(templateTagObjStr + ".Value", templateTagObj.value); + } +} + +std::string DeleteImageComponentRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteImageComponentRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteImageComponentRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteImageComponentRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteImageComponentRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteImageComponentRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteImageComponentResult.cc b/ecs/src/model/DeleteImageComponentResult.cc new file mode 100644 index 000000000..a58f05969 --- /dev/null +++ b/ecs/src/model/DeleteImageComponentResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteImageComponentResult::DeleteImageComponentResult() : + ServiceResult() +{} + +DeleteImageComponentResult::DeleteImageComponentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteImageComponentResult::~DeleteImageComponentResult() +{} + +void DeleteImageComponentResult::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/DeleteImagePipelineRequest.cc b/ecs/src/model/DeleteImagePipelineRequest.cc new file mode 100644 index 000000000..a67d6197a --- /dev/null +++ b/ecs/src/model/DeleteImagePipelineRequest.cc @@ -0,0 +1,111 @@ +/* + * 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::DeleteImagePipelineRequest; + +DeleteImagePipelineRequest::DeleteImagePipelineRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteImagePipeline") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteImagePipelineRequest::~DeleteImagePipelineRequest() +{} + +std::string DeleteImagePipelineRequest::getImagePipelineId()const +{ + return imagePipelineId_; +} + +void DeleteImagePipelineRequest::setImagePipelineId(const std::string& imagePipelineId) +{ + imagePipelineId_ = imagePipelineId; + setParameter("ImagePipelineId", imagePipelineId); +} + +long DeleteImagePipelineRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteImagePipelineRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteImagePipelineRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteImagePipelineRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::vector DeleteImagePipelineRequest::getTemplateTag()const +{ + return templateTag_; +} + +void DeleteImagePipelineRequest::setTemplateTag(const std::vector& templateTag) +{ + templateTag_ = templateTag; + for(int dep1 = 0; dep1!= templateTag.size(); dep1++) { + auto templateTagObj = templateTag.at(dep1); + std::string templateTagObjStr = "TemplateTag." + std::to_string(dep1 + 1); + setParameter(templateTagObjStr + ".Key", templateTagObj.key); + setParameter(templateTagObjStr + ".Value", templateTagObj.value); + } +} + +std::string DeleteImagePipelineRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteImagePipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteImagePipelineRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteImagePipelineRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteImagePipelineRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteImagePipelineRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteImagePipelineResult.cc b/ecs/src/model/DeleteImagePipelineResult.cc new file mode 100644 index 000000000..18a3d06c0 --- /dev/null +++ b/ecs/src/model/DeleteImagePipelineResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteImagePipelineResult::DeleteImagePipelineResult() : + ServiceResult() +{} + +DeleteImagePipelineResult::DeleteImagePipelineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteImagePipelineResult::~DeleteImagePipelineResult() +{} + +void DeleteImagePipelineResult::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/DeleteSnapshotGroupRequest.cc b/ecs/src/model/DeleteSnapshotGroupRequest.cc new file mode 100644 index 000000000..6cd08c8db --- /dev/null +++ b/ecs/src/model/DeleteSnapshotGroupRequest.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 + +using AlibabaCloud::Ecs::Model::DeleteSnapshotGroupRequest; + +DeleteSnapshotGroupRequest::DeleteSnapshotGroupRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteSnapshotGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteSnapshotGroupRequest::~DeleteSnapshotGroupRequest() +{} + +long DeleteSnapshotGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteSnapshotGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteSnapshotGroupRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteSnapshotGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteSnapshotGroupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteSnapshotGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteSnapshotGroupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteSnapshotGroupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteSnapshotGroupRequest::getSnapshotGroupId()const +{ + return snapshotGroupId_; +} + +void DeleteSnapshotGroupRequest::setSnapshotGroupId(const std::string& snapshotGroupId) +{ + snapshotGroupId_ = snapshotGroupId; + setParameter("SnapshotGroupId", snapshotGroupId); +} + +long DeleteSnapshotGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteSnapshotGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteSnapshotGroupResult.cc b/ecs/src/model/DeleteSnapshotGroupResult.cc new file mode 100644 index 000000000..d509ab41b --- /dev/null +++ b/ecs/src/model/DeleteSnapshotGroupResult.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 +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteSnapshotGroupResult::DeleteSnapshotGroupResult() : + ServiceResult() +{} + +DeleteSnapshotGroupResult::DeleteSnapshotGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSnapshotGroupResult::~DeleteSnapshotGroupResult() +{} + +void DeleteSnapshotGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allOperationProgressSetNode = value["OperationProgressSet"]["OperationProgress"]; + for (auto valueOperationProgressSetOperationProgress : allOperationProgressSetNode) + { + OperationProgress operationProgressSetObject; + if(!valueOperationProgressSetOperationProgress["OperationStatus"].isNull()) + operationProgressSetObject.operationStatus = valueOperationProgressSetOperationProgress["OperationStatus"].asString(); + if(!valueOperationProgressSetOperationProgress["ErrorCode"].isNull()) + operationProgressSetObject.errorCode = valueOperationProgressSetOperationProgress["ErrorCode"].asString(); + if(!valueOperationProgressSetOperationProgress["ErrorMsg"].isNull()) + operationProgressSetObject.errorMsg = valueOperationProgressSetOperationProgress["ErrorMsg"].asString(); + auto allRelatedItemSetNode = valueOperationProgressSetOperationProgress["RelatedItemSet"]["RelatedItem"]; + for (auto valueOperationProgressSetOperationProgressRelatedItemSetRelatedItem : allRelatedItemSetNode) + { + OperationProgress::RelatedItem relatedItemSetObject; + if(!valueOperationProgressSetOperationProgressRelatedItemSetRelatedItem["Name"].isNull()) + relatedItemSetObject.name = valueOperationProgressSetOperationProgressRelatedItemSetRelatedItem["Name"].asString(); + if(!valueOperationProgressSetOperationProgressRelatedItemSetRelatedItem["Value"].isNull()) + relatedItemSetObject.value = valueOperationProgressSetOperationProgressRelatedItemSetRelatedItem["Value"].asString(); + operationProgressSetObject.relatedItemSet.push_back(relatedItemSetObject); + } + operationProgressSet_.push_back(operationProgressSetObject); + } + +} + +std::vector DeleteSnapshotGroupResult::getOperationProgressSet()const +{ + return operationProgressSet_; +} + diff --git a/ecs/src/model/DeregisterManagedInstanceRequest.cc b/ecs/src/model/DeregisterManagedInstanceRequest.cc new file mode 100644 index 000000000..2a357b27c --- /dev/null +++ b/ecs/src/model/DeregisterManagedInstanceRequest.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 + +using AlibabaCloud::Ecs::Model::DeregisterManagedInstanceRequest; + +DeregisterManagedInstanceRequest::DeregisterManagedInstanceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeregisterManagedInstance") +{ + setMethod(HttpRequest::Method::Post); +} + +DeregisterManagedInstanceRequest::~DeregisterManagedInstanceRequest() +{} + +long DeregisterManagedInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeregisterManagedInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeregisterManagedInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void DeregisterManagedInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeregisterManagedInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeregisterManagedInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeregisterManagedInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeregisterManagedInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeregisterManagedInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeregisterManagedInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeregisterManagedInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeregisterManagedInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/ecs/src/model/DeregisterManagedInstanceResult.cc b/ecs/src/model/DeregisterManagedInstanceResult.cc new file mode 100644 index 000000000..2a77a0423 --- /dev/null +++ b/ecs/src/model/DeregisterManagedInstanceResult.cc @@ -0,0 +1,76 @@ +/* + * 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; + +DeregisterManagedInstanceResult::DeregisterManagedInstanceResult() : + ServiceResult() +{} + +DeregisterManagedInstanceResult::DeregisterManagedInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeregisterManagedInstanceResult::~DeregisterManagedInstanceResult() +{} + +void DeregisterManagedInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto instanceNode = value["Instance"]; + if(!instanceNode["InstanceId"].isNull()) + instance_.instanceId = instanceNode["InstanceId"].asString(); + if(!instanceNode["InstanceName"].isNull()) + instance_.instanceName = instanceNode["InstanceName"].asString(); + if(!instanceNode["ActivationId"].isNull()) + instance_.activationId = instanceNode["ActivationId"].asString(); + if(!instanceNode["Hostname"].isNull()) + instance_.hostname = instanceNode["Hostname"].asString(); + if(!instanceNode["MachineId"].isNull()) + instance_.machineId = instanceNode["MachineId"].asString(); + if(!instanceNode["OsType"].isNull()) + instance_.osType = instanceNode["OsType"].asString(); + if(!instanceNode["OsVersion"].isNull()) + instance_.osVersion = instanceNode["OsVersion"].asString(); + if(!instanceNode["IntranetIp"].isNull()) + instance_.intranetIp = instanceNode["IntranetIp"].asString(); + if(!instanceNode["InternetIp"].isNull()) + instance_.internetIp = instanceNode["InternetIp"].asString(); + if(!instanceNode["AgentVersion"].isNull()) + instance_.agentVersion = instanceNode["AgentVersion"].asString(); + if(!instanceNode["RegistrationTime"].isNull()) + instance_.registrationTime = instanceNode["RegistrationTime"].asString(); + if(!instanceNode["InvocationCount"].isNull()) + instance_.invocationCount = std::stol(instanceNode["InvocationCount"].asString()); + if(!instanceNode["LastInvokedTime"].isNull()) + instance_.lastInvokedTime = instanceNode["LastInvokedTime"].asString(); + +} + +DeregisterManagedInstanceResult::Instance DeregisterManagedInstanceResult::getInstance()const +{ + return instance_; +} + diff --git a/ecs/src/model/DescribeActivationsRequest.cc b/ecs/src/model/DescribeActivationsRequest.cc new file mode 100644 index 000000000..43755b1b4 --- /dev/null +++ b/ecs/src/model/DescribeActivationsRequest.cc @@ -0,0 +1,128 @@ +/* + * 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::DescribeActivationsRequest; + +DescribeActivationsRequest::DescribeActivationsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeActivations") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeActivationsRequest::~DescribeActivationsRequest() +{} + +long DescribeActivationsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeActivationsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeActivationsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeActivationsRequest::setPageNumber(long pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeActivationsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeActivationsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long DescribeActivationsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeActivationsRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeActivationsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeActivationsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeActivationsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeActivationsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeActivationsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeActivationsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeActivationsRequest::getInstanceName()const +{ + return instanceName_; +} + +void DescribeActivationsRequest::setInstanceName(const std::string& instanceName) +{ + instanceName_ = instanceName; + setParameter("InstanceName", instanceName); +} + +std::string DescribeActivationsRequest::getActivationId()const +{ + return activationId_; +} + +void DescribeActivationsRequest::setActivationId(const std::string& activationId) +{ + activationId_ = activationId; + setParameter("ActivationId", activationId); +} + diff --git a/ecs/src/model/DescribeActivationsResult.cc b/ecs/src/model/DescribeActivationsResult.cc new file mode 100644 index 000000000..92424fdcc --- /dev/null +++ b/ecs/src/model/DescribeActivationsResult.cc @@ -0,0 +1,96 @@ +/* + * 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; + +DescribeActivationsResult::DescribeActivationsResult() : + ServiceResult() +{} + +DescribeActivationsResult::DescribeActivationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeActivationsResult::~DescribeActivationsResult() +{} + +void DescribeActivationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allActivationListNode = value["ActivationList"]["Activation"]; + for (auto valueActivationListActivation : allActivationListNode) + { + Activation activationListObject; + if(!valueActivationListActivation["ActivationId"].isNull()) + activationListObject.activationId = valueActivationListActivation["ActivationId"].asString(); + if(!valueActivationListActivation["InstanceName"].isNull()) + activationListObject.instanceName = valueActivationListActivation["InstanceName"].asString(); + if(!valueActivationListActivation["Description"].isNull()) + activationListObject.description = valueActivationListActivation["Description"].asString(); + if(!valueActivationListActivation["InstanceCount"].isNull()) + activationListObject.instanceCount = std::stoi(valueActivationListActivation["InstanceCount"].asString()); + if(!valueActivationListActivation["TimeToLiveInHours"].isNull()) + activationListObject.timeToLiveInHours = std::stol(valueActivationListActivation["TimeToLiveInHours"].asString()); + if(!valueActivationListActivation["IpAddressRange"].isNull()) + activationListObject.ipAddressRange = valueActivationListActivation["IpAddressRange"].asString(); + if(!valueActivationListActivation["RegisteredCount"].isNull()) + activationListObject.registeredCount = std::stoi(valueActivationListActivation["RegisteredCount"].asString()); + if(!valueActivationListActivation["DeregisteredCount"].isNull()) + activationListObject.deregisteredCount = std::stoi(valueActivationListActivation["DeregisteredCount"].asString()); + if(!valueActivationListActivation["Disabled"].isNull()) + activationListObject.disabled = valueActivationListActivation["Disabled"].asString() == "true"; + if(!valueActivationListActivation["CreationTime"].isNull()) + activationListObject.creationTime = valueActivationListActivation["CreationTime"].asString(); + activationList_.push_back(activationListObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + +} + +long DescribeActivationsResult::getTotalCount()const +{ + return totalCount_; +} + +long DescribeActivationsResult::getPageSize()const +{ + return pageSize_; +} + +long DescribeActivationsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeActivationsResult::getActivationList()const +{ + return activationList_; +} + diff --git a/ecs/src/model/DescribeCommandsRequest.cc b/ecs/src/model/DescribeCommandsRequest.cc index 77d92d4ef..4eb1082ec 100644 --- a/ecs/src/model/DescribeCommandsRequest.cc +++ b/ecs/src/model/DescribeCommandsRequest.cc @@ -93,6 +93,17 @@ void DescribeCommandsRequest::setRegionId(const std::string& regionId) setParameter("RegionId", regionId); } +std::string DescribeCommandsRequest::getProvider()const +{ + return provider_; +} + +void DescribeCommandsRequest::setProvider(const std::string& provider) +{ + provider_ = provider; + setParameter("Provider", provider); +} + std::string DescribeCommandsRequest::getContentEncoding()const { return contentEncoding_; diff --git a/ecs/src/model/DescribeCommandsResult.cc b/ecs/src/model/DescribeCommandsResult.cc index b05fd642d..ea8e4c476 100644 --- a/ecs/src/model/DescribeCommandsResult.cc +++ b/ecs/src/model/DescribeCommandsResult.cc @@ -49,6 +49,14 @@ void DescribeCommandsResult::parse(const std::string &payload) commandsObject.name = valueCommandsCommand["Name"].asString(); if(!valueCommandsCommand["Type"].isNull()) commandsObject.type = valueCommandsCommand["Type"].asString(); + if(!valueCommandsCommand["Version"].isNull()) + commandsObject.version = std::stoi(valueCommandsCommand["Version"].asString()); + if(!valueCommandsCommand["Latest"].isNull()) + commandsObject.latest = valueCommandsCommand["Latest"].asString() == "true"; + if(!valueCommandsCommand["Provider"].isNull()) + commandsObject.provider = valueCommandsCommand["Provider"].asString(); + if(!valueCommandsCommand["Category"].isNull()) + commandsObject.category = valueCommandsCommand["Category"].asString(); if(!valueCommandsCommand["Description"].isNull()) commandsObject.description = valueCommandsCommand["Description"].asString(); if(!valueCommandsCommand["CommandContent"].isNull()) diff --git a/ecs/src/model/DescribeImageComponentsRequest.cc b/ecs/src/model/DescribeImageComponentsRequest.cc new file mode 100644 index 000000000..3047e0a21 --- /dev/null +++ b/ecs/src/model/DescribeImageComponentsRequest.cc @@ -0,0 +1,157 @@ +/* + * 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::DescribeImageComponentsRequest; + +DescribeImageComponentsRequest::DescribeImageComponentsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeImageComponents") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeImageComponentsRequest::~DescribeImageComponentsRequest() +{} + +long DescribeImageComponentsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeImageComponentsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector DescribeImageComponentsRequest::getImageComponentId()const +{ + return imageComponentId_; +} + +void DescribeImageComponentsRequest::setImageComponentId(const std::vector& imageComponentId) +{ + imageComponentId_ = imageComponentId; + for(int dep1 = 0; dep1!= imageComponentId.size(); dep1++) { + setParameter("ImageComponentId."+ std::to_string(dep1), imageComponentId.at(dep1)); + } +} + +std::string DescribeImageComponentsRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeImageComponentsRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeImageComponentsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeImageComponentsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeImageComponentsRequest::getNextToken()const +{ + return nextToken_; +} + +void DescribeImageComponentsRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +std::vector DescribeImageComponentsRequest::getTag()const +{ + return tag_; +} + +void DescribeImageComponentsRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + +std::string DescribeImageComponentsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeImageComponentsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeImageComponentsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeImageComponentsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeImageComponentsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeImageComponentsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeImageComponentsRequest::getName()const +{ + return name_; +} + +void DescribeImageComponentsRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +int DescribeImageComponentsRequest::getMaxResults()const +{ + return maxResults_; +} + +void DescribeImageComponentsRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + diff --git a/ecs/src/model/DescribeImageComponentsResult.cc b/ecs/src/model/DescribeImageComponentsResult.cc new file mode 100644 index 000000000..3cd9ba460 --- /dev/null +++ b/ecs/src/model/DescribeImageComponentsResult.cc @@ -0,0 +1,102 @@ +/* + * 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; + +DescribeImageComponentsResult::DescribeImageComponentsResult() : + ServiceResult() +{} + +DescribeImageComponentsResult::DescribeImageComponentsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeImageComponentsResult::~DescribeImageComponentsResult() +{} + +void DescribeImageComponentsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImageComponentNode = value["ImageComponent"]["ImageComponentSet"]; + for (auto valueImageComponentImageComponentSet : allImageComponentNode) + { + ImageComponentSet imageComponentObject; + if(!valueImageComponentImageComponentSet["CreationTime"].isNull()) + imageComponentObject.creationTime = valueImageComponentImageComponentSet["CreationTime"].asString(); + if(!valueImageComponentImageComponentSet["ImageComponentId"].isNull()) + imageComponentObject.imageComponentId = valueImageComponentImageComponentSet["ImageComponentId"].asString(); + if(!valueImageComponentImageComponentSet["Name"].isNull()) + imageComponentObject.name = valueImageComponentImageComponentSet["Name"].asString(); + if(!valueImageComponentImageComponentSet["Description"].isNull()) + imageComponentObject.description = valueImageComponentImageComponentSet["Description"].asString(); + if(!valueImageComponentImageComponentSet["SystemType"].isNull()) + imageComponentObject.systemType = valueImageComponentImageComponentSet["SystemType"].asString(); + if(!valueImageComponentImageComponentSet["ComponentType"].isNull()) + imageComponentObject.componentType = valueImageComponentImageComponentSet["ComponentType"].asString(); + if(!valueImageComponentImageComponentSet["Content"].isNull()) + imageComponentObject.content = valueImageComponentImageComponentSet["Content"].asString(); + if(!valueImageComponentImageComponentSet["ResourceGroupId"].isNull()) + imageComponentObject.resourceGroupId = valueImageComponentImageComponentSet["ResourceGroupId"].asString(); + auto allTagsNode = valueImageComponentImageComponentSet["Tags"]["Tag"]; + for (auto valueImageComponentImageComponentSetTagsTag : allTagsNode) + { + ImageComponentSet::Tag tagsObject; + if(!valueImageComponentImageComponentSetTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueImageComponentImageComponentSetTagsTag["TagKey"].asString(); + if(!valueImageComponentImageComponentSetTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valueImageComponentImageComponentSetTagsTag["TagValue"].asString(); + imageComponentObject.tags.push_back(tagsObject); + } + imageComponent_.push_back(imageComponentObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +int DescribeImageComponentsResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeImageComponentsResult::getImageComponent()const +{ + return imageComponent_; +} + +std::string DescribeImageComponentsResult::getNextToken()const +{ + return nextToken_; +} + +int DescribeImageComponentsResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/ecs/src/model/DescribeImagePipelineExecutionsRequest.cc b/ecs/src/model/DescribeImagePipelineExecutionsRequest.cc new file mode 100644 index 000000000..e1659d68d --- /dev/null +++ b/ecs/src/model/DescribeImagePipelineExecutionsRequest.cc @@ -0,0 +1,155 @@ +/* + * 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::DescribeImagePipelineExecutionsRequest; + +DescribeImagePipelineExecutionsRequest::DescribeImagePipelineExecutionsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeImagePipelineExecutions") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeImagePipelineExecutionsRequest::~DescribeImagePipelineExecutionsRequest() +{} + +std::string DescribeImagePipelineExecutionsRequest::getImagePipelineId()const +{ + return imagePipelineId_; +} + +void DescribeImagePipelineExecutionsRequest::setImagePipelineId(const std::string& imagePipelineId) +{ + imagePipelineId_ = imagePipelineId; + setParameter("ImagePipelineId", imagePipelineId); +} + +long DescribeImagePipelineExecutionsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeImagePipelineExecutionsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeImagePipelineExecutionsRequest::getExecutionId()const +{ + return executionId_; +} + +void DescribeImagePipelineExecutionsRequest::setExecutionId(const std::string& executionId) +{ + executionId_ = executionId; + setParameter("ExecutionId", executionId); +} + +std::string DescribeImagePipelineExecutionsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeImagePipelineExecutionsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeImagePipelineExecutionsRequest::getNextToken()const +{ + return nextToken_; +} + +void DescribeImagePipelineExecutionsRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +std::vector DescribeImagePipelineExecutionsRequest::getTag()const +{ + return tag_; +} + +void DescribeImagePipelineExecutionsRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + +std::string DescribeImagePipelineExecutionsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeImagePipelineExecutionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeImagePipelineExecutionsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeImagePipelineExecutionsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeImagePipelineExecutionsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeImagePipelineExecutionsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeImagePipelineExecutionsRequest::getMaxResults()const +{ + return maxResults_; +} + +void DescribeImagePipelineExecutionsRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + +std::string DescribeImagePipelineExecutionsRequest::getStatus()const +{ + return status_; +} + +void DescribeImagePipelineExecutionsRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/ecs/src/model/DescribeImagePipelineExecutionsResult.cc b/ecs/src/model/DescribeImagePipelineExecutionsResult.cc new file mode 100644 index 000000000..8bc7ee322 --- /dev/null +++ b/ecs/src/model/DescribeImagePipelineExecutionsResult.cc @@ -0,0 +1,102 @@ +/* + * 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; + +DescribeImagePipelineExecutionsResult::DescribeImagePipelineExecutionsResult() : + ServiceResult() +{} + +DescribeImagePipelineExecutionsResult::DescribeImagePipelineExecutionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeImagePipelineExecutionsResult::~DescribeImagePipelineExecutionsResult() +{} + +void DescribeImagePipelineExecutionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImagePipelineExecutionNode = value["ImagePipelineExecution"]["ImagePipelineExecutionSet"]; + for (auto valueImagePipelineExecutionImagePipelineExecutionSet : allImagePipelineExecutionNode) + { + ImagePipelineExecutionSet imagePipelineExecutionObject; + if(!valueImagePipelineExecutionImagePipelineExecutionSet["CreationTime"].isNull()) + imagePipelineExecutionObject.creationTime = valueImagePipelineExecutionImagePipelineExecutionSet["CreationTime"].asString(); + if(!valueImagePipelineExecutionImagePipelineExecutionSet["ModifiedTime"].isNull()) + imagePipelineExecutionObject.modifiedTime = valueImagePipelineExecutionImagePipelineExecutionSet["ModifiedTime"].asString(); + if(!valueImagePipelineExecutionImagePipelineExecutionSet["ImageId"].isNull()) + imagePipelineExecutionObject.imageId = valueImagePipelineExecutionImagePipelineExecutionSet["ImageId"].asString(); + if(!valueImagePipelineExecutionImagePipelineExecutionSet["ImagePipelineId"].isNull()) + imagePipelineExecutionObject.imagePipelineId = valueImagePipelineExecutionImagePipelineExecutionSet["ImagePipelineId"].asString(); + if(!valueImagePipelineExecutionImagePipelineExecutionSet["ExecutionId"].isNull()) + imagePipelineExecutionObject.executionId = valueImagePipelineExecutionImagePipelineExecutionSet["ExecutionId"].asString(); + if(!valueImagePipelineExecutionImagePipelineExecutionSet["Status"].isNull()) + imagePipelineExecutionObject.status = valueImagePipelineExecutionImagePipelineExecutionSet["Status"].asString(); + if(!valueImagePipelineExecutionImagePipelineExecutionSet["Message"].isNull()) + imagePipelineExecutionObject.message = valueImagePipelineExecutionImagePipelineExecutionSet["Message"].asString(); + if(!valueImagePipelineExecutionImagePipelineExecutionSet["ResourceGroupId"].isNull()) + imagePipelineExecutionObject.resourceGroupId = valueImagePipelineExecutionImagePipelineExecutionSet["ResourceGroupId"].asString(); + auto allTagsNode = valueImagePipelineExecutionImagePipelineExecutionSet["Tags"]["Tag"]; + for (auto valueImagePipelineExecutionImagePipelineExecutionSetTagsTag : allTagsNode) + { + ImagePipelineExecutionSet::Tag tagsObject; + if(!valueImagePipelineExecutionImagePipelineExecutionSetTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueImagePipelineExecutionImagePipelineExecutionSetTagsTag["TagKey"].asString(); + if(!valueImagePipelineExecutionImagePipelineExecutionSetTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valueImagePipelineExecutionImagePipelineExecutionSetTagsTag["TagValue"].asString(); + imagePipelineExecutionObject.tags.push_back(tagsObject); + } + imagePipelineExecution_.push_back(imagePipelineExecutionObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +int DescribeImagePipelineExecutionsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeImagePipelineExecutionsResult::getNextToken()const +{ + return nextToken_; +} + +int DescribeImagePipelineExecutionsResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector DescribeImagePipelineExecutionsResult::getImagePipelineExecution()const +{ + return imagePipelineExecution_; +} + diff --git a/ecs/src/model/DescribeImagePipelinesRequest.cc b/ecs/src/model/DescribeImagePipelinesRequest.cc new file mode 100644 index 000000000..ceedef34a --- /dev/null +++ b/ecs/src/model/DescribeImagePipelinesRequest.cc @@ -0,0 +1,157 @@ +/* + * 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::DescribeImagePipelinesRequest; + +DescribeImagePipelinesRequest::DescribeImagePipelinesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeImagePipelines") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeImagePipelinesRequest::~DescribeImagePipelinesRequest() +{} + +std::vector DescribeImagePipelinesRequest::getImagePipelineId()const +{ + return imagePipelineId_; +} + +void DescribeImagePipelinesRequest::setImagePipelineId(const std::vector& imagePipelineId) +{ + imagePipelineId_ = imagePipelineId; + for(int dep1 = 0; dep1!= imagePipelineId.size(); dep1++) { + setParameter("ImagePipelineId."+ std::to_string(dep1), imagePipelineId.at(dep1)); + } +} + +long DescribeImagePipelinesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeImagePipelinesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeImagePipelinesRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeImagePipelinesRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeImagePipelinesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeImagePipelinesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeImagePipelinesRequest::getNextToken()const +{ + return nextToken_; +} + +void DescribeImagePipelinesRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +std::vector DescribeImagePipelinesRequest::getTag()const +{ + return tag_; +} + +void DescribeImagePipelinesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + +std::string DescribeImagePipelinesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeImagePipelinesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeImagePipelinesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeImagePipelinesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeImagePipelinesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeImagePipelinesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeImagePipelinesRequest::getName()const +{ + return name_; +} + +void DescribeImagePipelinesRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +int DescribeImagePipelinesRequest::getMaxResults()const +{ + return maxResults_; +} + +void DescribeImagePipelinesRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + diff --git a/ecs/src/model/DescribeImagePipelinesResult.cc b/ecs/src/model/DescribeImagePipelinesResult.cc new file mode 100644 index 000000000..008aec421 --- /dev/null +++ b/ecs/src/model/DescribeImagePipelinesResult.cc @@ -0,0 +1,120 @@ +/* + * 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; + +DescribeImagePipelinesResult::DescribeImagePipelinesResult() : + ServiceResult() +{} + +DescribeImagePipelinesResult::DescribeImagePipelinesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeImagePipelinesResult::~DescribeImagePipelinesResult() +{} + +void DescribeImagePipelinesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImagePipelineNode = value["ImagePipeline"]["ImagePipelineSet"]; + for (auto valueImagePipelineImagePipelineSet : allImagePipelineNode) + { + ImagePipelineSet imagePipelineObject; + if(!valueImagePipelineImagePipelineSet["CreationTime"].isNull()) + imagePipelineObject.creationTime = valueImagePipelineImagePipelineSet["CreationTime"].asString(); + if(!valueImagePipelineImagePipelineSet["ImagePipelineId"].isNull()) + imagePipelineObject.imagePipelineId = valueImagePipelineImagePipelineSet["ImagePipelineId"].asString(); + if(!valueImagePipelineImagePipelineSet["Name"].isNull()) + imagePipelineObject.name = valueImagePipelineImagePipelineSet["Name"].asString(); + if(!valueImagePipelineImagePipelineSet["Description"].isNull()) + imagePipelineObject.description = valueImagePipelineImagePipelineSet["Description"].asString(); + if(!valueImagePipelineImagePipelineSet["BaseImageType"].isNull()) + imagePipelineObject.baseImageType = valueImagePipelineImagePipelineSet["BaseImageType"].asString(); + if(!valueImagePipelineImagePipelineSet["BaseImage"].isNull()) + imagePipelineObject.baseImage = valueImagePipelineImagePipelineSet["BaseImage"].asString(); + if(!valueImagePipelineImagePipelineSet["ImageName"].isNull()) + imagePipelineObject.imageName = valueImagePipelineImagePipelineSet["ImageName"].asString(); + if(!valueImagePipelineImagePipelineSet["VSwitchId"].isNull()) + imagePipelineObject.vSwitchId = valueImagePipelineImagePipelineSet["VSwitchId"].asString(); + if(!valueImagePipelineImagePipelineSet["InstanceType"].isNull()) + imagePipelineObject.instanceType = valueImagePipelineImagePipelineSet["InstanceType"].asString(); + if(!valueImagePipelineImagePipelineSet["InternetMaxBandwidthOut"].isNull()) + imagePipelineObject.internetMaxBandwidthOut = std::stoi(valueImagePipelineImagePipelineSet["InternetMaxBandwidthOut"].asString()); + if(!valueImagePipelineImagePipelineSet["SystemDiskSize"].isNull()) + imagePipelineObject.systemDiskSize = std::stoi(valueImagePipelineImagePipelineSet["SystemDiskSize"].asString()); + if(!valueImagePipelineImagePipelineSet["DeleteInstanceOnFailure"].isNull()) + imagePipelineObject.deleteInstanceOnFailure = valueImagePipelineImagePipelineSet["DeleteInstanceOnFailure"].asString() == "true"; + if(!valueImagePipelineImagePipelineSet["BuildContent"].isNull()) + imagePipelineObject.buildContent = valueImagePipelineImagePipelineSet["BuildContent"].asString(); + if(!valueImagePipelineImagePipelineSet["ResourceGroupId"].isNull()) + imagePipelineObject.resourceGroupId = valueImagePipelineImagePipelineSet["ResourceGroupId"].asString(); + auto allTagsNode = valueImagePipelineImagePipelineSet["Tags"]["Tag"]; + for (auto valueImagePipelineImagePipelineSetTagsTag : allTagsNode) + { + ImagePipelineSet::Tag tagsObject; + if(!valueImagePipelineImagePipelineSetTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueImagePipelineImagePipelineSetTagsTag["TagKey"].asString(); + if(!valueImagePipelineImagePipelineSetTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valueImagePipelineImagePipelineSetTagsTag["TagValue"].asString(); + imagePipelineObject.tags.push_back(tagsObject); + } + auto allAddAccounts = value["AddAccounts"]["AddAccount"]; + for (auto value : allAddAccounts) + imagePipelineObject.addAccounts.push_back(value.asString()); + auto allToRegionIds = value["ToRegionIds"]["ToRegionId"]; + for (auto value : allToRegionIds) + imagePipelineObject.toRegionIds.push_back(value.asString()); + imagePipeline_.push_back(imagePipelineObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +int DescribeImagePipelinesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeImagePipelinesResult::getNextToken()const +{ + return nextToken_; +} + +int DescribeImagePipelinesResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector DescribeImagePipelinesResult::getImagePipeline()const +{ + return imagePipeline_; +} + diff --git a/ecs/src/model/DescribeInstancesRequest.cc b/ecs/src/model/DescribeInstancesRequest.cc index 7268ddf41..c3e506edf 100644 --- a/ecs/src/model/DescribeInstancesRequest.cc +++ b/ecs/src/model/DescribeInstancesRequest.cc @@ -287,6 +287,17 @@ void DescribeInstancesRequest::setZoneId(const std::string& zoneId) setParameter("ZoneId", zoneId); } +int DescribeInstancesRequest::getMaxResults()const +{ + return maxResults_; +} + +void DescribeInstancesRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + std::string DescribeInstancesRequest::getInstanceNetworkType()const { return instanceNetworkType_; @@ -386,6 +397,17 @@ void DescribeInstancesRequest::setRegionId(const std::string& regionId) setParameter("RegionId", regionId); } +std::string DescribeInstancesRequest::getNextToken()const +{ + return nextToken_; +} + +void DescribeInstancesRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + std::string DescribeInstancesRequest::getRdmaIpAddresses()const { return rdmaIpAddresses_; diff --git a/ecs/src/model/DescribeInstancesResult.cc b/ecs/src/model/DescribeInstancesResult.cc index aad0f24dd..44d47e0ba 100644 --- a/ecs/src/model/DescribeInstancesResult.cc +++ b/ecs/src/model/DescribeInstancesResult.cc @@ -261,6 +261,8 @@ void DescribeInstancesResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); } @@ -279,6 +281,11 @@ int DescribeInstancesResult::getPageSize()const return pageSize_; } +std::string DescribeInstancesResult::getNextToken()const +{ + return nextToken_; +} + int DescribeInstancesResult::getPageNumber()const { return pageNumber_; diff --git a/ecs/src/model/DescribeManagedInstancesRequest.cc b/ecs/src/model/DescribeManagedInstancesRequest.cc new file mode 100644 index 000000000..3a9ddbb4b --- /dev/null +++ b/ecs/src/model/DescribeManagedInstancesRequest.cc @@ -0,0 +1,163 @@ +/* + * 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::DescribeManagedInstancesRequest; + +DescribeManagedInstancesRequest::DescribeManagedInstancesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeManagedInstances") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeManagedInstancesRequest::~DescribeManagedInstancesRequest() +{} + +long DescribeManagedInstancesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeManagedInstancesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeManagedInstancesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeManagedInstancesRequest::setPageNumber(long pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeManagedInstancesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeManagedInstancesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long DescribeManagedInstancesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeManagedInstancesRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeManagedInstancesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeManagedInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeManagedInstancesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeManagedInstancesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeManagedInstancesRequest::getOsType()const +{ + return osType_; +} + +void DescribeManagedInstancesRequest::setOsType(const std::string& osType) +{ + osType_ = osType; + setParameter("OsType", osType); +} + +long DescribeManagedInstancesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeManagedInstancesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeManagedInstancesRequest::getInstanceName()const +{ + return instanceName_; +} + +void DescribeManagedInstancesRequest::setInstanceName(const std::string& instanceName) +{ + instanceName_ = instanceName; + setParameter("InstanceName", instanceName); +} + +std::vector DescribeManagedInstancesRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeManagedInstancesRequest::setInstanceId(const std::vector& instanceId) +{ + instanceId_ = instanceId; + for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { + setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); + } +} + +std::string DescribeManagedInstancesRequest::getInstanceIp()const +{ + return instanceIp_; +} + +void DescribeManagedInstancesRequest::setInstanceIp(const std::string& instanceIp) +{ + instanceIp_ = instanceIp; + setParameter("InstanceIp", instanceIp); +} + +std::string DescribeManagedInstancesRequest::getActivationId()const +{ + return activationId_; +} + +void DescribeManagedInstancesRequest::setActivationId(const std::string& activationId) +{ + activationId_ = activationId; + setParameter("ActivationId", activationId); +} + diff --git a/ecs/src/model/DescribeManagedInstancesResult.cc b/ecs/src/model/DescribeManagedInstancesResult.cc new file mode 100644 index 000000000..ea43ccbfe --- /dev/null +++ b/ecs/src/model/DescribeManagedInstancesResult.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 +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeManagedInstancesResult::DescribeManagedInstancesResult() : + ServiceResult() +{} + +DescribeManagedInstancesResult::DescribeManagedInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeManagedInstancesResult::~DescribeManagedInstancesResult() +{} + +void DescribeManagedInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstancesNode = value["Instances"]["Instance"]; + for (auto valueInstancesInstance : allInstancesNode) + { + Instance instancesObject; + if(!valueInstancesInstance["InstanceId"].isNull()) + instancesObject.instanceId = valueInstancesInstance["InstanceId"].asString(); + if(!valueInstancesInstance["InstanceName"].isNull()) + instancesObject.instanceName = valueInstancesInstance["InstanceName"].asString(); + if(!valueInstancesInstance["ActivationId"].isNull()) + instancesObject.activationId = valueInstancesInstance["ActivationId"].asString(); + if(!valueInstancesInstance["Hostname"].isNull()) + instancesObject.hostname = valueInstancesInstance["Hostname"].asString(); + if(!valueInstancesInstance["MachineId"].isNull()) + instancesObject.machineId = valueInstancesInstance["MachineId"].asString(); + if(!valueInstancesInstance["OsType"].isNull()) + instancesObject.osType = valueInstancesInstance["OsType"].asString(); + if(!valueInstancesInstance["OsVersion"].isNull()) + instancesObject.osVersion = valueInstancesInstance["OsVersion"].asString(); + if(!valueInstancesInstance["IntranetIp"].isNull()) + instancesObject.intranetIp = valueInstancesInstance["IntranetIp"].asString(); + if(!valueInstancesInstance["InternetIp"].isNull()) + instancesObject.internetIp = valueInstancesInstance["InternetIp"].asString(); + if(!valueInstancesInstance["AgentVersion"].isNull()) + instancesObject.agentVersion = valueInstancesInstance["AgentVersion"].asString(); + if(!valueInstancesInstance["RegistrationTime"].isNull()) + instancesObject.registrationTime = valueInstancesInstance["RegistrationTime"].asString(); + if(!valueInstancesInstance["InvocationCount"].isNull()) + instancesObject.invocationCount = std::stol(valueInstancesInstance["InvocationCount"].asString()); + if(!valueInstancesInstance["LastInvokedTime"].isNull()) + instancesObject.lastInvokedTime = valueInstancesInstance["LastInvokedTime"].asString(); + if(!valueInstancesInstance["Connected"].isNull()) + instancesObject.connected = valueInstancesInstance["Connected"].asString() == "true"; + instances_.push_back(instancesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + +} + +std::vector DescribeManagedInstancesResult::getInstances()const +{ + return instances_; +} + +long DescribeManagedInstancesResult::getTotalCount()const +{ + return totalCount_; +} + +long DescribeManagedInstancesResult::getPageSize()const +{ + return pageSize_; +} + +long DescribeManagedInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ecs/src/model/DescribeSnapshotGroupsRequest.cc b/ecs/src/model/DescribeSnapshotGroupsRequest.cc new file mode 100644 index 000000000..8ec4d08f4 --- /dev/null +++ b/ecs/src/model/DescribeSnapshotGroupsRequest.cc @@ -0,0 +1,154 @@ +/* + * 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::DescribeSnapshotGroupsRequest; + +DescribeSnapshotGroupsRequest::DescribeSnapshotGroupsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotGroups") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeSnapshotGroupsRequest::~DescribeSnapshotGroupsRequest() +{} + +long DescribeSnapshotGroupsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSnapshotGroupsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSnapshotGroupsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSnapshotGroupsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeSnapshotGroupsRequest::getNextToken()const +{ + return nextToken_; +} + +void DescribeSnapshotGroupsRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +std::string DescribeSnapshotGroupsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSnapshotGroupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSnapshotGroupsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSnapshotGroupsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::vector DescribeSnapshotGroupsRequest::getSnapshotGroupId()const +{ + return snapshotGroupId_; +} + +void DescribeSnapshotGroupsRequest::setSnapshotGroupId(const std::vector& snapshotGroupId) +{ + snapshotGroupId_ = snapshotGroupId; + for(int dep1 = 0; dep1!= snapshotGroupId.size(); dep1++) { + setParameter("SnapshotGroupId."+ std::to_string(dep1), snapshotGroupId.at(dep1)); + } +} + +long DescribeSnapshotGroupsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSnapshotGroupsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeSnapshotGroupsRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeSnapshotGroupsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeSnapshotGroupsRequest::getName()const +{ + return name_; +} + +void DescribeSnapshotGroupsRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +int DescribeSnapshotGroupsRequest::getMaxResults()const +{ + return maxResults_; +} + +void DescribeSnapshotGroupsRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + +std::vector DescribeSnapshotGroupsRequest::getStatus()const +{ + return status_; +} + +void DescribeSnapshotGroupsRequest::setStatus(const std::vector& status) +{ + status_ = status; + for(int dep1 = 0; dep1!= status.size(); dep1++) { + setParameter("Status."+ std::to_string(dep1), status.at(dep1)); + } +} + diff --git a/ecs/src/model/DescribeSnapshotGroupsResult.cc b/ecs/src/model/DescribeSnapshotGroupsResult.cc new file mode 100644 index 000000000..48164ea65 --- /dev/null +++ b/ecs/src/model/DescribeSnapshotGroupsResult.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; + +DescribeSnapshotGroupsResult::DescribeSnapshotGroupsResult() : + ServiceResult() +{} + +DescribeSnapshotGroupsResult::DescribeSnapshotGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSnapshotGroupsResult::~DescribeSnapshotGroupsResult() +{} + +void DescribeSnapshotGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSnapshotGroupsNode = value["SnapshotGroups"]["SnapshotGroup"]; + for (auto valueSnapshotGroupsSnapshotGroup : allSnapshotGroupsNode) + { + SnapshotGroup snapshotGroupsObject; + if(!valueSnapshotGroupsSnapshotGroup["InstanceId"].isNull()) + snapshotGroupsObject.instanceId = valueSnapshotGroupsSnapshotGroup["InstanceId"].asString(); + if(!valueSnapshotGroupsSnapshotGroup["SnapshotGroupId"].isNull()) + snapshotGroupsObject.snapshotGroupId = valueSnapshotGroupsSnapshotGroup["SnapshotGroupId"].asString(); + if(!valueSnapshotGroupsSnapshotGroup["Status"].isNull()) + snapshotGroupsObject.status = valueSnapshotGroupsSnapshotGroup["Status"].asString(); + if(!valueSnapshotGroupsSnapshotGroup["Name"].isNull()) + snapshotGroupsObject.name = valueSnapshotGroupsSnapshotGroup["Name"].asString(); + if(!valueSnapshotGroupsSnapshotGroup["Description"].isNull()) + snapshotGroupsObject.description = valueSnapshotGroupsSnapshotGroup["Description"].asString(); + if(!valueSnapshotGroupsSnapshotGroup["CreationTime"].isNull()) + snapshotGroupsObject.creationTime = valueSnapshotGroupsSnapshotGroup["CreationTime"].asString(); + auto allSnapshotsNode = valueSnapshotGroupsSnapshotGroup["Snapshots"]["Snapshot"]; + for (auto valueSnapshotGroupsSnapshotGroupSnapshotsSnapshot : allSnapshotsNode) + { + SnapshotGroup::Snapshot snapshotsObject; + if(!valueSnapshotGroupsSnapshotGroupSnapshotsSnapshot["SnapshotId"].isNull()) + snapshotsObject.snapshotId = valueSnapshotGroupsSnapshotGroupSnapshotsSnapshot["SnapshotId"].asString(); + if(!valueSnapshotGroupsSnapshotGroupSnapshotsSnapshot["Progress"].isNull()) + snapshotsObject.progress = valueSnapshotGroupsSnapshotGroupSnapshotsSnapshot["Progress"].asString(); + if(!valueSnapshotGroupsSnapshotGroupSnapshotsSnapshot["SourceDiskId"].isNull()) + snapshotsObject.sourceDiskId = valueSnapshotGroupsSnapshotGroupSnapshotsSnapshot["SourceDiskId"].asString(); + if(!valueSnapshotGroupsSnapshotGroupSnapshotsSnapshot["SourceDiskType"].isNull()) + snapshotsObject.sourceDiskType = valueSnapshotGroupsSnapshotGroupSnapshotsSnapshot["SourceDiskType"].asString(); + if(!valueSnapshotGroupsSnapshotGroupSnapshotsSnapshot["InstantAccess"].isNull()) + snapshotsObject.instantAccess = valueSnapshotGroupsSnapshotGroupSnapshotsSnapshot["InstantAccess"].asString() == "true"; + snapshotGroupsObject.snapshots.push_back(snapshotsObject); + } + snapshotGroups_.push_back(snapshotGroupsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string DescribeSnapshotGroupsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector DescribeSnapshotGroupsResult::getSnapshotGroups()const +{ + return snapshotGroups_; +} + diff --git a/ecs/src/model/DisableActivationRequest.cc b/ecs/src/model/DisableActivationRequest.cc new file mode 100644 index 000000000..9ecd8f563 --- /dev/null +++ b/ecs/src/model/DisableActivationRequest.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 + +using AlibabaCloud::Ecs::Model::DisableActivationRequest; + +DisableActivationRequest::DisableActivationRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DisableActivation") +{ + setMethod(HttpRequest::Method::Post); +} + +DisableActivationRequest::~DisableActivationRequest() +{} + +long DisableActivationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DisableActivationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DisableActivationRequest::getRegionId()const +{ + return regionId_; +} + +void DisableActivationRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DisableActivationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DisableActivationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DisableActivationRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DisableActivationRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DisableActivationRequest::getOwnerId()const +{ + return ownerId_; +} + +void DisableActivationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DisableActivationRequest::getActivationId()const +{ + return activationId_; +} + +void DisableActivationRequest::setActivationId(const std::string& activationId) +{ + activationId_ = activationId; + setParameter("ActivationId", activationId); +} + diff --git a/ecs/src/model/DisableActivationResult.cc b/ecs/src/model/DisableActivationResult.cc new file mode 100644 index 000000000..56de36345 --- /dev/null +++ b/ecs/src/model/DisableActivationResult.cc @@ -0,0 +1,70 @@ +/* + * 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; + +DisableActivationResult::DisableActivationResult() : + ServiceResult() +{} + +DisableActivationResult::DisableActivationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableActivationResult::~DisableActivationResult() +{} + +void DisableActivationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto activationNode = value["Activation"]; + if(!activationNode["ActivationId"].isNull()) + activation_.activationId = activationNode["ActivationId"].asString(); + if(!activationNode["InstanceName"].isNull()) + activation_.instanceName = activationNode["InstanceName"].asString(); + if(!activationNode["Description"].isNull()) + activation_.description = activationNode["Description"].asString(); + if(!activationNode["InstanceCount"].isNull()) + activation_.instanceCount = std::stoi(activationNode["InstanceCount"].asString()); + if(!activationNode["TimeToLiveInHours"].isNull()) + activation_.timeToLiveInHours = std::stol(activationNode["TimeToLiveInHours"].asString()); + if(!activationNode["IpAddressRange"].isNull()) + activation_.ipAddressRange = activationNode["IpAddressRange"].asString(); + if(!activationNode["RegisteredCount"].isNull()) + activation_.registeredCount = std::stoi(activationNode["RegisteredCount"].asString()); + if(!activationNode["DeregisteredCount"].isNull()) + activation_.deregisteredCount = std::stoi(activationNode["DeregisteredCount"].asString()); + if(!activationNode["Disabled"].isNull()) + activation_.disabled = activationNode["Disabled"].asString() == "true"; + if(!activationNode["CreationTime"].isNull()) + activation_.creationTime = activationNode["CreationTime"].asString(); + +} + +DisableActivationResult::Activation DisableActivationResult::getActivation()const +{ + return activation_; +} + diff --git a/ecs/src/model/ModifyDiskSpecResult.cc b/ecs/src/model/ModifyDiskSpecResult.cc index f4d2affda..0d27d4e7d 100644 --- a/ecs/src/model/ModifyDiskSpecResult.cc +++ b/ecs/src/model/ModifyDiskSpecResult.cc @@ -41,6 +41,8 @@ void ModifyDiskSpecResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); } @@ -49,3 +51,8 @@ std::string ModifyDiskSpecResult::getTaskId()const return taskId_; } +std::string ModifyDiskSpecResult::getOrderId()const +{ + return orderId_; +} + diff --git a/ecs/src/model/ModifyManagedInstanceRequest.cc b/ecs/src/model/ModifyManagedInstanceRequest.cc new file mode 100644 index 000000000..3e39abc37 --- /dev/null +++ b/ecs/src/model/ModifyManagedInstanceRequest.cc @@ -0,0 +1,106 @@ +/* + * 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::ModifyManagedInstanceRequest; + +ModifyManagedInstanceRequest::ModifyManagedInstanceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyManagedInstance") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyManagedInstanceRequest::~ModifyManagedInstanceRequest() +{} + +long ModifyManagedInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyManagedInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyManagedInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyManagedInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyManagedInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyManagedInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyManagedInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyManagedInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyManagedInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyManagedInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyManagedInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyManagedInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyManagedInstanceRequest::getInstanceName()const +{ + return instanceName_; +} + +void ModifyManagedInstanceRequest::setInstanceName(const std::string& instanceName) +{ + instanceName_ = instanceName; + setParameter("InstanceName", instanceName); +} + diff --git a/ecs/src/model/ModifyManagedInstanceResult.cc b/ecs/src/model/ModifyManagedInstanceResult.cc new file mode 100644 index 000000000..be982904d --- /dev/null +++ b/ecs/src/model/ModifyManagedInstanceResult.cc @@ -0,0 +1,54 @@ +/* + * 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; + +ModifyManagedInstanceResult::ModifyManagedInstanceResult() : + ServiceResult() +{} + +ModifyManagedInstanceResult::ModifyManagedInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyManagedInstanceResult::~ModifyManagedInstanceResult() +{} + +void ModifyManagedInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto instanceNode = value["Instance"]; + if(!instanceNode["InstanceId"].isNull()) + instance_.instanceId = instanceNode["InstanceId"].asString(); + if(!instanceNode["InstanceName"].isNull()) + instance_.instanceName = instanceNode["InstanceName"].asString(); + +} + +ModifyManagedInstanceResult::Instance ModifyManagedInstanceResult::getInstance()const +{ + return instance_; +} + diff --git a/ecs/src/model/ModifySnapshotGroupRequest.cc b/ecs/src/model/ModifySnapshotGroupRequest.cc new file mode 100644 index 000000000..36a042959 --- /dev/null +++ b/ecs/src/model/ModifySnapshotGroupRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifySnapshotGroupRequest; + +ModifySnapshotGroupRequest::ModifySnapshotGroupRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifySnapshotGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifySnapshotGroupRequest::~ModifySnapshotGroupRequest() +{} + +long ModifySnapshotGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifySnapshotGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifySnapshotGroupRequest::getDescription()const +{ + return description_; +} + +void ModifySnapshotGroupRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifySnapshotGroupRequest::getRegionId()const +{ + return regionId_; +} + +void ModifySnapshotGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifySnapshotGroupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifySnapshotGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifySnapshotGroupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifySnapshotGroupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifySnapshotGroupRequest::getSnapshotGroupId()const +{ + return snapshotGroupId_; +} + +void ModifySnapshotGroupRequest::setSnapshotGroupId(const std::string& snapshotGroupId) +{ + snapshotGroupId_ = snapshotGroupId; + setParameter("SnapshotGroupId", snapshotGroupId); +} + +long ModifySnapshotGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifySnapshotGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifySnapshotGroupRequest::getName()const +{ + return name_; +} + +void ModifySnapshotGroupRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/ecs/src/model/ModifySnapshotGroupResult.cc b/ecs/src/model/ModifySnapshotGroupResult.cc new file mode 100644 index 000000000..d45a5a4ae --- /dev/null +++ b/ecs/src/model/ModifySnapshotGroupResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifySnapshotGroupResult::ModifySnapshotGroupResult() : + ServiceResult() +{} + +ModifySnapshotGroupResult::ModifySnapshotGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySnapshotGroupResult::~ModifySnapshotGroupResult() +{} + +void ModifySnapshotGroupResult::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/ResetDisksRequest.cc b/ecs/src/model/ResetDisksRequest.cc new file mode 100644 index 000000000..08aa3cc2a --- /dev/null +++ b/ecs/src/model/ResetDisksRequest.cc @@ -0,0 +1,100 @@ +/* + * 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::ResetDisksRequest; + +ResetDisksRequest::ResetDisksRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ResetDisks") +{ + setMethod(HttpRequest::Method::Post); +} + +ResetDisksRequest::~ResetDisksRequest() +{} + +long ResetDisksRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ResetDisksRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ResetDisksRequest::getRegionId()const +{ + return regionId_; +} + +void ResetDisksRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ResetDisksRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ResetDisksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ResetDisksRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ResetDisksRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ResetDisksRequest::getOwnerId()const +{ + return ownerId_; +} + +void ResetDisksRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::vector ResetDisksRequest::getDisk()const +{ + return disk_; +} + +void ResetDisksRequest::setDisk(const std::vector& disk) +{ + disk_ = disk; + for(int dep1 = 0; dep1!= disk.size(); dep1++) { + auto diskObj = disk.at(dep1); + std::string diskObjStr = "Disk." + std::to_string(dep1 + 1); + setParameter(diskObjStr + ".DiskId", diskObj.diskId); + setParameter(diskObjStr + ".SnapshotId", diskObj.snapshotId); + } +} + diff --git a/ecs/src/model/ResetDisksResult.cc b/ecs/src/model/ResetDisksResult.cc new file mode 100644 index 000000000..df80c54cb --- /dev/null +++ b/ecs/src/model/ResetDisksResult.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 +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ResetDisksResult::ResetDisksResult() : + ServiceResult() +{} + +ResetDisksResult::ResetDisksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetDisksResult::~ResetDisksResult() +{} + +void ResetDisksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allOperationProgressSetNode = value["OperationProgressSet"]["OperationProgress"]; + for (auto valueOperationProgressSetOperationProgress : allOperationProgressSetNode) + { + OperationProgress operationProgressSetObject; + if(!valueOperationProgressSetOperationProgress["OperationStatus"].isNull()) + operationProgressSetObject.operationStatus = valueOperationProgressSetOperationProgress["OperationStatus"].asString(); + if(!valueOperationProgressSetOperationProgress["ErrorCode"].isNull()) + operationProgressSetObject.errorCode = valueOperationProgressSetOperationProgress["ErrorCode"].asString(); + if(!valueOperationProgressSetOperationProgress["ErrorMsg"].isNull()) + operationProgressSetObject.errorMsg = valueOperationProgressSetOperationProgress["ErrorMsg"].asString(); + auto allRelatedItemSetNode = valueOperationProgressSetOperationProgress["RelatedItemSet"]["RelatedItem"]; + for (auto valueOperationProgressSetOperationProgressRelatedItemSetRelatedItem : allRelatedItemSetNode) + { + OperationProgress::RelatedItem relatedItemSetObject; + if(!valueOperationProgressSetOperationProgressRelatedItemSetRelatedItem["Name"].isNull()) + relatedItemSetObject.name = valueOperationProgressSetOperationProgressRelatedItemSetRelatedItem["Name"].asString(); + if(!valueOperationProgressSetOperationProgressRelatedItemSetRelatedItem["Value"].isNull()) + relatedItemSetObject.value = valueOperationProgressSetOperationProgressRelatedItemSetRelatedItem["Value"].asString(); + operationProgressSetObject.relatedItemSet.push_back(relatedItemSetObject); + } + operationProgressSet_.push_back(operationProgressSetObject); + } + +} + +std::vector ResetDisksResult::getOperationProgressSet()const +{ + return operationProgressSet_; +} + diff --git a/ecs/src/model/ResizeDiskResult.cc b/ecs/src/model/ResizeDiskResult.cc index 3174d6bdd..2367ec1ae 100644 --- a/ecs/src/model/ResizeDiskResult.cc +++ b/ecs/src/model/ResizeDiskResult.cc @@ -39,6 +39,13 @@ void ResizeDiskResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); } +std::string ResizeDiskResult::getOrderId()const +{ + return orderId_; +} + diff --git a/ecs/src/model/RunInstancesRequest.cc b/ecs/src/model/RunInstancesRequest.cc index b95589499..67854d65b 100644 --- a/ecs/src/model/RunInstancesRequest.cc +++ b/ecs/src/model/RunInstancesRequest.cc @@ -407,6 +407,17 @@ void RunInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwn setParameter("ResourceOwnerAccount", resourceOwnerAccount); } +std::string RunInstancesRequest::getSchedulerOptionsDedicatedHostClusterId()const +{ + return schedulerOptionsDedicatedHostClusterId_; +} + +void RunInstancesRequest::setSchedulerOptionsDedicatedHostClusterId(const std::string& schedulerOptionsDedicatedHostClusterId) +{ + schedulerOptionsDedicatedHostClusterId_ = schedulerOptionsDedicatedHostClusterId; + setParameter("SchedulerOptionsDedicatedHostClusterId", schedulerOptionsDedicatedHostClusterId); +} + std::string RunInstancesRequest::getSystemDiskDiskName()const { return systemDiskDiskName_; diff --git a/ecs/src/model/StartImagePipelineExecutionRequest.cc b/ecs/src/model/StartImagePipelineExecutionRequest.cc new file mode 100644 index 000000000..651ed061e --- /dev/null +++ b/ecs/src/model/StartImagePipelineExecutionRequest.cc @@ -0,0 +1,122 @@ +/* + * 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::StartImagePipelineExecutionRequest; + +StartImagePipelineExecutionRequest::StartImagePipelineExecutionRequest() : + RpcServiceRequest("ecs", "2014-05-26", "StartImagePipelineExecution") +{ + setMethod(HttpRequest::Method::Post); +} + +StartImagePipelineExecutionRequest::~StartImagePipelineExecutionRequest() +{} + +std::string StartImagePipelineExecutionRequest::getImagePipelineId()const +{ + return imagePipelineId_; +} + +void StartImagePipelineExecutionRequest::setImagePipelineId(const std::string& imagePipelineId) +{ + imagePipelineId_ = imagePipelineId; + setParameter("ImagePipelineId", imagePipelineId); +} + +long StartImagePipelineExecutionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void StartImagePipelineExecutionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string StartImagePipelineExecutionRequest::getClientToken()const +{ + return clientToken_; +} + +void StartImagePipelineExecutionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string StartImagePipelineExecutionRequest::getRegionId()const +{ + return regionId_; +} + +void StartImagePipelineExecutionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::vector StartImagePipelineExecutionRequest::getTemplateTag()const +{ + return templateTag_; +} + +void StartImagePipelineExecutionRequest::setTemplateTag(const std::vector& templateTag) +{ + templateTag_ = templateTag; + for(int dep1 = 0; dep1!= templateTag.size(); dep1++) { + auto templateTagObj = templateTag.at(dep1); + std::string templateTagObjStr = "TemplateTag." + std::to_string(dep1 + 1); + setParameter(templateTagObjStr + ".Key", templateTagObj.key); + setParameter(templateTagObjStr + ".Value", templateTagObj.value); + } +} + +std::string StartImagePipelineExecutionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void StartImagePipelineExecutionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string StartImagePipelineExecutionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void StartImagePipelineExecutionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long StartImagePipelineExecutionRequest::getOwnerId()const +{ + return ownerId_; +} + +void StartImagePipelineExecutionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/StartImagePipelineExecutionResult.cc b/ecs/src/model/StartImagePipelineExecutionResult.cc new file mode 100644 index 000000000..0aab3e3ae --- /dev/null +++ b/ecs/src/model/StartImagePipelineExecutionResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +StartImagePipelineExecutionResult::StartImagePipelineExecutionResult() : + ServiceResult() +{} + +StartImagePipelineExecutionResult::StartImagePipelineExecutionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartImagePipelineExecutionResult::~StartImagePipelineExecutionResult() +{} + +void StartImagePipelineExecutionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ExecutionId"].isNull()) + executionId_ = value["ExecutionId"].asString(); + +} + +std::string StartImagePipelineExecutionResult::getExecutionId()const +{ + return executionId_; +} +