diff --git a/VERSION b/VERSION index e888c0ec0..ed076b735 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1275 \ No newline at end of file +1.36.1276 \ No newline at end of file diff --git a/ens/CMakeLists.txt b/ens/CMakeLists.txt index 3c0aa73eb..74c238802 100644 --- a/ens/CMakeLists.txt +++ b/ens/CMakeLists.txt @@ -21,6 +21,8 @@ set(ens_public_header include/alibabacloud/ens/EnsExport.h ) set(ens_public_header_model + include/alibabacloud/ens/model/AccosicateNetworkAclRequest.h + include/alibabacloud/ens/model/AccosicateNetworkAclResult.h include/alibabacloud/ens/model/AddBackendServersRequest.h include/alibabacloud/ens/model/AddBackendServersResult.h include/alibabacloud/ens/model/AddDeviceInternetPortRequest.h @@ -55,6 +57,8 @@ set(ens_public_header_model include/alibabacloud/ens/model/CreateEnsServiceResult.h include/alibabacloud/ens/model/CreateEpnInstanceRequest.h include/alibabacloud/ens/model/CreateEpnInstanceResult.h + include/alibabacloud/ens/model/CreateFileSystemRequest.h + include/alibabacloud/ens/model/CreateFileSystemResult.h include/alibabacloud/ens/model/CreateForwardEntryRequest.h include/alibabacloud/ens/model/CreateForwardEntryResult.h include/alibabacloud/ens/model/CreateImageRequest.h @@ -73,10 +77,16 @@ set(ens_public_header_model include/alibabacloud/ens/model/CreateLoadBalancerTCPListenerResult.h include/alibabacloud/ens/model/CreateLoadBalancerUDPListenerRequest.h include/alibabacloud/ens/model/CreateLoadBalancerUDPListenerResult.h + include/alibabacloud/ens/model/CreateMountTargetRequest.h + include/alibabacloud/ens/model/CreateMountTargetResult.h include/alibabacloud/ens/model/CreateNatGatewayRequest.h include/alibabacloud/ens/model/CreateNatGatewayResult.h include/alibabacloud/ens/model/CreateNetworkRequest.h include/alibabacloud/ens/model/CreateNetworkResult.h + include/alibabacloud/ens/model/CreateNetworkAclRequest.h + include/alibabacloud/ens/model/CreateNetworkAclResult.h + include/alibabacloud/ens/model/CreateNetworkAclEntryRequest.h + include/alibabacloud/ens/model/CreateNetworkAclEntryResult.h include/alibabacloud/ens/model/CreateSecurityGroupRequest.h include/alibabacloud/ens/model/CreateSecurityGroupResult.h include/alibabacloud/ens/model/CreateSnatEntryRequest.h @@ -91,6 +101,8 @@ set(ens_public_header_model include/alibabacloud/ens/model/DeleteEnsRouteEntryResult.h include/alibabacloud/ens/model/DeleteEpnInstanceRequest.h include/alibabacloud/ens/model/DeleteEpnInstanceResult.h + include/alibabacloud/ens/model/DeleteFileSystemRequest.h + include/alibabacloud/ens/model/DeleteFileSystemResult.h include/alibabacloud/ens/model/DeleteForwardEntryRequest.h include/alibabacloud/ens/model/DeleteForwardEntryResult.h include/alibabacloud/ens/model/DeleteImageRequest.h @@ -99,10 +111,16 @@ set(ens_public_header_model include/alibabacloud/ens/model/DeleteKeyPairsResult.h include/alibabacloud/ens/model/DeleteLoadBalancerListenerRequest.h include/alibabacloud/ens/model/DeleteLoadBalancerListenerResult.h + include/alibabacloud/ens/model/DeleteMountTargetRequest.h + include/alibabacloud/ens/model/DeleteMountTargetResult.h include/alibabacloud/ens/model/DeleteNatGatewayRequest.h include/alibabacloud/ens/model/DeleteNatGatewayResult.h include/alibabacloud/ens/model/DeleteNetworkRequest.h include/alibabacloud/ens/model/DeleteNetworkResult.h + include/alibabacloud/ens/model/DeleteNetworkAclRequest.h + include/alibabacloud/ens/model/DeleteNetworkAclResult.h + include/alibabacloud/ens/model/DeleteNetworkAclEntryRequest.h + include/alibabacloud/ens/model/DeleteNetworkAclEntryResult.h include/alibabacloud/ens/model/DeleteSecurityGroupRequest.h include/alibabacloud/ens/model/DeleteSecurityGroupResult.h include/alibabacloud/ens/model/DeleteSnatEntryRequest.h @@ -213,8 +231,12 @@ set(ens_public_header_model include/alibabacloud/ens/model/DescribeLoadBalancersResult.h include/alibabacloud/ens/model/DescribeMeasurementDataRequest.h include/alibabacloud/ens/model/DescribeMeasurementDataResult.h + include/alibabacloud/ens/model/DescribeMountTargetsRequest.h + include/alibabacloud/ens/model/DescribeMountTargetsResult.h include/alibabacloud/ens/model/DescribeNatGatewaysRequest.h include/alibabacloud/ens/model/DescribeNatGatewaysResult.h + include/alibabacloud/ens/model/DescribeNetworkAclsRequest.h + include/alibabacloud/ens/model/DescribeNetworkAclsResult.h include/alibabacloud/ens/model/DescribeNetworkAttributeRequest.h include/alibabacloud/ens/model/DescribeNetworkAttributeResult.h include/alibabacloud/ens/model/DescribeNetworkInterfacesRequest.h @@ -233,6 +255,8 @@ set(ens_public_header_model include/alibabacloud/ens/model/DescribeSecurityGroupAttributeResult.h include/alibabacloud/ens/model/DescribeSecurityGroupsRequest.h include/alibabacloud/ens/model/DescribeSecurityGroupsResult.h + include/alibabacloud/ens/model/DescribeSelfImagesRequest.h + include/alibabacloud/ens/model/DescribeSelfImagesResult.h include/alibabacloud/ens/model/DescribeServcieScheduleRequest.h include/alibabacloud/ens/model/DescribeServcieScheduleResult.h include/alibabacloud/ens/model/DescribeSnatTableEntriesRequest.h @@ -271,6 +295,8 @@ set(ens_public_header_model include/alibabacloud/ens/model/ModifyEnsEipAddressAttributeResult.h include/alibabacloud/ens/model/ModifyEpnInstanceRequest.h include/alibabacloud/ens/model/ModifyEpnInstanceResult.h + include/alibabacloud/ens/model/ModifyFileSystemRequest.h + include/alibabacloud/ens/model/ModifyFileSystemResult.h include/alibabacloud/ens/model/ModifyForwardEntryRequest.h include/alibabacloud/ens/model/ModifyForwardEntryResult.h include/alibabacloud/ens/model/ModifyImageAttributeRequest.h @@ -331,6 +357,8 @@ set(ens_public_header_model include/alibabacloud/ens/model/ResetAICInstanceResult.h include/alibabacloud/ens/model/ResetDeviceInstanceRequest.h include/alibabacloud/ens/model/ResetDeviceInstanceResult.h + include/alibabacloud/ens/model/ResizeDiskRequest.h + include/alibabacloud/ens/model/ResizeDiskResult.h include/alibabacloud/ens/model/RestartDeviceInstanceRequest.h include/alibabacloud/ens/model/RestartDeviceInstanceResult.h include/alibabacloud/ens/model/RevokeSecurityGroupRequest.h @@ -371,6 +399,8 @@ set(ens_public_header_model include/alibabacloud/ens/model/UnAssociateEnsEipAddressResult.h include/alibabacloud/ens/model/UnassignPrivateIpAddressesRequest.h include/alibabacloud/ens/model/UnassignPrivateIpAddressesResult.h + include/alibabacloud/ens/model/UnassociateNetworkAclRequest.h + include/alibabacloud/ens/model/UnassociateNetworkAclResult.h include/alibabacloud/ens/model/UpgradeAICInstanceImageRequest.h include/alibabacloud/ens/model/UpgradeAICInstanceImageResult.h include/alibabacloud/ens/model/UpgradeApplicationRequest.h @@ -378,6 +408,8 @@ set(ens_public_header_model set(ens_src src/EnsClient.cc + src/model/AccosicateNetworkAclRequest.cc + src/model/AccosicateNetworkAclResult.cc src/model/AddBackendServersRequest.cc src/model/AddBackendServersResult.cc src/model/AddDeviceInternetPortRequest.cc @@ -412,6 +444,8 @@ set(ens_src src/model/CreateEnsServiceResult.cc src/model/CreateEpnInstanceRequest.cc src/model/CreateEpnInstanceResult.cc + src/model/CreateFileSystemRequest.cc + src/model/CreateFileSystemResult.cc src/model/CreateForwardEntryRequest.cc src/model/CreateForwardEntryResult.cc src/model/CreateImageRequest.cc @@ -430,10 +464,16 @@ set(ens_src src/model/CreateLoadBalancerTCPListenerResult.cc src/model/CreateLoadBalancerUDPListenerRequest.cc src/model/CreateLoadBalancerUDPListenerResult.cc + src/model/CreateMountTargetRequest.cc + src/model/CreateMountTargetResult.cc src/model/CreateNatGatewayRequest.cc src/model/CreateNatGatewayResult.cc src/model/CreateNetworkRequest.cc src/model/CreateNetworkResult.cc + src/model/CreateNetworkAclRequest.cc + src/model/CreateNetworkAclResult.cc + src/model/CreateNetworkAclEntryRequest.cc + src/model/CreateNetworkAclEntryResult.cc src/model/CreateSecurityGroupRequest.cc src/model/CreateSecurityGroupResult.cc src/model/CreateSnatEntryRequest.cc @@ -448,6 +488,8 @@ set(ens_src src/model/DeleteEnsRouteEntryResult.cc src/model/DeleteEpnInstanceRequest.cc src/model/DeleteEpnInstanceResult.cc + src/model/DeleteFileSystemRequest.cc + src/model/DeleteFileSystemResult.cc src/model/DeleteForwardEntryRequest.cc src/model/DeleteForwardEntryResult.cc src/model/DeleteImageRequest.cc @@ -456,10 +498,16 @@ set(ens_src src/model/DeleteKeyPairsResult.cc src/model/DeleteLoadBalancerListenerRequest.cc src/model/DeleteLoadBalancerListenerResult.cc + src/model/DeleteMountTargetRequest.cc + src/model/DeleteMountTargetResult.cc src/model/DeleteNatGatewayRequest.cc src/model/DeleteNatGatewayResult.cc src/model/DeleteNetworkRequest.cc src/model/DeleteNetworkResult.cc + src/model/DeleteNetworkAclRequest.cc + src/model/DeleteNetworkAclResult.cc + src/model/DeleteNetworkAclEntryRequest.cc + src/model/DeleteNetworkAclEntryResult.cc src/model/DeleteSecurityGroupRequest.cc src/model/DeleteSecurityGroupResult.cc src/model/DeleteSnatEntryRequest.cc @@ -570,8 +618,12 @@ set(ens_src src/model/DescribeLoadBalancersResult.cc src/model/DescribeMeasurementDataRequest.cc src/model/DescribeMeasurementDataResult.cc + src/model/DescribeMountTargetsRequest.cc + src/model/DescribeMountTargetsResult.cc src/model/DescribeNatGatewaysRequest.cc src/model/DescribeNatGatewaysResult.cc + src/model/DescribeNetworkAclsRequest.cc + src/model/DescribeNetworkAclsResult.cc src/model/DescribeNetworkAttributeRequest.cc src/model/DescribeNetworkAttributeResult.cc src/model/DescribeNetworkInterfacesRequest.cc @@ -590,6 +642,8 @@ set(ens_src src/model/DescribeSecurityGroupAttributeResult.cc src/model/DescribeSecurityGroupsRequest.cc src/model/DescribeSecurityGroupsResult.cc + src/model/DescribeSelfImagesRequest.cc + src/model/DescribeSelfImagesResult.cc src/model/DescribeServcieScheduleRequest.cc src/model/DescribeServcieScheduleResult.cc src/model/DescribeSnatTableEntriesRequest.cc @@ -628,6 +682,8 @@ set(ens_src src/model/ModifyEnsEipAddressAttributeResult.cc src/model/ModifyEpnInstanceRequest.cc src/model/ModifyEpnInstanceResult.cc + src/model/ModifyFileSystemRequest.cc + src/model/ModifyFileSystemResult.cc src/model/ModifyForwardEntryRequest.cc src/model/ModifyForwardEntryResult.cc src/model/ModifyImageAttributeRequest.cc @@ -688,6 +744,8 @@ set(ens_src src/model/ResetAICInstanceResult.cc src/model/ResetDeviceInstanceRequest.cc src/model/ResetDeviceInstanceResult.cc + src/model/ResizeDiskRequest.cc + src/model/ResizeDiskResult.cc src/model/RestartDeviceInstanceRequest.cc src/model/RestartDeviceInstanceResult.cc src/model/RevokeSecurityGroupRequest.cc @@ -728,6 +786,8 @@ set(ens_src src/model/UnAssociateEnsEipAddressResult.cc src/model/UnassignPrivateIpAddressesRequest.cc src/model/UnassignPrivateIpAddressesResult.cc + src/model/UnassociateNetworkAclRequest.cc + src/model/UnassociateNetworkAclResult.cc src/model/UpgradeAICInstanceImageRequest.cc src/model/UpgradeAICInstanceImageResult.cc src/model/UpgradeApplicationRequest.cc diff --git a/ens/include/alibabacloud/ens/EnsClient.h b/ens/include/alibabacloud/ens/EnsClient.h index 384a192c4..f477e30a6 100644 --- a/ens/include/alibabacloud/ens/EnsClient.h +++ b/ens/include/alibabacloud/ens/EnsClient.h @@ -22,6 +22,8 @@ #include #include #include "EnsExport.h" +#include "model/AccosicateNetworkAclRequest.h" +#include "model/AccosicateNetworkAclResult.h" #include "model/AddBackendServersRequest.h" #include "model/AddBackendServersResult.h" #include "model/AddDeviceInternetPortRequest.h" @@ -56,6 +58,8 @@ #include "model/CreateEnsServiceResult.h" #include "model/CreateEpnInstanceRequest.h" #include "model/CreateEpnInstanceResult.h" +#include "model/CreateFileSystemRequest.h" +#include "model/CreateFileSystemResult.h" #include "model/CreateForwardEntryRequest.h" #include "model/CreateForwardEntryResult.h" #include "model/CreateImageRequest.h" @@ -74,10 +78,16 @@ #include "model/CreateLoadBalancerTCPListenerResult.h" #include "model/CreateLoadBalancerUDPListenerRequest.h" #include "model/CreateLoadBalancerUDPListenerResult.h" +#include "model/CreateMountTargetRequest.h" +#include "model/CreateMountTargetResult.h" #include "model/CreateNatGatewayRequest.h" #include "model/CreateNatGatewayResult.h" #include "model/CreateNetworkRequest.h" #include "model/CreateNetworkResult.h" +#include "model/CreateNetworkAclRequest.h" +#include "model/CreateNetworkAclResult.h" +#include "model/CreateNetworkAclEntryRequest.h" +#include "model/CreateNetworkAclEntryResult.h" #include "model/CreateSecurityGroupRequest.h" #include "model/CreateSecurityGroupResult.h" #include "model/CreateSnatEntryRequest.h" @@ -92,6 +102,8 @@ #include "model/DeleteEnsRouteEntryResult.h" #include "model/DeleteEpnInstanceRequest.h" #include "model/DeleteEpnInstanceResult.h" +#include "model/DeleteFileSystemRequest.h" +#include "model/DeleteFileSystemResult.h" #include "model/DeleteForwardEntryRequest.h" #include "model/DeleteForwardEntryResult.h" #include "model/DeleteImageRequest.h" @@ -100,10 +112,16 @@ #include "model/DeleteKeyPairsResult.h" #include "model/DeleteLoadBalancerListenerRequest.h" #include "model/DeleteLoadBalancerListenerResult.h" +#include "model/DeleteMountTargetRequest.h" +#include "model/DeleteMountTargetResult.h" #include "model/DeleteNatGatewayRequest.h" #include "model/DeleteNatGatewayResult.h" #include "model/DeleteNetworkRequest.h" #include "model/DeleteNetworkResult.h" +#include "model/DeleteNetworkAclRequest.h" +#include "model/DeleteNetworkAclResult.h" +#include "model/DeleteNetworkAclEntryRequest.h" +#include "model/DeleteNetworkAclEntryResult.h" #include "model/DeleteSecurityGroupRequest.h" #include "model/DeleteSecurityGroupResult.h" #include "model/DeleteSnatEntryRequest.h" @@ -214,8 +232,12 @@ #include "model/DescribeLoadBalancersResult.h" #include "model/DescribeMeasurementDataRequest.h" #include "model/DescribeMeasurementDataResult.h" +#include "model/DescribeMountTargetsRequest.h" +#include "model/DescribeMountTargetsResult.h" #include "model/DescribeNatGatewaysRequest.h" #include "model/DescribeNatGatewaysResult.h" +#include "model/DescribeNetworkAclsRequest.h" +#include "model/DescribeNetworkAclsResult.h" #include "model/DescribeNetworkAttributeRequest.h" #include "model/DescribeNetworkAttributeResult.h" #include "model/DescribeNetworkInterfacesRequest.h" @@ -234,6 +256,8 @@ #include "model/DescribeSecurityGroupAttributeResult.h" #include "model/DescribeSecurityGroupsRequest.h" #include "model/DescribeSecurityGroupsResult.h" +#include "model/DescribeSelfImagesRequest.h" +#include "model/DescribeSelfImagesResult.h" #include "model/DescribeServcieScheduleRequest.h" #include "model/DescribeServcieScheduleResult.h" #include "model/DescribeSnatTableEntriesRequest.h" @@ -272,6 +296,8 @@ #include "model/ModifyEnsEipAddressAttributeResult.h" #include "model/ModifyEpnInstanceRequest.h" #include "model/ModifyEpnInstanceResult.h" +#include "model/ModifyFileSystemRequest.h" +#include "model/ModifyFileSystemResult.h" #include "model/ModifyForwardEntryRequest.h" #include "model/ModifyForwardEntryResult.h" #include "model/ModifyImageAttributeRequest.h" @@ -332,6 +358,8 @@ #include "model/ResetAICInstanceResult.h" #include "model/ResetDeviceInstanceRequest.h" #include "model/ResetDeviceInstanceResult.h" +#include "model/ResizeDiskRequest.h" +#include "model/ResizeDiskResult.h" #include "model/RestartDeviceInstanceRequest.h" #include "model/RestartDeviceInstanceResult.h" #include "model/RevokeSecurityGroupRequest.h" @@ -372,6 +400,8 @@ #include "model/UnAssociateEnsEipAddressResult.h" #include "model/UnassignPrivateIpAddressesRequest.h" #include "model/UnassignPrivateIpAddressesResult.h" +#include "model/UnassociateNetworkAclRequest.h" +#include "model/UnassociateNetworkAclResult.h" #include "model/UpgradeAICInstanceImageRequest.h" #include "model/UpgradeAICInstanceImageResult.h" #include "model/UpgradeApplicationRequest.h" @@ -385,6 +415,9 @@ namespace AlibabaCloud class ALIBABACLOUD_ENS_EXPORT EnsClient : public RpcServiceClient { public: + typedef Outcome AccosicateNetworkAclOutcome; + typedef std::future AccosicateNetworkAclOutcomeCallable; + typedef std::function&)> AccosicateNetworkAclAsyncHandler; typedef Outcome AddBackendServersOutcome; typedef std::future AddBackendServersOutcomeCallable; typedef std::function&)> AddBackendServersAsyncHandler; @@ -436,6 +469,9 @@ namespace AlibabaCloud typedef Outcome CreateEpnInstanceOutcome; typedef std::future CreateEpnInstanceOutcomeCallable; typedef std::function&)> CreateEpnInstanceAsyncHandler; + typedef Outcome CreateFileSystemOutcome; + typedef std::future CreateFileSystemOutcomeCallable; + typedef std::function&)> CreateFileSystemAsyncHandler; typedef Outcome CreateForwardEntryOutcome; typedef std::future CreateForwardEntryOutcomeCallable; typedef std::function&)> CreateForwardEntryAsyncHandler; @@ -463,12 +499,21 @@ namespace AlibabaCloud typedef Outcome CreateLoadBalancerUDPListenerOutcome; typedef std::future CreateLoadBalancerUDPListenerOutcomeCallable; typedef std::function&)> CreateLoadBalancerUDPListenerAsyncHandler; + typedef Outcome CreateMountTargetOutcome; + typedef std::future CreateMountTargetOutcomeCallable; + typedef std::function&)> CreateMountTargetAsyncHandler; typedef Outcome CreateNatGatewayOutcome; typedef std::future CreateNatGatewayOutcomeCallable; typedef std::function&)> CreateNatGatewayAsyncHandler; typedef Outcome CreateNetworkOutcome; typedef std::future CreateNetworkOutcomeCallable; typedef std::function&)> CreateNetworkAsyncHandler; + typedef Outcome CreateNetworkAclOutcome; + typedef std::future CreateNetworkAclOutcomeCallable; + typedef std::function&)> CreateNetworkAclAsyncHandler; + typedef Outcome CreateNetworkAclEntryOutcome; + typedef std::future CreateNetworkAclEntryOutcomeCallable; + typedef std::function&)> CreateNetworkAclEntryAsyncHandler; typedef Outcome CreateSecurityGroupOutcome; typedef std::future CreateSecurityGroupOutcomeCallable; typedef std::function&)> CreateSecurityGroupAsyncHandler; @@ -490,6 +535,9 @@ namespace AlibabaCloud typedef Outcome DeleteEpnInstanceOutcome; typedef std::future DeleteEpnInstanceOutcomeCallable; typedef std::function&)> DeleteEpnInstanceAsyncHandler; + typedef Outcome DeleteFileSystemOutcome; + typedef std::future DeleteFileSystemOutcomeCallable; + typedef std::function&)> DeleteFileSystemAsyncHandler; typedef Outcome DeleteForwardEntryOutcome; typedef std::future DeleteForwardEntryOutcomeCallable; typedef std::function&)> DeleteForwardEntryAsyncHandler; @@ -502,12 +550,21 @@ namespace AlibabaCloud typedef Outcome DeleteLoadBalancerListenerOutcome; typedef std::future DeleteLoadBalancerListenerOutcomeCallable; typedef std::function&)> DeleteLoadBalancerListenerAsyncHandler; + typedef Outcome DeleteMountTargetOutcome; + typedef std::future DeleteMountTargetOutcomeCallable; + typedef std::function&)> DeleteMountTargetAsyncHandler; typedef Outcome DeleteNatGatewayOutcome; typedef std::future DeleteNatGatewayOutcomeCallable; typedef std::function&)> DeleteNatGatewayAsyncHandler; typedef Outcome DeleteNetworkOutcome; typedef std::future DeleteNetworkOutcomeCallable; typedef std::function&)> DeleteNetworkAsyncHandler; + typedef Outcome DeleteNetworkAclOutcome; + typedef std::future DeleteNetworkAclOutcomeCallable; + typedef std::function&)> DeleteNetworkAclAsyncHandler; + typedef Outcome DeleteNetworkAclEntryOutcome; + typedef std::future DeleteNetworkAclEntryOutcomeCallable; + typedef std::function&)> DeleteNetworkAclEntryAsyncHandler; typedef Outcome DeleteSecurityGroupOutcome; typedef std::future DeleteSecurityGroupOutcomeCallable; typedef std::function&)> DeleteSecurityGroupAsyncHandler; @@ -673,9 +730,15 @@ namespace AlibabaCloud typedef Outcome DescribeMeasurementDataOutcome; typedef std::future DescribeMeasurementDataOutcomeCallable; typedef std::function&)> DescribeMeasurementDataAsyncHandler; + typedef Outcome DescribeMountTargetsOutcome; + typedef std::future DescribeMountTargetsOutcomeCallable; + typedef std::function&)> DescribeMountTargetsAsyncHandler; typedef Outcome DescribeNatGatewaysOutcome; typedef std::future DescribeNatGatewaysOutcomeCallable; typedef std::function&)> DescribeNatGatewaysAsyncHandler; + typedef Outcome DescribeNetworkAclsOutcome; + typedef std::future DescribeNetworkAclsOutcomeCallable; + typedef std::function&)> DescribeNetworkAclsAsyncHandler; typedef Outcome DescribeNetworkAttributeOutcome; typedef std::future DescribeNetworkAttributeOutcomeCallable; typedef std::function&)> DescribeNetworkAttributeAsyncHandler; @@ -703,6 +766,9 @@ namespace AlibabaCloud typedef Outcome DescribeSecurityGroupsOutcome; typedef std::future DescribeSecurityGroupsOutcomeCallable; typedef std::function&)> DescribeSecurityGroupsAsyncHandler; + typedef Outcome DescribeSelfImagesOutcome; + typedef std::future DescribeSelfImagesOutcomeCallable; + typedef std::function&)> DescribeSelfImagesAsyncHandler; typedef Outcome DescribeServcieScheduleOutcome; typedef std::future DescribeServcieScheduleOutcomeCallable; typedef std::function&)> DescribeServcieScheduleAsyncHandler; @@ -760,6 +826,9 @@ namespace AlibabaCloud typedef Outcome ModifyEpnInstanceOutcome; typedef std::future ModifyEpnInstanceOutcomeCallable; typedef std::function&)> ModifyEpnInstanceAsyncHandler; + typedef Outcome ModifyFileSystemOutcome; + typedef std::future ModifyFileSystemOutcomeCallable; + typedef std::function&)> ModifyFileSystemAsyncHandler; typedef Outcome ModifyForwardEntryOutcome; typedef std::future ModifyForwardEntryOutcomeCallable; typedef std::function&)> ModifyForwardEntryAsyncHandler; @@ -850,6 +919,9 @@ namespace AlibabaCloud typedef Outcome ResetDeviceInstanceOutcome; typedef std::future ResetDeviceInstanceOutcomeCallable; typedef std::function&)> ResetDeviceInstanceAsyncHandler; + typedef Outcome ResizeDiskOutcome; + typedef std::future ResizeDiskOutcomeCallable; + typedef std::function&)> ResizeDiskAsyncHandler; typedef Outcome RestartDeviceInstanceOutcome; typedef std::future RestartDeviceInstanceOutcomeCallable; typedef std::function&)> RestartDeviceInstanceAsyncHandler; @@ -910,6 +982,9 @@ namespace AlibabaCloud typedef Outcome UnassignPrivateIpAddressesOutcome; typedef std::future UnassignPrivateIpAddressesOutcomeCallable; typedef std::function&)> UnassignPrivateIpAddressesAsyncHandler; + typedef Outcome UnassociateNetworkAclOutcome; + typedef std::future UnassociateNetworkAclOutcomeCallable; + typedef std::function&)> UnassociateNetworkAclAsyncHandler; typedef Outcome UpgradeAICInstanceImageOutcome; typedef std::future UpgradeAICInstanceImageOutcomeCallable; typedef std::function&)> UpgradeAICInstanceImageAsyncHandler; @@ -921,6 +996,9 @@ namespace AlibabaCloud EnsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); EnsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~EnsClient(); + AccosicateNetworkAclOutcome accosicateNetworkAcl(const Model::AccosicateNetworkAclRequest &request)const; + void accosicateNetworkAclAsync(const Model::AccosicateNetworkAclRequest& request, const AccosicateNetworkAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AccosicateNetworkAclOutcomeCallable accosicateNetworkAclCallable(const Model::AccosicateNetworkAclRequest& request) const; AddBackendServersOutcome addBackendServers(const Model::AddBackendServersRequest &request)const; void addBackendServersAsync(const Model::AddBackendServersRequest& request, const AddBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddBackendServersOutcomeCallable addBackendServersCallable(const Model::AddBackendServersRequest& request) const; @@ -972,6 +1050,9 @@ namespace AlibabaCloud CreateEpnInstanceOutcome createEpnInstance(const Model::CreateEpnInstanceRequest &request)const; void createEpnInstanceAsync(const Model::CreateEpnInstanceRequest& request, const CreateEpnInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateEpnInstanceOutcomeCallable createEpnInstanceCallable(const Model::CreateEpnInstanceRequest& request) const; + CreateFileSystemOutcome createFileSystem(const Model::CreateFileSystemRequest &request)const; + void createFileSystemAsync(const Model::CreateFileSystemRequest& request, const CreateFileSystemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFileSystemOutcomeCallable createFileSystemCallable(const Model::CreateFileSystemRequest& request) const; CreateForwardEntryOutcome createForwardEntry(const Model::CreateForwardEntryRequest &request)const; void createForwardEntryAsync(const Model::CreateForwardEntryRequest& request, const CreateForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateForwardEntryOutcomeCallable createForwardEntryCallable(const Model::CreateForwardEntryRequest& request) const; @@ -999,12 +1080,21 @@ namespace AlibabaCloud CreateLoadBalancerUDPListenerOutcome createLoadBalancerUDPListener(const Model::CreateLoadBalancerUDPListenerRequest &request)const; void createLoadBalancerUDPListenerAsync(const Model::CreateLoadBalancerUDPListenerRequest& request, const CreateLoadBalancerUDPListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateLoadBalancerUDPListenerOutcomeCallable createLoadBalancerUDPListenerCallable(const Model::CreateLoadBalancerUDPListenerRequest& request) const; + CreateMountTargetOutcome createMountTarget(const Model::CreateMountTargetRequest &request)const; + void createMountTargetAsync(const Model::CreateMountTargetRequest& request, const CreateMountTargetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMountTargetOutcomeCallable createMountTargetCallable(const Model::CreateMountTargetRequest& request) const; CreateNatGatewayOutcome createNatGateway(const Model::CreateNatGatewayRequest &request)const; void createNatGatewayAsync(const Model::CreateNatGatewayRequest& request, const CreateNatGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateNatGatewayOutcomeCallable createNatGatewayCallable(const Model::CreateNatGatewayRequest& request) const; CreateNetworkOutcome createNetwork(const Model::CreateNetworkRequest &request)const; void createNetworkAsync(const Model::CreateNetworkRequest& request, const CreateNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateNetworkOutcomeCallable createNetworkCallable(const Model::CreateNetworkRequest& request) const; + CreateNetworkAclOutcome createNetworkAcl(const Model::CreateNetworkAclRequest &request)const; + void createNetworkAclAsync(const Model::CreateNetworkAclRequest& request, const CreateNetworkAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNetworkAclOutcomeCallable createNetworkAclCallable(const Model::CreateNetworkAclRequest& request) const; + CreateNetworkAclEntryOutcome createNetworkAclEntry(const Model::CreateNetworkAclEntryRequest &request)const; + void createNetworkAclEntryAsync(const Model::CreateNetworkAclEntryRequest& request, const CreateNetworkAclEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNetworkAclEntryOutcomeCallable createNetworkAclEntryCallable(const Model::CreateNetworkAclEntryRequest& request) const; CreateSecurityGroupOutcome createSecurityGroup(const Model::CreateSecurityGroupRequest &request)const; void createSecurityGroupAsync(const Model::CreateSecurityGroupRequest& request, const CreateSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSecurityGroupOutcomeCallable createSecurityGroupCallable(const Model::CreateSecurityGroupRequest& request) const; @@ -1026,6 +1116,9 @@ namespace AlibabaCloud DeleteEpnInstanceOutcome deleteEpnInstance(const Model::DeleteEpnInstanceRequest &request)const; void deleteEpnInstanceAsync(const Model::DeleteEpnInstanceRequest& request, const DeleteEpnInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteEpnInstanceOutcomeCallable deleteEpnInstanceCallable(const Model::DeleteEpnInstanceRequest& request) const; + DeleteFileSystemOutcome deleteFileSystem(const Model::DeleteFileSystemRequest &request)const; + void deleteFileSystemAsync(const Model::DeleteFileSystemRequest& request, const DeleteFileSystemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFileSystemOutcomeCallable deleteFileSystemCallable(const Model::DeleteFileSystemRequest& request) const; DeleteForwardEntryOutcome deleteForwardEntry(const Model::DeleteForwardEntryRequest &request)const; void deleteForwardEntryAsync(const Model::DeleteForwardEntryRequest& request, const DeleteForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteForwardEntryOutcomeCallable deleteForwardEntryCallable(const Model::DeleteForwardEntryRequest& request) const; @@ -1038,12 +1131,21 @@ namespace AlibabaCloud DeleteLoadBalancerListenerOutcome deleteLoadBalancerListener(const Model::DeleteLoadBalancerListenerRequest &request)const; void deleteLoadBalancerListenerAsync(const Model::DeleteLoadBalancerListenerRequest& request, const DeleteLoadBalancerListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLoadBalancerListenerOutcomeCallable deleteLoadBalancerListenerCallable(const Model::DeleteLoadBalancerListenerRequest& request) const; + DeleteMountTargetOutcome deleteMountTarget(const Model::DeleteMountTargetRequest &request)const; + void deleteMountTargetAsync(const Model::DeleteMountTargetRequest& request, const DeleteMountTargetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMountTargetOutcomeCallable deleteMountTargetCallable(const Model::DeleteMountTargetRequest& request) const; DeleteNatGatewayOutcome deleteNatGateway(const Model::DeleteNatGatewayRequest &request)const; void deleteNatGatewayAsync(const Model::DeleteNatGatewayRequest& request, const DeleteNatGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteNatGatewayOutcomeCallable deleteNatGatewayCallable(const Model::DeleteNatGatewayRequest& request) const; DeleteNetworkOutcome deleteNetwork(const Model::DeleteNetworkRequest &request)const; void deleteNetworkAsync(const Model::DeleteNetworkRequest& request, const DeleteNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteNetworkOutcomeCallable deleteNetworkCallable(const Model::DeleteNetworkRequest& request) const; + DeleteNetworkAclOutcome deleteNetworkAcl(const Model::DeleteNetworkAclRequest &request)const; + void deleteNetworkAclAsync(const Model::DeleteNetworkAclRequest& request, const DeleteNetworkAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNetworkAclOutcomeCallable deleteNetworkAclCallable(const Model::DeleteNetworkAclRequest& request) const; + DeleteNetworkAclEntryOutcome deleteNetworkAclEntry(const Model::DeleteNetworkAclEntryRequest &request)const; + void deleteNetworkAclEntryAsync(const Model::DeleteNetworkAclEntryRequest& request, const DeleteNetworkAclEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNetworkAclEntryOutcomeCallable deleteNetworkAclEntryCallable(const Model::DeleteNetworkAclEntryRequest& request) const; DeleteSecurityGroupOutcome deleteSecurityGroup(const Model::DeleteSecurityGroupRequest &request)const; void deleteSecurityGroupAsync(const Model::DeleteSecurityGroupRequest& request, const DeleteSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSecurityGroupOutcomeCallable deleteSecurityGroupCallable(const Model::DeleteSecurityGroupRequest& request) const; @@ -1209,9 +1311,15 @@ namespace AlibabaCloud DescribeMeasurementDataOutcome describeMeasurementData(const Model::DescribeMeasurementDataRequest &request)const; void describeMeasurementDataAsync(const Model::DescribeMeasurementDataRequest& request, const DescribeMeasurementDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeMeasurementDataOutcomeCallable describeMeasurementDataCallable(const Model::DescribeMeasurementDataRequest& request) const; + DescribeMountTargetsOutcome describeMountTargets(const Model::DescribeMountTargetsRequest &request)const; + void describeMountTargetsAsync(const Model::DescribeMountTargetsRequest& request, const DescribeMountTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMountTargetsOutcomeCallable describeMountTargetsCallable(const Model::DescribeMountTargetsRequest& 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; + DescribeNetworkAclsOutcome describeNetworkAcls(const Model::DescribeNetworkAclsRequest &request)const; + void describeNetworkAclsAsync(const Model::DescribeNetworkAclsRequest& request, const DescribeNetworkAclsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNetworkAclsOutcomeCallable describeNetworkAclsCallable(const Model::DescribeNetworkAclsRequest& request) const; DescribeNetworkAttributeOutcome describeNetworkAttribute(const Model::DescribeNetworkAttributeRequest &request)const; void describeNetworkAttributeAsync(const Model::DescribeNetworkAttributeRequest& request, const DescribeNetworkAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeNetworkAttributeOutcomeCallable describeNetworkAttributeCallable(const Model::DescribeNetworkAttributeRequest& request) const; @@ -1239,6 +1347,9 @@ namespace AlibabaCloud DescribeSecurityGroupsOutcome describeSecurityGroups(const Model::DescribeSecurityGroupsRequest &request)const; void describeSecurityGroupsAsync(const Model::DescribeSecurityGroupsRequest& request, const DescribeSecurityGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSecurityGroupsOutcomeCallable describeSecurityGroupsCallable(const Model::DescribeSecurityGroupsRequest& request) const; + DescribeSelfImagesOutcome describeSelfImages(const Model::DescribeSelfImagesRequest &request)const; + void describeSelfImagesAsync(const Model::DescribeSelfImagesRequest& request, const DescribeSelfImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSelfImagesOutcomeCallable describeSelfImagesCallable(const Model::DescribeSelfImagesRequest& request) const; DescribeServcieScheduleOutcome describeServcieSchedule(const Model::DescribeServcieScheduleRequest &request)const; void describeServcieScheduleAsync(const Model::DescribeServcieScheduleRequest& request, const DescribeServcieScheduleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeServcieScheduleOutcomeCallable describeServcieScheduleCallable(const Model::DescribeServcieScheduleRequest& request) const; @@ -1296,6 +1407,9 @@ namespace AlibabaCloud ModifyEpnInstanceOutcome modifyEpnInstance(const Model::ModifyEpnInstanceRequest &request)const; void modifyEpnInstanceAsync(const Model::ModifyEpnInstanceRequest& request, const ModifyEpnInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyEpnInstanceOutcomeCallable modifyEpnInstanceCallable(const Model::ModifyEpnInstanceRequest& request) const; + ModifyFileSystemOutcome modifyFileSystem(const Model::ModifyFileSystemRequest &request)const; + void modifyFileSystemAsync(const Model::ModifyFileSystemRequest& request, const ModifyFileSystemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyFileSystemOutcomeCallable modifyFileSystemCallable(const Model::ModifyFileSystemRequest& request) const; ModifyForwardEntryOutcome modifyForwardEntry(const Model::ModifyForwardEntryRequest &request)const; void modifyForwardEntryAsync(const Model::ModifyForwardEntryRequest& request, const ModifyForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyForwardEntryOutcomeCallable modifyForwardEntryCallable(const Model::ModifyForwardEntryRequest& request) const; @@ -1386,6 +1500,9 @@ namespace AlibabaCloud ResetDeviceInstanceOutcome resetDeviceInstance(const Model::ResetDeviceInstanceRequest &request)const; void resetDeviceInstanceAsync(const Model::ResetDeviceInstanceRequest& request, const ResetDeviceInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResetDeviceInstanceOutcomeCallable resetDeviceInstanceCallable(const Model::ResetDeviceInstanceRequest& 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; RestartDeviceInstanceOutcome restartDeviceInstance(const Model::RestartDeviceInstanceRequest &request)const; void restartDeviceInstanceAsync(const Model::RestartDeviceInstanceRequest& request, const RestartDeviceInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RestartDeviceInstanceOutcomeCallable restartDeviceInstanceCallable(const Model::RestartDeviceInstanceRequest& request) const; @@ -1446,6 +1563,9 @@ namespace AlibabaCloud UnassignPrivateIpAddressesOutcome unassignPrivateIpAddresses(const Model::UnassignPrivateIpAddressesRequest &request)const; void unassignPrivateIpAddressesAsync(const Model::UnassignPrivateIpAddressesRequest& request, const UnassignPrivateIpAddressesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnassignPrivateIpAddressesOutcomeCallable unassignPrivateIpAddressesCallable(const Model::UnassignPrivateIpAddressesRequest& request) const; + UnassociateNetworkAclOutcome unassociateNetworkAcl(const Model::UnassociateNetworkAclRequest &request)const; + void unassociateNetworkAclAsync(const Model::UnassociateNetworkAclRequest& request, const UnassociateNetworkAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnassociateNetworkAclOutcomeCallable unassociateNetworkAclCallable(const Model::UnassociateNetworkAclRequest& request) const; UpgradeAICInstanceImageOutcome upgradeAICInstanceImage(const Model::UpgradeAICInstanceImageRequest &request)const; void upgradeAICInstanceImageAsync(const Model::UpgradeAICInstanceImageRequest& request, const UpgradeAICInstanceImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpgradeAICInstanceImageOutcomeCallable upgradeAICInstanceImageCallable(const Model::UpgradeAICInstanceImageRequest& request) const; diff --git a/ens/include/alibabacloud/ens/model/AccosicateNetworkAclRequest.h b/ens/include/alibabacloud/ens/model/AccosicateNetworkAclRequest.h new file mode 100644 index 000000000..12f27b10a --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AccosicateNetworkAclRequest.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_ENS_MODEL_ACCOSICATENETWORKACLREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_ACCOSICATENETWORKACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT AccosicateNetworkAclRequest : public RpcServiceRequest { +public: + struct Resource { + std::string resourceId; + std::string resourceType; + }; + AccosicateNetworkAclRequest(); + ~AccosicateNetworkAclRequest(); + std::string getNetworkAclId() const; + void setNetworkAclId(const std::string &networkAclId); + std::vector getResource() const; + void setResource(const std::vector &resource); + +private: + std::string networkAclId_; + std::vector resource_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_ACCOSICATENETWORKACLREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/AccosicateNetworkAclResult.h b/ens/include/alibabacloud/ens/model/AccosicateNetworkAclResult.h new file mode 100644 index 000000000..fed272430 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AccosicateNetworkAclResult.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_ENS_MODEL_ACCOSICATENETWORKACLRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_ACCOSICATENETWORKACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT AccosicateNetworkAclResult : public ServiceResult + { + public: + + + AccosicateNetworkAclResult(); + explicit AccosicateNetworkAclResult(const std::string &payload); + ~AccosicateNetworkAclResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_ACCOSICATENETWORKACLRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateFileSystemRequest.h b/ens/include/alibabacloud/ens/model/CreateFileSystemRequest.h new file mode 100644 index 000000000..24a8537a9 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateFileSystemRequest.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEFILESYSTEMREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEFILESYSTEMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateFileSystemRequest : public RpcServiceRequest { +public: + struct OrderDetails { + std::string fileSystemName; + std::string ensRegionId; + std::string mountTargetDomain; + std::string protocolType; + std::string networkId; + std::string chargeType; + std::string storgeType; + std::string orderType; + }; + CreateFileSystemRequest(); + ~CreateFileSystemRequest(); + std::vector getOrderDetails() const; + void setOrderDetails(const std::vector &orderDetails); + +private: + std::vector orderDetails_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEFILESYSTEMREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateFileSystemResult.h b/ens/include/alibabacloud/ens/model/CreateFileSystemResult.h new file mode 100644 index 000000000..4f2dad068 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateFileSystemResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ENS_MODEL_CREATEFILESYSTEMRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEFILESYSTEMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateFileSystemResult : public ServiceResult + { + public: + + + CreateFileSystemResult(); + explicit CreateFileSystemResult(const std::string &payload); + ~CreateFileSystemResult(); + std::string getBizStatusCode()const; + std::vector getAllocationId()const; + std::vector getUnAllocationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string bizStatusCode_; + std::vector allocationId_; + std::vector unAllocationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEFILESYSTEMRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateMountTargetRequest.h b/ens/include/alibabacloud/ens/model/CreateMountTargetRequest.h new file mode 100644 index 000000000..bda56cf6c --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateMountTargetRequest.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_ENS_MODEL_CREATEMOUNTTARGETREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEMOUNTTARGETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateMountTargetRequest : public RpcServiceRequest { +public: + CreateMountTargetRequest(); + ~CreateMountTargetRequest(); + std::string getMountTargetName() const; + void setMountTargetName(const std::string &mountTargetName); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + std::string getNetWorkId() const; + void setNetWorkId(const std::string &netWorkId); + +private: + std::string mountTargetName_; + std::string ensRegionId_; + std::string fileSystemId_; + std::string netWorkId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEMOUNTTARGETREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateMountTargetResult.h b/ens/include/alibabacloud/ens/model/CreateMountTargetResult.h new file mode 100644 index 000000000..711fdcf9b --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateMountTargetResult.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_ENS_MODEL_CREATEMOUNTTARGETRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEMOUNTTARGETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateMountTargetResult : public ServiceResult + { + public: + + + CreateMountTargetResult(); + explicit CreateMountTargetResult(const std::string &payload); + ~CreateMountTargetResult(); + std::string getStatus()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEMOUNTTARGETRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateNetworkAclEntryRequest.h b/ens/include/alibabacloud/ens/model/CreateNetworkAclEntryRequest.h new file mode 100644 index 000000000..248c032b9 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateNetworkAclEntryRequest.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_ENS_MODEL_CREATENETWORKACLENTRYREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATENETWORKACLENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateNetworkAclEntryRequest : public RpcServiceRequest { +public: + CreateNetworkAclEntryRequest(); + ~CreateNetworkAclEntryRequest(); + std::string getNetworkAclEntryName() const; + void setNetworkAclEntryName(const std::string &networkAclEntryName); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + std::string getPortRange() const; + void setPortRange(const std::string &portRange); + int getPriority() const; + void setPriority(int priority); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getNetworkAclId() const; + void setNetworkAclId(const std::string &networkAclId); + std::string getDirection() const; + void setDirection(const std::string &direction); + std::string getPolicy() const; + void setPolicy(const std::string &policy); + std::string getCidrBlock() const; + void setCidrBlock(const std::string &cidrBlock); + +private: + std::string networkAclEntryName_; + std::string protocol_; + std::string portRange_; + int priority_; + std::string description_; + std::string networkAclId_; + std::string direction_; + std::string policy_; + std::string cidrBlock_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATENETWORKACLENTRYREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateNetworkAclEntryResult.h b/ens/include/alibabacloud/ens/model/CreateNetworkAclEntryResult.h new file mode 100644 index 000000000..e1c64af5d --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateNetworkAclEntryResult.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_ENS_MODEL_CREATENETWORKACLENTRYRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATENETWORKACLENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateNetworkAclEntryResult : public ServiceResult + { + public: + + + CreateNetworkAclEntryResult(); + explicit CreateNetworkAclEntryResult(const std::string &payload); + ~CreateNetworkAclEntryResult(); + std::string getNetworkAclEntryId()const; + + protected: + void parse(const std::string &payload); + private: + std::string networkAclEntryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATENETWORKACLENTRYRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateNetworkAclRequest.h b/ens/include/alibabacloud/ens/model/CreateNetworkAclRequest.h new file mode 100644 index 000000000..a8f867f37 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateNetworkAclRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATENETWORKACLREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATENETWORKACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateNetworkAclRequest : public RpcServiceRequest { +public: + CreateNetworkAclRequest(); + ~CreateNetworkAclRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getNetworkAclName() const; + void setNetworkAclName(const std::string &networkAclName); + +private: + std::string description_; + std::string networkAclName_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATENETWORKACLREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateNetworkAclResult.h b/ens/include/alibabacloud/ens/model/CreateNetworkAclResult.h new file mode 100644 index 000000000..0d350493f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateNetworkAclResult.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_ENS_MODEL_CREATENETWORKACLRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATENETWORKACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateNetworkAclResult : public ServiceResult + { + public: + + + CreateNetworkAclResult(); + explicit CreateNetworkAclResult(const std::string &payload); + ~CreateNetworkAclResult(); + std::string getNetworkAclId()const; + + protected: + void parse(const std::string &payload); + private: + std::string networkAclId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATENETWORKACLRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DeleteFileSystemRequest.h b/ens/include/alibabacloud/ens/model/DeleteFileSystemRequest.h new file mode 100644 index 000000000..23f4c301d --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteFileSystemRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DELETEFILESYSTEMREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETEFILESYSTEMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DeleteFileSystemRequest : public RpcServiceRequest { +public: + DeleteFileSystemRequest(); + ~DeleteFileSystemRequest(); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + +private: + std::string ensRegionId_; + std::string fileSystemId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DELETEFILESYSTEMREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DeleteFileSystemResult.h b/ens/include/alibabacloud/ens/model/DeleteFileSystemResult.h new file mode 100644 index 000000000..c8f6eeee2 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteFileSystemResult.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_ENS_MODEL_DELETEFILESYSTEMRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETEFILESYSTEMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DeleteFileSystemResult : public ServiceResult + { + public: + + + DeleteFileSystemResult(); + explicit DeleteFileSystemResult(const std::string &payload); + ~DeleteFileSystemResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DELETEFILESYSTEMRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DeleteMountTargetRequest.h b/ens/include/alibabacloud/ens/model/DeleteMountTargetRequest.h new file mode 100644 index 000000000..114468d55 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteMountTargetRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ENS_MODEL_DELETEMOUNTTARGETREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETEMOUNTTARGETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DeleteMountTargetRequest : public RpcServiceRequest { +public: + DeleteMountTargetRequest(); + ~DeleteMountTargetRequest(); + std::string getMountTargetName() const; + void setMountTargetName(const std::string &mountTargetName); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + +private: + std::string mountTargetName_; + std::string ensRegionId_; + std::string fileSystemId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DELETEMOUNTTARGETREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DeleteMountTargetResult.h b/ens/include/alibabacloud/ens/model/DeleteMountTargetResult.h new file mode 100644 index 000000000..6f0f4acb4 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteMountTargetResult.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_ENS_MODEL_DELETEMOUNTTARGETRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETEMOUNTTARGETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DeleteMountTargetResult : public ServiceResult + { + public: + + + DeleteMountTargetResult(); + explicit DeleteMountTargetResult(const std::string &payload); + ~DeleteMountTargetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DELETEMOUNTTARGETRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DeleteNetworkAclEntryRequest.h b/ens/include/alibabacloud/ens/model/DeleteNetworkAclEntryRequest.h new file mode 100644 index 000000000..3ac64db45 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteNetworkAclEntryRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ENS_MODEL_DELETENETWORKACLENTRYREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETENETWORKACLENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DeleteNetworkAclEntryRequest : public RpcServiceRequest { +public: + DeleteNetworkAclEntryRequest(); + ~DeleteNetworkAclEntryRequest(); + std::string getNetworkAclEntryId() const; + void setNetworkAclEntryId(const std::string &networkAclEntryId); + +private: + std::string networkAclEntryId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DELETENETWORKACLENTRYREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DeleteNetworkAclEntryResult.h b/ens/include/alibabacloud/ens/model/DeleteNetworkAclEntryResult.h new file mode 100644 index 000000000..be9e3c7f1 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteNetworkAclEntryResult.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_ENS_MODEL_DELETENETWORKACLENTRYRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETENETWORKACLENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DeleteNetworkAclEntryResult : public ServiceResult + { + public: + + + DeleteNetworkAclEntryResult(); + explicit DeleteNetworkAclEntryResult(const std::string &payload); + ~DeleteNetworkAclEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DELETENETWORKACLENTRYRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DeleteNetworkAclRequest.h b/ens/include/alibabacloud/ens/model/DeleteNetworkAclRequest.h new file mode 100644 index 000000000..a0d0df218 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteNetworkAclRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ENS_MODEL_DELETENETWORKACLREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETENETWORKACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DeleteNetworkAclRequest : public RpcServiceRequest { +public: + DeleteNetworkAclRequest(); + ~DeleteNetworkAclRequest(); + std::string getNetworkAclId() const; + void setNetworkAclId(const std::string &networkAclId); + +private: + std::string networkAclId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DELETENETWORKACLREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DeleteNetworkAclResult.h b/ens/include/alibabacloud/ens/model/DeleteNetworkAclResult.h new file mode 100644 index 000000000..0f83cc2ab --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteNetworkAclResult.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_ENS_MODEL_DELETENETWORKACLRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETENETWORKACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DeleteNetworkAclResult : public ServiceResult + { + public: + + + DeleteNetworkAclResult(); + explicit DeleteNetworkAclResult(const std::string &payload); + ~DeleteNetworkAclResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DELETENETWORKACLRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeInstancesRequest.h b/ens/include/alibabacloud/ens/model/DescribeInstancesRequest.h index 3b2e001b3..74ebf8868 100644 --- a/ens/include/alibabacloud/ens/model/DescribeInstancesRequest.h +++ b/ens/include/alibabacloud/ens/model/DescribeInstancesRequest.h @@ -50,6 +50,8 @@ public: void setNetworkId(const std::string &networkId); std::string getStatus() const; void setStatus(const std::string &status); + std::string getIntranetIp() const; + void setIntranetIp(const std::string &intranetIp); std::string getImageId() const; void setImageId(const std::string &imageId); std::string getSecurityGroupId() const; @@ -74,6 +76,7 @@ private: std::string instanceIds_; std::string networkId_; std::string status_; + std::string intranetIp_; std::string imageId_; std::string securityGroupId_; std::string searchKey_; diff --git a/ens/include/alibabacloud/ens/model/DescribeInstancesResult.h b/ens/include/alibabacloud/ens/model/DescribeInstancesResult.h index 1e01ef053..98ce42579 100644 --- a/ens/include/alibabacloud/ens/model/DescribeInstancesResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeInstancesResult.h @@ -76,29 +76,30 @@ namespace AlibabaCloud std::string ip; std::string isp; }; - std::string status; std::vector privateIpAddresses; - std::string instanceId; + std::string instanceTypeFamily; int memory; std::string cpu; - std::string specName; std::string oSName; - std::vector securityGroupIds; SystemDisk systemDisk; - std::string instanceName; std::vector publicIpAddress; NetworkAttributes networkAttributes; std::vector innerIpAddress; + std::string expiredTime; + std::string imageId; + std::vector publicIpAddresses; + int disk; + std::string hostName; + std::string status; + std::string instanceId; + std::string specName; + std::vector securityGroupIds; + std::string instanceName; std::vector dataDisk; int internetMaxBandwidthOut; int internetMaxBandwidthIn; - std::string expiredTime; std::string creationTime; - std::string imageId; - std::vector publicIpAddresses; std::string ensRegionId; - int disk; - std::string hostName; std::string instanceResourceType; }; diff --git a/ens/include/alibabacloud/ens/model/DescribeMountTargetsRequest.h b/ens/include/alibabacloud/ens/model/DescribeMountTargetsRequest.h new file mode 100644 index 000000000..f66343dfa --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeMountTargetsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEMOUNTTARGETSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEMOUNTTARGETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeMountTargetsRequest : public RpcServiceRequest { +public: + DescribeMountTargetsRequest(); + ~DescribeMountTargetsRequest(); + std::string getMountTargetName() const; + void setMountTargetName(const std::string &mountTargetName); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + +private: + std::string mountTargetName_; + int pageNumber_; + std::string ensRegionId_; + int pageSize_; + std::string fileSystemId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEMOUNTTARGETSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeMountTargetsResult.h b/ens/include/alibabacloud/ens/model/DescribeMountTargetsResult.h new file mode 100644 index 000000000..370152099 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeMountTargetsResult.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_ENS_MODEL_DESCRIBEMOUNTTARGETSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEMOUNTTARGETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeMountTargetsResult : public ServiceResult + { + public: + struct MountTargetsItem + { + std::string status; + std::string netWorkId; + std::string mountTargetName; + std::string mountTargetDomain; + std::string fileSystemId; + std::string ensRegionId; + }; + + + DescribeMountTargetsResult(); + explicit DescribeMountTargetsResult(const std::string &payload); + ~DescribeMountTargetsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getMountTargets()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector mountTargets_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEMOUNTTARGETSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeNetworkAclsRequest.h b/ens/include/alibabacloud/ens/model/DescribeNetworkAclsRequest.h new file mode 100644 index 000000000..780c2b1a8 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeNetworkAclsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKACLSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKACLSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeNetworkAclsRequest : public RpcServiceRequest { +public: + DescribeNetworkAclsRequest(); + ~DescribeNetworkAclsRequest(); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getNetworkAclId() const; + void setNetworkAclId(const std::string &networkAclId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getNetworkAclName() const; + void setNetworkAclName(const std::string &networkAclName); + +private: + std::string pageNumber_; + std::string pageSize_; + std::string networkAclId_; + std::string resourceId_; + std::string networkAclName_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKACLSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeNetworkAclsResult.h b/ens/include/alibabacloud/ens/model/DescribeNetworkAclsResult.h new file mode 100644 index 000000000..b9b9ee79c --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeNetworkAclsResult.h @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ENS_MODEL_DESCRIBENETWORKACLSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKACLSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeNetworkAclsResult : public ServiceResult + { + public: + struct NetworkAcl + { + struct IngressAclRule + { + std::string policy; + std::string portRange; + std::string type; + std::string description; + int priority; + std::string cidrBlock; + std::string networkAclEntryName; + std::string protocol; + std::string networkAclEntryId; + }; + struct EgressAclRule + { + std::string policy; + std::string portRange; + std::string type; + std::string description; + int priority; + std::string cidrBlock; + std::string networkAclEntryName; + std::string protocol; + std::string networkAclEntryId; + }; + struct Resource + { + std::string status; + std::string resourceId; + std::string resourceType; + std::string ensRegionId; + }; + std::vector ingressAclEntries; + std::string status; + std::string description; + std::string networkAclId; + std::vector egressAclEntries; + std::string creationTime; + std::string networkAclName; + std::vector resources; + }; + + + DescribeNetworkAclsResult(); + explicit DescribeNetworkAclsResult(const std::string &payload); + ~DescribeNetworkAclsResult(); + std::vector getNetworkAcls()const; + std::string getTotalCount()const; + std::string getPageSize()const; + std::string getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector networkAcls_; + std::string totalCount_; + std::string pageSize_; + std::string pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKACLSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeNetworkAttributeResult.h b/ens/include/alibabacloud/ens/model/DescribeNetworkAttributeResult.h index 8d9ada34f..bab7e28ee 100644 --- a/ens/include/alibabacloud/ens/model/DescribeNetworkAttributeResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeNetworkAttributeResult.h @@ -46,6 +46,7 @@ namespace AlibabaCloud std::string getNetworkName()const; std::string getDescription()const; std::string getCreatedTime()const; + std::string getNetworkAclId()const; std::vector getVSwitchIds()const; std::string getCidrBlock()const; std::string getRouterTableId()const; @@ -60,6 +61,7 @@ namespace AlibabaCloud std::string networkName_; std::string description_; std::string createdTime_; + std::string networkAclId_; std::vector vSwitchIds_; std::string cidrBlock_; std::string routerTableId_; diff --git a/ens/include/alibabacloud/ens/model/DescribeNetworksResult.h b/ens/include/alibabacloud/ens/model/DescribeNetworksResult.h index ba76f2685..079c639d5 100644 --- a/ens/include/alibabacloud/ens/model/DescribeNetworksResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeNetworksResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud std::string networkName; std::string description; std::string createdTime; + std::string networkAclId; std::vector vSwitchIds; std::string cidrBlock; std::string routerTableId; diff --git a/ens/include/alibabacloud/ens/model/DescribeSelfImagesRequest.h b/ens/include/alibabacloud/ens/model/DescribeSelfImagesRequest.h new file mode 100644 index 000000000..d39d6c79a --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeSelfImagesRequest.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_ENS_MODEL_DESCRIBESELFIMAGESREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBESELFIMAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeSelfImagesRequest : public RpcServiceRequest { +public: + DescribeSelfImagesRequest(); + ~DescribeSelfImagesRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getImageName() const; + void setImageName(const std::string &imageName); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string imageId_; + int pageNumber_; + std::string imageName_; + int pageSize_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBESELFIMAGESREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeSelfImagesResult.h b/ens/include/alibabacloud/ens/model/DescribeSelfImagesResult.h new file mode 100644 index 000000000..afc53f483 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeSelfImagesResult.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_ENS_MODEL_DESCRIBESELFIMAGESRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBESELFIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeSelfImagesResult : public ServiceResult + { + public: + struct Image + { + std::string imageOwnerAlias; + std::string status; + std::string imageName; + std::string architecture; + std::string platform; + std::string imageSize; + std::string instanceId; + std::string osVersion; + std::string creationTime; + std::string imageId; + }; + + + DescribeSelfImagesResult(); + explicit DescribeSelfImagesResult(const std::string &payload); + ~DescribeSelfImagesResult(); + std::vector getImages()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector images_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBESELFIMAGESRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ModifyFileSystemRequest.h b/ens/include/alibabacloud/ens/model/ModifyFileSystemRequest.h new file mode 100644 index 000000000..01d17b238 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyFileSystemRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ENS_MODEL_MODIFYFILESYSTEMREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYFILESYSTEMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ModifyFileSystemRequest : public RpcServiceRequest { +public: + ModifyFileSystemRequest(); + ~ModifyFileSystemRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + +private: + std::string description_; + std::string ensRegionId_; + std::string fileSystemId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYFILESYSTEMREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ModifyFileSystemResult.h b/ens/include/alibabacloud/ens/model/ModifyFileSystemResult.h new file mode 100644 index 000000000..40ab99cff --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyFileSystemResult.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_ENS_MODEL_MODIFYFILESYSTEMRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYFILESYSTEMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ModifyFileSystemResult : public ServiceResult + { + public: + + + ModifyFileSystemResult(); + explicit ModifyFileSystemResult(const std::string &payload); + ~ModifyFileSystemResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYFILESYSTEMRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ResizeDiskRequest.h b/ens/include/alibabacloud/ens/model/ResizeDiskRequest.h new file mode 100644 index 000000000..bfe89b2d3 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ResizeDiskRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_RESIZEDISKREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_RESIZEDISKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ResizeDiskRequest : public RpcServiceRequest { +public: + ResizeDiskRequest(); + ~ResizeDiskRequest(); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + std::string getNewSize() const; + void setNewSize(const std::string &newSize); + +private: + std::string diskId_; + std::string newSize_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_RESIZEDISKREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ResizeDiskResult.h b/ens/include/alibabacloud/ens/model/ResizeDiskResult.h new file mode 100644 index 000000000..315992b7f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ResizeDiskResult.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_ENS_MODEL_RESIZEDISKRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_RESIZEDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ResizeDiskResult : public ServiceResult + { + public: + + + ResizeDiskResult(); + explicit ResizeDiskResult(const std::string &payload); + ~ResizeDiskResult(); + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_RESIZEDISKRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/UnassociateNetworkAclRequest.h b/ens/include/alibabacloud/ens/model/UnassociateNetworkAclRequest.h new file mode 100644 index 000000000..c9f20bc1b --- /dev/null +++ b/ens/include/alibabacloud/ens/model/UnassociateNetworkAclRequest.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_ENS_MODEL_UNASSOCIATENETWORKACLREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_UNASSOCIATENETWORKACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT UnassociateNetworkAclRequest : public RpcServiceRequest { +public: + struct Resource { + std::string resourceId; + std::string resourceType; + }; + UnassociateNetworkAclRequest(); + ~UnassociateNetworkAclRequest(); + std::string getNetworkAclId() const; + void setNetworkAclId(const std::string &networkAclId); + std::vector getResource() const; + void setResource(const std::vector &resource); + +private: + std::string networkAclId_; + std::vector resource_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_UNASSOCIATENETWORKACLREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/UnassociateNetworkAclResult.h b/ens/include/alibabacloud/ens/model/UnassociateNetworkAclResult.h new file mode 100644 index 000000000..8cd3d0bae --- /dev/null +++ b/ens/include/alibabacloud/ens/model/UnassociateNetworkAclResult.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_ENS_MODEL_UNASSOCIATENETWORKACLRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_UNASSOCIATENETWORKACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT UnassociateNetworkAclResult : public ServiceResult + { + public: + + + UnassociateNetworkAclResult(); + explicit UnassociateNetworkAclResult(const std::string &payload); + ~UnassociateNetworkAclResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_UNASSOCIATENETWORKACLRESULT_H_ \ No newline at end of file diff --git a/ens/src/EnsClient.cc b/ens/src/EnsClient.cc index 5c563e28a..66dca7913 100644 --- a/ens/src/EnsClient.cc +++ b/ens/src/EnsClient.cc @@ -51,6 +51,42 @@ EnsClient::EnsClient(const std::string & accessKeyId, const std::string & access EnsClient::~EnsClient() {} +EnsClient::AccosicateNetworkAclOutcome EnsClient::accosicateNetworkAcl(const AccosicateNetworkAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AccosicateNetworkAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AccosicateNetworkAclOutcome(AccosicateNetworkAclResult(outcome.result())); + else + return AccosicateNetworkAclOutcome(outcome.error()); +} + +void EnsClient::accosicateNetworkAclAsync(const AccosicateNetworkAclRequest& request, const AccosicateNetworkAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, accosicateNetworkAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::AccosicateNetworkAclOutcomeCallable EnsClient::accosicateNetworkAclCallable(const AccosicateNetworkAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->accosicateNetworkAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::AddBackendServersOutcome EnsClient::addBackendServers(const AddBackendServersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -663,6 +699,42 @@ EnsClient::CreateEpnInstanceOutcomeCallable EnsClient::createEpnInstanceCallable return task->get_future(); } +EnsClient::CreateFileSystemOutcome EnsClient::createFileSystem(const CreateFileSystemRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFileSystemOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFileSystemOutcome(CreateFileSystemResult(outcome.result())); + else + return CreateFileSystemOutcome(outcome.error()); +} + +void EnsClient::createFileSystemAsync(const CreateFileSystemRequest& request, const CreateFileSystemAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFileSystem(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CreateFileSystemOutcomeCallable EnsClient::createFileSystemCallable(const CreateFileSystemRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFileSystem(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::CreateForwardEntryOutcome EnsClient::createForwardEntry(const CreateForwardEntryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -987,6 +1059,42 @@ EnsClient::CreateLoadBalancerUDPListenerOutcomeCallable EnsClient::createLoadBal return task->get_future(); } +EnsClient::CreateMountTargetOutcome EnsClient::createMountTarget(const CreateMountTargetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateMountTargetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateMountTargetOutcome(CreateMountTargetResult(outcome.result())); + else + return CreateMountTargetOutcome(outcome.error()); +} + +void EnsClient::createMountTargetAsync(const CreateMountTargetRequest& request, const CreateMountTargetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createMountTarget(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CreateMountTargetOutcomeCallable EnsClient::createMountTargetCallable(const CreateMountTargetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createMountTarget(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::CreateNatGatewayOutcome EnsClient::createNatGateway(const CreateNatGatewayRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,6 +1167,78 @@ EnsClient::CreateNetworkOutcomeCallable EnsClient::createNetworkCallable(const C return task->get_future(); } +EnsClient::CreateNetworkAclOutcome EnsClient::createNetworkAcl(const CreateNetworkAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNetworkAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNetworkAclOutcome(CreateNetworkAclResult(outcome.result())); + else + return CreateNetworkAclOutcome(outcome.error()); +} + +void EnsClient::createNetworkAclAsync(const CreateNetworkAclRequest& request, const CreateNetworkAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNetworkAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CreateNetworkAclOutcomeCallable EnsClient::createNetworkAclCallable(const CreateNetworkAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNetworkAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::CreateNetworkAclEntryOutcome EnsClient::createNetworkAclEntry(const CreateNetworkAclEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNetworkAclEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNetworkAclEntryOutcome(CreateNetworkAclEntryResult(outcome.result())); + else + return CreateNetworkAclEntryOutcome(outcome.error()); +} + +void EnsClient::createNetworkAclEntryAsync(const CreateNetworkAclEntryRequest& request, const CreateNetworkAclEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNetworkAclEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CreateNetworkAclEntryOutcomeCallable EnsClient::createNetworkAclEntryCallable(const CreateNetworkAclEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNetworkAclEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::CreateSecurityGroupOutcome EnsClient::createSecurityGroup(const CreateSecurityGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1311,6 +1491,42 @@ EnsClient::DeleteEpnInstanceOutcomeCallable EnsClient::deleteEpnInstanceCallable return task->get_future(); } +EnsClient::DeleteFileSystemOutcome EnsClient::deleteFileSystem(const DeleteFileSystemRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFileSystemOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFileSystemOutcome(DeleteFileSystemResult(outcome.result())); + else + return DeleteFileSystemOutcome(outcome.error()); +} + +void EnsClient::deleteFileSystemAsync(const DeleteFileSystemRequest& request, const DeleteFileSystemAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFileSystem(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DeleteFileSystemOutcomeCallable EnsClient::deleteFileSystemCallable(const DeleteFileSystemRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFileSystem(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::DeleteForwardEntryOutcome EnsClient::deleteForwardEntry(const DeleteForwardEntryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1455,6 +1671,42 @@ EnsClient::DeleteLoadBalancerListenerOutcomeCallable EnsClient::deleteLoadBalanc return task->get_future(); } +EnsClient::DeleteMountTargetOutcome EnsClient::deleteMountTarget(const DeleteMountTargetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteMountTargetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteMountTargetOutcome(DeleteMountTargetResult(outcome.result())); + else + return DeleteMountTargetOutcome(outcome.error()); +} + +void EnsClient::deleteMountTargetAsync(const DeleteMountTargetRequest& request, const DeleteMountTargetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteMountTarget(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DeleteMountTargetOutcomeCallable EnsClient::deleteMountTargetCallable(const DeleteMountTargetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteMountTarget(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::DeleteNatGatewayOutcome EnsClient::deleteNatGateway(const DeleteNatGatewayRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1527,6 +1779,78 @@ EnsClient::DeleteNetworkOutcomeCallable EnsClient::deleteNetworkCallable(const D return task->get_future(); } +EnsClient::DeleteNetworkAclOutcome EnsClient::deleteNetworkAcl(const DeleteNetworkAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNetworkAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNetworkAclOutcome(DeleteNetworkAclResult(outcome.result())); + else + return DeleteNetworkAclOutcome(outcome.error()); +} + +void EnsClient::deleteNetworkAclAsync(const DeleteNetworkAclRequest& request, const DeleteNetworkAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNetworkAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DeleteNetworkAclOutcomeCallable EnsClient::deleteNetworkAclCallable(const DeleteNetworkAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNetworkAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DeleteNetworkAclEntryOutcome EnsClient::deleteNetworkAclEntry(const DeleteNetworkAclEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNetworkAclEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNetworkAclEntryOutcome(DeleteNetworkAclEntryResult(outcome.result())); + else + return DeleteNetworkAclEntryOutcome(outcome.error()); +} + +void EnsClient::deleteNetworkAclEntryAsync(const DeleteNetworkAclEntryRequest& request, const DeleteNetworkAclEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNetworkAclEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DeleteNetworkAclEntryOutcomeCallable EnsClient::deleteNetworkAclEntryCallable(const DeleteNetworkAclEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNetworkAclEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::DeleteSecurityGroupOutcome EnsClient::deleteSecurityGroup(const DeleteSecurityGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3507,6 +3831,42 @@ EnsClient::DescribeMeasurementDataOutcomeCallable EnsClient::describeMeasurement return task->get_future(); } +EnsClient::DescribeMountTargetsOutcome EnsClient::describeMountTargets(const DescribeMountTargetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMountTargetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMountTargetsOutcome(DescribeMountTargetsResult(outcome.result())); + else + return DescribeMountTargetsOutcome(outcome.error()); +} + +void EnsClient::describeMountTargetsAsync(const DescribeMountTargetsRequest& request, const DescribeMountTargetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMountTargets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeMountTargetsOutcomeCallable EnsClient::describeMountTargetsCallable(const DescribeMountTargetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMountTargets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::DescribeNatGatewaysOutcome EnsClient::describeNatGateways(const DescribeNatGatewaysRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3543,6 +3903,42 @@ EnsClient::DescribeNatGatewaysOutcomeCallable EnsClient::describeNatGatewaysCall return task->get_future(); } +EnsClient::DescribeNetworkAclsOutcome EnsClient::describeNetworkAcls(const DescribeNetworkAclsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNetworkAclsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNetworkAclsOutcome(DescribeNetworkAclsResult(outcome.result())); + else + return DescribeNetworkAclsOutcome(outcome.error()); +} + +void EnsClient::describeNetworkAclsAsync(const DescribeNetworkAclsRequest& request, const DescribeNetworkAclsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNetworkAcls(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeNetworkAclsOutcomeCallable EnsClient::describeNetworkAclsCallable(const DescribeNetworkAclsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNetworkAcls(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::DescribeNetworkAttributeOutcome EnsClient::describeNetworkAttribute(const DescribeNetworkAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3867,6 +4263,42 @@ EnsClient::DescribeSecurityGroupsOutcomeCallable EnsClient::describeSecurityGrou return task->get_future(); } +EnsClient::DescribeSelfImagesOutcome EnsClient::describeSelfImages(const DescribeSelfImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSelfImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSelfImagesOutcome(DescribeSelfImagesResult(outcome.result())); + else + return DescribeSelfImagesOutcome(outcome.error()); +} + +void EnsClient::describeSelfImagesAsync(const DescribeSelfImagesRequest& request, const DescribeSelfImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSelfImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeSelfImagesOutcomeCallable EnsClient::describeSelfImagesCallable(const DescribeSelfImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSelfImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::DescribeServcieScheduleOutcome EnsClient::describeServcieSchedule(const DescribeServcieScheduleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4551,6 +4983,42 @@ EnsClient::ModifyEpnInstanceOutcomeCallable EnsClient::modifyEpnInstanceCallable return task->get_future(); } +EnsClient::ModifyFileSystemOutcome EnsClient::modifyFileSystem(const ModifyFileSystemRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyFileSystemOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyFileSystemOutcome(ModifyFileSystemResult(outcome.result())); + else + return ModifyFileSystemOutcome(outcome.error()); +} + +void EnsClient::modifyFileSystemAsync(const ModifyFileSystemRequest& request, const ModifyFileSystemAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyFileSystem(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::ModifyFileSystemOutcomeCallable EnsClient::modifyFileSystemCallable(const ModifyFileSystemRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyFileSystem(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::ModifyForwardEntryOutcome EnsClient::modifyForwardEntry(const ModifyForwardEntryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5631,6 +6099,42 @@ EnsClient::ResetDeviceInstanceOutcomeCallable EnsClient::resetDeviceInstanceCall return task->get_future(); } +EnsClient::ResizeDiskOutcome EnsClient::resizeDisk(const ResizeDiskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResizeDiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResizeDiskOutcome(ResizeDiskResult(outcome.result())); + else + return ResizeDiskOutcome(outcome.error()); +} + +void EnsClient::resizeDiskAsync(const ResizeDiskRequest& request, const ResizeDiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resizeDisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::ResizeDiskOutcomeCallable EnsClient::resizeDiskCallable(const ResizeDiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resizeDisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::RestartDeviceInstanceOutcome EnsClient::restartDeviceInstance(const RestartDeviceInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6351,6 +6855,42 @@ EnsClient::UnassignPrivateIpAddressesOutcomeCallable EnsClient::unassignPrivateI return task->get_future(); } +EnsClient::UnassociateNetworkAclOutcome EnsClient::unassociateNetworkAcl(const UnassociateNetworkAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnassociateNetworkAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnassociateNetworkAclOutcome(UnassociateNetworkAclResult(outcome.result())); + else + return UnassociateNetworkAclOutcome(outcome.error()); +} + +void EnsClient::unassociateNetworkAclAsync(const UnassociateNetworkAclRequest& request, const UnassociateNetworkAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unassociateNetworkAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::UnassociateNetworkAclOutcomeCallable EnsClient::unassociateNetworkAclCallable(const UnassociateNetworkAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unassociateNetworkAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::UpgradeAICInstanceImageOutcome EnsClient::upgradeAICInstanceImage(const UpgradeAICInstanceImageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ens/src/model/AccosicateNetworkAclRequest.cc b/ens/src/model/AccosicateNetworkAclRequest.cc new file mode 100644 index 000000000..6646073a4 --- /dev/null +++ b/ens/src/model/AccosicateNetworkAclRequest.cc @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ens::Model::AccosicateNetworkAclRequest; + +AccosicateNetworkAclRequest::AccosicateNetworkAclRequest() + : RpcServiceRequest("ens", "2017-11-10", "AccosicateNetworkAcl") { + setMethod(HttpRequest::Method::Post); +} + +AccosicateNetworkAclRequest::~AccosicateNetworkAclRequest() {} + +std::string AccosicateNetworkAclRequest::getNetworkAclId() const { + return networkAclId_; +} + +void AccosicateNetworkAclRequest::setNetworkAclId(const std::string &networkAclId) { + networkAclId_ = networkAclId; + setParameter(std::string("NetworkAclId"), networkAclId); +} + +std::vector AccosicateNetworkAclRequest::getResource() const { + return resource_; +} + +void AccosicateNetworkAclRequest::setResource(const std::vector &resource) { + resource_ = resource; + for(int dep1 = 0; dep1 != resource.size(); dep1++) { + setParameter(std::string("Resource") + "." + std::to_string(dep1 + 1) + ".ResourceId", resource[dep1].resourceId); + setParameter(std::string("Resource") + "." + std::to_string(dep1 + 1) + ".ResourceType", resource[dep1].resourceType); + } +} + diff --git a/ens/src/model/AccosicateNetworkAclResult.cc b/ens/src/model/AccosicateNetworkAclResult.cc new file mode 100644 index 000000000..775429571 --- /dev/null +++ b/ens/src/model/AccosicateNetworkAclResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +AccosicateNetworkAclResult::AccosicateNetworkAclResult() : + ServiceResult() +{} + +AccosicateNetworkAclResult::AccosicateNetworkAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AccosicateNetworkAclResult::~AccosicateNetworkAclResult() +{} + +void AccosicateNetworkAclResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/CreateFileSystemRequest.cc b/ens/src/model/CreateFileSystemRequest.cc new file mode 100644 index 000000000..b072b9b72 --- /dev/null +++ b/ens/src/model/CreateFileSystemRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateFileSystemRequest; + +CreateFileSystemRequest::CreateFileSystemRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateFileSystem") { + setMethod(HttpRequest::Method::Get); +} + +CreateFileSystemRequest::~CreateFileSystemRequest() {} + +std::vector CreateFileSystemRequest::getOrderDetails() const { + return orderDetails_; +} + +void CreateFileSystemRequest::setOrderDetails(const std::vector &orderDetails) { + orderDetails_ = orderDetails; + for(int dep1 = 0; dep1 != orderDetails.size(); dep1++) { + setParameter(std::string("OrderDetails") + "." + std::to_string(dep1 + 1) + ".FileSystemName", orderDetails[dep1].fileSystemName); + setParameter(std::string("OrderDetails") + "." + std::to_string(dep1 + 1) + ".EnsRegionId", orderDetails[dep1].ensRegionId); + setParameter(std::string("OrderDetails") + "." + std::to_string(dep1 + 1) + ".MountTargetDomain", orderDetails[dep1].mountTargetDomain); + setParameter(std::string("OrderDetails") + "." + std::to_string(dep1 + 1) + ".ProtocolType", orderDetails[dep1].protocolType); + setParameter(std::string("OrderDetails") + "." + std::to_string(dep1 + 1) + ".NetworkId", orderDetails[dep1].networkId); + setParameter(std::string("OrderDetails") + "." + std::to_string(dep1 + 1) + ".ChargeType", orderDetails[dep1].chargeType); + setParameter(std::string("OrderDetails") + "." + std::to_string(dep1 + 1) + ".StorgeType", orderDetails[dep1].storgeType); + setParameter(std::string("OrderDetails") + "." + std::to_string(dep1 + 1) + ".OrderType", orderDetails[dep1].orderType); + } +} + diff --git a/ens/src/model/CreateFileSystemResult.cc b/ens/src/model/CreateFileSystemResult.cc new file mode 100644 index 000000000..8159e7ce0 --- /dev/null +++ b/ens/src/model/CreateFileSystemResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +CreateFileSystemResult::CreateFileSystemResult() : + ServiceResult() +{} + +CreateFileSystemResult::CreateFileSystemResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFileSystemResult::~CreateFileSystemResult() +{} + +void CreateFileSystemResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAllocationId = value["AllocationId"]["AllocationId"]; + for (const auto &item : allAllocationId) + allocationId_.push_back(item.asString()); + auto allUnAllocationId = value["UnAllocationId"]["UnAllocationId"]; + for (const auto &item : allUnAllocationId) + unAllocationId_.push_back(item.asString()); + if(!value["BizStatusCode"].isNull()) + bizStatusCode_ = value["BizStatusCode"].asString(); + +} + +std::string CreateFileSystemResult::getBizStatusCode()const +{ + return bizStatusCode_; +} + +std::vector CreateFileSystemResult::getAllocationId()const +{ + return allocationId_; +} + +std::vector CreateFileSystemResult::getUnAllocationId()const +{ + return unAllocationId_; +} + diff --git a/ens/src/model/CreateMountTargetRequest.cc b/ens/src/model/CreateMountTargetRequest.cc new file mode 100644 index 000000000..45de56bd2 --- /dev/null +++ b/ens/src/model/CreateMountTargetRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateMountTargetRequest; + +CreateMountTargetRequest::CreateMountTargetRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateMountTarget") { + setMethod(HttpRequest::Method::Post); +} + +CreateMountTargetRequest::~CreateMountTargetRequest() {} + +std::string CreateMountTargetRequest::getMountTargetName() const { + return mountTargetName_; +} + +void CreateMountTargetRequest::setMountTargetName(const std::string &mountTargetName) { + mountTargetName_ = mountTargetName; + setParameter(std::string("MountTargetName"), mountTargetName); +} + +std::string CreateMountTargetRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void CreateMountTargetRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string CreateMountTargetRequest::getFileSystemId() const { + return fileSystemId_; +} + +void CreateMountTargetRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + +std::string CreateMountTargetRequest::getNetWorkId() const { + return netWorkId_; +} + +void CreateMountTargetRequest::setNetWorkId(const std::string &netWorkId) { + netWorkId_ = netWorkId; + setParameter(std::string("NetWorkId"), netWorkId); +} + diff --git a/ens/src/model/CreateMountTargetResult.cc b/ens/src/model/CreateMountTargetResult.cc new file mode 100644 index 000000000..693302edc --- /dev/null +++ b/ens/src/model/CreateMountTargetResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +CreateMountTargetResult::CreateMountTargetResult() : + ServiceResult() +{} + +CreateMountTargetResult::CreateMountTargetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMountTargetResult::~CreateMountTargetResult() +{} + +void CreateMountTargetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string CreateMountTargetResult::getStatus()const +{ + return status_; +} + diff --git a/ens/src/model/CreateNetworkAclEntryRequest.cc b/ens/src/model/CreateNetworkAclEntryRequest.cc new file mode 100644 index 000000000..9505706a7 --- /dev/null +++ b/ens/src/model/CreateNetworkAclEntryRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ens::Model::CreateNetworkAclEntryRequest; + +CreateNetworkAclEntryRequest::CreateNetworkAclEntryRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateNetworkAclEntry") { + setMethod(HttpRequest::Method::Post); +} + +CreateNetworkAclEntryRequest::~CreateNetworkAclEntryRequest() {} + +std::string CreateNetworkAclEntryRequest::getNetworkAclEntryName() const { + return networkAclEntryName_; +} + +void CreateNetworkAclEntryRequest::setNetworkAclEntryName(const std::string &networkAclEntryName) { + networkAclEntryName_ = networkAclEntryName; + setParameter(std::string("NetworkAclEntryName"), networkAclEntryName); +} + +std::string CreateNetworkAclEntryRequest::getProtocol() const { + return protocol_; +} + +void CreateNetworkAclEntryRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +std::string CreateNetworkAclEntryRequest::getPortRange() const { + return portRange_; +} + +void CreateNetworkAclEntryRequest::setPortRange(const std::string &portRange) { + portRange_ = portRange; + setParameter(std::string("PortRange"), portRange); +} + +int CreateNetworkAclEntryRequest::getPriority() const { + return priority_; +} + +void CreateNetworkAclEntryRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); +} + +std::string CreateNetworkAclEntryRequest::getDescription() const { + return description_; +} + +void CreateNetworkAclEntryRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateNetworkAclEntryRequest::getNetworkAclId() const { + return networkAclId_; +} + +void CreateNetworkAclEntryRequest::setNetworkAclId(const std::string &networkAclId) { + networkAclId_ = networkAclId; + setParameter(std::string("NetworkAclId"), networkAclId); +} + +std::string CreateNetworkAclEntryRequest::getDirection() const { + return direction_; +} + +void CreateNetworkAclEntryRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); +} + +std::string CreateNetworkAclEntryRequest::getPolicy() const { + return policy_; +} + +void CreateNetworkAclEntryRequest::setPolicy(const std::string &policy) { + policy_ = policy; + setParameter(std::string("Policy"), policy); +} + +std::string CreateNetworkAclEntryRequest::getCidrBlock() const { + return cidrBlock_; +} + +void CreateNetworkAclEntryRequest::setCidrBlock(const std::string &cidrBlock) { + cidrBlock_ = cidrBlock; + setParameter(std::string("CidrBlock"), cidrBlock); +} + diff --git a/ens/src/model/CreateNetworkAclEntryResult.cc b/ens/src/model/CreateNetworkAclEntryResult.cc new file mode 100644 index 000000000..573d25498 --- /dev/null +++ b/ens/src/model/CreateNetworkAclEntryResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +CreateNetworkAclEntryResult::CreateNetworkAclEntryResult() : + ServiceResult() +{} + +CreateNetworkAclEntryResult::CreateNetworkAclEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNetworkAclEntryResult::~CreateNetworkAclEntryResult() +{} + +void CreateNetworkAclEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["NetworkAclEntryId"].isNull()) + networkAclEntryId_ = value["NetworkAclEntryId"].asString(); + +} + +std::string CreateNetworkAclEntryResult::getNetworkAclEntryId()const +{ + return networkAclEntryId_; +} + diff --git a/ens/src/model/CreateNetworkAclRequest.cc b/ens/src/model/CreateNetworkAclRequest.cc new file mode 100644 index 000000000..d317f8b22 --- /dev/null +++ b/ens/src/model/CreateNetworkAclRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateNetworkAclRequest; + +CreateNetworkAclRequest::CreateNetworkAclRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateNetworkAcl") { + setMethod(HttpRequest::Method::Post); +} + +CreateNetworkAclRequest::~CreateNetworkAclRequest() {} + +std::string CreateNetworkAclRequest::getDescription() const { + return description_; +} + +void CreateNetworkAclRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateNetworkAclRequest::getNetworkAclName() const { + return networkAclName_; +} + +void CreateNetworkAclRequest::setNetworkAclName(const std::string &networkAclName) { + networkAclName_ = networkAclName; + setParameter(std::string("NetworkAclName"), networkAclName); +} + diff --git a/ens/src/model/CreateNetworkAclResult.cc b/ens/src/model/CreateNetworkAclResult.cc new file mode 100644 index 000000000..5c1a708c5 --- /dev/null +++ b/ens/src/model/CreateNetworkAclResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +CreateNetworkAclResult::CreateNetworkAclResult() : + ServiceResult() +{} + +CreateNetworkAclResult::CreateNetworkAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNetworkAclResult::~CreateNetworkAclResult() +{} + +void CreateNetworkAclResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["NetworkAclId"].isNull()) + networkAclId_ = value["NetworkAclId"].asString(); + +} + +std::string CreateNetworkAclResult::getNetworkAclId()const +{ + return networkAclId_; +} + diff --git a/ens/src/model/DeleteFileSystemRequest.cc b/ens/src/model/DeleteFileSystemRequest.cc new file mode 100644 index 000000000..0cfc070b4 --- /dev/null +++ b/ens/src/model/DeleteFileSystemRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DeleteFileSystemRequest; + +DeleteFileSystemRequest::DeleteFileSystemRequest() + : RpcServiceRequest("ens", "2017-11-10", "DeleteFileSystem") { + setMethod(HttpRequest::Method::Get); +} + +DeleteFileSystemRequest::~DeleteFileSystemRequest() {} + +std::string DeleteFileSystemRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DeleteFileSystemRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string DeleteFileSystemRequest::getFileSystemId() const { + return fileSystemId_; +} + +void DeleteFileSystemRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + diff --git a/ens/src/model/DeleteFileSystemResult.cc b/ens/src/model/DeleteFileSystemResult.cc new file mode 100644 index 000000000..5e6ed9be3 --- /dev/null +++ b/ens/src/model/DeleteFileSystemResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DeleteFileSystemResult::DeleteFileSystemResult() : + ServiceResult() +{} + +DeleteFileSystemResult::DeleteFileSystemResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFileSystemResult::~DeleteFileSystemResult() +{} + +void DeleteFileSystemResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/DeleteMountTargetRequest.cc b/ens/src/model/DeleteMountTargetRequest.cc new file mode 100644 index 000000000..304ef56bc --- /dev/null +++ b/ens/src/model/DeleteMountTargetRequest.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 + +using AlibabaCloud::Ens::Model::DeleteMountTargetRequest; + +DeleteMountTargetRequest::DeleteMountTargetRequest() + : RpcServiceRequest("ens", "2017-11-10", "DeleteMountTarget") { + setMethod(HttpRequest::Method::Post); +} + +DeleteMountTargetRequest::~DeleteMountTargetRequest() {} + +std::string DeleteMountTargetRequest::getMountTargetName() const { + return mountTargetName_; +} + +void DeleteMountTargetRequest::setMountTargetName(const std::string &mountTargetName) { + mountTargetName_ = mountTargetName; + setParameter(std::string("MountTargetName"), mountTargetName); +} + +std::string DeleteMountTargetRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DeleteMountTargetRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string DeleteMountTargetRequest::getFileSystemId() const { + return fileSystemId_; +} + +void DeleteMountTargetRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + diff --git a/ens/src/model/DeleteMountTargetResult.cc b/ens/src/model/DeleteMountTargetResult.cc new file mode 100644 index 000000000..5fb10496b --- /dev/null +++ b/ens/src/model/DeleteMountTargetResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DeleteMountTargetResult::DeleteMountTargetResult() : + ServiceResult() +{} + +DeleteMountTargetResult::DeleteMountTargetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteMountTargetResult::~DeleteMountTargetResult() +{} + +void DeleteMountTargetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/DeleteNetworkAclEntryRequest.cc b/ens/src/model/DeleteNetworkAclEntryRequest.cc new file mode 100644 index 000000000..64464f31f --- /dev/null +++ b/ens/src/model/DeleteNetworkAclEntryRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ens::Model::DeleteNetworkAclEntryRequest; + +DeleteNetworkAclEntryRequest::DeleteNetworkAclEntryRequest() + : RpcServiceRequest("ens", "2017-11-10", "DeleteNetworkAclEntry") { + setMethod(HttpRequest::Method::Post); +} + +DeleteNetworkAclEntryRequest::~DeleteNetworkAclEntryRequest() {} + +std::string DeleteNetworkAclEntryRequest::getNetworkAclEntryId() const { + return networkAclEntryId_; +} + +void DeleteNetworkAclEntryRequest::setNetworkAclEntryId(const std::string &networkAclEntryId) { + networkAclEntryId_ = networkAclEntryId; + setParameter(std::string("NetworkAclEntryId"), networkAclEntryId); +} + diff --git a/ens/src/model/DeleteNetworkAclEntryResult.cc b/ens/src/model/DeleteNetworkAclEntryResult.cc new file mode 100644 index 000000000..563321196 --- /dev/null +++ b/ens/src/model/DeleteNetworkAclEntryResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DeleteNetworkAclEntryResult::DeleteNetworkAclEntryResult() : + ServiceResult() +{} + +DeleteNetworkAclEntryResult::DeleteNetworkAclEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNetworkAclEntryResult::~DeleteNetworkAclEntryResult() +{} + +void DeleteNetworkAclEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/DeleteNetworkAclRequest.cc b/ens/src/model/DeleteNetworkAclRequest.cc new file mode 100644 index 000000000..d3cc15a90 --- /dev/null +++ b/ens/src/model/DeleteNetworkAclRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ens::Model::DeleteNetworkAclRequest; + +DeleteNetworkAclRequest::DeleteNetworkAclRequest() + : RpcServiceRequest("ens", "2017-11-10", "DeleteNetworkAcl") { + setMethod(HttpRequest::Method::Post); +} + +DeleteNetworkAclRequest::~DeleteNetworkAclRequest() {} + +std::string DeleteNetworkAclRequest::getNetworkAclId() const { + return networkAclId_; +} + +void DeleteNetworkAclRequest::setNetworkAclId(const std::string &networkAclId) { + networkAclId_ = networkAclId; + setParameter(std::string("NetworkAclId"), networkAclId); +} + diff --git a/ens/src/model/DeleteNetworkAclResult.cc b/ens/src/model/DeleteNetworkAclResult.cc new file mode 100644 index 000000000..84351ac51 --- /dev/null +++ b/ens/src/model/DeleteNetworkAclResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DeleteNetworkAclResult::DeleteNetworkAclResult() : + ServiceResult() +{} + +DeleteNetworkAclResult::DeleteNetworkAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNetworkAclResult::~DeleteNetworkAclResult() +{} + +void DeleteNetworkAclResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/DescribeInstancesRequest.cc b/ens/src/model/DescribeInstancesRequest.cc index 15f88b698..c1afe754b 100644 --- a/ens/src/model/DescribeInstancesRequest.cc +++ b/ens/src/model/DescribeInstancesRequest.cc @@ -115,6 +115,15 @@ void DescribeInstancesRequest::setStatus(const std::string &status) { setParameter(std::string("Status"), status); } +std::string DescribeInstancesRequest::getIntranetIp() const { + return intranetIp_; +} + +void DescribeInstancesRequest::setIntranetIp(const std::string &intranetIp) { + intranetIp_ = intranetIp; + setParameter(std::string("IntranetIp"), intranetIp); +} + std::string DescribeInstancesRequest::getImageId() const { return imageId_; } diff --git a/ens/src/model/DescribeInstancesResult.cc b/ens/src/model/DescribeInstancesResult.cc index 8e9f14c03..6c6b61691 100644 --- a/ens/src/model/DescribeInstancesResult.cc +++ b/ens/src/model/DescribeInstancesResult.cc @@ -49,6 +49,8 @@ void DescribeInstancesResult::parse(const std::string &payload) instancesObject.status = valueInstancesInstance["Status"].asString(); if(!valueInstancesInstance["SpecName"].isNull()) instancesObject.specName = valueInstancesInstance["SpecName"].asString(); + if(!valueInstancesInstance["InstanceTypeFamily"].isNull()) + instancesObject.instanceTypeFamily = valueInstancesInstance["InstanceTypeFamily"].asString(); if(!valueInstancesInstance["InstanceResourceType"].isNull()) instancesObject.instanceResourceType = valueInstancesInstance["InstanceResourceType"].asString(); if(!valueInstancesInstance["HostName"].isNull()) @@ -69,10 +71,10 @@ void DescribeInstancesResult::parse(const std::string &payload) instancesObject.instanceName = valueInstancesInstance["InstanceName"].asString(); if(!valueInstancesInstance["Disk"].isNull()) instancesObject.disk = std::stoi(valueInstancesInstance["Disk"].asString()); - if(!valueInstancesInstance["Memory"].isNull()) - instancesObject.memory = std::stoi(valueInstancesInstance["Memory"].asString()); if(!valueInstancesInstance["OSName"].isNull()) instancesObject.oSName = valueInstancesInstance["OSName"].asString(); + if(!valueInstancesInstance["Memory"].isNull()) + instancesObject.memory = std::stoi(valueInstancesInstance["Memory"].asString()); if(!valueInstancesInstance["ImageId"].isNull()) instancesObject.imageId = valueInstancesInstance["ImageId"].asString(); auto allDataDiskNode = valueInstancesInstance["DataDisk"]["DataDiskItem"]; diff --git a/ens/src/model/DescribeMountTargetsRequest.cc b/ens/src/model/DescribeMountTargetsRequest.cc new file mode 100644 index 000000000..469d4c596 --- /dev/null +++ b/ens/src/model/DescribeMountTargetsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeMountTargetsRequest; + +DescribeMountTargetsRequest::DescribeMountTargetsRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeMountTargets") { + setMethod(HttpRequest::Method::Post); +} + +DescribeMountTargetsRequest::~DescribeMountTargetsRequest() {} + +std::string DescribeMountTargetsRequest::getMountTargetName() const { + return mountTargetName_; +} + +void DescribeMountTargetsRequest::setMountTargetName(const std::string &mountTargetName) { + mountTargetName_ = mountTargetName; + setParameter(std::string("MountTargetName"), mountTargetName); +} + +int DescribeMountTargetsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeMountTargetsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeMountTargetsRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribeMountTargetsRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +int DescribeMountTargetsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeMountTargetsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeMountTargetsRequest::getFileSystemId() const { + return fileSystemId_; +} + +void DescribeMountTargetsRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + diff --git a/ens/src/model/DescribeMountTargetsResult.cc b/ens/src/model/DescribeMountTargetsResult.cc new file mode 100644 index 000000000..a8628ffb0 --- /dev/null +++ b/ens/src/model/DescribeMountTargetsResult.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeMountTargetsResult::DescribeMountTargetsResult() : + ServiceResult() +{} + +DescribeMountTargetsResult::DescribeMountTargetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMountTargetsResult::~DescribeMountTargetsResult() +{} + +void DescribeMountTargetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allMountTargetsNode = value["MountTargets"]["MountTargetsItem"]; + for (auto valueMountTargetsMountTargetsItem : allMountTargetsNode) + { + MountTargetsItem mountTargetsObject; + if(!valueMountTargetsMountTargetsItem["MountTargetDomain"].isNull()) + mountTargetsObject.mountTargetDomain = valueMountTargetsMountTargetsItem["MountTargetDomain"].asString(); + if(!valueMountTargetsMountTargetsItem["MountTargetName"].isNull()) + mountTargetsObject.mountTargetName = valueMountTargetsMountTargetsItem["MountTargetName"].asString(); + if(!valueMountTargetsMountTargetsItem["NetWorkId"].isNull()) + mountTargetsObject.netWorkId = valueMountTargetsMountTargetsItem["NetWorkId"].asString(); + if(!valueMountTargetsMountTargetsItem["Status"].isNull()) + mountTargetsObject.status = valueMountTargetsMountTargetsItem["Status"].asString(); + if(!valueMountTargetsMountTargetsItem["EnsRegionId"].isNull()) + mountTargetsObject.ensRegionId = valueMountTargetsMountTargetsItem["EnsRegionId"].asString(); + if(!valueMountTargetsMountTargetsItem["FileSystemId"].isNull()) + mountTargetsObject.fileSystemId = valueMountTargetsMountTargetsItem["FileSystemId"].asString(); + mountTargets_.push_back(mountTargetsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeMountTargetsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeMountTargetsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeMountTargetsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeMountTargetsResult::getMountTargets()const +{ + return mountTargets_; +} + diff --git a/ens/src/model/DescribeNetworkAclsRequest.cc b/ens/src/model/DescribeNetworkAclsRequest.cc new file mode 100644 index 000000000..09e568e24 --- /dev/null +++ b/ens/src/model/DescribeNetworkAclsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeNetworkAclsRequest; + +DescribeNetworkAclsRequest::DescribeNetworkAclsRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeNetworkAcls") { + setMethod(HttpRequest::Method::Get); +} + +DescribeNetworkAclsRequest::~DescribeNetworkAclsRequest() {} + +std::string DescribeNetworkAclsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeNetworkAclsRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); +} + +std::string DescribeNetworkAclsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeNetworkAclsRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string DescribeNetworkAclsRequest::getNetworkAclId() const { + return networkAclId_; +} + +void DescribeNetworkAclsRequest::setNetworkAclId(const std::string &networkAclId) { + networkAclId_ = networkAclId; + setParameter(std::string("NetworkAclId"), networkAclId); +} + +std::string DescribeNetworkAclsRequest::getResourceId() const { + return resourceId_; +} + +void DescribeNetworkAclsRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string DescribeNetworkAclsRequest::getNetworkAclName() const { + return networkAclName_; +} + +void DescribeNetworkAclsRequest::setNetworkAclName(const std::string &networkAclName) { + networkAclName_ = networkAclName; + setParameter(std::string("NetworkAclName"), networkAclName); +} + diff --git a/ens/src/model/DescribeNetworkAclsResult.cc b/ens/src/model/DescribeNetworkAclsResult.cc new file mode 100644 index 000000000..cb5d9a945 --- /dev/null +++ b/ens/src/model/DescribeNetworkAclsResult.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeNetworkAclsResult::DescribeNetworkAclsResult() : + ServiceResult() +{} + +DescribeNetworkAclsResult::DescribeNetworkAclsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNetworkAclsResult::~DescribeNetworkAclsResult() +{} + +void DescribeNetworkAclsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allNetworkAclsNode = value["NetworkAcls"]["NetworkAcl"]; + for (auto valueNetworkAclsNetworkAcl : allNetworkAclsNode) + { + NetworkAcl networkAclsObject; + if(!valueNetworkAclsNetworkAcl["Status"].isNull()) + networkAclsObject.status = valueNetworkAclsNetworkAcl["Status"].asString(); + if(!valueNetworkAclsNetworkAcl["CreationTime"].isNull()) + networkAclsObject.creationTime = valueNetworkAclsNetworkAcl["CreationTime"].asString(); + if(!valueNetworkAclsNetworkAcl["Description"].isNull()) + networkAclsObject.description = valueNetworkAclsNetworkAcl["Description"].asString(); + if(!valueNetworkAclsNetworkAcl["NetworkAclId"].isNull()) + networkAclsObject.networkAclId = valueNetworkAclsNetworkAcl["NetworkAclId"].asString(); + if(!valueNetworkAclsNetworkAcl["NetworkAclName"].isNull()) + networkAclsObject.networkAclName = valueNetworkAclsNetworkAcl["NetworkAclName"].asString(); + auto allIngressAclEntriesNode = valueNetworkAclsNetworkAcl["IngressAclEntries"]["IngressAclRule"]; + for (auto valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule : allIngressAclEntriesNode) + { + NetworkAcl::IngressAclRule ingressAclEntriesObject; + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Policy"].isNull()) + ingressAclEntriesObject.policy = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Policy"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["NetworkAclEntryId"].isNull()) + ingressAclEntriesObject.networkAclEntryId = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["NetworkAclEntryId"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["NetworkAclEntryName"].isNull()) + ingressAclEntriesObject.networkAclEntryName = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["NetworkAclEntryName"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["CidrBlock"].isNull()) + ingressAclEntriesObject.cidrBlock = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["CidrBlock"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Protocol"].isNull()) + ingressAclEntriesObject.protocol = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Protocol"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["PortRange"].isNull()) + ingressAclEntriesObject.portRange = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["PortRange"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Priority"].isNull()) + ingressAclEntriesObject.priority = std::stoi(valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Priority"].asString()); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Type"].isNull()) + ingressAclEntriesObject.type = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Type"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Description"].isNull()) + ingressAclEntriesObject.description = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Description"].asString(); + networkAclsObject.ingressAclEntries.push_back(ingressAclEntriesObject); + } + auto allEgressAclEntriesNode = valueNetworkAclsNetworkAcl["EgressAclEntries"]["EgressAclRule"]; + for (auto valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule : allEgressAclEntriesNode) + { + NetworkAcl::EgressAclRule egressAclEntriesObject; + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Policy"].isNull()) + egressAclEntriesObject.policy = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Policy"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["NetworkAclEntryId"].isNull()) + egressAclEntriesObject.networkAclEntryId = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["NetworkAclEntryId"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["NetworkAclEntryName"].isNull()) + egressAclEntriesObject.networkAclEntryName = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["NetworkAclEntryName"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["CidrBlock"].isNull()) + egressAclEntriesObject.cidrBlock = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["CidrBlock"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Protocol"].isNull()) + egressAclEntriesObject.protocol = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Protocol"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["PortRange"].isNull()) + egressAclEntriesObject.portRange = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["PortRange"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Priority"].isNull()) + egressAclEntriesObject.priority = std::stoi(valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Priority"].asString()); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Type"].isNull()) + egressAclEntriesObject.type = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Type"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Description"].isNull()) + egressAclEntriesObject.description = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Description"].asString(); + networkAclsObject.egressAclEntries.push_back(egressAclEntriesObject); + } + auto allResourcesNode = valueNetworkAclsNetworkAcl["Resources"]["resource"]; + for (auto valueNetworkAclsNetworkAclResourcesresource : allResourcesNode) + { + NetworkAcl::Resource resourcesObject; + if(!valueNetworkAclsNetworkAclResourcesresource["Status"].isNull()) + resourcesObject.status = valueNetworkAclsNetworkAclResourcesresource["Status"].asString(); + if(!valueNetworkAclsNetworkAclResourcesresource["ResourceType"].isNull()) + resourcesObject.resourceType = valueNetworkAclsNetworkAclResourcesresource["ResourceType"].asString(); + if(!valueNetworkAclsNetworkAclResourcesresource["ResourceId"].isNull()) + resourcesObject.resourceId = valueNetworkAclsNetworkAclResourcesresource["ResourceId"].asString(); + if(!valueNetworkAclsNetworkAclResourcesresource["EnsRegionId"].isNull()) + resourcesObject.ensRegionId = valueNetworkAclsNetworkAclResourcesresource["EnsRegionId"].asString(); + networkAclsObject.resources.push_back(resourcesObject); + } + networkAcls_.push_back(networkAclsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = value["PageSize"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); + +} + +std::vector DescribeNetworkAclsResult::getNetworkAcls()const +{ + return networkAcls_; +} + +std::string DescribeNetworkAclsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeNetworkAclsResult::getPageSize()const +{ + return pageSize_; +} + +std::string DescribeNetworkAclsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ens/src/model/DescribeNetworkAttributeResult.cc b/ens/src/model/DescribeNetworkAttributeResult.cc index 9187b1970..43546779a 100644 --- a/ens/src/model/DescribeNetworkAttributeResult.cc +++ b/ens/src/model/DescribeNetworkAttributeResult.cc @@ -68,6 +68,8 @@ void DescribeNetworkAttributeResult::parse(const std::string &payload) createdTime_ = value["CreatedTime"].asString(); if(!value["RouterTableId"].isNull()) routerTableId_ = value["RouterTableId"].asString(); + if(!value["NetworkAclId"].isNull()) + networkAclId_ = value["NetworkAclId"].asString(); } @@ -91,6 +93,11 @@ std::string DescribeNetworkAttributeResult::getCreatedTime()const return createdTime_; } +std::string DescribeNetworkAttributeResult::getNetworkAclId()const +{ + return networkAclId_; +} + std::vector DescribeNetworkAttributeResult::getVSwitchIds()const { return vSwitchIds_; diff --git a/ens/src/model/DescribeNetworksResult.cc b/ens/src/model/DescribeNetworksResult.cc index b35c62935..e57de7db3 100644 --- a/ens/src/model/DescribeNetworksResult.cc +++ b/ens/src/model/DescribeNetworksResult.cc @@ -59,6 +59,8 @@ void DescribeNetworksResult::parse(const std::string &payload) networksObject.createdTime = valueNetworksNetwork["CreatedTime"].asString(); if(!valueNetworksNetwork["RouterTableId"].isNull()) networksObject.routerTableId = valueNetworksNetwork["RouterTableId"].asString(); + if(!valueNetworksNetwork["NetworkAclId"].isNull()) + networksObject.networkAclId = valueNetworksNetwork["NetworkAclId"].asString(); auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"]; for (auto value : allVSwitchIds) networksObject.vSwitchIds.push_back(value.asString()); diff --git a/ens/src/model/DescribeSelfImagesRequest.cc b/ens/src/model/DescribeSelfImagesRequest.cc new file mode 100644 index 000000000..f5d299627 --- /dev/null +++ b/ens/src/model/DescribeSelfImagesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeSelfImagesRequest; + +DescribeSelfImagesRequest::DescribeSelfImagesRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeSelfImages") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSelfImagesRequest::~DescribeSelfImagesRequest() {} + +std::string DescribeSelfImagesRequest::getImageId() const { + return imageId_; +} + +void DescribeSelfImagesRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +int DescribeSelfImagesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeSelfImagesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeSelfImagesRequest::getImageName() const { + return imageName_; +} + +void DescribeSelfImagesRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setParameter(std::string("ImageName"), imageName); +} + +int DescribeSelfImagesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeSelfImagesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ens/src/model/DescribeSelfImagesResult.cc b/ens/src/model/DescribeSelfImagesResult.cc new file mode 100644 index 000000000..d1a9edf1d --- /dev/null +++ b/ens/src/model/DescribeSelfImagesResult.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeSelfImagesResult::DescribeSelfImagesResult() : + ServiceResult() +{} + +DescribeSelfImagesResult::DescribeSelfImagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSelfImagesResult::~DescribeSelfImagesResult() +{} + +void DescribeSelfImagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImagesNode = value["Images"]["Image"]; + for (auto valueImagesImage : allImagesNode) + { + Image imagesObject; + if(!valueImagesImage["Architecture"].isNull()) + imagesObject.architecture = valueImagesImage["Architecture"].asString(); + if(!valueImagesImage["CreationTime"].isNull()) + imagesObject.creationTime = valueImagesImage["CreationTime"].asString(); + if(!valueImagesImage["ImageId"].isNull()) + imagesObject.imageId = valueImagesImage["ImageId"].asString(); + if(!valueImagesImage["ImageName"].isNull()) + imagesObject.imageName = valueImagesImage["ImageName"].asString(); + if(!valueImagesImage["ImageOwnerAlias"].isNull()) + imagesObject.imageOwnerAlias = valueImagesImage["ImageOwnerAlias"].asString(); + if(!valueImagesImage["ImageSize"].isNull()) + imagesObject.imageSize = valueImagesImage["ImageSize"].asString(); + if(!valueImagesImage["InstanceId"].isNull()) + imagesObject.instanceId = valueImagesImage["InstanceId"].asString(); + if(!valueImagesImage["OsVersion"].isNull()) + imagesObject.osVersion = valueImagesImage["OsVersion"].asString(); + if(!valueImagesImage["Platform"].isNull()) + imagesObject.platform = valueImagesImage["Platform"].asString(); + if(!valueImagesImage["Status"].isNull()) + imagesObject.status = valueImagesImage["Status"].asString(); + images_.push_back(imagesObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +std::vector DescribeSelfImagesResult::getImages()const +{ + return images_; +} + +int DescribeSelfImagesResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/ModifyFileSystemRequest.cc b/ens/src/model/ModifyFileSystemRequest.cc new file mode 100644 index 000000000..098d9b1cc --- /dev/null +++ b/ens/src/model/ModifyFileSystemRequest.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 + +using AlibabaCloud::Ens::Model::ModifyFileSystemRequest; + +ModifyFileSystemRequest::ModifyFileSystemRequest() + : RpcServiceRequest("ens", "2017-11-10", "ModifyFileSystem") { + setMethod(HttpRequest::Method::Post); +} + +ModifyFileSystemRequest::~ModifyFileSystemRequest() {} + +std::string ModifyFileSystemRequest::getDescription() const { + return description_; +} + +void ModifyFileSystemRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string ModifyFileSystemRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void ModifyFileSystemRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string ModifyFileSystemRequest::getFileSystemId() const { + return fileSystemId_; +} + +void ModifyFileSystemRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + diff --git a/ens/src/model/ModifyFileSystemResult.cc b/ens/src/model/ModifyFileSystemResult.cc new file mode 100644 index 000000000..253725094 --- /dev/null +++ b/ens/src/model/ModifyFileSystemResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +ModifyFileSystemResult::ModifyFileSystemResult() : + ServiceResult() +{} + +ModifyFileSystemResult::ModifyFileSystemResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyFileSystemResult::~ModifyFileSystemResult() +{} + +void ModifyFileSystemResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/ResizeDiskRequest.cc b/ens/src/model/ResizeDiskRequest.cc new file mode 100644 index 000000000..fec3e6941 --- /dev/null +++ b/ens/src/model/ResizeDiskRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::ResizeDiskRequest; + +ResizeDiskRequest::ResizeDiskRequest() + : RpcServiceRequest("ens", "2017-11-10", "ResizeDisk") { + setMethod(HttpRequest::Method::Post); +} + +ResizeDiskRequest::~ResizeDiskRequest() {} + +std::string ResizeDiskRequest::getDiskId() const { + return diskId_; +} + +void ResizeDiskRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); +} + +std::string ResizeDiskRequest::getNewSize() const { + return newSize_; +} + +void ResizeDiskRequest::setNewSize(const std::string &newSize) { + newSize_ = newSize; + setParameter(std::string("NewSize"), newSize); +} + diff --git a/ens/src/model/ResizeDiskResult.cc b/ens/src/model/ResizeDiskResult.cc new file mode 100644 index 000000000..ac92f6470 --- /dev/null +++ b/ens/src/model/ResizeDiskResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +ResizeDiskResult::ResizeDiskResult() : + ServiceResult() +{} + +ResizeDiskResult::ResizeDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResizeDiskResult::~ResizeDiskResult() +{} + +void ResizeDiskResult::parse(const std::string &payload) +{ + Json::Reader reader; + 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/ens/src/model/UnassociateNetworkAclRequest.cc b/ens/src/model/UnassociateNetworkAclRequest.cc new file mode 100644 index 000000000..1edad315a --- /dev/null +++ b/ens/src/model/UnassociateNetworkAclRequest.cc @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ens::Model::UnassociateNetworkAclRequest; + +UnassociateNetworkAclRequest::UnassociateNetworkAclRequest() + : RpcServiceRequest("ens", "2017-11-10", "UnassociateNetworkAcl") { + setMethod(HttpRequest::Method::Post); +} + +UnassociateNetworkAclRequest::~UnassociateNetworkAclRequest() {} + +std::string UnassociateNetworkAclRequest::getNetworkAclId() const { + return networkAclId_; +} + +void UnassociateNetworkAclRequest::setNetworkAclId(const std::string &networkAclId) { + networkAclId_ = networkAclId; + setParameter(std::string("NetworkAclId"), networkAclId); +} + +std::vector UnassociateNetworkAclRequest::getResource() const { + return resource_; +} + +void UnassociateNetworkAclRequest::setResource(const std::vector &resource) { + resource_ = resource; + for(int dep1 = 0; dep1 != resource.size(); dep1++) { + setParameter(std::string("Resource") + "." + std::to_string(dep1 + 1) + ".ResourceId", resource[dep1].resourceId); + setParameter(std::string("Resource") + "." + std::to_string(dep1 + 1) + ".ResourceType", resource[dep1].resourceType); + } +} + diff --git a/ens/src/model/UnassociateNetworkAclResult.cc b/ens/src/model/UnassociateNetworkAclResult.cc new file mode 100644 index 000000000..4871c45f7 --- /dev/null +++ b/ens/src/model/UnassociateNetworkAclResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +UnassociateNetworkAclResult::UnassociateNetworkAclResult() : + ServiceResult() +{} + +UnassociateNetworkAclResult::UnassociateNetworkAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnassociateNetworkAclResult::~UnassociateNetworkAclResult() +{} + +void UnassociateNetworkAclResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +