diff --git a/VERSION b/VERSION index fef11a6c7..2569a546c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2007 \ No newline at end of file +1.36.2008 \ No newline at end of file diff --git a/nas/CMakeLists.txt b/nas/CMakeLists.txt index 60e0b26b4..fe39f1613 100644 --- a/nas/CMakeLists.txt +++ b/nas/CMakeLists.txt @@ -33,24 +33,36 @@ set(nas_public_header_model include/alibabacloud/nas/model/CancelAutoSnapshotPolicyResult.h include/alibabacloud/nas/model/CancelDataFlowAutoRefreshRequest.h include/alibabacloud/nas/model/CancelDataFlowAutoRefreshResult.h + include/alibabacloud/nas/model/CancelDataFlowSubTaskRequest.h + include/alibabacloud/nas/model/CancelDataFlowSubTaskResult.h include/alibabacloud/nas/model/CancelDataFlowTaskRequest.h include/alibabacloud/nas/model/CancelDataFlowTaskResult.h include/alibabacloud/nas/model/CancelDirQuotaRequest.h include/alibabacloud/nas/model/CancelDirQuotaResult.h + include/alibabacloud/nas/model/CancelFilesetQuotaRequest.h + include/alibabacloud/nas/model/CancelFilesetQuotaResult.h include/alibabacloud/nas/model/CancelLifecycleRetrieveJobRequest.h include/alibabacloud/nas/model/CancelLifecycleRetrieveJobResult.h include/alibabacloud/nas/model/CancelRecycleBinJobRequest.h include/alibabacloud/nas/model/CancelRecycleBinJobResult.h + include/alibabacloud/nas/model/ChangeResourceGroupRequest.h + include/alibabacloud/nas/model/ChangeResourceGroupResult.h include/alibabacloud/nas/model/CreateAccessGroupRequest.h include/alibabacloud/nas/model/CreateAccessGroupResult.h + include/alibabacloud/nas/model/CreateAccessPointRequest.h + include/alibabacloud/nas/model/CreateAccessPointResult.h include/alibabacloud/nas/model/CreateAccessRuleRequest.h include/alibabacloud/nas/model/CreateAccessRuleResult.h include/alibabacloud/nas/model/CreateAutoSnapshotPolicyRequest.h include/alibabacloud/nas/model/CreateAutoSnapshotPolicyResult.h include/alibabacloud/nas/model/CreateDataFlowRequest.h include/alibabacloud/nas/model/CreateDataFlowResult.h + include/alibabacloud/nas/model/CreateDataFlowSubTaskRequest.h + include/alibabacloud/nas/model/CreateDataFlowSubTaskResult.h include/alibabacloud/nas/model/CreateDataFlowTaskRequest.h include/alibabacloud/nas/model/CreateDataFlowTaskResult.h + include/alibabacloud/nas/model/CreateDirRequest.h + include/alibabacloud/nas/model/CreateDirResult.h include/alibabacloud/nas/model/CreateFileRequest.h include/alibabacloud/nas/model/CreateFileResult.h include/alibabacloud/nas/model/CreateFileSystemRequest.h @@ -63,6 +75,8 @@ set(nas_public_header_model include/alibabacloud/nas/model/CreateLifecyclePolicyResult.h include/alibabacloud/nas/model/CreateLifecycleRetrieveJobRequest.h include/alibabacloud/nas/model/CreateLifecycleRetrieveJobResult.h + include/alibabacloud/nas/model/CreateLogAnalysisRequest.h + include/alibabacloud/nas/model/CreateLogAnalysisResult.h include/alibabacloud/nas/model/CreateMountTargetRequest.h include/alibabacloud/nas/model/CreateMountTargetResult.h include/alibabacloud/nas/model/CreateProtocolMountTargetRequest.h @@ -77,6 +91,8 @@ set(nas_public_header_model include/alibabacloud/nas/model/CreateSnapshotResult.h include/alibabacloud/nas/model/DeleteAccessGroupRequest.h include/alibabacloud/nas/model/DeleteAccessGroupResult.h + include/alibabacloud/nas/model/DeleteAccessPointRequest.h + include/alibabacloud/nas/model/DeleteAccessPointResult.h include/alibabacloud/nas/model/DeleteAccessRuleRequest.h include/alibabacloud/nas/model/DeleteAccessRuleResult.h include/alibabacloud/nas/model/DeleteAutoSnapshotPolicyRequest.h @@ -91,6 +107,8 @@ set(nas_public_header_model include/alibabacloud/nas/model/DeleteLDAPConfigResult.h include/alibabacloud/nas/model/DeleteLifecyclePolicyRequest.h include/alibabacloud/nas/model/DeleteLifecyclePolicyResult.h + include/alibabacloud/nas/model/DeleteLogAnalysisRequest.h + include/alibabacloud/nas/model/DeleteLogAnalysisResult.h include/alibabacloud/nas/model/DeleteMountTargetRequest.h include/alibabacloud/nas/model/DeleteMountTargetResult.h include/alibabacloud/nas/model/DeleteProtocolMountTargetRequest.h @@ -101,6 +119,10 @@ set(nas_public_header_model include/alibabacloud/nas/model/DeleteSnapshotResult.h include/alibabacloud/nas/model/DescribeAccessGroupsRequest.h include/alibabacloud/nas/model/DescribeAccessGroupsResult.h + include/alibabacloud/nas/model/DescribeAccessPointRequest.h + include/alibabacloud/nas/model/DescribeAccessPointResult.h + include/alibabacloud/nas/model/DescribeAccessPointsRequest.h + include/alibabacloud/nas/model/DescribeAccessPointsResult.h include/alibabacloud/nas/model/DescribeAccessRulesRequest.h include/alibabacloud/nas/model/DescribeAccessRulesResult.h include/alibabacloud/nas/model/DescribeAutoSnapshotPoliciesRequest.h @@ -109,6 +131,8 @@ set(nas_public_header_model include/alibabacloud/nas/model/DescribeAutoSnapshotTasksResult.h include/alibabacloud/nas/model/DescribeBlackListClientsRequest.h include/alibabacloud/nas/model/DescribeBlackListClientsResult.h + include/alibabacloud/nas/model/DescribeDataFlowSubTasksRequest.h + include/alibabacloud/nas/model/DescribeDataFlowSubTasksResult.h include/alibabacloud/nas/model/DescribeDataFlowTasksRequest.h include/alibabacloud/nas/model/DescribeDataFlowTasksResult.h include/alibabacloud/nas/model/DescribeDataFlowsRequest.h @@ -121,8 +145,6 @@ set(nas_public_header_model include/alibabacloud/nas/model/DescribeFileSystemsResult.h include/alibabacloud/nas/model/DescribeFilesetsRequest.h include/alibabacloud/nas/model/DescribeFilesetsResult.h - include/alibabacloud/nas/model/DescribeLDAPConfigRequest.h - include/alibabacloud/nas/model/DescribeLDAPConfigResult.h include/alibabacloud/nas/model/DescribeLifecyclePoliciesRequest.h include/alibabacloud/nas/model/DescribeLifecyclePoliciesResult.h include/alibabacloud/nas/model/DescribeLogAnalysisRequest.h @@ -131,6 +153,8 @@ set(nas_public_header_model include/alibabacloud/nas/model/DescribeMountTargetsResult.h include/alibabacloud/nas/model/DescribeMountedClientsRequest.h include/alibabacloud/nas/model/DescribeMountedClientsResult.h + include/alibabacloud/nas/model/DescribeNfsAclRequest.h + include/alibabacloud/nas/model/DescribeNfsAclResult.h include/alibabacloud/nas/model/DescribeProtocolMountTargetRequest.h include/alibabacloud/nas/model/DescribeProtocolMountTargetResult.h include/alibabacloud/nas/model/DescribeProtocolServiceRequest.h @@ -143,14 +167,16 @@ set(nas_public_header_model include/alibabacloud/nas/model/DescribeSnapshotsResult.h include/alibabacloud/nas/model/DescribeStoragePackagesRequest.h include/alibabacloud/nas/model/DescribeStoragePackagesResult.h - include/alibabacloud/nas/model/DescribeTagsRequest.h - include/alibabacloud/nas/model/DescribeTagsResult.h include/alibabacloud/nas/model/DescribeZonesRequest.h include/alibabacloud/nas/model/DescribeZonesResult.h include/alibabacloud/nas/model/DisableAndCleanRecycleBinRequest.h include/alibabacloud/nas/model/DisableAndCleanRecycleBinResult.h + include/alibabacloud/nas/model/DisableNfsAclRequest.h + include/alibabacloud/nas/model/DisableNfsAclResult.h include/alibabacloud/nas/model/DisableSmbAclRequest.h include/alibabacloud/nas/model/DisableSmbAclResult.h + include/alibabacloud/nas/model/EnableNfsAclRequest.h + include/alibabacloud/nas/model/EnableNfsAclResult.h include/alibabacloud/nas/model/EnableRecycleBinRequest.h include/alibabacloud/nas/model/EnableRecycleBinResult.h include/alibabacloud/nas/model/EnableSmbAclRequest.h @@ -173,6 +199,8 @@ set(nas_public_header_model include/alibabacloud/nas/model/ListTagResourcesResult.h include/alibabacloud/nas/model/ModifyAccessGroupRequest.h include/alibabacloud/nas/model/ModifyAccessGroupResult.h + include/alibabacloud/nas/model/ModifyAccessPointRequest.h + include/alibabacloud/nas/model/ModifyAccessPointResult.h include/alibabacloud/nas/model/ModifyAccessRuleRequest.h include/alibabacloud/nas/model/ModifyAccessRuleResult.h include/alibabacloud/nas/model/ModifyAutoSnapshotPolicyRequest.h @@ -209,6 +237,8 @@ set(nas_public_header_model include/alibabacloud/nas/model/RetryLifecycleRetrieveJobResult.h include/alibabacloud/nas/model/SetDirQuotaRequest.h include/alibabacloud/nas/model/SetDirQuotaResult.h + include/alibabacloud/nas/model/SetFilesetQuotaRequest.h + include/alibabacloud/nas/model/SetFilesetQuotaResult.h include/alibabacloud/nas/model/StartDataFlowRequest.h include/alibabacloud/nas/model/StartDataFlowResult.h include/alibabacloud/nas/model/StopDataFlowRequest.h @@ -236,24 +266,36 @@ set(nas_src src/model/CancelAutoSnapshotPolicyResult.cc src/model/CancelDataFlowAutoRefreshRequest.cc src/model/CancelDataFlowAutoRefreshResult.cc + src/model/CancelDataFlowSubTaskRequest.cc + src/model/CancelDataFlowSubTaskResult.cc src/model/CancelDataFlowTaskRequest.cc src/model/CancelDataFlowTaskResult.cc src/model/CancelDirQuotaRequest.cc src/model/CancelDirQuotaResult.cc + src/model/CancelFilesetQuotaRequest.cc + src/model/CancelFilesetQuotaResult.cc src/model/CancelLifecycleRetrieveJobRequest.cc src/model/CancelLifecycleRetrieveJobResult.cc src/model/CancelRecycleBinJobRequest.cc src/model/CancelRecycleBinJobResult.cc + src/model/ChangeResourceGroupRequest.cc + src/model/ChangeResourceGroupResult.cc src/model/CreateAccessGroupRequest.cc src/model/CreateAccessGroupResult.cc + src/model/CreateAccessPointRequest.cc + src/model/CreateAccessPointResult.cc src/model/CreateAccessRuleRequest.cc src/model/CreateAccessRuleResult.cc src/model/CreateAutoSnapshotPolicyRequest.cc src/model/CreateAutoSnapshotPolicyResult.cc src/model/CreateDataFlowRequest.cc src/model/CreateDataFlowResult.cc + src/model/CreateDataFlowSubTaskRequest.cc + src/model/CreateDataFlowSubTaskResult.cc src/model/CreateDataFlowTaskRequest.cc src/model/CreateDataFlowTaskResult.cc + src/model/CreateDirRequest.cc + src/model/CreateDirResult.cc src/model/CreateFileRequest.cc src/model/CreateFileResult.cc src/model/CreateFileSystemRequest.cc @@ -266,6 +308,8 @@ set(nas_src src/model/CreateLifecyclePolicyResult.cc src/model/CreateLifecycleRetrieveJobRequest.cc src/model/CreateLifecycleRetrieveJobResult.cc + src/model/CreateLogAnalysisRequest.cc + src/model/CreateLogAnalysisResult.cc src/model/CreateMountTargetRequest.cc src/model/CreateMountTargetResult.cc src/model/CreateProtocolMountTargetRequest.cc @@ -280,6 +324,8 @@ set(nas_src src/model/CreateSnapshotResult.cc src/model/DeleteAccessGroupRequest.cc src/model/DeleteAccessGroupResult.cc + src/model/DeleteAccessPointRequest.cc + src/model/DeleteAccessPointResult.cc src/model/DeleteAccessRuleRequest.cc src/model/DeleteAccessRuleResult.cc src/model/DeleteAutoSnapshotPolicyRequest.cc @@ -294,6 +340,8 @@ set(nas_src src/model/DeleteLDAPConfigResult.cc src/model/DeleteLifecyclePolicyRequest.cc src/model/DeleteLifecyclePolicyResult.cc + src/model/DeleteLogAnalysisRequest.cc + src/model/DeleteLogAnalysisResult.cc src/model/DeleteMountTargetRequest.cc src/model/DeleteMountTargetResult.cc src/model/DeleteProtocolMountTargetRequest.cc @@ -304,6 +352,10 @@ set(nas_src src/model/DeleteSnapshotResult.cc src/model/DescribeAccessGroupsRequest.cc src/model/DescribeAccessGroupsResult.cc + src/model/DescribeAccessPointRequest.cc + src/model/DescribeAccessPointResult.cc + src/model/DescribeAccessPointsRequest.cc + src/model/DescribeAccessPointsResult.cc src/model/DescribeAccessRulesRequest.cc src/model/DescribeAccessRulesResult.cc src/model/DescribeAutoSnapshotPoliciesRequest.cc @@ -312,6 +364,8 @@ set(nas_src src/model/DescribeAutoSnapshotTasksResult.cc src/model/DescribeBlackListClientsRequest.cc src/model/DescribeBlackListClientsResult.cc + src/model/DescribeDataFlowSubTasksRequest.cc + src/model/DescribeDataFlowSubTasksResult.cc src/model/DescribeDataFlowTasksRequest.cc src/model/DescribeDataFlowTasksResult.cc src/model/DescribeDataFlowsRequest.cc @@ -324,8 +378,6 @@ set(nas_src src/model/DescribeFileSystemsResult.cc src/model/DescribeFilesetsRequest.cc src/model/DescribeFilesetsResult.cc - src/model/DescribeLDAPConfigRequest.cc - src/model/DescribeLDAPConfigResult.cc src/model/DescribeLifecyclePoliciesRequest.cc src/model/DescribeLifecyclePoliciesResult.cc src/model/DescribeLogAnalysisRequest.cc @@ -334,6 +386,8 @@ set(nas_src src/model/DescribeMountTargetsResult.cc src/model/DescribeMountedClientsRequest.cc src/model/DescribeMountedClientsResult.cc + src/model/DescribeNfsAclRequest.cc + src/model/DescribeNfsAclResult.cc src/model/DescribeProtocolMountTargetRequest.cc src/model/DescribeProtocolMountTargetResult.cc src/model/DescribeProtocolServiceRequest.cc @@ -346,14 +400,16 @@ set(nas_src src/model/DescribeSnapshotsResult.cc src/model/DescribeStoragePackagesRequest.cc src/model/DescribeStoragePackagesResult.cc - src/model/DescribeTagsRequest.cc - src/model/DescribeTagsResult.cc src/model/DescribeZonesRequest.cc src/model/DescribeZonesResult.cc src/model/DisableAndCleanRecycleBinRequest.cc src/model/DisableAndCleanRecycleBinResult.cc + src/model/DisableNfsAclRequest.cc + src/model/DisableNfsAclResult.cc src/model/DisableSmbAclRequest.cc src/model/DisableSmbAclResult.cc + src/model/EnableNfsAclRequest.cc + src/model/EnableNfsAclResult.cc src/model/EnableRecycleBinRequest.cc src/model/EnableRecycleBinResult.cc src/model/EnableSmbAclRequest.cc @@ -376,6 +432,8 @@ set(nas_src src/model/ListTagResourcesResult.cc src/model/ModifyAccessGroupRequest.cc src/model/ModifyAccessGroupResult.cc + src/model/ModifyAccessPointRequest.cc + src/model/ModifyAccessPointResult.cc src/model/ModifyAccessRuleRequest.cc src/model/ModifyAccessRuleResult.cc src/model/ModifyAutoSnapshotPolicyRequest.cc @@ -412,6 +470,8 @@ set(nas_src src/model/RetryLifecycleRetrieveJobResult.cc src/model/SetDirQuotaRequest.cc src/model/SetDirQuotaResult.cc + src/model/SetFilesetQuotaRequest.cc + src/model/SetFilesetQuotaResult.cc src/model/StartDataFlowRequest.cc src/model/StartDataFlowResult.cc src/model/StopDataFlowRequest.cc diff --git a/nas/include/alibabacloud/nas/NASClient.h b/nas/include/alibabacloud/nas/NASClient.h index b9e9d72b0..11e3c5433 100644 --- a/nas/include/alibabacloud/nas/NASClient.h +++ b/nas/include/alibabacloud/nas/NASClient.h @@ -34,24 +34,36 @@ #include "model/CancelAutoSnapshotPolicyResult.h" #include "model/CancelDataFlowAutoRefreshRequest.h" #include "model/CancelDataFlowAutoRefreshResult.h" +#include "model/CancelDataFlowSubTaskRequest.h" +#include "model/CancelDataFlowSubTaskResult.h" #include "model/CancelDataFlowTaskRequest.h" #include "model/CancelDataFlowTaskResult.h" #include "model/CancelDirQuotaRequest.h" #include "model/CancelDirQuotaResult.h" +#include "model/CancelFilesetQuotaRequest.h" +#include "model/CancelFilesetQuotaResult.h" #include "model/CancelLifecycleRetrieveJobRequest.h" #include "model/CancelLifecycleRetrieveJobResult.h" #include "model/CancelRecycleBinJobRequest.h" #include "model/CancelRecycleBinJobResult.h" +#include "model/ChangeResourceGroupRequest.h" +#include "model/ChangeResourceGroupResult.h" #include "model/CreateAccessGroupRequest.h" #include "model/CreateAccessGroupResult.h" +#include "model/CreateAccessPointRequest.h" +#include "model/CreateAccessPointResult.h" #include "model/CreateAccessRuleRequest.h" #include "model/CreateAccessRuleResult.h" #include "model/CreateAutoSnapshotPolicyRequest.h" #include "model/CreateAutoSnapshotPolicyResult.h" #include "model/CreateDataFlowRequest.h" #include "model/CreateDataFlowResult.h" +#include "model/CreateDataFlowSubTaskRequest.h" +#include "model/CreateDataFlowSubTaskResult.h" #include "model/CreateDataFlowTaskRequest.h" #include "model/CreateDataFlowTaskResult.h" +#include "model/CreateDirRequest.h" +#include "model/CreateDirResult.h" #include "model/CreateFileRequest.h" #include "model/CreateFileResult.h" #include "model/CreateFileSystemRequest.h" @@ -64,6 +76,8 @@ #include "model/CreateLifecyclePolicyResult.h" #include "model/CreateLifecycleRetrieveJobRequest.h" #include "model/CreateLifecycleRetrieveJobResult.h" +#include "model/CreateLogAnalysisRequest.h" +#include "model/CreateLogAnalysisResult.h" #include "model/CreateMountTargetRequest.h" #include "model/CreateMountTargetResult.h" #include "model/CreateProtocolMountTargetRequest.h" @@ -78,6 +92,8 @@ #include "model/CreateSnapshotResult.h" #include "model/DeleteAccessGroupRequest.h" #include "model/DeleteAccessGroupResult.h" +#include "model/DeleteAccessPointRequest.h" +#include "model/DeleteAccessPointResult.h" #include "model/DeleteAccessRuleRequest.h" #include "model/DeleteAccessRuleResult.h" #include "model/DeleteAutoSnapshotPolicyRequest.h" @@ -92,6 +108,8 @@ #include "model/DeleteLDAPConfigResult.h" #include "model/DeleteLifecyclePolicyRequest.h" #include "model/DeleteLifecyclePolicyResult.h" +#include "model/DeleteLogAnalysisRequest.h" +#include "model/DeleteLogAnalysisResult.h" #include "model/DeleteMountTargetRequest.h" #include "model/DeleteMountTargetResult.h" #include "model/DeleteProtocolMountTargetRequest.h" @@ -102,6 +120,10 @@ #include "model/DeleteSnapshotResult.h" #include "model/DescribeAccessGroupsRequest.h" #include "model/DescribeAccessGroupsResult.h" +#include "model/DescribeAccessPointRequest.h" +#include "model/DescribeAccessPointResult.h" +#include "model/DescribeAccessPointsRequest.h" +#include "model/DescribeAccessPointsResult.h" #include "model/DescribeAccessRulesRequest.h" #include "model/DescribeAccessRulesResult.h" #include "model/DescribeAutoSnapshotPoliciesRequest.h" @@ -110,6 +132,8 @@ #include "model/DescribeAutoSnapshotTasksResult.h" #include "model/DescribeBlackListClientsRequest.h" #include "model/DescribeBlackListClientsResult.h" +#include "model/DescribeDataFlowSubTasksRequest.h" +#include "model/DescribeDataFlowSubTasksResult.h" #include "model/DescribeDataFlowTasksRequest.h" #include "model/DescribeDataFlowTasksResult.h" #include "model/DescribeDataFlowsRequest.h" @@ -122,8 +146,6 @@ #include "model/DescribeFileSystemsResult.h" #include "model/DescribeFilesetsRequest.h" #include "model/DescribeFilesetsResult.h" -#include "model/DescribeLDAPConfigRequest.h" -#include "model/DescribeLDAPConfigResult.h" #include "model/DescribeLifecyclePoliciesRequest.h" #include "model/DescribeLifecyclePoliciesResult.h" #include "model/DescribeLogAnalysisRequest.h" @@ -132,6 +154,8 @@ #include "model/DescribeMountTargetsResult.h" #include "model/DescribeMountedClientsRequest.h" #include "model/DescribeMountedClientsResult.h" +#include "model/DescribeNfsAclRequest.h" +#include "model/DescribeNfsAclResult.h" #include "model/DescribeProtocolMountTargetRequest.h" #include "model/DescribeProtocolMountTargetResult.h" #include "model/DescribeProtocolServiceRequest.h" @@ -144,14 +168,16 @@ #include "model/DescribeSnapshotsResult.h" #include "model/DescribeStoragePackagesRequest.h" #include "model/DescribeStoragePackagesResult.h" -#include "model/DescribeTagsRequest.h" -#include "model/DescribeTagsResult.h" #include "model/DescribeZonesRequest.h" #include "model/DescribeZonesResult.h" #include "model/DisableAndCleanRecycleBinRequest.h" #include "model/DisableAndCleanRecycleBinResult.h" +#include "model/DisableNfsAclRequest.h" +#include "model/DisableNfsAclResult.h" #include "model/DisableSmbAclRequest.h" #include "model/DisableSmbAclResult.h" +#include "model/EnableNfsAclRequest.h" +#include "model/EnableNfsAclResult.h" #include "model/EnableRecycleBinRequest.h" #include "model/EnableRecycleBinResult.h" #include "model/EnableSmbAclRequest.h" @@ -174,6 +200,8 @@ #include "model/ListTagResourcesResult.h" #include "model/ModifyAccessGroupRequest.h" #include "model/ModifyAccessGroupResult.h" +#include "model/ModifyAccessPointRequest.h" +#include "model/ModifyAccessPointResult.h" #include "model/ModifyAccessRuleRequest.h" #include "model/ModifyAccessRuleResult.h" #include "model/ModifyAutoSnapshotPolicyRequest.h" @@ -210,6 +238,8 @@ #include "model/RetryLifecycleRetrieveJobResult.h" #include "model/SetDirQuotaRequest.h" #include "model/SetDirQuotaResult.h" +#include "model/SetFilesetQuotaRequest.h" +#include "model/SetFilesetQuotaResult.h" #include "model/StartDataFlowRequest.h" #include "model/StartDataFlowResult.h" #include "model/StopDataFlowRequest.h" @@ -249,21 +279,33 @@ namespace AlibabaCloud typedef Outcome CancelDataFlowAutoRefreshOutcome; typedef std::future CancelDataFlowAutoRefreshOutcomeCallable; typedef std::function&)> CancelDataFlowAutoRefreshAsyncHandler; + typedef Outcome CancelDataFlowSubTaskOutcome; + typedef std::future CancelDataFlowSubTaskOutcomeCallable; + typedef std::function&)> CancelDataFlowSubTaskAsyncHandler; typedef Outcome CancelDataFlowTaskOutcome; typedef std::future CancelDataFlowTaskOutcomeCallable; typedef std::function&)> CancelDataFlowTaskAsyncHandler; typedef Outcome CancelDirQuotaOutcome; typedef std::future CancelDirQuotaOutcomeCallable; typedef std::function&)> CancelDirQuotaAsyncHandler; + typedef Outcome CancelFilesetQuotaOutcome; + typedef std::future CancelFilesetQuotaOutcomeCallable; + typedef std::function&)> CancelFilesetQuotaAsyncHandler; typedef Outcome CancelLifecycleRetrieveJobOutcome; typedef std::future CancelLifecycleRetrieveJobOutcomeCallable; typedef std::function&)> CancelLifecycleRetrieveJobAsyncHandler; typedef Outcome CancelRecycleBinJobOutcome; typedef std::future CancelRecycleBinJobOutcomeCallable; typedef std::function&)> CancelRecycleBinJobAsyncHandler; + typedef Outcome ChangeResourceGroupOutcome; + typedef std::future ChangeResourceGroupOutcomeCallable; + typedef std::function&)> ChangeResourceGroupAsyncHandler; typedef Outcome CreateAccessGroupOutcome; typedef std::future CreateAccessGroupOutcomeCallable; typedef std::function&)> CreateAccessGroupAsyncHandler; + typedef Outcome CreateAccessPointOutcome; + typedef std::future CreateAccessPointOutcomeCallable; + typedef std::function&)> CreateAccessPointAsyncHandler; typedef Outcome CreateAccessRuleOutcome; typedef std::future CreateAccessRuleOutcomeCallable; typedef std::function&)> CreateAccessRuleAsyncHandler; @@ -273,9 +315,15 @@ namespace AlibabaCloud typedef Outcome CreateDataFlowOutcome; typedef std::future CreateDataFlowOutcomeCallable; typedef std::function&)> CreateDataFlowAsyncHandler; + typedef Outcome CreateDataFlowSubTaskOutcome; + typedef std::future CreateDataFlowSubTaskOutcomeCallable; + typedef std::function&)> CreateDataFlowSubTaskAsyncHandler; typedef Outcome CreateDataFlowTaskOutcome; typedef std::future CreateDataFlowTaskOutcomeCallable; typedef std::function&)> CreateDataFlowTaskAsyncHandler; + typedef Outcome CreateDirOutcome; + typedef std::future CreateDirOutcomeCallable; + typedef std::function&)> CreateDirAsyncHandler; typedef Outcome CreateFileOutcome; typedef std::future CreateFileOutcomeCallable; typedef std::function&)> CreateFileAsyncHandler; @@ -294,6 +342,9 @@ namespace AlibabaCloud typedef Outcome CreateLifecycleRetrieveJobOutcome; typedef std::future CreateLifecycleRetrieveJobOutcomeCallable; typedef std::function&)> CreateLifecycleRetrieveJobAsyncHandler; + typedef Outcome CreateLogAnalysisOutcome; + typedef std::future CreateLogAnalysisOutcomeCallable; + typedef std::function&)> CreateLogAnalysisAsyncHandler; typedef Outcome CreateMountTargetOutcome; typedef std::future CreateMountTargetOutcomeCallable; typedef std::function&)> CreateMountTargetAsyncHandler; @@ -315,6 +366,9 @@ namespace AlibabaCloud typedef Outcome DeleteAccessGroupOutcome; typedef std::future DeleteAccessGroupOutcomeCallable; typedef std::function&)> DeleteAccessGroupAsyncHandler; + typedef Outcome DeleteAccessPointOutcome; + typedef std::future DeleteAccessPointOutcomeCallable; + typedef std::function&)> DeleteAccessPointAsyncHandler; typedef Outcome DeleteAccessRuleOutcome; typedef std::future DeleteAccessRuleOutcomeCallable; typedef std::function&)> DeleteAccessRuleAsyncHandler; @@ -336,6 +390,9 @@ namespace AlibabaCloud typedef Outcome DeleteLifecyclePolicyOutcome; typedef std::future DeleteLifecyclePolicyOutcomeCallable; typedef std::function&)> DeleteLifecyclePolicyAsyncHandler; + typedef Outcome DeleteLogAnalysisOutcome; + typedef std::future DeleteLogAnalysisOutcomeCallable; + typedef std::function&)> DeleteLogAnalysisAsyncHandler; typedef Outcome DeleteMountTargetOutcome; typedef std::future DeleteMountTargetOutcomeCallable; typedef std::function&)> DeleteMountTargetAsyncHandler; @@ -351,6 +408,12 @@ namespace AlibabaCloud typedef Outcome DescribeAccessGroupsOutcome; typedef std::future DescribeAccessGroupsOutcomeCallable; typedef std::function&)> DescribeAccessGroupsAsyncHandler; + typedef Outcome DescribeAccessPointOutcome; + typedef std::future DescribeAccessPointOutcomeCallable; + typedef std::function&)> DescribeAccessPointAsyncHandler; + typedef Outcome DescribeAccessPointsOutcome; + typedef std::future DescribeAccessPointsOutcomeCallable; + typedef std::function&)> DescribeAccessPointsAsyncHandler; typedef Outcome DescribeAccessRulesOutcome; typedef std::future DescribeAccessRulesOutcomeCallable; typedef std::function&)> DescribeAccessRulesAsyncHandler; @@ -363,6 +426,9 @@ namespace AlibabaCloud typedef Outcome DescribeBlackListClientsOutcome; typedef std::future DescribeBlackListClientsOutcomeCallable; typedef std::function&)> DescribeBlackListClientsAsyncHandler; + typedef Outcome DescribeDataFlowSubTasksOutcome; + typedef std::future DescribeDataFlowSubTasksOutcomeCallable; + typedef std::function&)> DescribeDataFlowSubTasksAsyncHandler; typedef Outcome DescribeDataFlowTasksOutcome; typedef std::future DescribeDataFlowTasksOutcomeCallable; typedef std::function&)> DescribeDataFlowTasksAsyncHandler; @@ -381,9 +447,6 @@ namespace AlibabaCloud typedef Outcome DescribeFilesetsOutcome; typedef std::future DescribeFilesetsOutcomeCallable; typedef std::function&)> DescribeFilesetsAsyncHandler; - typedef Outcome DescribeLDAPConfigOutcome; - typedef std::future DescribeLDAPConfigOutcomeCallable; - typedef std::function&)> DescribeLDAPConfigAsyncHandler; typedef Outcome DescribeLifecyclePoliciesOutcome; typedef std::future DescribeLifecyclePoliciesOutcomeCallable; typedef std::function&)> DescribeLifecyclePoliciesAsyncHandler; @@ -396,6 +459,9 @@ namespace AlibabaCloud typedef Outcome DescribeMountedClientsOutcome; typedef std::future DescribeMountedClientsOutcomeCallable; typedef std::function&)> DescribeMountedClientsAsyncHandler; + typedef Outcome DescribeNfsAclOutcome; + typedef std::future DescribeNfsAclOutcomeCallable; + typedef std::function&)> DescribeNfsAclAsyncHandler; typedef Outcome DescribeProtocolMountTargetOutcome; typedef std::future DescribeProtocolMountTargetOutcomeCallable; typedef std::function&)> DescribeProtocolMountTargetAsyncHandler; @@ -414,18 +480,21 @@ namespace AlibabaCloud typedef Outcome DescribeStoragePackagesOutcome; typedef std::future DescribeStoragePackagesOutcomeCallable; typedef std::function&)> DescribeStoragePackagesAsyncHandler; - typedef Outcome DescribeTagsOutcome; - typedef std::future DescribeTagsOutcomeCallable; - typedef std::function&)> DescribeTagsAsyncHandler; typedef Outcome DescribeZonesOutcome; typedef std::future DescribeZonesOutcomeCallable; typedef std::function&)> DescribeZonesAsyncHandler; typedef Outcome DisableAndCleanRecycleBinOutcome; typedef std::future DisableAndCleanRecycleBinOutcomeCallable; typedef std::function&)> DisableAndCleanRecycleBinAsyncHandler; + typedef Outcome DisableNfsAclOutcome; + typedef std::future DisableNfsAclOutcomeCallable; + typedef std::function&)> DisableNfsAclAsyncHandler; typedef Outcome DisableSmbAclOutcome; typedef std::future DisableSmbAclOutcomeCallable; typedef std::function&)> DisableSmbAclAsyncHandler; + typedef Outcome EnableNfsAclOutcome; + typedef std::future EnableNfsAclOutcomeCallable; + typedef std::function&)> EnableNfsAclAsyncHandler; typedef Outcome EnableRecycleBinOutcome; typedef std::future EnableRecycleBinOutcomeCallable; typedef std::function&)> EnableRecycleBinAsyncHandler; @@ -459,6 +528,9 @@ namespace AlibabaCloud typedef Outcome ModifyAccessGroupOutcome; typedef std::future ModifyAccessGroupOutcomeCallable; typedef std::function&)> ModifyAccessGroupAsyncHandler; + typedef Outcome ModifyAccessPointOutcome; + typedef std::future ModifyAccessPointOutcomeCallable; + typedef std::function&)> ModifyAccessPointAsyncHandler; typedef Outcome ModifyAccessRuleOutcome; typedef std::future ModifyAccessRuleOutcomeCallable; typedef std::function&)> ModifyAccessRuleAsyncHandler; @@ -513,6 +585,9 @@ namespace AlibabaCloud typedef Outcome SetDirQuotaOutcome; typedef std::future SetDirQuotaOutcomeCallable; typedef std::function&)> SetDirQuotaAsyncHandler; + typedef Outcome SetFilesetQuotaOutcome; + typedef std::future SetFilesetQuotaOutcomeCallable; + typedef std::function&)> SetFilesetQuotaAsyncHandler; typedef Outcome StartDataFlowOutcome; typedef std::future StartDataFlowOutcomeCallable; typedef std::function&)> StartDataFlowAsyncHandler; @@ -554,21 +629,33 @@ namespace AlibabaCloud CancelDataFlowAutoRefreshOutcome cancelDataFlowAutoRefresh(const Model::CancelDataFlowAutoRefreshRequest &request)const; void cancelDataFlowAutoRefreshAsync(const Model::CancelDataFlowAutoRefreshRequest& request, const CancelDataFlowAutoRefreshAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelDataFlowAutoRefreshOutcomeCallable cancelDataFlowAutoRefreshCallable(const Model::CancelDataFlowAutoRefreshRequest& request) const; + CancelDataFlowSubTaskOutcome cancelDataFlowSubTask(const Model::CancelDataFlowSubTaskRequest &request)const; + void cancelDataFlowSubTaskAsync(const Model::CancelDataFlowSubTaskRequest& request, const CancelDataFlowSubTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelDataFlowSubTaskOutcomeCallable cancelDataFlowSubTaskCallable(const Model::CancelDataFlowSubTaskRequest& request) const; CancelDataFlowTaskOutcome cancelDataFlowTask(const Model::CancelDataFlowTaskRequest &request)const; void cancelDataFlowTaskAsync(const Model::CancelDataFlowTaskRequest& request, const CancelDataFlowTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelDataFlowTaskOutcomeCallable cancelDataFlowTaskCallable(const Model::CancelDataFlowTaskRequest& request) const; CancelDirQuotaOutcome cancelDirQuota(const Model::CancelDirQuotaRequest &request)const; void cancelDirQuotaAsync(const Model::CancelDirQuotaRequest& request, const CancelDirQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelDirQuotaOutcomeCallable cancelDirQuotaCallable(const Model::CancelDirQuotaRequest& request) const; + CancelFilesetQuotaOutcome cancelFilesetQuota(const Model::CancelFilesetQuotaRequest &request)const; + void cancelFilesetQuotaAsync(const Model::CancelFilesetQuotaRequest& request, const CancelFilesetQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelFilesetQuotaOutcomeCallable cancelFilesetQuotaCallable(const Model::CancelFilesetQuotaRequest& request) const; CancelLifecycleRetrieveJobOutcome cancelLifecycleRetrieveJob(const Model::CancelLifecycleRetrieveJobRequest &request)const; void cancelLifecycleRetrieveJobAsync(const Model::CancelLifecycleRetrieveJobRequest& request, const CancelLifecycleRetrieveJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelLifecycleRetrieveJobOutcomeCallable cancelLifecycleRetrieveJobCallable(const Model::CancelLifecycleRetrieveJobRequest& request) const; CancelRecycleBinJobOutcome cancelRecycleBinJob(const Model::CancelRecycleBinJobRequest &request)const; void cancelRecycleBinJobAsync(const Model::CancelRecycleBinJobRequest& request, const CancelRecycleBinJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelRecycleBinJobOutcomeCallable cancelRecycleBinJobCallable(const Model::CancelRecycleBinJobRequest& request) const; + ChangeResourceGroupOutcome changeResourceGroup(const Model::ChangeResourceGroupRequest &request)const; + void changeResourceGroupAsync(const Model::ChangeResourceGroupRequest& request, const ChangeResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChangeResourceGroupOutcomeCallable changeResourceGroupCallable(const Model::ChangeResourceGroupRequest& request) const; CreateAccessGroupOutcome createAccessGroup(const Model::CreateAccessGroupRequest &request)const; void createAccessGroupAsync(const Model::CreateAccessGroupRequest& request, const CreateAccessGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAccessGroupOutcomeCallable createAccessGroupCallable(const Model::CreateAccessGroupRequest& request) const; + CreateAccessPointOutcome createAccessPoint(const Model::CreateAccessPointRequest &request)const; + void createAccessPointAsync(const Model::CreateAccessPointRequest& request, const CreateAccessPointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAccessPointOutcomeCallable createAccessPointCallable(const Model::CreateAccessPointRequest& request) const; CreateAccessRuleOutcome createAccessRule(const Model::CreateAccessRuleRequest &request)const; void createAccessRuleAsync(const Model::CreateAccessRuleRequest& request, const CreateAccessRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAccessRuleOutcomeCallable createAccessRuleCallable(const Model::CreateAccessRuleRequest& request) const; @@ -578,9 +665,15 @@ namespace AlibabaCloud CreateDataFlowOutcome createDataFlow(const Model::CreateDataFlowRequest &request)const; void createDataFlowAsync(const Model::CreateDataFlowRequest& request, const CreateDataFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDataFlowOutcomeCallable createDataFlowCallable(const Model::CreateDataFlowRequest& request) const; + CreateDataFlowSubTaskOutcome createDataFlowSubTask(const Model::CreateDataFlowSubTaskRequest &request)const; + void createDataFlowSubTaskAsync(const Model::CreateDataFlowSubTaskRequest& request, const CreateDataFlowSubTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDataFlowSubTaskOutcomeCallable createDataFlowSubTaskCallable(const Model::CreateDataFlowSubTaskRequest& request) const; CreateDataFlowTaskOutcome createDataFlowTask(const Model::CreateDataFlowTaskRequest &request)const; void createDataFlowTaskAsync(const Model::CreateDataFlowTaskRequest& request, const CreateDataFlowTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDataFlowTaskOutcomeCallable createDataFlowTaskCallable(const Model::CreateDataFlowTaskRequest& request) const; + CreateDirOutcome createDir(const Model::CreateDirRequest &request)const; + void createDirAsync(const Model::CreateDirRequest& request, const CreateDirAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDirOutcomeCallable createDirCallable(const Model::CreateDirRequest& request) const; CreateFileOutcome createFile(const Model::CreateFileRequest &request)const; void createFileAsync(const Model::CreateFileRequest& request, const CreateFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateFileOutcomeCallable createFileCallable(const Model::CreateFileRequest& request) const; @@ -599,6 +692,9 @@ namespace AlibabaCloud CreateLifecycleRetrieveJobOutcome createLifecycleRetrieveJob(const Model::CreateLifecycleRetrieveJobRequest &request)const; void createLifecycleRetrieveJobAsync(const Model::CreateLifecycleRetrieveJobRequest& request, const CreateLifecycleRetrieveJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateLifecycleRetrieveJobOutcomeCallable createLifecycleRetrieveJobCallable(const Model::CreateLifecycleRetrieveJobRequest& request) const; + CreateLogAnalysisOutcome createLogAnalysis(const Model::CreateLogAnalysisRequest &request)const; + void createLogAnalysisAsync(const Model::CreateLogAnalysisRequest& request, const CreateLogAnalysisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLogAnalysisOutcomeCallable createLogAnalysisCallable(const Model::CreateLogAnalysisRequest& 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; @@ -620,6 +716,9 @@ namespace AlibabaCloud DeleteAccessGroupOutcome deleteAccessGroup(const Model::DeleteAccessGroupRequest &request)const; void deleteAccessGroupAsync(const Model::DeleteAccessGroupRequest& request, const DeleteAccessGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAccessGroupOutcomeCallable deleteAccessGroupCallable(const Model::DeleteAccessGroupRequest& request) const; + DeleteAccessPointOutcome deleteAccessPoint(const Model::DeleteAccessPointRequest &request)const; + void deleteAccessPointAsync(const Model::DeleteAccessPointRequest& request, const DeleteAccessPointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAccessPointOutcomeCallable deleteAccessPointCallable(const Model::DeleteAccessPointRequest& request) const; DeleteAccessRuleOutcome deleteAccessRule(const Model::DeleteAccessRuleRequest &request)const; void deleteAccessRuleAsync(const Model::DeleteAccessRuleRequest& request, const DeleteAccessRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAccessRuleOutcomeCallable deleteAccessRuleCallable(const Model::DeleteAccessRuleRequest& request) const; @@ -641,6 +740,9 @@ namespace AlibabaCloud DeleteLifecyclePolicyOutcome deleteLifecyclePolicy(const Model::DeleteLifecyclePolicyRequest &request)const; void deleteLifecyclePolicyAsync(const Model::DeleteLifecyclePolicyRequest& request, const DeleteLifecyclePolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLifecyclePolicyOutcomeCallable deleteLifecyclePolicyCallable(const Model::DeleteLifecyclePolicyRequest& request) const; + DeleteLogAnalysisOutcome deleteLogAnalysis(const Model::DeleteLogAnalysisRequest &request)const; + void deleteLogAnalysisAsync(const Model::DeleteLogAnalysisRequest& request, const DeleteLogAnalysisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteLogAnalysisOutcomeCallable deleteLogAnalysisCallable(const Model::DeleteLogAnalysisRequest& 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; @@ -656,6 +758,12 @@ namespace AlibabaCloud DescribeAccessGroupsOutcome describeAccessGroups(const Model::DescribeAccessGroupsRequest &request)const; void describeAccessGroupsAsync(const Model::DescribeAccessGroupsRequest& request, const DescribeAccessGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAccessGroupsOutcomeCallable describeAccessGroupsCallable(const Model::DescribeAccessGroupsRequest& request) const; + DescribeAccessPointOutcome describeAccessPoint(const Model::DescribeAccessPointRequest &request)const; + void describeAccessPointAsync(const Model::DescribeAccessPointRequest& request, const DescribeAccessPointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccessPointOutcomeCallable describeAccessPointCallable(const Model::DescribeAccessPointRequest& request) const; + DescribeAccessPointsOutcome describeAccessPoints(const Model::DescribeAccessPointsRequest &request)const; + void describeAccessPointsAsync(const Model::DescribeAccessPointsRequest& request, const DescribeAccessPointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccessPointsOutcomeCallable describeAccessPointsCallable(const Model::DescribeAccessPointsRequest& request) const; DescribeAccessRulesOutcome describeAccessRules(const Model::DescribeAccessRulesRequest &request)const; void describeAccessRulesAsync(const Model::DescribeAccessRulesRequest& request, const DescribeAccessRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAccessRulesOutcomeCallable describeAccessRulesCallable(const Model::DescribeAccessRulesRequest& request) const; @@ -668,6 +776,9 @@ namespace AlibabaCloud DescribeBlackListClientsOutcome describeBlackListClients(const Model::DescribeBlackListClientsRequest &request)const; void describeBlackListClientsAsync(const Model::DescribeBlackListClientsRequest& request, const DescribeBlackListClientsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBlackListClientsOutcomeCallable describeBlackListClientsCallable(const Model::DescribeBlackListClientsRequest& request) const; + DescribeDataFlowSubTasksOutcome describeDataFlowSubTasks(const Model::DescribeDataFlowSubTasksRequest &request)const; + void describeDataFlowSubTasksAsync(const Model::DescribeDataFlowSubTasksRequest& request, const DescribeDataFlowSubTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataFlowSubTasksOutcomeCallable describeDataFlowSubTasksCallable(const Model::DescribeDataFlowSubTasksRequest& request) const; DescribeDataFlowTasksOutcome describeDataFlowTasks(const Model::DescribeDataFlowTasksRequest &request)const; void describeDataFlowTasksAsync(const Model::DescribeDataFlowTasksRequest& request, const DescribeDataFlowTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDataFlowTasksOutcomeCallable describeDataFlowTasksCallable(const Model::DescribeDataFlowTasksRequest& request) const; @@ -686,9 +797,6 @@ namespace AlibabaCloud DescribeFilesetsOutcome describeFilesets(const Model::DescribeFilesetsRequest &request)const; void describeFilesetsAsync(const Model::DescribeFilesetsRequest& request, const DescribeFilesetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeFilesetsOutcomeCallable describeFilesetsCallable(const Model::DescribeFilesetsRequest& request) const; - DescribeLDAPConfigOutcome describeLDAPConfig(const Model::DescribeLDAPConfigRequest &request)const; - void describeLDAPConfigAsync(const Model::DescribeLDAPConfigRequest& request, const DescribeLDAPConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLDAPConfigOutcomeCallable describeLDAPConfigCallable(const Model::DescribeLDAPConfigRequest& request) const; DescribeLifecyclePoliciesOutcome describeLifecyclePolicies(const Model::DescribeLifecyclePoliciesRequest &request)const; void describeLifecyclePoliciesAsync(const Model::DescribeLifecyclePoliciesRequest& request, const DescribeLifecyclePoliciesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLifecyclePoliciesOutcomeCallable describeLifecyclePoliciesCallable(const Model::DescribeLifecyclePoliciesRequest& request) const; @@ -701,6 +809,9 @@ namespace AlibabaCloud DescribeMountedClientsOutcome describeMountedClients(const Model::DescribeMountedClientsRequest &request)const; void describeMountedClientsAsync(const Model::DescribeMountedClientsRequest& request, const DescribeMountedClientsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeMountedClientsOutcomeCallable describeMountedClientsCallable(const Model::DescribeMountedClientsRequest& request) const; + DescribeNfsAclOutcome describeNfsAcl(const Model::DescribeNfsAclRequest &request)const; + void describeNfsAclAsync(const Model::DescribeNfsAclRequest& request, const DescribeNfsAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNfsAclOutcomeCallable describeNfsAclCallable(const Model::DescribeNfsAclRequest& request) const; DescribeProtocolMountTargetOutcome describeProtocolMountTarget(const Model::DescribeProtocolMountTargetRequest &request)const; void describeProtocolMountTargetAsync(const Model::DescribeProtocolMountTargetRequest& request, const DescribeProtocolMountTargetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeProtocolMountTargetOutcomeCallable describeProtocolMountTargetCallable(const Model::DescribeProtocolMountTargetRequest& request) const; @@ -719,18 +830,21 @@ namespace AlibabaCloud DescribeStoragePackagesOutcome describeStoragePackages(const Model::DescribeStoragePackagesRequest &request)const; void describeStoragePackagesAsync(const Model::DescribeStoragePackagesRequest& request, const DescribeStoragePackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeStoragePackagesOutcomeCallable describeStoragePackagesCallable(const Model::DescribeStoragePackagesRequest& request) const; - DescribeTagsOutcome describeTags(const Model::DescribeTagsRequest &request)const; - void describeTagsAsync(const Model::DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeTagsOutcomeCallable describeTagsCallable(const Model::DescribeTagsRequest& request) const; DescribeZonesOutcome describeZones(const Model::DescribeZonesRequest &request)const; void describeZonesAsync(const Model::DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeZonesOutcomeCallable describeZonesCallable(const Model::DescribeZonesRequest& request) const; DisableAndCleanRecycleBinOutcome disableAndCleanRecycleBin(const Model::DisableAndCleanRecycleBinRequest &request)const; void disableAndCleanRecycleBinAsync(const Model::DisableAndCleanRecycleBinRequest& request, const DisableAndCleanRecycleBinAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisableAndCleanRecycleBinOutcomeCallable disableAndCleanRecycleBinCallable(const Model::DisableAndCleanRecycleBinRequest& request) const; + DisableNfsAclOutcome disableNfsAcl(const Model::DisableNfsAclRequest &request)const; + void disableNfsAclAsync(const Model::DisableNfsAclRequest& request, const DisableNfsAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableNfsAclOutcomeCallable disableNfsAclCallable(const Model::DisableNfsAclRequest& request) const; DisableSmbAclOutcome disableSmbAcl(const Model::DisableSmbAclRequest &request)const; void disableSmbAclAsync(const Model::DisableSmbAclRequest& request, const DisableSmbAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisableSmbAclOutcomeCallable disableSmbAclCallable(const Model::DisableSmbAclRequest& request) const; + EnableNfsAclOutcome enableNfsAcl(const Model::EnableNfsAclRequest &request)const; + void enableNfsAclAsync(const Model::EnableNfsAclRequest& request, const EnableNfsAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableNfsAclOutcomeCallable enableNfsAclCallable(const Model::EnableNfsAclRequest& request) const; EnableRecycleBinOutcome enableRecycleBin(const Model::EnableRecycleBinRequest &request)const; void enableRecycleBinAsync(const Model::EnableRecycleBinRequest& request, const EnableRecycleBinAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EnableRecycleBinOutcomeCallable enableRecycleBinCallable(const Model::EnableRecycleBinRequest& request) const; @@ -764,6 +878,9 @@ namespace AlibabaCloud ModifyAccessGroupOutcome modifyAccessGroup(const Model::ModifyAccessGroupRequest &request)const; void modifyAccessGroupAsync(const Model::ModifyAccessGroupRequest& request, const ModifyAccessGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAccessGroupOutcomeCallable modifyAccessGroupCallable(const Model::ModifyAccessGroupRequest& request) const; + ModifyAccessPointOutcome modifyAccessPoint(const Model::ModifyAccessPointRequest &request)const; + void modifyAccessPointAsync(const Model::ModifyAccessPointRequest& request, const ModifyAccessPointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAccessPointOutcomeCallable modifyAccessPointCallable(const Model::ModifyAccessPointRequest& request) const; ModifyAccessRuleOutcome modifyAccessRule(const Model::ModifyAccessRuleRequest &request)const; void modifyAccessRuleAsync(const Model::ModifyAccessRuleRequest& request, const ModifyAccessRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAccessRuleOutcomeCallable modifyAccessRuleCallable(const Model::ModifyAccessRuleRequest& request) const; @@ -818,6 +935,9 @@ namespace AlibabaCloud SetDirQuotaOutcome setDirQuota(const Model::SetDirQuotaRequest &request)const; void setDirQuotaAsync(const Model::SetDirQuotaRequest& request, const SetDirQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetDirQuotaOutcomeCallable setDirQuotaCallable(const Model::SetDirQuotaRequest& request) const; + SetFilesetQuotaOutcome setFilesetQuota(const Model::SetFilesetQuotaRequest &request)const; + void setFilesetQuotaAsync(const Model::SetFilesetQuotaRequest& request, const SetFilesetQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetFilesetQuotaOutcomeCallable setFilesetQuotaCallable(const Model::SetFilesetQuotaRequest& request) const; StartDataFlowOutcome startDataFlow(const Model::StartDataFlowRequest &request)const; void startDataFlowAsync(const Model::StartDataFlowRequest& request, const StartDataFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartDataFlowOutcomeCallable startDataFlowCallable(const Model::StartDataFlowRequest& request) const; diff --git a/nas/include/alibabacloud/nas/model/CancelDataFlowSubTaskRequest.h b/nas/include/alibabacloud/nas/model/CancelDataFlowSubTaskRequest.h new file mode 100644 index 000000000..eba568398 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/CancelDataFlowSubTaskRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NAS_MODEL_CANCELDATAFLOWSUBTASKREQUEST_H_ +#define ALIBABACLOUD_NAS_MODEL_CANCELDATAFLOWSUBTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace NAS { +namespace Model { +class ALIBABACLOUD_NAS_EXPORT CancelDataFlowSubTaskRequest : public RpcServiceRequest { +public: + CancelDataFlowSubTaskRequest(); + ~CancelDataFlowSubTaskRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDataFlowTaskId() const; + void setDataFlowTaskId(const std::string &dataFlowTaskId); + std::string getDataFlowSubTaskId() const; + void setDataFlowSubTaskId(const std::string &dataFlowSubTaskId); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getDataFlowId() const; + void setDataFlowId(const std::string &dataFlowId); + +private: + std::string clientToken_; + std::string dataFlowTaskId_; + std::string dataFlowSubTaskId_; + std::string fileSystemId_; + bool dryRun_; + std::string dataFlowId_; +}; +} // namespace Model +} // namespace NAS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NAS_MODEL_CANCELDATAFLOWSUBTASKREQUEST_H_ diff --git a/nas/include/alibabacloud/nas/model/CancelDataFlowSubTaskResult.h b/nas/include/alibabacloud/nas/model/CancelDataFlowSubTaskResult.h new file mode 100644 index 000000000..1667c87b8 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/CancelDataFlowSubTaskResult.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_NAS_MODEL_CANCELDATAFLOWSUBTASKRESULT_H_ +#define ALIBABACLOUD_NAS_MODEL_CANCELDATAFLOWSUBTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace NAS + { + namespace Model + { + class ALIBABACLOUD_NAS_EXPORT CancelDataFlowSubTaskResult : public ServiceResult + { + public: + + + CancelDataFlowSubTaskResult(); + explicit CancelDataFlowSubTaskResult(const std::string &payload); + ~CancelDataFlowSubTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_NAS_MODEL_CANCELDATAFLOWSUBTASKRESULT_H_ \ No newline at end of file diff --git a/nas/include/alibabacloud/nas/model/CancelFilesetQuotaRequest.h b/nas/include/alibabacloud/nas/model/CancelFilesetQuotaRequest.h new file mode 100644 index 000000000..8980141e9 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/CancelFilesetQuotaRequest.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_NAS_MODEL_CANCELFILESETQUOTAREQUEST_H_ +#define ALIBABACLOUD_NAS_MODEL_CANCELFILESETQUOTAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace NAS { +namespace Model { +class ALIBABACLOUD_NAS_EXPORT CancelFilesetQuotaRequest : public RpcServiceRequest { +public: + CancelFilesetQuotaRequest(); + ~CancelFilesetQuotaRequest(); + std::string getFsetId() const; + void setFsetId(const std::string &fsetId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string fsetId_; + std::string clientToken_; + std::string fileSystemId_; + bool dryRun_; +}; +} // namespace Model +} // namespace NAS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NAS_MODEL_CANCELFILESETQUOTAREQUEST_H_ diff --git a/nas/include/alibabacloud/nas/model/DescribeLDAPConfigResult.h b/nas/include/alibabacloud/nas/model/CancelFilesetQuotaResult.h similarity index 64% rename from nas/include/alibabacloud/nas/model/DescribeLDAPConfigResult.h rename to nas/include/alibabacloud/nas/model/CancelFilesetQuotaResult.h index 758d700c7..c867831c4 100644 --- a/nas/include/alibabacloud/nas/model/DescribeLDAPConfigResult.h +++ b/nas/include/alibabacloud/nas/model/CancelFilesetQuotaResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_NAS_MODEL_DESCRIBELDAPCONFIGRESULT_H_ -#define ALIBABACLOUD_NAS_MODEL_DESCRIBELDAPCONFIGRESULT_H_ +#ifndef ALIBABACLOUD_NAS_MODEL_CANCELFILESETQUOTARESULT_H_ +#define ALIBABACLOUD_NAS_MODEL_CANCELFILESETQUOTARESULT_H_ #include #include @@ -29,29 +29,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_NAS_EXPORT DescribeLDAPConfigResult : public ServiceResult + class ALIBABACLOUD_NAS_EXPORT CancelFilesetQuotaResult : public ServiceResult { public: - struct Ldap - { - std::string searchBase; - std::string bindDN; - std::string uRI; - }; - DescribeLDAPConfigResult(); - explicit DescribeLDAPConfigResult(const std::string &payload); - ~DescribeLDAPConfigResult(); - Ldap getLdap()const; + CancelFilesetQuotaResult(); + explicit CancelFilesetQuotaResult(const std::string &payload); + ~CancelFilesetQuotaResult(); protected: void parse(const std::string &payload); private: - Ldap ldap_; }; } } } -#endif // !ALIBABACLOUD_NAS_MODEL_DESCRIBELDAPCONFIGRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_NAS_MODEL_CANCELFILESETQUOTARESULT_H_ \ No newline at end of file diff --git a/nas/include/alibabacloud/nas/model/ChangeResourceGroupRequest.h b/nas/include/alibabacloud/nas/model/ChangeResourceGroupRequest.h new file mode 100644 index 000000000..f38929f21 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/ChangeResourceGroupRequest.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_NAS_MODEL_CHANGERESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_NAS_MODEL_CHANGERESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace NAS { +namespace Model { +class ALIBABACLOUD_NAS_EXPORT ChangeResourceGroupRequest : public RpcServiceRequest { +public: + ChangeResourceGroupRequest(); + ~ChangeResourceGroupRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getNewResourceGroupId() const; + void setNewResourceGroupId(const std::string &newResourceGroupId); + +private: + std::string regionId_; + std::string resourceId_; + std::string resourceType_; + std::string newResourceGroupId_; +}; +} // namespace Model +} // namespace NAS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NAS_MODEL_CHANGERESOURCEGROUPREQUEST_H_ diff --git a/nas/include/alibabacloud/nas/model/ChangeResourceGroupResult.h b/nas/include/alibabacloud/nas/model/ChangeResourceGroupResult.h new file mode 100644 index 000000000..a40e8391a --- /dev/null +++ b/nas/include/alibabacloud/nas/model/ChangeResourceGroupResult.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_NAS_MODEL_CHANGERESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_NAS_MODEL_CHANGERESOURCEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace NAS + { + namespace Model + { + class ALIBABACLOUD_NAS_EXPORT ChangeResourceGroupResult : public ServiceResult + { + public: + + + ChangeResourceGroupResult(); + explicit ChangeResourceGroupResult(const std::string &payload); + ~ChangeResourceGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_NAS_MODEL_CHANGERESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/nas/include/alibabacloud/nas/model/CreateAccessPointRequest.h b/nas/include/alibabacloud/nas/model/CreateAccessPointRequest.h new file mode 100644 index 000000000..1378b3a18 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/CreateAccessPointRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NAS_MODEL_CREATEACCESSPOINTREQUEST_H_ +#define ALIBABACLOUD_NAS_MODEL_CREATEACCESSPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace NAS { +namespace Model { +class ALIBABACLOUD_NAS_EXPORT CreateAccessPointRequest : public RpcServiceRequest { +public: + CreateAccessPointRequest(); + ~CreateAccessPointRequest(); + std::string getVswId() const; + void setVswId(const std::string &vswId); + std::string getAccessPointName() const; + void setAccessPointName(const std::string &accessPointName); + int getPosixGroupId() const; + void setPosixGroupId(int posixGroupId); + std::string getPosixSecondaryGroupIds() const; + void setPosixSecondaryGroupIds(const std::string &posixSecondaryGroupIds); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + int getOwnerGroupId() const; + void setOwnerGroupId(int ownerGroupId); + bool getEnabledRam() const; + void setEnabledRam(bool enabledRam); + int getOwnerUserId() const; + void setOwnerUserId(int ownerUserId); + std::string getPermission() const; + void setPermission(const std::string &permission); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getProtocolType() const; + void setProtocolType(const std::string &protocolType); + std::string getRootDirectory() const; + void setRootDirectory(const std::string &rootDirectory); + std::string getAccessGroup() const; + void setAccessGroup(const std::string &accessGroup); + int getPosixUserId() const; + void setPosixUserId(int posixUserId); + +private: + std::string vswId_; + std::string accessPointName_; + int posixGroupId_; + std::string posixSecondaryGroupIds_; + std::string fileSystemId_; + int ownerGroupId_; + bool enabledRam_; + int ownerUserId_; + std::string permission_; + std::string vpcId_; + std::string protocolType_; + std::string rootDirectory_; + std::string accessGroup_; + int posixUserId_; +}; +} // namespace Model +} // namespace NAS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NAS_MODEL_CREATEACCESSPOINTREQUEST_H_ diff --git a/nas/include/alibabacloud/nas/model/DescribeTagsResult.h b/nas/include/alibabacloud/nas/model/CreateAccessPointResult.h similarity index 58% rename from nas/include/alibabacloud/nas/model/DescribeTagsResult.h rename to nas/include/alibabacloud/nas/model/CreateAccessPointResult.h index 4dced07eb..cb8d78f62 100644 --- a/nas/include/alibabacloud/nas/model/DescribeTagsResult.h +++ b/nas/include/alibabacloud/nas/model/CreateAccessPointResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_NAS_MODEL_DESCRIBETAGSRESULT_H_ -#define ALIBABACLOUD_NAS_MODEL_DESCRIBETAGSRESULT_H_ +#ifndef ALIBABACLOUD_NAS_MODEL_CREATEACCESSPOINTRESULT_H_ +#define ALIBABACLOUD_NAS_MODEL_CREATEACCESSPOINTRESULT_H_ #include #include @@ -29,35 +29,28 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_NAS_EXPORT DescribeTagsResult : public ServiceResult + class ALIBABACLOUD_NAS_EXPORT CreateAccessPointResult : public ServiceResult { public: - struct Tag + struct AccessPoint { - std::string value; - std::vector fileSystemIds; - std::string key; + std::string accessPointId; + std::string accessPointDomain; }; - DescribeTagsResult(); - explicit DescribeTagsResult(const std::string &payload); - ~DescribeTagsResult(); - int getTotalCount()const; - int getPageSize()const; - int getPageNumber()const; - std::vector getTags()const; + CreateAccessPointResult(); + explicit CreateAccessPointResult(const std::string &payload); + ~CreateAccessPointResult(); + AccessPoint getAccessPoint()const; protected: void parse(const std::string &payload); private: - int totalCount_; - int pageSize_; - int pageNumber_; - std::vector tags_; + AccessPoint accessPoint_; }; } } } -#endif // !ALIBABACLOUD_NAS_MODEL_DESCRIBETAGSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_NAS_MODEL_CREATEACCESSPOINTRESULT_H_ \ No newline at end of file diff --git a/nas/include/alibabacloud/nas/model/CreateDataFlowRequest.h b/nas/include/alibabacloud/nas/model/CreateDataFlowRequest.h index 5e2eeb805..dcdd7174e 100644 --- a/nas/include/alibabacloud/nas/model/CreateDataFlowRequest.h +++ b/nas/include/alibabacloud/nas/model/CreateDataFlowRequest.h @@ -55,6 +55,10 @@ public: void setDryRun(bool dryRun); long getAutoRefreshInterval() const; void setAutoRefreshInterval(long autoRefreshInterval); + std::string getSourceStoragePath() const; + void setSourceStoragePath(const std::string &sourceStoragePath); + std::string getFileSystemPath() const; + void setFileSystemPath(const std::string &fileSystemPath); private: std::string autoRefreshPolicy_; @@ -68,6 +72,8 @@ private: std::string fileSystemId_; bool dryRun_; long autoRefreshInterval_; + std::string sourceStoragePath_; + std::string fileSystemPath_; }; } // namespace Model } // namespace NAS diff --git a/nas/include/alibabacloud/nas/model/CreateDataFlowSubTaskRequest.h b/nas/include/alibabacloud/nas/model/CreateDataFlowSubTaskRequest.h new file mode 100644 index 000000000..52f923734 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/CreateDataFlowSubTaskRequest.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NAS_MODEL_CREATEDATAFLOWSUBTASKREQUEST_H_ +#define ALIBABACLOUD_NAS_MODEL_CREATEDATAFLOWSUBTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace NAS { +namespace Model { +class ALIBABACLOUD_NAS_EXPORT CreateDataFlowSubTaskRequest : public RpcServiceRequest { +public: + struct Condition { + long size; + long modifyTime; + }; + CreateDataFlowSubTaskRequest(); + ~CreateDataFlowSubTaskRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDataFlowTaskId() const; + void setDataFlowTaskId(const std::string &dataFlowTaskId); + std::string getSrcFilePath() const; + void setSrcFilePath(const std::string &srcFilePath); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getDataFlowId() const; + void setDataFlowId(const std::string &dataFlowId); + std::string getDstFilePath() const; + void setDstFilePath(const std::string &dstFilePath); + Condition getCondition() const; + void setCondition(const Condition &condition); + +private: + std::string clientToken_; + std::string dataFlowTaskId_; + std::string srcFilePath_; + std::string fileSystemId_; + bool dryRun_; + std::string dataFlowId_; + std::string dstFilePath_; + Condition condition_; +}; +} // namespace Model +} // namespace NAS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NAS_MODEL_CREATEDATAFLOWSUBTASKREQUEST_H_ diff --git a/nas/include/alibabacloud/nas/model/CreateDataFlowSubTaskResult.h b/nas/include/alibabacloud/nas/model/CreateDataFlowSubTaskResult.h new file mode 100644 index 000000000..3d9f5d249 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/CreateDataFlowSubTaskResult.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_NAS_MODEL_CREATEDATAFLOWSUBTASKRESULT_H_ +#define ALIBABACLOUD_NAS_MODEL_CREATEDATAFLOWSUBTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace NAS + { + namespace Model + { + class ALIBABACLOUD_NAS_EXPORT CreateDataFlowSubTaskResult : public ServiceResult + { + public: + + + CreateDataFlowSubTaskResult(); + explicit CreateDataFlowSubTaskResult(const std::string &payload); + ~CreateDataFlowSubTaskResult(); + std::string getDataFlowSubTaskId()const; + + protected: + void parse(const std::string &payload); + private: + std::string dataFlowSubTaskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NAS_MODEL_CREATEDATAFLOWSUBTASKRESULT_H_ \ No newline at end of file diff --git a/nas/include/alibabacloud/nas/model/CreateDataFlowTaskRequest.h b/nas/include/alibabacloud/nas/model/CreateDataFlowTaskRequest.h index da158c243..6d154b43d 100644 --- a/nas/include/alibabacloud/nas/model/CreateDataFlowTaskRequest.h +++ b/nas/include/alibabacloud/nas/model/CreateDataFlowTaskRequest.h @@ -30,6 +30,8 @@ class ALIBABACLOUD_NAS_EXPORT CreateDataFlowTaskRequest : public RpcServiceReque public: CreateDataFlowTaskRequest(); ~CreateDataFlowTaskRequest(); + std::string getDstDirectory() const; + void setDstDirectory(const std::string &dstDirectory); std::string getClientToken() const; void setClientToken(const std::string &clientToken); std::string getDirectory() const; @@ -38,6 +40,8 @@ public: void setSrcTaskId(const std::string &srcTaskId); std::string getDataType() const; void setDataType(const std::string &dataType); + bool getCreateDirIfNotExist() const; + void setCreateDirIfNotExist(bool createDirIfNotExist); std::string getFileSystemId() const; void setFileSystemId(const std::string &fileSystemId); bool getDryRun() const; @@ -46,18 +50,23 @@ public: void setDataFlowId(const std::string &dataFlowId); std::string getEntryList() const; void setEntryList(const std::string &entryList); + std::string getConflictPolicy() const; + void setConflictPolicy(const std::string &conflictPolicy); std::string getTaskAction() const; void setTaskAction(const std::string &taskAction); private: + std::string dstDirectory_; std::string clientToken_; std::string directory_; std::string srcTaskId_; std::string dataType_; + bool createDirIfNotExist_; std::string fileSystemId_; bool dryRun_; std::string dataFlowId_; std::string entryList_; + std::string conflictPolicy_; std::string taskAction_; }; } // namespace Model diff --git a/nas/include/alibabacloud/nas/model/CreateDirRequest.h b/nas/include/alibabacloud/nas/model/CreateDirRequest.h new file mode 100644 index 000000000..5a2f51143 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/CreateDirRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NAS_MODEL_CREATEDIRREQUEST_H_ +#define ALIBABACLOUD_NAS_MODEL_CREATEDIRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace NAS { +namespace Model { +class ALIBABACLOUD_NAS_EXPORT CreateDirRequest : public RpcServiceRequest { +public: + CreateDirRequest(); + ~CreateDirRequest(); + bool getRecursion() const; + void setRecursion(bool recursion); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + int getOwnerGroupId() const; + void setOwnerGroupId(int ownerGroupId); + int getOwnerUserId() const; + void setOwnerUserId(int ownerUserId); + std::string getPermission() const; + void setPermission(const std::string &permission); + std::string getRootDirectory() const; + void setRootDirectory(const std::string &rootDirectory); + +private: + bool recursion_; + std::string fileSystemId_; + int ownerGroupId_; + int ownerUserId_; + std::string permission_; + std::string rootDirectory_; +}; +} // namespace Model +} // namespace NAS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NAS_MODEL_CREATEDIRREQUEST_H_ diff --git a/nas/include/alibabacloud/nas/model/CreateDirResult.h b/nas/include/alibabacloud/nas/model/CreateDirResult.h new file mode 100644 index 000000000..4dc25fe28 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/CreateDirResult.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_NAS_MODEL_CREATEDIRRESULT_H_ +#define ALIBABACLOUD_NAS_MODEL_CREATEDIRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace NAS + { + namespace Model + { + class ALIBABACLOUD_NAS_EXPORT CreateDirResult : public ServiceResult + { + public: + + + CreateDirResult(); + explicit CreateDirResult(const std::string &payload); + ~CreateDirResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_NAS_MODEL_CREATEDIRRESULT_H_ \ No newline at end of file diff --git a/nas/include/alibabacloud/nas/model/CreateFileSystemRequest.h b/nas/include/alibabacloud/nas/model/CreateFileSystemRequest.h index 6815c5a83..efbc5c942 100644 --- a/nas/include/alibabacloud/nas/model/CreateFileSystemRequest.h +++ b/nas/include/alibabacloud/nas/model/CreateFileSystemRequest.h @@ -46,6 +46,8 @@ public: void setEncryptType(int encryptType); int getDuration() const; void setDuration(int duration); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); bool getDryRun() const; void setDryRun(bool dryRun); long getBandwidth() const; @@ -72,6 +74,7 @@ private: long capacity_; int encryptType_; int duration_; + std::string resourceGroupId_; bool dryRun_; long bandwidth_; std::string vSwitchId_; diff --git a/nas/include/alibabacloud/nas/model/CreateFilesetRequest.h b/nas/include/alibabacloud/nas/model/CreateFilesetRequest.h index 4f2fd4b4a..212d11f31 100644 --- a/nas/include/alibabacloud/nas/model/CreateFilesetRequest.h +++ b/nas/include/alibabacloud/nas/model/CreateFilesetRequest.h @@ -28,12 +28,20 @@ namespace NAS { namespace Model { class ALIBABACLOUD_NAS_EXPORT CreateFilesetRequest : public RpcServiceRequest { public: + struct Quota { + long sizeLimit; + long fileCountLimit; + }; CreateFilesetRequest(); ~CreateFilesetRequest(); std::string getClientToken() const; void setClientToken(const std::string &clientToken); std::string getDescription() const; void setDescription(const std::string &description); + bool getDeletionProtection() const; + void setDeletionProtection(bool deletionProtection); + Quota getQuota() const; + void setQuota(const Quota "a); std::string getFileSystemId() const; void setFileSystemId(const std::string &fileSystemId); bool getDryRun() const; @@ -44,6 +52,8 @@ public: private: std::string clientToken_; std::string description_; + bool deletionProtection_; + Quota quota_; std::string fileSystemId_; bool dryRun_; std::string fileSystemPath_; diff --git a/nas/include/alibabacloud/nas/model/CreateLifecyclePolicyRequest.h b/nas/include/alibabacloud/nas/model/CreateLifecyclePolicyRequest.h index cbae8a8e1..ef38a3610 100644 --- a/nas/include/alibabacloud/nas/model/CreateLifecyclePolicyRequest.h +++ b/nas/include/alibabacloud/nas/model/CreateLifecyclePolicyRequest.h @@ -40,6 +40,8 @@ public: void setFileSystemId(const std::string &fileSystemId); std::string getLifecycleRuleName() const; void setLifecycleRuleName(const std::string &lifecycleRuleName); + int getLifecycleRuleInactiveDays() const; + void setLifecycleRuleInactiveDays(int lifecycleRuleInactiveDays); std::vector getPaths() const; void setPaths(const std::vector &paths); @@ -49,6 +51,7 @@ private: std::string lifecyclePolicyName_; std::string fileSystemId_; std::string lifecycleRuleName_; + int lifecycleRuleInactiveDays_; std::vector paths_; }; } // namespace Model diff --git a/nas/include/alibabacloud/nas/model/CreateLifecycleRetrieveJobRequest.h b/nas/include/alibabacloud/nas/model/CreateLifecycleRetrieveJobRequest.h index a536504c2..4cce72198 100644 --- a/nas/include/alibabacloud/nas/model/CreateLifecycleRetrieveJobRequest.h +++ b/nas/include/alibabacloud/nas/model/CreateLifecycleRetrieveJobRequest.h @@ -30,12 +30,15 @@ class ALIBABACLOUD_NAS_EXPORT CreateLifecycleRetrieveJobRequest : public RpcServ public: CreateLifecycleRetrieveJobRequest(); ~CreateLifecycleRetrieveJobRequest(); + std::string getStorageType() const; + void setStorageType(const std::string &storageType); std::string getFileSystemId() const; void setFileSystemId(const std::string &fileSystemId); std::vector getPaths() const; void setPaths(const std::vector &paths); private: + std::string storageType_; std::string fileSystemId_; std::vector paths_; }; diff --git a/nas/include/alibabacloud/nas/model/CreateLogAnalysisRequest.h b/nas/include/alibabacloud/nas/model/CreateLogAnalysisRequest.h new file mode 100644 index 000000000..ac0a9c08c --- /dev/null +++ b/nas/include/alibabacloud/nas/model/CreateLogAnalysisRequest.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_NAS_MODEL_CREATELOGANALYSISREQUEST_H_ +#define ALIBABACLOUD_NAS_MODEL_CREATELOGANALYSISREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace NAS { +namespace Model { +class ALIBABACLOUD_NAS_EXPORT CreateLogAnalysisRequest : public RpcServiceRequest { +public: + CreateLogAnalysisRequest(); + ~CreateLogAnalysisRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + +private: + std::string regionId_; + std::string fileSystemId_; +}; +} // namespace Model +} // namespace NAS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NAS_MODEL_CREATELOGANALYSISREQUEST_H_ diff --git a/nas/include/alibabacloud/nas/model/CreateLogAnalysisResult.h b/nas/include/alibabacloud/nas/model/CreateLogAnalysisResult.h new file mode 100644 index 000000000..7b6cdf6bc --- /dev/null +++ b/nas/include/alibabacloud/nas/model/CreateLogAnalysisResult.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_NAS_MODEL_CREATELOGANALYSISRESULT_H_ +#define ALIBABACLOUD_NAS_MODEL_CREATELOGANALYSISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace NAS + { + namespace Model + { + class ALIBABACLOUD_NAS_EXPORT CreateLogAnalysisResult : public ServiceResult + { + public: + + + CreateLogAnalysisResult(); + explicit CreateLogAnalysisResult(const std::string &payload); + ~CreateLogAnalysisResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_NAS_MODEL_CREATELOGANALYSISRESULT_H_ \ No newline at end of file diff --git a/nas/include/alibabacloud/nas/model/DeleteAccessPointRequest.h b/nas/include/alibabacloud/nas/model/DeleteAccessPointRequest.h new file mode 100644 index 000000000..ca9e195bb --- /dev/null +++ b/nas/include/alibabacloud/nas/model/DeleteAccessPointRequest.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_NAS_MODEL_DELETEACCESSPOINTREQUEST_H_ +#define ALIBABACLOUD_NAS_MODEL_DELETEACCESSPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace NAS { +namespace Model { +class ALIBABACLOUD_NAS_EXPORT DeleteAccessPointRequest : public RpcServiceRequest { +public: + DeleteAccessPointRequest(); + ~DeleteAccessPointRequest(); + std::string getAccessPointId() const; + void setAccessPointId(const std::string &accessPointId); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + +private: + std::string accessPointId_; + std::string fileSystemId_; +}; +} // namespace Model +} // namespace NAS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NAS_MODEL_DELETEACCESSPOINTREQUEST_H_ diff --git a/nas/include/alibabacloud/nas/model/DeleteAccessPointResult.h b/nas/include/alibabacloud/nas/model/DeleteAccessPointResult.h new file mode 100644 index 000000000..e64a8fc29 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/DeleteAccessPointResult.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_NAS_MODEL_DELETEACCESSPOINTRESULT_H_ +#define ALIBABACLOUD_NAS_MODEL_DELETEACCESSPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace NAS + { + namespace Model + { + class ALIBABACLOUD_NAS_EXPORT DeleteAccessPointResult : public ServiceResult + { + public: + + + DeleteAccessPointResult(); + explicit DeleteAccessPointResult(const std::string &payload); + ~DeleteAccessPointResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_NAS_MODEL_DELETEACCESSPOINTRESULT_H_ \ No newline at end of file diff --git a/nas/include/alibabacloud/nas/model/DeleteLogAnalysisRequest.h b/nas/include/alibabacloud/nas/model/DeleteLogAnalysisRequest.h new file mode 100644 index 000000000..c1f16e15f --- /dev/null +++ b/nas/include/alibabacloud/nas/model/DeleteLogAnalysisRequest.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_NAS_MODEL_DELETELOGANALYSISREQUEST_H_ +#define ALIBABACLOUD_NAS_MODEL_DELETELOGANALYSISREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace NAS { +namespace Model { +class ALIBABACLOUD_NAS_EXPORT DeleteLogAnalysisRequest : public RpcServiceRequest { +public: + DeleteLogAnalysisRequest(); + ~DeleteLogAnalysisRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + +private: + std::string regionId_; + std::string fileSystemId_; +}; +} // namespace Model +} // namespace NAS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NAS_MODEL_DELETELOGANALYSISREQUEST_H_ diff --git a/nas/include/alibabacloud/nas/model/DeleteLogAnalysisResult.h b/nas/include/alibabacloud/nas/model/DeleteLogAnalysisResult.h new file mode 100644 index 000000000..fe121d3a4 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/DeleteLogAnalysisResult.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_NAS_MODEL_DELETELOGANALYSISRESULT_H_ +#define ALIBABACLOUD_NAS_MODEL_DELETELOGANALYSISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace NAS + { + namespace Model + { + class ALIBABACLOUD_NAS_EXPORT DeleteLogAnalysisResult : public ServiceResult + { + public: + + + DeleteLogAnalysisResult(); + explicit DeleteLogAnalysisResult(const std::string &payload); + ~DeleteLogAnalysisResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_NAS_MODEL_DELETELOGANALYSISRESULT_H_ \ No newline at end of file diff --git a/nas/include/alibabacloud/nas/model/DescribeAccessGroupsResult.h b/nas/include/alibabacloud/nas/model/DescribeAccessGroupsResult.h index bcf2603bf..ed872d8c0 100644 --- a/nas/include/alibabacloud/nas/model/DescribeAccessGroupsResult.h +++ b/nas/include/alibabacloud/nas/model/DescribeAccessGroupsResult.h @@ -44,6 +44,8 @@ namespace AlibabaCloud std::string description; std::string accessGroupName; std::string createTime; + std::string fileSystemType; + std::string regionId; int mountTargetCount; std::vector tags; }; diff --git a/nas/include/alibabacloud/nas/model/DescribeAccessPointRequest.h b/nas/include/alibabacloud/nas/model/DescribeAccessPointRequest.h new file mode 100644 index 000000000..40453d9c1 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/DescribeAccessPointRequest.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_NAS_MODEL_DESCRIBEACCESSPOINTREQUEST_H_ +#define ALIBABACLOUD_NAS_MODEL_DESCRIBEACCESSPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace NAS { +namespace Model { +class ALIBABACLOUD_NAS_EXPORT DescribeAccessPointRequest : public RpcServiceRequest { +public: + DescribeAccessPointRequest(); + ~DescribeAccessPointRequest(); + std::string getAccessPointId() const; + void setAccessPointId(const std::string &accessPointId); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + +private: + std::string accessPointId_; + std::string fileSystemId_; +}; +} // namespace Model +} // namespace NAS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NAS_MODEL_DESCRIBEACCESSPOINTREQUEST_H_ diff --git a/nas/include/alibabacloud/nas/model/DescribeAccessPointResult.h b/nas/include/alibabacloud/nas/model/DescribeAccessPointResult.h new file mode 100644 index 000000000..433ec7be9 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/DescribeAccessPointResult.h @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_NAS_MODEL_DESCRIBEACCESSPOINTRESULT_H_ +#define ALIBABACLOUD_NAS_MODEL_DESCRIBEACCESSPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace NAS + { + namespace Model + { + class ALIBABACLOUD_NAS_EXPORT DescribeAccessPointResult : public ServiceResult + { + public: + struct AccessPoint + { + struct RootPathPermission + { + int ownerUserId; + std::string permission; + int ownerGroupId; + }; + struct PosixUser + { + int posixGroupId; + int posixUserId; + std::vector posixSecondaryGroupIds; + }; + struct Tag + { + std::string value; + std::string key; + }; + std::string status; + std::string modifyTime; + std::string rootPath; + std::string domainName; + std::string createTime; + std::string vSwitchId; + PosixUser posixUser; + bool enabledRam; + std::string accessPointName; + std::string vpcId; + RootPathPermission rootPathPermission; + std::string accessGroup; + std::string accessPointId; + std::string fileSystemId; + std::string regionId; + std::string aRN; + std::vector tags; + std::string rootPathStatus; + }; + + + DescribeAccessPointResult(); + explicit DescribeAccessPointResult(const std::string &payload); + ~DescribeAccessPointResult(); + AccessPoint getAccessPoint()const; + + protected: + void parse(const std::string &payload); + private: + AccessPoint accessPoint_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NAS_MODEL_DESCRIBEACCESSPOINTRESULT_H_ \ No newline at end of file diff --git a/nas/include/alibabacloud/nas/model/DescribeAccessPointsRequest.h b/nas/include/alibabacloud/nas/model/DescribeAccessPointsRequest.h new file mode 100644 index 000000000..07de9bab2 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/DescribeAccessPointsRequest.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_NAS_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ +#define ALIBABACLOUD_NAS_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace NAS { +namespace Model { +class ALIBABACLOUD_NAS_EXPORT DescribeAccessPointsRequest : public RpcServiceRequest { +public: + DescribeAccessPointsRequest(); + ~DescribeAccessPointsRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getAccessGroup() const; + void setAccessGroup(const std::string &accessGroup); + +private: + std::string nextToken_; + std::string fileSystemId_; + int maxResults_; + std::string accessGroup_; +}; +} // namespace Model +} // namespace NAS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NAS_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ diff --git a/nas/include/alibabacloud/nas/model/DescribeAccessPointsResult.h b/nas/include/alibabacloud/nas/model/DescribeAccessPointsResult.h new file mode 100644 index 000000000..aa34aee97 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/DescribeAccessPointsResult.h @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_NAS_MODEL_DESCRIBEACCESSPOINTSRESULT_H_ +#define ALIBABACLOUD_NAS_MODEL_DESCRIBEACCESSPOINTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace NAS + { + namespace Model + { + class ALIBABACLOUD_NAS_EXPORT DescribeAccessPointsResult : public ServiceResult + { + public: + struct AccessPoint + { + struct PosixUser + { + int posixGroupId; + int posixUserId; + std::vector posixSecondaryGroupIds; + }; + struct RootPathPermission + { + long ownerUserId; + std::string permission; + long ownerGroupId; + }; + std::string status; + std::string modifyTime; + std::string rootPath; + std::string domainName; + std::string createTime; + std::string vSwitchId; + PosixUser posixUser; + bool enabledRam; + std::string accessPointName; + std::string vpcId; + RootPathPermission rootPathPermission; + std::string accessGroup; + std::string accessPointId; + std::string fileSystemId; + std::string aRN; + std::string rootPathStatus; + }; + + + DescribeAccessPointsResult(); + explicit DescribeAccessPointsResult(const std::string &payload); + ~DescribeAccessPointsResult(); + std::vector getAccessPoints()const; + int getTotalCount()const; + std::string getNextToken()const; + + protected: + void parse(const std::string &payload); + private: + std::vector accessPoints_; + int totalCount_; + std::string nextToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NAS_MODEL_DESCRIBEACCESSPOINTSRESULT_H_ \ No newline at end of file diff --git a/nas/include/alibabacloud/nas/model/DescribeAccessRulesResult.h b/nas/include/alibabacloud/nas/model/DescribeAccessRulesResult.h index 498c40e2c..72edced9b 100644 --- a/nas/include/alibabacloud/nas/model/DescribeAccessRulesResult.h +++ b/nas/include/alibabacloud/nas/model/DescribeAccessRulesResult.h @@ -38,7 +38,10 @@ namespace AlibabaCloud std::string userAccess; int priority; std::string sourceCidrIp; + std::string fileSystemType; + std::string accessGroupName; std::string ipv6SourceCidrIp; + std::string regionId; std::string accessRuleId; }; diff --git a/nas/include/alibabacloud/nas/model/DescribeAutoSnapshotPoliciesResult.h b/nas/include/alibabacloud/nas/model/DescribeAutoSnapshotPoliciesResult.h index 9f48b4dfa..192b59df6 100644 --- a/nas/include/alibabacloud/nas/model/DescribeAutoSnapshotPoliciesResult.h +++ b/nas/include/alibabacloud/nas/model/DescribeAutoSnapshotPoliciesResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud std::string timePoints; std::string createTime; int fileSystemNums; + std::string fileSystemType; std::string autoSnapshotPolicyId; int retentionDays; std::string repeatWeekdays; diff --git a/nas/include/alibabacloud/nas/model/DescribeDataFlowSubTasksRequest.h b/nas/include/alibabacloud/nas/model/DescribeDataFlowSubTasksRequest.h new file mode 100644 index 000000000..fe24fb0f7 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/DescribeDataFlowSubTasksRequest.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_NAS_MODEL_DESCRIBEDATAFLOWSUBTASKSREQUEST_H_ +#define ALIBABACLOUD_NAS_MODEL_DESCRIBEDATAFLOWSUBTASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace NAS { +namespace Model { +class ALIBABACLOUD_NAS_EXPORT DescribeDataFlowSubTasksRequest : public RpcServiceRequest { +public: + struct Filters { + std::string value; + std::string key; + }; + DescribeDataFlowSubTasksRequest(); + ~DescribeDataFlowSubTasksRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + std::vector getFilters() const; + void setFilters(const std::vector &filters); + long getMaxResults() const; + void setMaxResults(long maxResults); + +private: + std::string nextToken_; + std::string fileSystemId_; + std::vector filters_; + long maxResults_; +}; +} // namespace Model +} // namespace NAS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NAS_MODEL_DESCRIBEDATAFLOWSUBTASKSREQUEST_H_ diff --git a/nas/include/alibabacloud/nas/model/DescribeDataFlowSubTasksResult.h b/nas/include/alibabacloud/nas/model/DescribeDataFlowSubTasksResult.h new file mode 100644 index 000000000..ff01c4b22 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/DescribeDataFlowSubTasksResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_NAS_MODEL_DESCRIBEDATAFLOWSUBTASKSRESULT_H_ +#define ALIBABACLOUD_NAS_MODEL_DESCRIBEDATAFLOWSUBTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace NAS + { + namespace Model + { + class ALIBABACLOUD_NAS_EXPORT DescribeDataFlowSubTasksResult : public ServiceResult + { + public: + struct DataFlowSubTaskItem + { + struct ProgressStats + { + long averageSpeed; + long bytesDone; + long actualBytes; + long bytesTotal; + }; + struct FileDetail + { + long modifyTime; + long size; + std::string checksum; + }; + std::string status; + int progress; + FileDetail fileDetail; + std::string dataFlowSubTaskId; + std::string endTime; + std::string dstFilePath; + std::string createTime; + std::string startTime; + std::string errorMsg; + std::string dataFlowTaskId; + ProgressStats progressStats; + std::string srcFilePath; + std::string fileSystemId; + std::string dataFlowId; + }; + + + DescribeDataFlowSubTasksResult(); + explicit DescribeDataFlowSubTasksResult(const std::string &payload); + ~DescribeDataFlowSubTasksResult(); + std::string getNextToken()const; + std::vector getDataFlowSubTask()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector dataFlowSubTask_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NAS_MODEL_DESCRIBEDATAFLOWSUBTASKSRESULT_H_ \ No newline at end of file diff --git a/nas/include/alibabacloud/nas/model/DescribeDataFlowTasksResult.h b/nas/include/alibabacloud/nas/model/DescribeDataFlowTasksResult.h index 400c56d2a..05d330659 100644 --- a/nas/include/alibabacloud/nas/model/DescribeDataFlowTasksResult.h +++ b/nas/include/alibabacloud/nas/model/DescribeDataFlowTasksResult.h @@ -34,6 +34,22 @@ namespace AlibabaCloud public: struct Task { + struct ProgressStats + { + long averageSpeed; + long filesTotal; + long filesDone; + long bytesDone; + long actualBytes; + long remainTime; + long actualFiles; + long bytesTotal; + }; + struct Report + { + std::string path; + std::string name; + }; std::string fileSystemPath; std::string status; std::string filesystemId; @@ -43,12 +59,18 @@ namespace AlibabaCloud std::string taskAction; std::string createTime; std::string startTime; + std::string errorMsg; + std::vector reports; + std::string dstDirectory; std::string sourceStorage; + std::string conflictPolicy; std::string originator; + ProgressStats progressStats; std::string reportPath; std::string dataType; std::string dataFlowId; std::string fsPath; + std::string directory; }; diff --git a/nas/include/alibabacloud/nas/model/DescribeDataFlowsResult.h b/nas/include/alibabacloud/nas/model/DescribeDataFlowsResult.h index e871d3f50..414eee320 100644 --- a/nas/include/alibabacloud/nas/model/DescribeDataFlowsResult.h +++ b/nas/include/alibabacloud/nas/model/DescribeDataFlowsResult.h @@ -47,6 +47,7 @@ namespace AlibabaCloud long autoRefreshInterval; std::string fsetDescription; std::string sourceStorage; + std::string sourceStoragePath; std::string sourceSecurityType; std::string updateTime; std::string fileSystemId; diff --git a/nas/include/alibabacloud/nas/model/DescribeDirQuotasResult.h b/nas/include/alibabacloud/nas/model/DescribeDirQuotasResult.h index 94e5b11a8..8ceae18d1 100644 --- a/nas/include/alibabacloud/nas/model/DescribeDirQuotasResult.h +++ b/nas/include/alibabacloud/nas/model/DescribeDirQuotasResult.h @@ -43,6 +43,7 @@ namespace AlibabaCloud long fileCountReal; long sizeReal; std::string userType; + long sizeRealInByte; }; std::string status; std::string path; diff --git a/nas/include/alibabacloud/nas/model/DescribeFileSystemsRequest.h b/nas/include/alibabacloud/nas/model/DescribeFileSystemsRequest.h index 4ca7b3a39..ae340cea6 100644 --- a/nas/include/alibabacloud/nas/model/DescribeFileSystemsRequest.h +++ b/nas/include/alibabacloud/nas/model/DescribeFileSystemsRequest.h @@ -48,6 +48,8 @@ public: void setPageNumber(int pageNumber); std::string getStorageType() const; void setStorageType(const std::string &storageType); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); int getPageSize() const; void setPageSize(int pageSize); std::string getSortOrder() const; @@ -71,6 +73,7 @@ private: std::string packageIds_; int pageNumber_; std::string storageType_; + std::string resourceGroupId_; int pageSize_; std::string sortOrder_; std::vector tag_; diff --git a/nas/include/alibabacloud/nas/model/DescribeFileSystemsResult.h b/nas/include/alibabacloud/nas/model/DescribeFileSystemsResult.h index 058c5c2dd..ea3861ea8 100644 --- a/nas/include/alibabacloud/nas/model/DescribeFileSystemsResult.h +++ b/nas/include/alibabacloud/nas/model/DescribeFileSystemsResult.h @@ -40,6 +40,16 @@ namespace AlibabaCloud std::string bindDN; std::string uRI; }; + struct GuiInfo + { + std::string user; + std::string endpoint; + std::string password; + }; + struct Options + { + bool enableOplock; + }; struct Tag { std::string value; @@ -66,6 +76,7 @@ namespace AlibabaCloud std::string mountTargetDomain; std::string networkType; std::string accessGroupName; + std::string mountTargetIp; std::vector clientMasterNodes; }; struct Package @@ -76,9 +87,14 @@ namespace AlibabaCloud std::string startTime; std::string packageId; }; + Options options; + GuiInfo guiInfo; long mountTargetCountLimit; std::string description; std::string kMSKeyId; + int nodeNum; + std::string resourceGroupId; + std::string hpnZone; long meteredSize; std::vector vswIds; long capacity; @@ -87,8 +103,11 @@ namespace AlibabaCloud long bandwidth; std::string expiredTime; std::string fileSystemId; + long meteredArchiveSize; + std::string quorumVswId; std::vector tags; std::string status; + std::string accessPointCount; Ldap ldap; std::string storageType; std::string zoneId; diff --git a/nas/include/alibabacloud/nas/model/DescribeFilesetsResult.h b/nas/include/alibabacloud/nas/model/DescribeFilesetsResult.h index db69a1200..92c501d82 100644 --- a/nas/include/alibabacloud/nas/model/DescribeFilesetsResult.h +++ b/nas/include/alibabacloud/nas/model/DescribeFilesetsResult.h @@ -34,12 +34,22 @@ namespace AlibabaCloud public: struct Entrie { + struct Quota + { + long fileCountLimit; + long sizeLimit; + }; std::string fileSystemPath; std::string fsetId; std::string status; std::string description; + long spaceUsage; + Quota quota; std::string createTime; std::string updateTime; + std::string fileSystemId; + bool deletionProtection; + long fileCountUsage; }; diff --git a/nas/include/alibabacloud/nas/model/DescribeLifecyclePoliciesRequest.h b/nas/include/alibabacloud/nas/model/DescribeLifecyclePoliciesRequest.h index ba85dc9ae..08f988b20 100644 --- a/nas/include/alibabacloud/nas/model/DescribeLifecyclePoliciesRequest.h +++ b/nas/include/alibabacloud/nas/model/DescribeLifecyclePoliciesRequest.h @@ -32,6 +32,10 @@ public: ~DescribeLifecyclePoliciesRequest(); int getPageNumber() const; void setPageNumber(int pageNumber); + std::string getStorageType() const; + void setStorageType(const std::string &storageType); + std::string getLifecyclePolicyName() const; + void setLifecyclePolicyName(const std::string &lifecyclePolicyName); int getPageSize() const; void setPageSize(int pageSize); std::string getFileSystemId() const; @@ -39,6 +43,8 @@ public: private: int pageNumber_; + std::string storageType_; + std::string lifecyclePolicyName_; int pageSize_; std::string fileSystemId_; }; diff --git a/nas/include/alibabacloud/nas/model/DescribeLogAnalysisRequest.h b/nas/include/alibabacloud/nas/model/DescribeLogAnalysisRequest.h index 99aa7390b..2dbb0cb0a 100644 --- a/nas/include/alibabacloud/nas/model/DescribeLogAnalysisRequest.h +++ b/nas/include/alibabacloud/nas/model/DescribeLogAnalysisRequest.h @@ -30,6 +30,8 @@ class ALIBABACLOUD_NAS_EXPORT DescribeLogAnalysisRequest : public RpcServiceRequ public: DescribeLogAnalysisRequest(); ~DescribeLogAnalysisRequest(); + std::string getFileSystemType() const; + void setFileSystemType(const std::string &fileSystemType); int getPageNumber() const; void setPageNumber(int pageNumber); std::string getRegionId() const; @@ -38,6 +40,7 @@ public: void setPageSize(int pageSize); private: + std::string fileSystemType_; int pageNumber_; std::string regionId_; int pageSize_; diff --git a/nas/include/alibabacloud/nas/model/DescribeMountTargetsResult.h b/nas/include/alibabacloud/nas/model/DescribeMountTargetsResult.h index e030f76ab..c40781be3 100644 --- a/nas/include/alibabacloud/nas/model/DescribeMountTargetsResult.h +++ b/nas/include/alibabacloud/nas/model/DescribeMountTargetsResult.h @@ -52,6 +52,7 @@ namespace AlibabaCloud std::string mountTargetDomain; std::string accessGroup; std::string networkType; + std::string mountTargetIp; std::vector clientMasterNodes; std::vector tags; std::string iPVersion; diff --git a/nas/include/alibabacloud/nas/model/DescribeLDAPConfigRequest.h b/nas/include/alibabacloud/nas/model/DescribeNfsAclRequest.h similarity index 74% rename from nas/include/alibabacloud/nas/model/DescribeLDAPConfigRequest.h rename to nas/include/alibabacloud/nas/model/DescribeNfsAclRequest.h index 5e30db481..b17b8b6b8 100644 --- a/nas/include/alibabacloud/nas/model/DescribeLDAPConfigRequest.h +++ b/nas/include/alibabacloud/nas/model/DescribeNfsAclRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_NAS_MODEL_DESCRIBELDAPCONFIGREQUEST_H_ -#define ALIBABACLOUD_NAS_MODEL_DESCRIBELDAPCONFIGREQUEST_H_ +#ifndef ALIBABACLOUD_NAS_MODEL_DESCRIBENFSACLREQUEST_H_ +#define ALIBABACLOUD_NAS_MODEL_DESCRIBENFSACLREQUEST_H_ #include #include @@ -26,10 +26,10 @@ namespace AlibabaCloud { namespace NAS { namespace Model { -class ALIBABACLOUD_NAS_EXPORT DescribeLDAPConfigRequest : public RpcServiceRequest { +class ALIBABACLOUD_NAS_EXPORT DescribeNfsAclRequest : public RpcServiceRequest { public: - DescribeLDAPConfigRequest(); - ~DescribeLDAPConfigRequest(); + DescribeNfsAclRequest(); + ~DescribeNfsAclRequest(); std::string getFileSystemId() const; void setFileSystemId(const std::string &fileSystemId); @@ -39,4 +39,4 @@ private: } // namespace Model } // namespace NAS } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_NAS_MODEL_DESCRIBELDAPCONFIGREQUEST_H_ +#endif // !ALIBABACLOUD_NAS_MODEL_DESCRIBENFSACLREQUEST_H_ diff --git a/nas/include/alibabacloud/nas/model/DescribeNfsAclResult.h b/nas/include/alibabacloud/nas/model/DescribeNfsAclResult.h new file mode 100644 index 000000000..04c3f6e58 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/DescribeNfsAclResult.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_NAS_MODEL_DESCRIBENFSACLRESULT_H_ +#define ALIBABACLOUD_NAS_MODEL_DESCRIBENFSACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace NAS + { + namespace Model + { + class ALIBABACLOUD_NAS_EXPORT DescribeNfsAclResult : public ServiceResult + { + public: + struct Acl + { + bool enabled; + }; + + + DescribeNfsAclResult(); + explicit DescribeNfsAclResult(const std::string &payload); + ~DescribeNfsAclResult(); + Acl getAcl()const; + + protected: + void parse(const std::string &payload); + private: + Acl acl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NAS_MODEL_DESCRIBENFSACLRESULT_H_ \ No newline at end of file diff --git a/nas/include/alibabacloud/nas/model/DescribeSnapshotsResult.h b/nas/include/alibabacloud/nas/model/DescribeSnapshotsResult.h index 91533acee..ca41ea99f 100644 --- a/nas/include/alibabacloud/nas/model/DescribeSnapshotsResult.h +++ b/nas/include/alibabacloud/nas/model/DescribeSnapshotsResult.h @@ -35,17 +35,19 @@ namespace AlibabaCloud struct Snapshot { std::string status; - std::string snapshotId; std::string progress; - long sourceFileSystemSize; std::string description; - int encryptType; std::string sourceFileSystemVersion; std::string createTime; std::string sourceFileSystemId; int retentionDays; - int remainTime; std::string snapshotName; + std::string snapshotId; + long sourceFileSystemSize; + int encryptType; + std::string fileSystemType; + std::string snapshotType; + int remainTime; }; diff --git a/nas/include/alibabacloud/nas/model/DisableNfsAclRequest.h b/nas/include/alibabacloud/nas/model/DisableNfsAclRequest.h new file mode 100644 index 000000000..80e530a46 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/DisableNfsAclRequest.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_NAS_MODEL_DISABLENFSACLREQUEST_H_ +#define ALIBABACLOUD_NAS_MODEL_DISABLENFSACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace NAS { +namespace Model { +class ALIBABACLOUD_NAS_EXPORT DisableNfsAclRequest : public RpcServiceRequest { +public: + DisableNfsAclRequest(); + ~DisableNfsAclRequest(); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + +private: + std::string fileSystemId_; +}; +} // namespace Model +} // namespace NAS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NAS_MODEL_DISABLENFSACLREQUEST_H_ diff --git a/nas/include/alibabacloud/nas/model/DisableNfsAclResult.h b/nas/include/alibabacloud/nas/model/DisableNfsAclResult.h new file mode 100644 index 000000000..f5260c870 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/DisableNfsAclResult.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_NAS_MODEL_DISABLENFSACLRESULT_H_ +#define ALIBABACLOUD_NAS_MODEL_DISABLENFSACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace NAS + { + namespace Model + { + class ALIBABACLOUD_NAS_EXPORT DisableNfsAclResult : public ServiceResult + { + public: + + + DisableNfsAclResult(); + explicit DisableNfsAclResult(const std::string &payload); + ~DisableNfsAclResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_NAS_MODEL_DISABLENFSACLRESULT_H_ \ No newline at end of file diff --git a/nas/include/alibabacloud/nas/model/DescribeTagsRequest.h b/nas/include/alibabacloud/nas/model/EnableNfsAclRequest.h similarity index 62% rename from nas/include/alibabacloud/nas/model/DescribeTagsRequest.h rename to nas/include/alibabacloud/nas/model/EnableNfsAclRequest.h index 9af7963a1..8e4eae583 100644 --- a/nas/include/alibabacloud/nas/model/DescribeTagsRequest.h +++ b/nas/include/alibabacloud/nas/model/EnableNfsAclRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_NAS_MODEL_DESCRIBETAGSREQUEST_H_ -#define ALIBABACLOUD_NAS_MODEL_DESCRIBETAGSREQUEST_H_ +#ifndef ALIBABACLOUD_NAS_MODEL_ENABLENFSACLREQUEST_H_ +#define ALIBABACLOUD_NAS_MODEL_ENABLENFSACLREQUEST_H_ #include #include @@ -26,30 +26,17 @@ namespace AlibabaCloud { namespace NAS { namespace Model { -class ALIBABACLOUD_NAS_EXPORT DescribeTagsRequest : public RpcServiceRequest { +class ALIBABACLOUD_NAS_EXPORT EnableNfsAclRequest : public RpcServiceRequest { public: - struct Tag { - std::string value; - std::string key; - }; - DescribeTagsRequest(); - ~DescribeTagsRequest(); - int getPageNumber() const; - void setPageNumber(int pageNumber); - int getPageSize() const; - void setPageSize(int pageSize); - std::vector getTag() const; - void setTag(const std::vector &tag); + EnableNfsAclRequest(); + ~EnableNfsAclRequest(); std::string getFileSystemId() const; void setFileSystemId(const std::string &fileSystemId); private: - int pageNumber_; - int pageSize_; - std::vector tag_; std::string fileSystemId_; }; } // namespace Model } // namespace NAS } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_NAS_MODEL_DESCRIBETAGSREQUEST_H_ +#endif // !ALIBABACLOUD_NAS_MODEL_ENABLENFSACLREQUEST_H_ diff --git a/nas/include/alibabacloud/nas/model/EnableNfsAclResult.h b/nas/include/alibabacloud/nas/model/EnableNfsAclResult.h new file mode 100644 index 000000000..6d74bff97 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/EnableNfsAclResult.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_NAS_MODEL_ENABLENFSACLRESULT_H_ +#define ALIBABACLOUD_NAS_MODEL_ENABLENFSACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace NAS + { + namespace Model + { + class ALIBABACLOUD_NAS_EXPORT EnableNfsAclResult : public ServiceResult + { + public: + + + EnableNfsAclResult(); + explicit EnableNfsAclResult(const std::string &payload); + ~EnableNfsAclResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_NAS_MODEL_ENABLENFSACLRESULT_H_ \ No newline at end of file diff --git a/nas/include/alibabacloud/nas/model/GetDirectoryOrFilePropertiesResult.h b/nas/include/alibabacloud/nas/model/GetDirectoryOrFilePropertiesResult.h index 002dbf49b..f7665f242 100644 --- a/nas/include/alibabacloud/nas/model/GetDirectoryOrFilePropertiesResult.h +++ b/nas/include/alibabacloud/nas/model/GetDirectoryOrFilePropertiesResult.h @@ -34,6 +34,7 @@ namespace AlibabaCloud public: struct Entry { + bool hasArchiveFile; std::string type; std::string storageType; std::string inode; diff --git a/nas/include/alibabacloud/nas/model/GetRecycleBinAttributeResult.h b/nas/include/alibabacloud/nas/model/GetRecycleBinAttributeResult.h index 5c7f04c04..6b946f5ad 100644 --- a/nas/include/alibabacloud/nas/model/GetRecycleBinAttributeResult.h +++ b/nas/include/alibabacloud/nas/model/GetRecycleBinAttributeResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string status; long reservedDays; + long archiveSize; long size; long secondarySize; std::string enableTime; diff --git a/nas/include/alibabacloud/nas/model/ListDirectoriesAndFilesResult.h b/nas/include/alibabacloud/nas/model/ListDirectoriesAndFilesResult.h index c415dc80e..94e599b7c 100644 --- a/nas/include/alibabacloud/nas/model/ListDirectoriesAndFilesResult.h +++ b/nas/include/alibabacloud/nas/model/ListDirectoriesAndFilesResult.h @@ -34,18 +34,19 @@ namespace AlibabaCloud public: struct Entry { - std::string type; + std::string hasArchiveFile; std::string owner; std::string storageType; - std::string inode; std::string atime; - bool hasInfrequentAccessFile; - std::string ctime; long size; std::string mtime; - std::string fileId; std::string retrieveTime; std::string name; + std::string type; + std::string inode; + bool hasInfrequentAccessFile; + std::string ctime; + std::string fileId; }; diff --git a/nas/include/alibabacloud/nas/model/ListLifecycleRetrieveJobsRequest.h b/nas/include/alibabacloud/nas/model/ListLifecycleRetrieveJobsRequest.h index 52468c494..ec3243af1 100644 --- a/nas/include/alibabacloud/nas/model/ListLifecycleRetrieveJobsRequest.h +++ b/nas/include/alibabacloud/nas/model/ListLifecycleRetrieveJobsRequest.h @@ -32,6 +32,8 @@ public: ~ListLifecycleRetrieveJobsRequest(); int getPageNumber() const; void setPageNumber(int pageNumber); + std::string getStorageType() const; + void setStorageType(const std::string &storageType); int getPageSize() const; void setPageSize(int pageSize); std::string getFileSystemId() const; @@ -41,6 +43,7 @@ public: private: int pageNumber_; + std::string storageType_; int pageSize_; std::string fileSystemId_; std::string status_; diff --git a/nas/include/alibabacloud/nas/model/ListLifecycleRetrieveJobsResult.h b/nas/include/alibabacloud/nas/model/ListLifecycleRetrieveJobsResult.h index b6e36d0ee..c3cb73aa9 100644 --- a/nas/include/alibabacloud/nas/model/ListLifecycleRetrieveJobsResult.h +++ b/nas/include/alibabacloud/nas/model/ListLifecycleRetrieveJobsResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct LifecycleRetrieveJob { std::string status; + std::string storageType; std::string createTime; std::string updateTime; long retrievedFileCount; diff --git a/nas/include/alibabacloud/nas/model/ModifyAccessPointRequest.h b/nas/include/alibabacloud/nas/model/ModifyAccessPointRequest.h new file mode 100644 index 000000000..9e1c8b76c --- /dev/null +++ b/nas/include/alibabacloud/nas/model/ModifyAccessPointRequest.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_NAS_MODEL_MODIFYACCESSPOINTREQUEST_H_ +#define ALIBABACLOUD_NAS_MODEL_MODIFYACCESSPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace NAS { +namespace Model { +class ALIBABACLOUD_NAS_EXPORT ModifyAccessPointRequest : public RpcServiceRequest { +public: + ModifyAccessPointRequest(); + ~ModifyAccessPointRequest(); + std::string getAccessPointId() const; + void setAccessPointId(const std::string &accessPointId); + std::string getAccessPointName() const; + void setAccessPointName(const std::string &accessPointName); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + bool getEnabledRam() const; + void setEnabledRam(bool enabledRam); + std::string getAccessGroup() const; + void setAccessGroup(const std::string &accessGroup); + +private: + std::string accessPointId_; + std::string accessPointName_; + std::string fileSystemId_; + bool enabledRam_; + std::string accessGroup_; +}; +} // namespace Model +} // namespace NAS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NAS_MODEL_MODIFYACCESSPOINTREQUEST_H_ diff --git a/nas/include/alibabacloud/nas/model/ModifyAccessPointResult.h b/nas/include/alibabacloud/nas/model/ModifyAccessPointResult.h new file mode 100644 index 000000000..7ec8de114 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/ModifyAccessPointResult.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_NAS_MODEL_MODIFYACCESSPOINTRESULT_H_ +#define ALIBABACLOUD_NAS_MODEL_MODIFYACCESSPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace NAS + { + namespace Model + { + class ALIBABACLOUD_NAS_EXPORT ModifyAccessPointResult : public ServiceResult + { + public: + + + ModifyAccessPointResult(); + explicit ModifyAccessPointResult(const std::string &payload); + ~ModifyAccessPointResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_NAS_MODEL_MODIFYACCESSPOINTRESULT_H_ \ No newline at end of file diff --git a/nas/include/alibabacloud/nas/model/ModifyFileSystemRequest.h b/nas/include/alibabacloud/nas/model/ModifyFileSystemRequest.h index b182a5477..6edfde39d 100644 --- a/nas/include/alibabacloud/nas/model/ModifyFileSystemRequest.h +++ b/nas/include/alibabacloud/nas/model/ModifyFileSystemRequest.h @@ -28,15 +28,21 @@ namespace NAS { namespace Model { class ALIBABACLOUD_NAS_EXPORT ModifyFileSystemRequest : public RpcServiceRequest { public: + struct Options { + bool enableOplock; + }; ModifyFileSystemRequest(); ~ModifyFileSystemRequest(); std::string getDescription() const; void setDescription(const std::string &description); + Options getOptions() const; + void setOptions(const Options &options); std::string getFileSystemId() const; void setFileSystemId(const std::string &fileSystemId); private: std::string description_; + Options options_; std::string fileSystemId_; }; } // namespace Model diff --git a/nas/include/alibabacloud/nas/model/ModifyFilesetRequest.h b/nas/include/alibabacloud/nas/model/ModifyFilesetRequest.h index 4e6656a5e..4d567bf43 100644 --- a/nas/include/alibabacloud/nas/model/ModifyFilesetRequest.h +++ b/nas/include/alibabacloud/nas/model/ModifyFilesetRequest.h @@ -36,6 +36,8 @@ public: void setClientToken(const std::string &clientToken); std::string getDescription() const; void setDescription(const std::string &description); + bool getDeletionProtection() const; + void setDeletionProtection(bool deletionProtection); std::string getFileSystemId() const; void setFileSystemId(const std::string &fileSystemId); bool getDryRun() const; @@ -45,6 +47,7 @@ private: std::string fsetId_; std::string clientToken_; std::string description_; + bool deletionProtection_; std::string fileSystemId_; bool dryRun_; }; diff --git a/nas/include/alibabacloud/nas/model/OpenNASServiceResult.h b/nas/include/alibabacloud/nas/model/OpenNASServiceResult.h index c7e2cd70d..78c10b926 100644 --- a/nas/include/alibabacloud/nas/model/OpenNASServiceResult.h +++ b/nas/include/alibabacloud/nas/model/OpenNASServiceResult.h @@ -37,11 +37,13 @@ namespace AlibabaCloud OpenNASServiceResult(); explicit OpenNASServiceResult(const std::string &payload); ~OpenNASServiceResult(); + std::string getAccessDeniedDetail()const; std::string getOrderId()const; protected: void parse(const std::string &payload); private: + std::string accessDeniedDetail_; std::string orderId_; }; diff --git a/nas/include/alibabacloud/nas/model/SetFilesetQuotaRequest.h b/nas/include/alibabacloud/nas/model/SetFilesetQuotaRequest.h new file mode 100644 index 000000000..d36452554 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/SetFilesetQuotaRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NAS_MODEL_SETFILESETQUOTAREQUEST_H_ +#define ALIBABACLOUD_NAS_MODEL_SETFILESETQUOTAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace NAS { +namespace Model { +class ALIBABACLOUD_NAS_EXPORT SetFilesetQuotaRequest : public RpcServiceRequest { +public: + SetFilesetQuotaRequest(); + ~SetFilesetQuotaRequest(); + std::string getFsetId() const; + void setFsetId(const std::string &fsetId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + long getFileCountLimit() const; + void setFileCountLimit(long fileCountLimit); + long getSizeLimit() const; + void setSizeLimit(long sizeLimit); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string fsetId_; + std::string clientToken_; + long fileCountLimit_; + long sizeLimit_; + std::string fileSystemId_; + bool dryRun_; +}; +} // namespace Model +} // namespace NAS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NAS_MODEL_SETFILESETQUOTAREQUEST_H_ diff --git a/nas/include/alibabacloud/nas/model/SetFilesetQuotaResult.h b/nas/include/alibabacloud/nas/model/SetFilesetQuotaResult.h new file mode 100644 index 000000000..d16b5e548 --- /dev/null +++ b/nas/include/alibabacloud/nas/model/SetFilesetQuotaResult.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_NAS_MODEL_SETFILESETQUOTARESULT_H_ +#define ALIBABACLOUD_NAS_MODEL_SETFILESETQUOTARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace NAS + { + namespace Model + { + class ALIBABACLOUD_NAS_EXPORT SetFilesetQuotaResult : public ServiceResult + { + public: + + + SetFilesetQuotaResult(); + explicit SetFilesetQuotaResult(const std::string &payload); + ~SetFilesetQuotaResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_NAS_MODEL_SETFILESETQUOTARESULT_H_ \ No newline at end of file diff --git a/nas/src/NASClient.cc b/nas/src/NASClient.cc index 9db109f0b..087d28c61 100644 --- a/nas/src/NASClient.cc +++ b/nas/src/NASClient.cc @@ -31,21 +31,21 @@ NASClient::NASClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "NAS"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "nas"); } NASClient::NASClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "NAS"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "nas"); } NASClient::NASClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "NAS"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "nas"); } NASClient::~NASClient() @@ -267,6 +267,42 @@ NASClient::CancelDataFlowAutoRefreshOutcomeCallable NASClient::cancelDataFlowAut return task->get_future(); } +NASClient::CancelDataFlowSubTaskOutcome NASClient::cancelDataFlowSubTask(const CancelDataFlowSubTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelDataFlowSubTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelDataFlowSubTaskOutcome(CancelDataFlowSubTaskResult(outcome.result())); + else + return CancelDataFlowSubTaskOutcome(outcome.error()); +} + +void NASClient::cancelDataFlowSubTaskAsync(const CancelDataFlowSubTaskRequest& request, const CancelDataFlowSubTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelDataFlowSubTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NASClient::CancelDataFlowSubTaskOutcomeCallable NASClient::cancelDataFlowSubTaskCallable(const CancelDataFlowSubTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelDataFlowSubTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + NASClient::CancelDataFlowTaskOutcome NASClient::cancelDataFlowTask(const CancelDataFlowTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,6 +375,42 @@ NASClient::CancelDirQuotaOutcomeCallable NASClient::cancelDirQuotaCallable(const return task->get_future(); } +NASClient::CancelFilesetQuotaOutcome NASClient::cancelFilesetQuota(const CancelFilesetQuotaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelFilesetQuotaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelFilesetQuotaOutcome(CancelFilesetQuotaResult(outcome.result())); + else + return CancelFilesetQuotaOutcome(outcome.error()); +} + +void NASClient::cancelFilesetQuotaAsync(const CancelFilesetQuotaRequest& request, const CancelFilesetQuotaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelFilesetQuota(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NASClient::CancelFilesetQuotaOutcomeCallable NASClient::cancelFilesetQuotaCallable(const CancelFilesetQuotaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelFilesetQuota(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + NASClient::CancelLifecycleRetrieveJobOutcome NASClient::cancelLifecycleRetrieveJob(const CancelLifecycleRetrieveJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +483,42 @@ NASClient::CancelRecycleBinJobOutcomeCallable NASClient::cancelRecycleBinJobCall return task->get_future(); } +NASClient::ChangeResourceGroupOutcome NASClient::changeResourceGroup(const ChangeResourceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChangeResourceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChangeResourceGroupOutcome(ChangeResourceGroupResult(outcome.result())); + else + return ChangeResourceGroupOutcome(outcome.error()); +} + +void NASClient::changeResourceGroupAsync(const ChangeResourceGroupRequest& request, const ChangeResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, changeResourceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NASClient::ChangeResourceGroupOutcomeCallable NASClient::changeResourceGroupCallable(const ChangeResourceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->changeResourceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + NASClient::CreateAccessGroupOutcome NASClient::createAccessGroup(const CreateAccessGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,6 +555,42 @@ NASClient::CreateAccessGroupOutcomeCallable NASClient::createAccessGroupCallable return task->get_future(); } +NASClient::CreateAccessPointOutcome NASClient::createAccessPoint(const CreateAccessPointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAccessPointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAccessPointOutcome(CreateAccessPointResult(outcome.result())); + else + return CreateAccessPointOutcome(outcome.error()); +} + +void NASClient::createAccessPointAsync(const CreateAccessPointRequest& request, const CreateAccessPointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAccessPoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NASClient::CreateAccessPointOutcomeCallable NASClient::createAccessPointCallable(const CreateAccessPointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAccessPoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + NASClient::CreateAccessRuleOutcome NASClient::createAccessRule(const CreateAccessRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,6 +699,42 @@ NASClient::CreateDataFlowOutcomeCallable NASClient::createDataFlowCallable(const return task->get_future(); } +NASClient::CreateDataFlowSubTaskOutcome NASClient::createDataFlowSubTask(const CreateDataFlowSubTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDataFlowSubTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDataFlowSubTaskOutcome(CreateDataFlowSubTaskResult(outcome.result())); + else + return CreateDataFlowSubTaskOutcome(outcome.error()); +} + +void NASClient::createDataFlowSubTaskAsync(const CreateDataFlowSubTaskRequest& request, const CreateDataFlowSubTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDataFlowSubTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NASClient::CreateDataFlowSubTaskOutcomeCallable NASClient::createDataFlowSubTaskCallable(const CreateDataFlowSubTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDataFlowSubTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + NASClient::CreateDataFlowTaskOutcome NASClient::createDataFlowTask(const CreateDataFlowTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -591,6 +771,42 @@ NASClient::CreateDataFlowTaskOutcomeCallable NASClient::createDataFlowTaskCallab return task->get_future(); } +NASClient::CreateDirOutcome NASClient::createDir(const CreateDirRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDirOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDirOutcome(CreateDirResult(outcome.result())); + else + return CreateDirOutcome(outcome.error()); +} + +void NASClient::createDirAsync(const CreateDirRequest& request, const CreateDirAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDir(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NASClient::CreateDirOutcomeCallable NASClient::createDirCallable(const CreateDirRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDir(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + NASClient::CreateFileOutcome NASClient::createFile(const CreateFileRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,6 +1023,42 @@ NASClient::CreateLifecycleRetrieveJobOutcomeCallable NASClient::createLifecycleR return task->get_future(); } +NASClient::CreateLogAnalysisOutcome NASClient::createLogAnalysis(const CreateLogAnalysisRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLogAnalysisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLogAnalysisOutcome(CreateLogAnalysisResult(outcome.result())); + else + return CreateLogAnalysisOutcome(outcome.error()); +} + +void NASClient::createLogAnalysisAsync(const CreateLogAnalysisRequest& request, const CreateLogAnalysisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLogAnalysis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NASClient::CreateLogAnalysisOutcomeCallable NASClient::createLogAnalysisCallable(const CreateLogAnalysisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLogAnalysis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + NASClient::CreateMountTargetOutcome NASClient::createMountTarget(const CreateMountTargetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,6 +1311,42 @@ NASClient::DeleteAccessGroupOutcomeCallable NASClient::deleteAccessGroupCallable return task->get_future(); } +NASClient::DeleteAccessPointOutcome NASClient::deleteAccessPoint(const DeleteAccessPointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAccessPointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAccessPointOutcome(DeleteAccessPointResult(outcome.result())); + else + return DeleteAccessPointOutcome(outcome.error()); +} + +void NASClient::deleteAccessPointAsync(const DeleteAccessPointRequest& request, const DeleteAccessPointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAccessPoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NASClient::DeleteAccessPointOutcomeCallable NASClient::deleteAccessPointCallable(const DeleteAccessPointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAccessPoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + NASClient::DeleteAccessRuleOutcome NASClient::deleteAccessRule(const DeleteAccessRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1311,6 +1599,42 @@ NASClient::DeleteLifecyclePolicyOutcomeCallable NASClient::deleteLifecyclePolicy return task->get_future(); } +NASClient::DeleteLogAnalysisOutcome NASClient::deleteLogAnalysis(const DeleteLogAnalysisRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteLogAnalysisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteLogAnalysisOutcome(DeleteLogAnalysisResult(outcome.result())); + else + return DeleteLogAnalysisOutcome(outcome.error()); +} + +void NASClient::deleteLogAnalysisAsync(const DeleteLogAnalysisRequest& request, const DeleteLogAnalysisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteLogAnalysis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NASClient::DeleteLogAnalysisOutcomeCallable NASClient::deleteLogAnalysisCallable(const DeleteLogAnalysisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteLogAnalysis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + NASClient::DeleteMountTargetOutcome NASClient::deleteMountTarget(const DeleteMountTargetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1491,6 +1815,78 @@ NASClient::DescribeAccessGroupsOutcomeCallable NASClient::describeAccessGroupsCa return task->get_future(); } +NASClient::DescribeAccessPointOutcome NASClient::describeAccessPoint(const DescribeAccessPointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccessPointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccessPointOutcome(DescribeAccessPointResult(outcome.result())); + else + return DescribeAccessPointOutcome(outcome.error()); +} + +void NASClient::describeAccessPointAsync(const DescribeAccessPointRequest& request, const DescribeAccessPointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccessPoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NASClient::DescribeAccessPointOutcomeCallable NASClient::describeAccessPointCallable(const DescribeAccessPointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccessPoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NASClient::DescribeAccessPointsOutcome NASClient::describeAccessPoints(const DescribeAccessPointsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccessPointsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccessPointsOutcome(DescribeAccessPointsResult(outcome.result())); + else + return DescribeAccessPointsOutcome(outcome.error()); +} + +void NASClient::describeAccessPointsAsync(const DescribeAccessPointsRequest& request, const DescribeAccessPointsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccessPoints(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NASClient::DescribeAccessPointsOutcomeCallable NASClient::describeAccessPointsCallable(const DescribeAccessPointsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccessPoints(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + NASClient::DescribeAccessRulesOutcome NASClient::describeAccessRules(const DescribeAccessRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,6 +2031,42 @@ NASClient::DescribeBlackListClientsOutcomeCallable NASClient::describeBlackListC return task->get_future(); } +NASClient::DescribeDataFlowSubTasksOutcome NASClient::describeDataFlowSubTasks(const DescribeDataFlowSubTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataFlowSubTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataFlowSubTasksOutcome(DescribeDataFlowSubTasksResult(outcome.result())); + else + return DescribeDataFlowSubTasksOutcome(outcome.error()); +} + +void NASClient::describeDataFlowSubTasksAsync(const DescribeDataFlowSubTasksRequest& request, const DescribeDataFlowSubTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataFlowSubTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NASClient::DescribeDataFlowSubTasksOutcomeCallable NASClient::describeDataFlowSubTasksCallable(const DescribeDataFlowSubTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataFlowSubTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + NASClient::DescribeDataFlowTasksOutcome NASClient::describeDataFlowTasks(const DescribeDataFlowTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1851,42 +2283,6 @@ NASClient::DescribeFilesetsOutcomeCallable NASClient::describeFilesetsCallable(c return task->get_future(); } -NASClient::DescribeLDAPConfigOutcome NASClient::describeLDAPConfig(const DescribeLDAPConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLDAPConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLDAPConfigOutcome(DescribeLDAPConfigResult(outcome.result())); - else - return DescribeLDAPConfigOutcome(outcome.error()); -} - -void NASClient::describeLDAPConfigAsync(const DescribeLDAPConfigRequest& request, const DescribeLDAPConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLDAPConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -NASClient::DescribeLDAPConfigOutcomeCallable NASClient::describeLDAPConfigCallable(const DescribeLDAPConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLDAPConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - NASClient::DescribeLifecyclePoliciesOutcome NASClient::describeLifecyclePolicies(const DescribeLifecyclePoliciesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2031,6 +2427,42 @@ NASClient::DescribeMountedClientsOutcomeCallable NASClient::describeMountedClien return task->get_future(); } +NASClient::DescribeNfsAclOutcome NASClient::describeNfsAcl(const DescribeNfsAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNfsAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNfsAclOutcome(DescribeNfsAclResult(outcome.result())); + else + return DescribeNfsAclOutcome(outcome.error()); +} + +void NASClient::describeNfsAclAsync(const DescribeNfsAclRequest& request, const DescribeNfsAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNfsAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NASClient::DescribeNfsAclOutcomeCallable NASClient::describeNfsAclCallable(const DescribeNfsAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNfsAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + NASClient::DescribeProtocolMountTargetOutcome NASClient::describeProtocolMountTarget(const DescribeProtocolMountTargetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2247,42 +2679,6 @@ NASClient::DescribeStoragePackagesOutcomeCallable NASClient::describeStoragePack return task->get_future(); } -NASClient::DescribeTagsOutcome NASClient::describeTags(const DescribeTagsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeTagsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeTagsOutcome(DescribeTagsResult(outcome.result())); - else - return DescribeTagsOutcome(outcome.error()); -} - -void NASClient::describeTagsAsync(const DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeTags(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -NASClient::DescribeTagsOutcomeCallable NASClient::describeTagsCallable(const DescribeTagsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeTags(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - NASClient::DescribeZonesOutcome NASClient::describeZones(const DescribeZonesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2355,6 +2751,42 @@ NASClient::DisableAndCleanRecycleBinOutcomeCallable NASClient::disableAndCleanRe return task->get_future(); } +NASClient::DisableNfsAclOutcome NASClient::disableNfsAcl(const DisableNfsAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableNfsAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableNfsAclOutcome(DisableNfsAclResult(outcome.result())); + else + return DisableNfsAclOutcome(outcome.error()); +} + +void NASClient::disableNfsAclAsync(const DisableNfsAclRequest& request, const DisableNfsAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableNfsAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NASClient::DisableNfsAclOutcomeCallable NASClient::disableNfsAclCallable(const DisableNfsAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableNfsAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + NASClient::DisableSmbAclOutcome NASClient::disableSmbAcl(const DisableSmbAclRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2391,6 +2823,42 @@ NASClient::DisableSmbAclOutcomeCallable NASClient::disableSmbAclCallable(const D return task->get_future(); } +NASClient::EnableNfsAclOutcome NASClient::enableNfsAcl(const EnableNfsAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableNfsAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableNfsAclOutcome(EnableNfsAclResult(outcome.result())); + else + return EnableNfsAclOutcome(outcome.error()); +} + +void NASClient::enableNfsAclAsync(const EnableNfsAclRequest& request, const EnableNfsAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableNfsAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NASClient::EnableNfsAclOutcomeCallable NASClient::enableNfsAclCallable(const EnableNfsAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableNfsAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + NASClient::EnableRecycleBinOutcome NASClient::enableRecycleBin(const EnableRecycleBinRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2787,6 +3255,42 @@ NASClient::ModifyAccessGroupOutcomeCallable NASClient::modifyAccessGroupCallable return task->get_future(); } +NASClient::ModifyAccessPointOutcome NASClient::modifyAccessPoint(const ModifyAccessPointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAccessPointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAccessPointOutcome(ModifyAccessPointResult(outcome.result())); + else + return ModifyAccessPointOutcome(outcome.error()); +} + +void NASClient::modifyAccessPointAsync(const ModifyAccessPointRequest& request, const ModifyAccessPointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAccessPoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NASClient::ModifyAccessPointOutcomeCallable NASClient::modifyAccessPointCallable(const ModifyAccessPointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAccessPoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + NASClient::ModifyAccessRuleOutcome NASClient::modifyAccessRule(const ModifyAccessRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3435,6 +3939,42 @@ NASClient::SetDirQuotaOutcomeCallable NASClient::setDirQuotaCallable(const SetDi return task->get_future(); } +NASClient::SetFilesetQuotaOutcome NASClient::setFilesetQuota(const SetFilesetQuotaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetFilesetQuotaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetFilesetQuotaOutcome(SetFilesetQuotaResult(outcome.result())); + else + return SetFilesetQuotaOutcome(outcome.error()); +} + +void NASClient::setFilesetQuotaAsync(const SetFilesetQuotaRequest& request, const SetFilesetQuotaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setFilesetQuota(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NASClient::SetFilesetQuotaOutcomeCallable NASClient::setFilesetQuotaCallable(const SetFilesetQuotaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setFilesetQuota(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + NASClient::StartDataFlowOutcome NASClient::startDataFlow(const StartDataFlowRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/nas/src/model/CancelDataFlowSubTaskRequest.cc b/nas/src/model/CancelDataFlowSubTaskRequest.cc new file mode 100644 index 000000000..dc151d720 --- /dev/null +++ b/nas/src/model/CancelDataFlowSubTaskRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::NAS::Model::CancelDataFlowSubTaskRequest; + +CancelDataFlowSubTaskRequest::CancelDataFlowSubTaskRequest() + : RpcServiceRequest("nas", "2017-06-26", "CancelDataFlowSubTask") { + setMethod(HttpRequest::Method::Post); +} + +CancelDataFlowSubTaskRequest::~CancelDataFlowSubTaskRequest() {} + +std::string CancelDataFlowSubTaskRequest::getClientToken() const { + return clientToken_; +} + +void CancelDataFlowSubTaskRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CancelDataFlowSubTaskRequest::getDataFlowTaskId() const { + return dataFlowTaskId_; +} + +void CancelDataFlowSubTaskRequest::setDataFlowTaskId(const std::string &dataFlowTaskId) { + dataFlowTaskId_ = dataFlowTaskId; + setParameter(std::string("DataFlowTaskId"), dataFlowTaskId); +} + +std::string CancelDataFlowSubTaskRequest::getDataFlowSubTaskId() const { + return dataFlowSubTaskId_; +} + +void CancelDataFlowSubTaskRequest::setDataFlowSubTaskId(const std::string &dataFlowSubTaskId) { + dataFlowSubTaskId_ = dataFlowSubTaskId; + setParameter(std::string("DataFlowSubTaskId"), dataFlowSubTaskId); +} + +std::string CancelDataFlowSubTaskRequest::getFileSystemId() const { + return fileSystemId_; +} + +void CancelDataFlowSubTaskRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + +bool CancelDataFlowSubTaskRequest::getDryRun() const { + return dryRun_; +} + +void CancelDataFlowSubTaskRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CancelDataFlowSubTaskRequest::getDataFlowId() const { + return dataFlowId_; +} + +void CancelDataFlowSubTaskRequest::setDataFlowId(const std::string &dataFlowId) { + dataFlowId_ = dataFlowId; + setParameter(std::string("DataFlowId"), dataFlowId); +} + diff --git a/nas/src/model/CancelDataFlowSubTaskResult.cc b/nas/src/model/CancelDataFlowSubTaskResult.cc new file mode 100644 index 000000000..7d6f34786 --- /dev/null +++ b/nas/src/model/CancelDataFlowSubTaskResult.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::NAS; +using namespace AlibabaCloud::NAS::Model; + +CancelDataFlowSubTaskResult::CancelDataFlowSubTaskResult() : + ServiceResult() +{} + +CancelDataFlowSubTaskResult::CancelDataFlowSubTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelDataFlowSubTaskResult::~CancelDataFlowSubTaskResult() +{} + +void CancelDataFlowSubTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/nas/src/model/CancelFilesetQuotaRequest.cc b/nas/src/model/CancelFilesetQuotaRequest.cc new file mode 100644 index 000000000..f5c9e1470 --- /dev/null +++ b/nas/src/model/CancelFilesetQuotaRequest.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::NAS::Model::CancelFilesetQuotaRequest; + +CancelFilesetQuotaRequest::CancelFilesetQuotaRequest() + : RpcServiceRequest("nas", "2017-06-26", "CancelFilesetQuota") { + setMethod(HttpRequest::Method::Post); +} + +CancelFilesetQuotaRequest::~CancelFilesetQuotaRequest() {} + +std::string CancelFilesetQuotaRequest::getFsetId() const { + return fsetId_; +} + +void CancelFilesetQuotaRequest::setFsetId(const std::string &fsetId) { + fsetId_ = fsetId; + setParameter(std::string("FsetId"), fsetId); +} + +std::string CancelFilesetQuotaRequest::getClientToken() const { + return clientToken_; +} + +void CancelFilesetQuotaRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CancelFilesetQuotaRequest::getFileSystemId() const { + return fileSystemId_; +} + +void CancelFilesetQuotaRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + +bool CancelFilesetQuotaRequest::getDryRun() const { + return dryRun_; +} + +void CancelFilesetQuotaRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/nas/src/model/DescribeLDAPConfigResult.cc b/nas/src/model/CancelFilesetQuotaResult.cc similarity index 58% rename from nas/src/model/DescribeLDAPConfigResult.cc rename to nas/src/model/CancelFilesetQuotaResult.cc index 6b4f2cfda..9de602ab7 100644 --- a/nas/src/model/DescribeLDAPConfigResult.cc +++ b/nas/src/model/CancelFilesetQuotaResult.cc @@ -14,43 +14,31 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::NAS; using namespace AlibabaCloud::NAS::Model; -DescribeLDAPConfigResult::DescribeLDAPConfigResult() : +CancelFilesetQuotaResult::CancelFilesetQuotaResult() : ServiceResult() {} -DescribeLDAPConfigResult::DescribeLDAPConfigResult(const std::string &payload) : +CancelFilesetQuotaResult::CancelFilesetQuotaResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeLDAPConfigResult::~DescribeLDAPConfigResult() +CancelFilesetQuotaResult::~CancelFilesetQuotaResult() {} -void DescribeLDAPConfigResult::parse(const std::string &payload) +void CancelFilesetQuotaResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto ldapNode = value["Ldap"]; - if(!ldapNode["BindDN"].isNull()) - ldap_.bindDN = ldapNode["BindDN"].asString(); - if(!ldapNode["SearchBase"].isNull()) - ldap_.searchBase = ldapNode["SearchBase"].asString(); - if(!ldapNode["URI"].isNull()) - ldap_.uRI = ldapNode["URI"].asString(); } -DescribeLDAPConfigResult::Ldap DescribeLDAPConfigResult::getLdap()const -{ - return ldap_; -} - diff --git a/nas/src/model/ChangeResourceGroupRequest.cc b/nas/src/model/ChangeResourceGroupRequest.cc new file mode 100644 index 000000000..28a5bb646 --- /dev/null +++ b/nas/src/model/ChangeResourceGroupRequest.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::NAS::Model::ChangeResourceGroupRequest; + +ChangeResourceGroupRequest::ChangeResourceGroupRequest() + : RpcServiceRequest("nas", "2017-06-26", "ChangeResourceGroup") { + setMethod(HttpRequest::Method::Post); +} + +ChangeResourceGroupRequest::~ChangeResourceGroupRequest() {} + +std::string ChangeResourceGroupRequest::getRegionId() const { + return regionId_; +} + +void ChangeResourceGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ChangeResourceGroupRequest::getResourceId() const { + return resourceId_; +} + +void ChangeResourceGroupRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string ChangeResourceGroupRequest::getResourceType() const { + return resourceType_; +} + +void ChangeResourceGroupRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string ChangeResourceGroupRequest::getNewResourceGroupId() const { + return newResourceGroupId_; +} + +void ChangeResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) { + newResourceGroupId_ = newResourceGroupId; + setParameter(std::string("NewResourceGroupId"), newResourceGroupId); +} + diff --git a/nas/src/model/ChangeResourceGroupResult.cc b/nas/src/model/ChangeResourceGroupResult.cc new file mode 100644 index 000000000..f8fd7985d --- /dev/null +++ b/nas/src/model/ChangeResourceGroupResult.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::NAS; +using namespace AlibabaCloud::NAS::Model; + +ChangeResourceGroupResult::ChangeResourceGroupResult() : + ServiceResult() +{} + +ChangeResourceGroupResult::ChangeResourceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ChangeResourceGroupResult::~ChangeResourceGroupResult() +{} + +void ChangeResourceGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/nas/src/model/CreateAccessPointRequest.cc b/nas/src/model/CreateAccessPointRequest.cc new file mode 100644 index 000000000..0b7a88129 --- /dev/null +++ b/nas/src/model/CreateAccessPointRequest.cc @@ -0,0 +1,153 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::NAS::Model::CreateAccessPointRequest; + +CreateAccessPointRequest::CreateAccessPointRequest() + : RpcServiceRequest("nas", "2017-06-26", "CreateAccessPoint") { + setMethod(HttpRequest::Method::Post); +} + +CreateAccessPointRequest::~CreateAccessPointRequest() {} + +std::string CreateAccessPointRequest::getVswId() const { + return vswId_; +} + +void CreateAccessPointRequest::setVswId(const std::string &vswId) { + vswId_ = vswId; + setParameter(std::string("VswId"), vswId); +} + +std::string CreateAccessPointRequest::getAccessPointName() const { + return accessPointName_; +} + +void CreateAccessPointRequest::setAccessPointName(const std::string &accessPointName) { + accessPointName_ = accessPointName; + setParameter(std::string("AccessPointName"), accessPointName); +} + +int CreateAccessPointRequest::getPosixGroupId() const { + return posixGroupId_; +} + +void CreateAccessPointRequest::setPosixGroupId(int posixGroupId) { + posixGroupId_ = posixGroupId; + setParameter(std::string("PosixGroupId"), std::to_string(posixGroupId)); +} + +std::string CreateAccessPointRequest::getPosixSecondaryGroupIds() const { + return posixSecondaryGroupIds_; +} + +void CreateAccessPointRequest::setPosixSecondaryGroupIds(const std::string &posixSecondaryGroupIds) { + posixSecondaryGroupIds_ = posixSecondaryGroupIds; + setParameter(std::string("PosixSecondaryGroupIds"), posixSecondaryGroupIds); +} + +std::string CreateAccessPointRequest::getFileSystemId() const { + return fileSystemId_; +} + +void CreateAccessPointRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + +int CreateAccessPointRequest::getOwnerGroupId() const { + return ownerGroupId_; +} + +void CreateAccessPointRequest::setOwnerGroupId(int ownerGroupId) { + ownerGroupId_ = ownerGroupId; + setParameter(std::string("OwnerGroupId"), std::to_string(ownerGroupId)); +} + +bool CreateAccessPointRequest::getEnabledRam() const { + return enabledRam_; +} + +void CreateAccessPointRequest::setEnabledRam(bool enabledRam) { + enabledRam_ = enabledRam; + setParameter(std::string("EnabledRam"), enabledRam ? "true" : "false"); +} + +int CreateAccessPointRequest::getOwnerUserId() const { + return ownerUserId_; +} + +void CreateAccessPointRequest::setOwnerUserId(int ownerUserId) { + ownerUserId_ = ownerUserId; + setParameter(std::string("OwnerUserId"), std::to_string(ownerUserId)); +} + +std::string CreateAccessPointRequest::getPermission() const { + return permission_; +} + +void CreateAccessPointRequest::setPermission(const std::string &permission) { + permission_ = permission; + setParameter(std::string("Permission"), permission); +} + +std::string CreateAccessPointRequest::getVpcId() const { + return vpcId_; +} + +void CreateAccessPointRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + +std::string CreateAccessPointRequest::getProtocolType() const { + return protocolType_; +} + +void CreateAccessPointRequest::setProtocolType(const std::string &protocolType) { + protocolType_ = protocolType; + setParameter(std::string("ProtocolType"), protocolType); +} + +std::string CreateAccessPointRequest::getRootDirectory() const { + return rootDirectory_; +} + +void CreateAccessPointRequest::setRootDirectory(const std::string &rootDirectory) { + rootDirectory_ = rootDirectory; + setParameter(std::string("RootDirectory"), rootDirectory); +} + +std::string CreateAccessPointRequest::getAccessGroup() const { + return accessGroup_; +} + +void CreateAccessPointRequest::setAccessGroup(const std::string &accessGroup) { + accessGroup_ = accessGroup; + setParameter(std::string("AccessGroup"), accessGroup); +} + +int CreateAccessPointRequest::getPosixUserId() const { + return posixUserId_; +} + +void CreateAccessPointRequest::setPosixUserId(int posixUserId) { + posixUserId_ = posixUserId; + setParameter(std::string("PosixUserId"), std::to_string(posixUserId)); +} + diff --git a/nas/src/model/CreateAccessPointResult.cc b/nas/src/model/CreateAccessPointResult.cc new file mode 100644 index 000000000..12e634978 --- /dev/null +++ b/nas/src/model/CreateAccessPointResult.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::NAS; +using namespace AlibabaCloud::NAS::Model; + +CreateAccessPointResult::CreateAccessPointResult() : + ServiceResult() +{} + +CreateAccessPointResult::CreateAccessPointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAccessPointResult::~CreateAccessPointResult() +{} + +void CreateAccessPointResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto accessPointNode = value["AccessPoint"]; + if(!accessPointNode["AccessPointDomain"].isNull()) + accessPoint_.accessPointDomain = accessPointNode["AccessPointDomain"].asString(); + if(!accessPointNode["AccessPointId"].isNull()) + accessPoint_.accessPointId = accessPointNode["AccessPointId"].asString(); + +} + +CreateAccessPointResult::AccessPoint CreateAccessPointResult::getAccessPoint()const +{ + return accessPoint_; +} + diff --git a/nas/src/model/CreateDataFlowRequest.cc b/nas/src/model/CreateDataFlowRequest.cc index e1f0ae1b2..9aa954824 100644 --- a/nas/src/model/CreateDataFlowRequest.cc +++ b/nas/src/model/CreateDataFlowRequest.cc @@ -128,3 +128,21 @@ void CreateDataFlowRequest::setAutoRefreshInterval(long autoRefreshInterval) { setParameter(std::string("AutoRefreshInterval"), std::to_string(autoRefreshInterval)); } +std::string CreateDataFlowRequest::getSourceStoragePath() const { + return sourceStoragePath_; +} + +void CreateDataFlowRequest::setSourceStoragePath(const std::string &sourceStoragePath) { + sourceStoragePath_ = sourceStoragePath; + setParameter(std::string("SourceStoragePath"), sourceStoragePath); +} + +std::string CreateDataFlowRequest::getFileSystemPath() const { + return fileSystemPath_; +} + +void CreateDataFlowRequest::setFileSystemPath(const std::string &fileSystemPath) { + fileSystemPath_ = fileSystemPath; + setParameter(std::string("FileSystemPath"), fileSystemPath); +} + diff --git a/nas/src/model/CreateDataFlowSubTaskRequest.cc b/nas/src/model/CreateDataFlowSubTaskRequest.cc new file mode 100644 index 000000000..0342eca44 --- /dev/null +++ b/nas/src/model/CreateDataFlowSubTaskRequest.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::NAS::Model::CreateDataFlowSubTaskRequest; + +CreateDataFlowSubTaskRequest::CreateDataFlowSubTaskRequest() + : RpcServiceRequest("nas", "2017-06-26", "CreateDataFlowSubTask") { + setMethod(HttpRequest::Method::Post); +} + +CreateDataFlowSubTaskRequest::~CreateDataFlowSubTaskRequest() {} + +std::string CreateDataFlowSubTaskRequest::getClientToken() const { + return clientToken_; +} + +void CreateDataFlowSubTaskRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateDataFlowSubTaskRequest::getDataFlowTaskId() const { + return dataFlowTaskId_; +} + +void CreateDataFlowSubTaskRequest::setDataFlowTaskId(const std::string &dataFlowTaskId) { + dataFlowTaskId_ = dataFlowTaskId; + setParameter(std::string("DataFlowTaskId"), dataFlowTaskId); +} + +std::string CreateDataFlowSubTaskRequest::getSrcFilePath() const { + return srcFilePath_; +} + +void CreateDataFlowSubTaskRequest::setSrcFilePath(const std::string &srcFilePath) { + srcFilePath_ = srcFilePath; + setParameter(std::string("SrcFilePath"), srcFilePath); +} + +std::string CreateDataFlowSubTaskRequest::getFileSystemId() const { + return fileSystemId_; +} + +void CreateDataFlowSubTaskRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + +bool CreateDataFlowSubTaskRequest::getDryRun() const { + return dryRun_; +} + +void CreateDataFlowSubTaskRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateDataFlowSubTaskRequest::getDataFlowId() const { + return dataFlowId_; +} + +void CreateDataFlowSubTaskRequest::setDataFlowId(const std::string &dataFlowId) { + dataFlowId_ = dataFlowId; + setParameter(std::string("DataFlowId"), dataFlowId); +} + +std::string CreateDataFlowSubTaskRequest::getDstFilePath() const { + return dstFilePath_; +} + +void CreateDataFlowSubTaskRequest::setDstFilePath(const std::string &dstFilePath) { + dstFilePath_ = dstFilePath; + setParameter(std::string("DstFilePath"), dstFilePath); +} + +CreateDataFlowSubTaskRequest::Condition CreateDataFlowSubTaskRequest::getCondition() const { + return condition_; +} + +void CreateDataFlowSubTaskRequest::setCondition(const CreateDataFlowSubTaskRequest::Condition &condition) { + condition_ = condition; + setParameter(std::string("Condition") + ".Size", std::to_string(condition.size)); + setParameter(std::string("Condition") + ".ModifyTime", std::to_string(condition.modifyTime)); +} + diff --git a/nas/src/model/CreateDataFlowSubTaskResult.cc b/nas/src/model/CreateDataFlowSubTaskResult.cc new file mode 100644 index 000000000..c077684b8 --- /dev/null +++ b/nas/src/model/CreateDataFlowSubTaskResult.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::NAS; +using namespace AlibabaCloud::NAS::Model; + +CreateDataFlowSubTaskResult::CreateDataFlowSubTaskResult() : + ServiceResult() +{} + +CreateDataFlowSubTaskResult::CreateDataFlowSubTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDataFlowSubTaskResult::~CreateDataFlowSubTaskResult() +{} + +void CreateDataFlowSubTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DataFlowSubTaskId"].isNull()) + dataFlowSubTaskId_ = value["DataFlowSubTaskId"].asString(); + +} + +std::string CreateDataFlowSubTaskResult::getDataFlowSubTaskId()const +{ + return dataFlowSubTaskId_; +} + diff --git a/nas/src/model/CreateDataFlowTaskRequest.cc b/nas/src/model/CreateDataFlowTaskRequest.cc index c8bf5a166..bc988aced 100644 --- a/nas/src/model/CreateDataFlowTaskRequest.cc +++ b/nas/src/model/CreateDataFlowTaskRequest.cc @@ -25,6 +25,15 @@ CreateDataFlowTaskRequest::CreateDataFlowTaskRequest() CreateDataFlowTaskRequest::~CreateDataFlowTaskRequest() {} +std::string CreateDataFlowTaskRequest::getDstDirectory() const { + return dstDirectory_; +} + +void CreateDataFlowTaskRequest::setDstDirectory(const std::string &dstDirectory) { + dstDirectory_ = dstDirectory; + setParameter(std::string("DstDirectory"), dstDirectory); +} + std::string CreateDataFlowTaskRequest::getClientToken() const { return clientToken_; } @@ -61,6 +70,15 @@ void CreateDataFlowTaskRequest::setDataType(const std::string &dataType) { setParameter(std::string("DataType"), dataType); } +bool CreateDataFlowTaskRequest::getCreateDirIfNotExist() const { + return createDirIfNotExist_; +} + +void CreateDataFlowTaskRequest::setCreateDirIfNotExist(bool createDirIfNotExist) { + createDirIfNotExist_ = createDirIfNotExist; + setParameter(std::string("CreateDirIfNotExist"), createDirIfNotExist ? "true" : "false"); +} + std::string CreateDataFlowTaskRequest::getFileSystemId() const { return fileSystemId_; } @@ -97,6 +115,15 @@ void CreateDataFlowTaskRequest::setEntryList(const std::string &entryList) { setParameter(std::string("EntryList"), entryList); } +std::string CreateDataFlowTaskRequest::getConflictPolicy() const { + return conflictPolicy_; +} + +void CreateDataFlowTaskRequest::setConflictPolicy(const std::string &conflictPolicy) { + conflictPolicy_ = conflictPolicy; + setParameter(std::string("ConflictPolicy"), conflictPolicy); +} + std::string CreateDataFlowTaskRequest::getTaskAction() const { return taskAction_; } diff --git a/nas/src/model/CreateDirRequest.cc b/nas/src/model/CreateDirRequest.cc new file mode 100644 index 000000000..eed41ee9c --- /dev/null +++ b/nas/src/model/CreateDirRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::NAS::Model::CreateDirRequest; + +CreateDirRequest::CreateDirRequest() + : RpcServiceRequest("nas", "2017-06-26", "CreateDir") { + setMethod(HttpRequest::Method::Post); +} + +CreateDirRequest::~CreateDirRequest() {} + +bool CreateDirRequest::getRecursion() const { + return recursion_; +} + +void CreateDirRequest::setRecursion(bool recursion) { + recursion_ = recursion; + setParameter(std::string("Recursion"), recursion ? "true" : "false"); +} + +std::string CreateDirRequest::getFileSystemId() const { + return fileSystemId_; +} + +void CreateDirRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + +int CreateDirRequest::getOwnerGroupId() const { + return ownerGroupId_; +} + +void CreateDirRequest::setOwnerGroupId(int ownerGroupId) { + ownerGroupId_ = ownerGroupId; + setParameter(std::string("OwnerGroupId"), std::to_string(ownerGroupId)); +} + +int CreateDirRequest::getOwnerUserId() const { + return ownerUserId_; +} + +void CreateDirRequest::setOwnerUserId(int ownerUserId) { + ownerUserId_ = ownerUserId; + setParameter(std::string("OwnerUserId"), std::to_string(ownerUserId)); +} + +std::string CreateDirRequest::getPermission() const { + return permission_; +} + +void CreateDirRequest::setPermission(const std::string &permission) { + permission_ = permission; + setParameter(std::string("Permission"), permission); +} + +std::string CreateDirRequest::getRootDirectory() const { + return rootDirectory_; +} + +void CreateDirRequest::setRootDirectory(const std::string &rootDirectory) { + rootDirectory_ = rootDirectory; + setParameter(std::string("RootDirectory"), rootDirectory); +} + diff --git a/nas/src/model/CreateDirResult.cc b/nas/src/model/CreateDirResult.cc new file mode 100644 index 000000000..b8c687920 --- /dev/null +++ b/nas/src/model/CreateDirResult.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::NAS; +using namespace AlibabaCloud::NAS::Model; + +CreateDirResult::CreateDirResult() : + ServiceResult() +{} + +CreateDirResult::CreateDirResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDirResult::~CreateDirResult() +{} + +void CreateDirResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/nas/src/model/CreateFileSystemRequest.cc b/nas/src/model/CreateFileSystemRequest.cc index cbf8785e7..baccb8b54 100644 --- a/nas/src/model/CreateFileSystemRequest.cc +++ b/nas/src/model/CreateFileSystemRequest.cc @@ -97,6 +97,15 @@ void CreateFileSystemRequest::setDuration(int duration) { setParameter(std::string("Duration"), std::to_string(duration)); } +std::string CreateFileSystemRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateFileSystemRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + bool CreateFileSystemRequest::getDryRun() const { return dryRun_; } diff --git a/nas/src/model/CreateFilesetRequest.cc b/nas/src/model/CreateFilesetRequest.cc index 37c5fedae..d8760235e 100644 --- a/nas/src/model/CreateFilesetRequest.cc +++ b/nas/src/model/CreateFilesetRequest.cc @@ -43,6 +43,25 @@ void CreateFilesetRequest::setDescription(const std::string &description) { setParameter(std::string("Description"), description); } +bool CreateFilesetRequest::getDeletionProtection() const { + return deletionProtection_; +} + +void CreateFilesetRequest::setDeletionProtection(bool deletionProtection) { + deletionProtection_ = deletionProtection; + setParameter(std::string("DeletionProtection"), deletionProtection ? "true" : "false"); +} + +CreateFilesetRequest::Quota CreateFilesetRequest::getQuota() const { + return quota_; +} + +void CreateFilesetRequest::setQuota(const CreateFilesetRequest::Quota "a) { + quota_ = quota; + setParameter(std::string("Quota") + ".SizeLimit", std::to_string(quota.sizeLimit)); + setParameter(std::string("Quota") + ".FileCountLimit", std::to_string(quota.fileCountLimit)); +} + std::string CreateFilesetRequest::getFileSystemId() const { return fileSystemId_; } diff --git a/nas/src/model/CreateLifecyclePolicyRequest.cc b/nas/src/model/CreateLifecyclePolicyRequest.cc index f2b0e550c..1c05ef352 100644 --- a/nas/src/model/CreateLifecyclePolicyRequest.cc +++ b/nas/src/model/CreateLifecyclePolicyRequest.cc @@ -70,6 +70,15 @@ void CreateLifecyclePolicyRequest::setLifecycleRuleName(const std::string &lifec setParameter(std::string("LifecycleRuleName"), lifecycleRuleName); } +int CreateLifecyclePolicyRequest::getLifecycleRuleInactiveDays() const { + return lifecycleRuleInactiveDays_; +} + +void CreateLifecyclePolicyRequest::setLifecycleRuleInactiveDays(int lifecycleRuleInactiveDays) { + lifecycleRuleInactiveDays_ = lifecycleRuleInactiveDays; + setParameter(std::string("LifecycleRuleInactiveDays"), std::to_string(lifecycleRuleInactiveDays)); +} + std::vector CreateLifecyclePolicyRequest::getPaths() const { return paths_; } diff --git a/nas/src/model/CreateLifecycleRetrieveJobRequest.cc b/nas/src/model/CreateLifecycleRetrieveJobRequest.cc index b05a7f803..264e2af4b 100644 --- a/nas/src/model/CreateLifecycleRetrieveJobRequest.cc +++ b/nas/src/model/CreateLifecycleRetrieveJobRequest.cc @@ -25,6 +25,15 @@ CreateLifecycleRetrieveJobRequest::CreateLifecycleRetrieveJobRequest() CreateLifecycleRetrieveJobRequest::~CreateLifecycleRetrieveJobRequest() {} +std::string CreateLifecycleRetrieveJobRequest::getStorageType() const { + return storageType_; +} + +void CreateLifecycleRetrieveJobRequest::setStorageType(const std::string &storageType) { + storageType_ = storageType; + setParameter(std::string("StorageType"), storageType); +} + std::string CreateLifecycleRetrieveJobRequest::getFileSystemId() const { return fileSystemId_; } diff --git a/nas/src/model/CreateLogAnalysisRequest.cc b/nas/src/model/CreateLogAnalysisRequest.cc new file mode 100644 index 000000000..884ce4fca --- /dev/null +++ b/nas/src/model/CreateLogAnalysisRequest.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::NAS::Model::CreateLogAnalysisRequest; + +CreateLogAnalysisRequest::CreateLogAnalysisRequest() + : RpcServiceRequest("nas", "2017-06-26", "CreateLogAnalysis") { + setMethod(HttpRequest::Method::Post); +} + +CreateLogAnalysisRequest::~CreateLogAnalysisRequest() {} + +std::string CreateLogAnalysisRequest::getRegionId() const { + return regionId_; +} + +void CreateLogAnalysisRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateLogAnalysisRequest::getFileSystemId() const { + return fileSystemId_; +} + +void CreateLogAnalysisRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + diff --git a/nas/src/model/CreateLogAnalysisResult.cc b/nas/src/model/CreateLogAnalysisResult.cc new file mode 100644 index 000000000..820e5d931 --- /dev/null +++ b/nas/src/model/CreateLogAnalysisResult.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::NAS; +using namespace AlibabaCloud::NAS::Model; + +CreateLogAnalysisResult::CreateLogAnalysisResult() : + ServiceResult() +{} + +CreateLogAnalysisResult::CreateLogAnalysisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateLogAnalysisResult::~CreateLogAnalysisResult() +{} + +void CreateLogAnalysisResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/nas/src/model/DeleteAccessPointRequest.cc b/nas/src/model/DeleteAccessPointRequest.cc new file mode 100644 index 000000000..e58f9d18a --- /dev/null +++ b/nas/src/model/DeleteAccessPointRequest.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::NAS::Model::DeleteAccessPointRequest; + +DeleteAccessPointRequest::DeleteAccessPointRequest() + : RpcServiceRequest("nas", "2017-06-26", "DeleteAccessPoint") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAccessPointRequest::~DeleteAccessPointRequest() {} + +std::string DeleteAccessPointRequest::getAccessPointId() const { + return accessPointId_; +} + +void DeleteAccessPointRequest::setAccessPointId(const std::string &accessPointId) { + accessPointId_ = accessPointId; + setParameter(std::string("AccessPointId"), accessPointId); +} + +std::string DeleteAccessPointRequest::getFileSystemId() const { + return fileSystemId_; +} + +void DeleteAccessPointRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + diff --git a/nas/src/model/DeleteAccessPointResult.cc b/nas/src/model/DeleteAccessPointResult.cc new file mode 100644 index 000000000..3bc548b77 --- /dev/null +++ b/nas/src/model/DeleteAccessPointResult.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::NAS; +using namespace AlibabaCloud::NAS::Model; + +DeleteAccessPointResult::DeleteAccessPointResult() : + ServiceResult() +{} + +DeleteAccessPointResult::DeleteAccessPointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAccessPointResult::~DeleteAccessPointResult() +{} + +void DeleteAccessPointResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/nas/src/model/DeleteLogAnalysisRequest.cc b/nas/src/model/DeleteLogAnalysisRequest.cc new file mode 100644 index 000000000..bda783a8d --- /dev/null +++ b/nas/src/model/DeleteLogAnalysisRequest.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::NAS::Model::DeleteLogAnalysisRequest; + +DeleteLogAnalysisRequest::DeleteLogAnalysisRequest() + : RpcServiceRequest("nas", "2017-06-26", "DeleteLogAnalysis") { + setMethod(HttpRequest::Method::Post); +} + +DeleteLogAnalysisRequest::~DeleteLogAnalysisRequest() {} + +std::string DeleteLogAnalysisRequest::getRegionId() const { + return regionId_; +} + +void DeleteLogAnalysisRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteLogAnalysisRequest::getFileSystemId() const { + return fileSystemId_; +} + +void DeleteLogAnalysisRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + diff --git a/nas/src/model/DeleteLogAnalysisResult.cc b/nas/src/model/DeleteLogAnalysisResult.cc new file mode 100644 index 000000000..72fb43cb6 --- /dev/null +++ b/nas/src/model/DeleteLogAnalysisResult.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::NAS; +using namespace AlibabaCloud::NAS::Model; + +DeleteLogAnalysisResult::DeleteLogAnalysisResult() : + ServiceResult() +{} + +DeleteLogAnalysisResult::DeleteLogAnalysisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteLogAnalysisResult::~DeleteLogAnalysisResult() +{} + +void DeleteLogAnalysisResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/nas/src/model/DescribeAccessGroupsResult.cc b/nas/src/model/DescribeAccessGroupsResult.cc index 8868983d3..1cdd1d72a 100644 --- a/nas/src/model/DescribeAccessGroupsResult.cc +++ b/nas/src/model/DescribeAccessGroupsResult.cc @@ -55,6 +55,10 @@ void DescribeAccessGroupsResult::parse(const std::string &payload) accessGroupsObject.ruleCount = std::stoi(valueAccessGroupsAccessGroup["RuleCount"].asString()); if(!valueAccessGroupsAccessGroup["MountTargetCount"].isNull()) accessGroupsObject.mountTargetCount = std::stoi(valueAccessGroupsAccessGroup["MountTargetCount"].asString()); + if(!valueAccessGroupsAccessGroup["FileSystemType"].isNull()) + accessGroupsObject.fileSystemType = valueAccessGroupsAccessGroup["FileSystemType"].asString(); + if(!valueAccessGroupsAccessGroup["RegionId"].isNull()) + accessGroupsObject.regionId = valueAccessGroupsAccessGroup["RegionId"].asString(); auto allTagsNode = valueAccessGroupsAccessGroup["Tags"]["Tag"]; for (auto valueAccessGroupsAccessGroupTagsTag : allTagsNode) { diff --git a/nas/src/model/DescribeAccessPointRequest.cc b/nas/src/model/DescribeAccessPointRequest.cc new file mode 100644 index 000000000..ea9f23c14 --- /dev/null +++ b/nas/src/model/DescribeAccessPointRequest.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::NAS::Model::DescribeAccessPointRequest; + +DescribeAccessPointRequest::DescribeAccessPointRequest() + : RpcServiceRequest("nas", "2017-06-26", "DescribeAccessPoint") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAccessPointRequest::~DescribeAccessPointRequest() {} + +std::string DescribeAccessPointRequest::getAccessPointId() const { + return accessPointId_; +} + +void DescribeAccessPointRequest::setAccessPointId(const std::string &accessPointId) { + accessPointId_ = accessPointId; + setParameter(std::string("AccessPointId"), accessPointId); +} + +std::string DescribeAccessPointRequest::getFileSystemId() const { + return fileSystemId_; +} + +void DescribeAccessPointRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + diff --git a/nas/src/model/DescribeAccessPointResult.cc b/nas/src/model/DescribeAccessPointResult.cc new file mode 100644 index 000000000..4710911cb --- /dev/null +++ b/nas/src/model/DescribeAccessPointResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::NAS; +using namespace AlibabaCloud::NAS::Model; + +DescribeAccessPointResult::DescribeAccessPointResult() : + ServiceResult() +{} + +DescribeAccessPointResult::DescribeAccessPointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccessPointResult::~DescribeAccessPointResult() +{} + +void DescribeAccessPointResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto accessPointNode = value["AccessPoint"]; + if(!accessPointNode["ARN"].isNull()) + accessPoint_.aRN = accessPointNode["ARN"].asString(); + if(!accessPointNode["AccessGroup"].isNull()) + accessPoint_.accessGroup = accessPointNode["AccessGroup"].asString(); + if(!accessPointNode["AccessPointId"].isNull()) + accessPoint_.accessPointId = accessPointNode["AccessPointId"].asString(); + if(!accessPointNode["AccessPointName"].isNull()) + accessPoint_.accessPointName = accessPointNode["AccessPointName"].asString(); + if(!accessPointNode["CreateTime"].isNull()) + accessPoint_.createTime = accessPointNode["CreateTime"].asString(); + if(!accessPointNode["DomainName"].isNull()) + accessPoint_.domainName = accessPointNode["DomainName"].asString(); + if(!accessPointNode["EnabledRam"].isNull()) + accessPoint_.enabledRam = accessPointNode["EnabledRam"].asString() == "true"; + if(!accessPointNode["FileSystemId"].isNull()) + accessPoint_.fileSystemId = accessPointNode["FileSystemId"].asString(); + if(!accessPointNode["ModifyTime"].isNull()) + accessPoint_.modifyTime = accessPointNode["ModifyTime"].asString(); + if(!accessPointNode["RootPath"].isNull()) + accessPoint_.rootPath = accessPointNode["RootPath"].asString(); + if(!accessPointNode["RootPathStatus"].isNull()) + accessPoint_.rootPathStatus = accessPointNode["RootPathStatus"].asString(); + if(!accessPointNode["Status"].isNull()) + accessPoint_.status = accessPointNode["Status"].asString(); + if(!accessPointNode["VSwitchId"].isNull()) + accessPoint_.vSwitchId = accessPointNode["VSwitchId"].asString(); + if(!accessPointNode["VpcId"].isNull()) + accessPoint_.vpcId = accessPointNode["VpcId"].asString(); + if(!accessPointNode["RegionId"].isNull()) + accessPoint_.regionId = accessPointNode["RegionId"].asString(); + auto allTagsNode = accessPointNode["Tags"]["Tag"]; + for (auto accessPointNodeTagsTag : allTagsNode) + { + AccessPoint::Tag tagObject; + if(!accessPointNodeTagsTag["Key"].isNull()) + tagObject.key = accessPointNodeTagsTag["Key"].asString(); + if(!accessPointNodeTagsTag["Value"].isNull()) + tagObject.value = accessPointNodeTagsTag["Value"].asString(); + accessPoint_.tags.push_back(tagObject); + } + auto rootPathPermissionNode = accessPointNode["RootPathPermission"]; + if(!rootPathPermissionNode["OwnerGroupId"].isNull()) + accessPoint_.rootPathPermission.ownerGroupId = std::stoi(rootPathPermissionNode["OwnerGroupId"].asString()); + if(!rootPathPermissionNode["OwnerUserId"].isNull()) + accessPoint_.rootPathPermission.ownerUserId = std::stoi(rootPathPermissionNode["OwnerUserId"].asString()); + if(!rootPathPermissionNode["Permission"].isNull()) + accessPoint_.rootPathPermission.permission = rootPathPermissionNode["Permission"].asString(); + auto posixUserNode = accessPointNode["PosixUser"]; + if(!posixUserNode["PosixGroupId"].isNull()) + accessPoint_.posixUser.posixGroupId = std::stoi(posixUserNode["PosixGroupId"].asString()); + if(!posixUserNode["PosixUserId"].isNull()) + accessPoint_.posixUser.posixUserId = std::stoi(posixUserNode["PosixUserId"].asString()); + auto allPosixSecondaryGroupIds = posixUserNode["PosixSecondaryGroupIds"]["posixSecondaryGid"]; + for (auto value : allPosixSecondaryGroupIds) + accessPoint_.posixUser.posixSecondaryGroupIds.push_back(value.asString()); + +} + +DescribeAccessPointResult::AccessPoint DescribeAccessPointResult::getAccessPoint()const +{ + return accessPoint_; +} + diff --git a/nas/src/model/DescribeAccessPointsRequest.cc b/nas/src/model/DescribeAccessPointsRequest.cc new file mode 100644 index 000000000..237488c87 --- /dev/null +++ b/nas/src/model/DescribeAccessPointsRequest.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::NAS::Model::DescribeAccessPointsRequest; + +DescribeAccessPointsRequest::DescribeAccessPointsRequest() + : RpcServiceRequest("nas", "2017-06-26", "DescribeAccessPoints") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAccessPointsRequest::~DescribeAccessPointsRequest() {} + +std::string DescribeAccessPointsRequest::getNextToken() const { + return nextToken_; +} + +void DescribeAccessPointsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string DescribeAccessPointsRequest::getFileSystemId() const { + return fileSystemId_; +} + +void DescribeAccessPointsRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + +int DescribeAccessPointsRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeAccessPointsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string DescribeAccessPointsRequest::getAccessGroup() const { + return accessGroup_; +} + +void DescribeAccessPointsRequest::setAccessGroup(const std::string &accessGroup) { + accessGroup_ = accessGroup; + setParameter(std::string("AccessGroup"), accessGroup); +} + diff --git a/nas/src/model/DescribeAccessPointsResult.cc b/nas/src/model/DescribeAccessPointsResult.cc new file mode 100644 index 000000000..f15e796b8 --- /dev/null +++ b/nas/src/model/DescribeAccessPointsResult.cc @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::NAS; +using namespace AlibabaCloud::NAS::Model; + +DescribeAccessPointsResult::DescribeAccessPointsResult() : + ServiceResult() +{} + +DescribeAccessPointsResult::DescribeAccessPointsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccessPointsResult::~DescribeAccessPointsResult() +{} + +void DescribeAccessPointsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAccessPointsNode = value["AccessPoints"]["AccessPoint"]; + for (auto valueAccessPointsAccessPoint : allAccessPointsNode) + { + AccessPoint accessPointsObject; + if(!valueAccessPointsAccessPoint["ARN"].isNull()) + accessPointsObject.aRN = valueAccessPointsAccessPoint["ARN"].asString(); + if(!valueAccessPointsAccessPoint["AccessGroup"].isNull()) + accessPointsObject.accessGroup = valueAccessPointsAccessPoint["AccessGroup"].asString(); + if(!valueAccessPointsAccessPoint["AccessPointId"].isNull()) + accessPointsObject.accessPointId = valueAccessPointsAccessPoint["AccessPointId"].asString(); + if(!valueAccessPointsAccessPoint["AccessPointName"].isNull()) + accessPointsObject.accessPointName = valueAccessPointsAccessPoint["AccessPointName"].asString(); + if(!valueAccessPointsAccessPoint["CreateTime"].isNull()) + accessPointsObject.createTime = valueAccessPointsAccessPoint["CreateTime"].asString(); + if(!valueAccessPointsAccessPoint["DomainName"].isNull()) + accessPointsObject.domainName = valueAccessPointsAccessPoint["DomainName"].asString(); + if(!valueAccessPointsAccessPoint["EnabledRam"].isNull()) + accessPointsObject.enabledRam = valueAccessPointsAccessPoint["EnabledRam"].asString() == "true"; + if(!valueAccessPointsAccessPoint["FileSystemId"].isNull()) + accessPointsObject.fileSystemId = valueAccessPointsAccessPoint["FileSystemId"].asString(); + if(!valueAccessPointsAccessPoint["ModifyTime"].isNull()) + accessPointsObject.modifyTime = valueAccessPointsAccessPoint["ModifyTime"].asString(); + if(!valueAccessPointsAccessPoint["RootPath"].isNull()) + accessPointsObject.rootPath = valueAccessPointsAccessPoint["RootPath"].asString(); + if(!valueAccessPointsAccessPoint["RootPathStatus"].isNull()) + accessPointsObject.rootPathStatus = valueAccessPointsAccessPoint["RootPathStatus"].asString(); + if(!valueAccessPointsAccessPoint["Status"].isNull()) + accessPointsObject.status = valueAccessPointsAccessPoint["Status"].asString(); + if(!valueAccessPointsAccessPoint["VSwitchId"].isNull()) + accessPointsObject.vSwitchId = valueAccessPointsAccessPoint["VSwitchId"].asString(); + if(!valueAccessPointsAccessPoint["VpcId"].isNull()) + accessPointsObject.vpcId = valueAccessPointsAccessPoint["VpcId"].asString(); + auto posixUserNode = value["PosixUser"]; + if(!posixUserNode["PosixGroupId"].isNull()) + accessPointsObject.posixUser.posixGroupId = std::stoi(posixUserNode["PosixGroupId"].asString()); + if(!posixUserNode["PosixUserId"].isNull()) + accessPointsObject.posixUser.posixUserId = std::stoi(posixUserNode["PosixUserId"].asString()); + auto allPosixSecondaryGroupIds = posixUserNode["PosixSecondaryGroupIds"]["posixSecondaryGid"]; + for (auto value : allPosixSecondaryGroupIds) + accessPointsObject.posixUser.posixSecondaryGroupIds.push_back(value.asString()); + auto rootPathPermissionNode = value["RootPathPermission"]; + if(!rootPathPermissionNode["OwnerGroupId"].isNull()) + accessPointsObject.rootPathPermission.ownerGroupId = std::stol(rootPathPermissionNode["OwnerGroupId"].asString()); + if(!rootPathPermissionNode["OwnerUserId"].isNull()) + accessPointsObject.rootPathPermission.ownerUserId = std::stol(rootPathPermissionNode["OwnerUserId"].asString()); + if(!rootPathPermissionNode["Permission"].isNull()) + accessPointsObject.rootPathPermission.permission = rootPathPermissionNode["Permission"].asString(); + accessPoints_.push_back(accessPointsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::vector DescribeAccessPointsResult::getAccessPoints()const +{ + return accessPoints_; +} + +int DescribeAccessPointsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeAccessPointsResult::getNextToken()const +{ + return nextToken_; +} + diff --git a/nas/src/model/DescribeAccessRulesResult.cc b/nas/src/model/DescribeAccessRulesResult.cc index 3b842888f..62a1ad7a9 100644 --- a/nas/src/model/DescribeAccessRulesResult.cc +++ b/nas/src/model/DescribeAccessRulesResult.cc @@ -55,6 +55,12 @@ void DescribeAccessRulesResult::parse(const std::string &payload) accessRulesObject.userAccess = valueAccessRulesAccessRule["UserAccess"].asString(); if(!valueAccessRulesAccessRule["Priority"].isNull()) accessRulesObject.priority = std::stoi(valueAccessRulesAccessRule["Priority"].asString()); + if(!valueAccessRulesAccessRule["FileSystemType"].isNull()) + accessRulesObject.fileSystemType = valueAccessRulesAccessRule["FileSystemType"].asString(); + if(!valueAccessRulesAccessRule["AccessGroupName"].isNull()) + accessRulesObject.accessGroupName = valueAccessRulesAccessRule["AccessGroupName"].asString(); + if(!valueAccessRulesAccessRule["RegionId"].isNull()) + accessRulesObject.regionId = valueAccessRulesAccessRule["RegionId"].asString(); accessRules_.push_back(accessRulesObject); } if(!value["TotalCount"].isNull()) diff --git a/nas/src/model/DescribeAutoSnapshotPoliciesResult.cc b/nas/src/model/DescribeAutoSnapshotPoliciesResult.cc index 1b008679b..570ddb40a 100644 --- a/nas/src/model/DescribeAutoSnapshotPoliciesResult.cc +++ b/nas/src/model/DescribeAutoSnapshotPoliciesResult.cc @@ -61,6 +61,8 @@ void DescribeAutoSnapshotPoliciesResult::parse(const std::string &payload) autoSnapshotPoliciesObject.fileSystemNums = std::stoi(valueAutoSnapshotPoliciesAutoSnapshotPolicy["FileSystemNums"].asString()); if(!valueAutoSnapshotPoliciesAutoSnapshotPolicy["RegionId"].isNull()) autoSnapshotPoliciesObject.regionId = valueAutoSnapshotPoliciesAutoSnapshotPolicy["RegionId"].asString(); + if(!valueAutoSnapshotPoliciesAutoSnapshotPolicy["FileSystemType"].isNull()) + autoSnapshotPoliciesObject.fileSystemType = valueAutoSnapshotPoliciesAutoSnapshotPolicy["FileSystemType"].asString(); autoSnapshotPolicies_.push_back(autoSnapshotPoliciesObject); } if(!value["TotalCount"].isNull()) diff --git a/nas/src/model/DescribeDataFlowSubTasksRequest.cc b/nas/src/model/DescribeDataFlowSubTasksRequest.cc new file mode 100644 index 000000000..5fa6f0e58 --- /dev/null +++ b/nas/src/model/DescribeDataFlowSubTasksRequest.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::NAS::Model::DescribeDataFlowSubTasksRequest; + +DescribeDataFlowSubTasksRequest::DescribeDataFlowSubTasksRequest() + : RpcServiceRequest("nas", "2017-06-26", "DescribeDataFlowSubTasks") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDataFlowSubTasksRequest::~DescribeDataFlowSubTasksRequest() {} + +std::string DescribeDataFlowSubTasksRequest::getNextToken() const { + return nextToken_; +} + +void DescribeDataFlowSubTasksRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string DescribeDataFlowSubTasksRequest::getFileSystemId() const { + return fileSystemId_; +} + +void DescribeDataFlowSubTasksRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + +std::vector DescribeDataFlowSubTasksRequest::getFilters() const { + return filters_; +} + +void DescribeDataFlowSubTasksRequest::setFilters(const std::vector &filters) { + filters_ = filters; + for(int dep1 = 0; dep1 != filters.size(); dep1++) { + auto filtersObj = filters.at(dep1); + std::string filtersObjStr = std::string("Filters") + "." + std::to_string(dep1 + 1); + setParameter(filtersObjStr + ".Value", filtersObj.value); + setParameter(filtersObjStr + ".Key", filtersObj.key); + } +} + +long DescribeDataFlowSubTasksRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeDataFlowSubTasksRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/nas/src/model/DescribeDataFlowSubTasksResult.cc b/nas/src/model/DescribeDataFlowSubTasksResult.cc new file mode 100644 index 000000000..85f8df97c --- /dev/null +++ b/nas/src/model/DescribeDataFlowSubTasksResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::NAS; +using namespace AlibabaCloud::NAS::Model; + +DescribeDataFlowSubTasksResult::DescribeDataFlowSubTasksResult() : + ServiceResult() +{} + +DescribeDataFlowSubTasksResult::DescribeDataFlowSubTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataFlowSubTasksResult::~DescribeDataFlowSubTasksResult() +{} + +void DescribeDataFlowSubTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataFlowSubTaskNode = value["DataFlowSubTask"]["DataFlowSubTaskItem"]; + for (auto valueDataFlowSubTaskDataFlowSubTaskItem : allDataFlowSubTaskNode) + { + DataFlowSubTaskItem dataFlowSubTaskObject; + if(!valueDataFlowSubTaskDataFlowSubTaskItem["FileSystemId"].isNull()) + dataFlowSubTaskObject.fileSystemId = valueDataFlowSubTaskDataFlowSubTaskItem["FileSystemId"].asString(); + if(!valueDataFlowSubTaskDataFlowSubTaskItem["DataFlowId"].isNull()) + dataFlowSubTaskObject.dataFlowId = valueDataFlowSubTaskDataFlowSubTaskItem["DataFlowId"].asString(); + if(!valueDataFlowSubTaskDataFlowSubTaskItem["DataFlowTaskId"].isNull()) + dataFlowSubTaskObject.dataFlowTaskId = valueDataFlowSubTaskDataFlowSubTaskItem["DataFlowTaskId"].asString(); + if(!valueDataFlowSubTaskDataFlowSubTaskItem["DataFlowSubTaskId"].isNull()) + dataFlowSubTaskObject.dataFlowSubTaskId = valueDataFlowSubTaskDataFlowSubTaskItem["DataFlowSubTaskId"].asString(); + if(!valueDataFlowSubTaskDataFlowSubTaskItem["SrcFilePath"].isNull()) + dataFlowSubTaskObject.srcFilePath = valueDataFlowSubTaskDataFlowSubTaskItem["SrcFilePath"].asString(); + if(!valueDataFlowSubTaskDataFlowSubTaskItem["DstFilePath"].isNull()) + dataFlowSubTaskObject.dstFilePath = valueDataFlowSubTaskDataFlowSubTaskItem["DstFilePath"].asString(); + if(!valueDataFlowSubTaskDataFlowSubTaskItem["Status"].isNull()) + dataFlowSubTaskObject.status = valueDataFlowSubTaskDataFlowSubTaskItem["Status"].asString(); + if(!valueDataFlowSubTaskDataFlowSubTaskItem["Progress"].isNull()) + dataFlowSubTaskObject.progress = std::stoi(valueDataFlowSubTaskDataFlowSubTaskItem["Progress"].asString()); + if(!valueDataFlowSubTaskDataFlowSubTaskItem["CreateTime"].isNull()) + dataFlowSubTaskObject.createTime = valueDataFlowSubTaskDataFlowSubTaskItem["CreateTime"].asString(); + if(!valueDataFlowSubTaskDataFlowSubTaskItem["StartTime"].isNull()) + dataFlowSubTaskObject.startTime = valueDataFlowSubTaskDataFlowSubTaskItem["StartTime"].asString(); + if(!valueDataFlowSubTaskDataFlowSubTaskItem["EndTime"].isNull()) + dataFlowSubTaskObject.endTime = valueDataFlowSubTaskDataFlowSubTaskItem["EndTime"].asString(); + if(!valueDataFlowSubTaskDataFlowSubTaskItem["ErrorMsg"].isNull()) + dataFlowSubTaskObject.errorMsg = valueDataFlowSubTaskDataFlowSubTaskItem["ErrorMsg"].asString(); + auto progressStatsNode = value["ProgressStats"]; + if(!progressStatsNode["BytesTotal"].isNull()) + dataFlowSubTaskObject.progressStats.bytesTotal = std::stol(progressStatsNode["BytesTotal"].asString()); + if(!progressStatsNode["BytesDone"].isNull()) + dataFlowSubTaskObject.progressStats.bytesDone = std::stol(progressStatsNode["BytesDone"].asString()); + if(!progressStatsNode["ActualBytes"].isNull()) + dataFlowSubTaskObject.progressStats.actualBytes = std::stol(progressStatsNode["ActualBytes"].asString()); + if(!progressStatsNode["AverageSpeed"].isNull()) + dataFlowSubTaskObject.progressStats.averageSpeed = std::stol(progressStatsNode["AverageSpeed"].asString()); + auto fileDetailNode = value["FileDetail"]; + if(!fileDetailNode["ModifyTime"].isNull()) + dataFlowSubTaskObject.fileDetail.modifyTime = std::stol(fileDetailNode["ModifyTime"].asString()); + if(!fileDetailNode["Size"].isNull()) + dataFlowSubTaskObject.fileDetail.size = std::stol(fileDetailNode["Size"].asString()); + if(!fileDetailNode["Checksum"].isNull()) + dataFlowSubTaskObject.fileDetail.checksum = fileDetailNode["Checksum"].asString(); + dataFlowSubTask_.push_back(dataFlowSubTaskObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string DescribeDataFlowSubTasksResult::getNextToken()const +{ + return nextToken_; +} + +std::vector DescribeDataFlowSubTasksResult::getDataFlowSubTask()const +{ + return dataFlowSubTask_; +} + diff --git a/nas/src/model/DescribeDataFlowTasksResult.cc b/nas/src/model/DescribeDataFlowTasksResult.cc index 849b35208..3b0649a0b 100644 --- a/nas/src/model/DescribeDataFlowTasksResult.cc +++ b/nas/src/model/DescribeDataFlowTasksResult.cc @@ -73,6 +73,41 @@ void DescribeDataFlowTasksResult::parse(const std::string &payload) taskInfoObject.endTime = valueTaskInfoTask["EndTime"].asString(); if(!valueTaskInfoTask["FsPath"].isNull()) taskInfoObject.fsPath = valueTaskInfoTask["FsPath"].asString(); + if(!valueTaskInfoTask["ConflictPolicy"].isNull()) + taskInfoObject.conflictPolicy = valueTaskInfoTask["ConflictPolicy"].asString(); + if(!valueTaskInfoTask["Directory"].isNull()) + taskInfoObject.directory = valueTaskInfoTask["Directory"].asString(); + if(!valueTaskInfoTask["DstDirectory"].isNull()) + taskInfoObject.dstDirectory = valueTaskInfoTask["DstDirectory"].asString(); + if(!valueTaskInfoTask["ErrorMsg"].isNull()) + taskInfoObject.errorMsg = valueTaskInfoTask["ErrorMsg"].asString(); + auto allReportsNode = valueTaskInfoTask["Reports"]["Report"]; + for (auto valueTaskInfoTaskReportsReport : allReportsNode) + { + Task::Report reportsObject; + if(!valueTaskInfoTaskReportsReport["Name"].isNull()) + reportsObject.name = valueTaskInfoTaskReportsReport["Name"].asString(); + if(!valueTaskInfoTaskReportsReport["Path"].isNull()) + reportsObject.path = valueTaskInfoTaskReportsReport["Path"].asString(); + taskInfoObject.reports.push_back(reportsObject); + } + auto progressStatsNode = value["ProgressStats"]; + if(!progressStatsNode["FilesTotal"].isNull()) + taskInfoObject.progressStats.filesTotal = std::stol(progressStatsNode["FilesTotal"].asString()); + if(!progressStatsNode["FilesDone"].isNull()) + taskInfoObject.progressStats.filesDone = std::stol(progressStatsNode["FilesDone"].asString()); + if(!progressStatsNode["ActualFiles"].isNull()) + taskInfoObject.progressStats.actualFiles = std::stol(progressStatsNode["ActualFiles"].asString()); + if(!progressStatsNode["BytesTotal"].isNull()) + taskInfoObject.progressStats.bytesTotal = std::stol(progressStatsNode["BytesTotal"].asString()); + if(!progressStatsNode["BytesDone"].isNull()) + taskInfoObject.progressStats.bytesDone = std::stol(progressStatsNode["BytesDone"].asString()); + if(!progressStatsNode["ActualBytes"].isNull()) + taskInfoObject.progressStats.actualBytes = std::stol(progressStatsNode["ActualBytes"].asString()); + if(!progressStatsNode["RemainTime"].isNull()) + taskInfoObject.progressStats.remainTime = std::stol(progressStatsNode["RemainTime"].asString()); + if(!progressStatsNode["AverageSpeed"].isNull()) + taskInfoObject.progressStats.averageSpeed = std::stol(progressStatsNode["AverageSpeed"].asString()); taskInfo_.push_back(taskInfoObject); } if(!value["NextToken"].isNull()) diff --git a/nas/src/model/DescribeDataFlowsResult.cc b/nas/src/model/DescribeDataFlowsResult.cc index adda16a46..0027f55da 100644 --- a/nas/src/model/DescribeDataFlowsResult.cc +++ b/nas/src/model/DescribeDataFlowsResult.cc @@ -73,6 +73,8 @@ void DescribeDataFlowsResult::parse(const std::string &payload) dataFlowInfoObject.autoRefreshInterval = std::stol(valueDataFlowInfoDataFlow["AutoRefreshInterval"].asString()); if(!valueDataFlowInfoDataFlow["AutoRefreshPolicy"].isNull()) dataFlowInfoObject.autoRefreshPolicy = valueDataFlowInfoDataFlow["AutoRefreshPolicy"].asString(); + if(!valueDataFlowInfoDataFlow["SourceStoragePath"].isNull()) + dataFlowInfoObject.sourceStoragePath = valueDataFlowInfoDataFlow["SourceStoragePath"].asString(); auto allAutoRefreshNode = valueDataFlowInfoDataFlow["AutoRefresh"]["AutoRefreshItem"]; for (auto valueDataFlowInfoDataFlowAutoRefreshAutoRefreshItem : allAutoRefreshNode) { diff --git a/nas/src/model/DescribeDirQuotasResult.cc b/nas/src/model/DescribeDirQuotasResult.cc index 58eaca420..91b32089b 100644 --- a/nas/src/model/DescribeDirQuotasResult.cc +++ b/nas/src/model/DescribeDirQuotasResult.cc @@ -67,6 +67,8 @@ void DescribeDirQuotasResult::parse(const std::string &payload) userQuotaInfosObject.quotaType = valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["QuotaType"].asString(); if(!valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["SizeReal"].isNull()) userQuotaInfosObject.sizeReal = std::stol(valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["SizeReal"].asString()); + if(!valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["SizeRealInByte"].isNull()) + userQuotaInfosObject.sizeRealInByte = std::stol(valueDirQuotaInfosDirQuotaInfoUserQuotaInfosUserQuotaInfo["SizeRealInByte"].asString()); dirQuotaInfosObject.userQuotaInfos.push_back(userQuotaInfosObject); } dirQuotaInfos_.push_back(dirQuotaInfosObject); diff --git a/nas/src/model/DescribeFileSystemsRequest.cc b/nas/src/model/DescribeFileSystemsRequest.cc index 3e65dc3e9..e2642c42c 100644 --- a/nas/src/model/DescribeFileSystemsRequest.cc +++ b/nas/src/model/DescribeFileSystemsRequest.cc @@ -88,6 +88,15 @@ void DescribeFileSystemsRequest::setStorageType(const std::string &storageType) setParameter(std::string("StorageType"), storageType); } +std::string DescribeFileSystemsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeFileSystemsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + int DescribeFileSystemsRequest::getPageSize() const { return pageSize_; } diff --git a/nas/src/model/DescribeFileSystemsResult.cc b/nas/src/model/DescribeFileSystemsResult.cc index 4255a2454..e01400ca3 100644 --- a/nas/src/model/DescribeFileSystemsResult.cc +++ b/nas/src/model/DescribeFileSystemsResult.cc @@ -87,6 +87,18 @@ void DescribeFileSystemsResult::parse(const std::string &payload) fileSystemsObject.zoneId = valueFileSystemsFileSystem["ZoneId"].asString(); if(!valueFileSystemsFileSystem["VpcId"].isNull()) fileSystemsObject.vpcId = valueFileSystemsFileSystem["VpcId"].asString(); + if(!valueFileSystemsFileSystem["NodeNum"].isNull()) + fileSystemsObject.nodeNum = std::stoi(valueFileSystemsFileSystem["NodeNum"].asString()); + if(!valueFileSystemsFileSystem["HpnZone"].isNull()) + fileSystemsObject.hpnZone = valueFileSystemsFileSystem["HpnZone"].asString(); + if(!valueFileSystemsFileSystem["AccessPointCount"].isNull()) + fileSystemsObject.accessPointCount = valueFileSystemsFileSystem["AccessPointCount"].asString(); + if(!valueFileSystemsFileSystem["ResourceGroupId"].isNull()) + fileSystemsObject.resourceGroupId = valueFileSystemsFileSystem["ResourceGroupId"].asString(); + if(!valueFileSystemsFileSystem["MeteredArchiveSize"].isNull()) + fileSystemsObject.meteredArchiveSize = std::stol(valueFileSystemsFileSystem["MeteredArchiveSize"].asString()); + if(!valueFileSystemsFileSystem["QuorumVswId"].isNull()) + fileSystemsObject.quorumVswId = valueFileSystemsFileSystem["QuorumVswId"].asString(); auto allTagsNode = valueFileSystemsFileSystem["Tags"]["Tag"]; for (auto valueFileSystemsFileSystemTagsTag : allTagsNode) { @@ -115,6 +127,8 @@ void DescribeFileSystemsResult::parse(const std::string &payload) mountTargetsObject.vswId = valueFileSystemsFileSystemMountTargetsMountTarget["VswId"].asString(); if(!valueFileSystemsFileSystemMountTargetsMountTarget["NetworkType"].isNull()) mountTargetsObject.networkType = valueFileSystemsFileSystemMountTargetsMountTarget["NetworkType"].asString(); + if(!valueFileSystemsFileSystemMountTargetsMountTarget["MountTargetIp"].isNull()) + mountTargetsObject.mountTargetIp = valueFileSystemsFileSystemMountTargetsMountTarget["MountTargetIp"].asString(); auto allClientMasterNodesNode = valueFileSystemsFileSystemMountTargetsMountTarget["ClientMasterNodes"]["ClientMasterNode"]; for (auto valueFileSystemsFileSystemMountTargetsMountTargetClientMasterNodesClientMasterNode : allClientMasterNodesNode) { @@ -162,6 +176,16 @@ void DescribeFileSystemsResult::parse(const std::string &payload) fileSystemsObject.ldap.searchBase = ldapNode["SearchBase"].asString(); if(!ldapNode["URI"].isNull()) fileSystemsObject.ldap.uRI = ldapNode["URI"].asString(); + auto guiInfoNode = value["GuiInfo"]; + if(!guiInfoNode["Endpoint"].isNull()) + fileSystemsObject.guiInfo.endpoint = guiInfoNode["Endpoint"].asString(); + if(!guiInfoNode["Password"].isNull()) + fileSystemsObject.guiInfo.password = guiInfoNode["Password"].asString(); + if(!guiInfoNode["User"].isNull()) + fileSystemsObject.guiInfo.user = guiInfoNode["User"].asString(); + auto optionsNode = value["Options"]; + if(!optionsNode["EnableOplock"].isNull()) + fileSystemsObject.options.enableOplock = optionsNode["EnableOplock"].asString() == "true"; auto allSupportedFeatures = value["SupportedFeatures"]["SupportedFeature"]; for (auto value : allSupportedFeatures) fileSystemsObject.supportedFeatures.push_back(value.asString()); diff --git a/nas/src/model/DescribeFilesetsResult.cc b/nas/src/model/DescribeFilesetsResult.cc index 4793df4dd..f1611aef4 100644 --- a/nas/src/model/DescribeFilesetsResult.cc +++ b/nas/src/model/DescribeFilesetsResult.cc @@ -55,6 +55,19 @@ void DescribeFilesetsResult::parse(const std::string &payload) entriesObject.createTime = valueEntriesEntrie["CreateTime"].asString(); if(!valueEntriesEntrie["UpdateTime"].isNull()) entriesObject.updateTime = valueEntriesEntrie["UpdateTime"].asString(); + if(!valueEntriesEntrie["DeletionProtection"].isNull()) + entriesObject.deletionProtection = valueEntriesEntrie["DeletionProtection"].asString() == "true"; + if(!valueEntriesEntrie["FileCountUsage"].isNull()) + entriesObject.fileCountUsage = std::stol(valueEntriesEntrie["FileCountUsage"].asString()); + if(!valueEntriesEntrie["SpaceUsage"].isNull()) + entriesObject.spaceUsage = std::stol(valueEntriesEntrie["SpaceUsage"].asString()); + if(!valueEntriesEntrie["FileSystemId"].isNull()) + entriesObject.fileSystemId = valueEntriesEntrie["FileSystemId"].asString(); + auto quotaNode = value["Quota"]; + if(!quotaNode["SizeLimit"].isNull()) + entriesObject.quota.sizeLimit = std::stol(quotaNode["SizeLimit"].asString()); + if(!quotaNode["FileCountLimit"].isNull()) + entriesObject.quota.fileCountLimit = std::stol(quotaNode["FileCountLimit"].asString()); entries_.push_back(entriesObject); } if(!value["NextToken"].isNull()) diff --git a/nas/src/model/DescribeLifecyclePoliciesRequest.cc b/nas/src/model/DescribeLifecyclePoliciesRequest.cc index bf3bd6ee6..5bed0e2af 100644 --- a/nas/src/model/DescribeLifecyclePoliciesRequest.cc +++ b/nas/src/model/DescribeLifecyclePoliciesRequest.cc @@ -34,6 +34,24 @@ void DescribeLifecyclePoliciesRequest::setPageNumber(int pageNumber) { setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } +std::string DescribeLifecyclePoliciesRequest::getStorageType() const { + return storageType_; +} + +void DescribeLifecyclePoliciesRequest::setStorageType(const std::string &storageType) { + storageType_ = storageType; + setParameter(std::string("StorageType"), storageType); +} + +std::string DescribeLifecyclePoliciesRequest::getLifecyclePolicyName() const { + return lifecyclePolicyName_; +} + +void DescribeLifecyclePoliciesRequest::setLifecyclePolicyName(const std::string &lifecyclePolicyName) { + lifecyclePolicyName_ = lifecyclePolicyName; + setParameter(std::string("LifecyclePolicyName"), lifecyclePolicyName); +} + int DescribeLifecyclePoliciesRequest::getPageSize() const { return pageSize_; } diff --git a/nas/src/model/DescribeLogAnalysisRequest.cc b/nas/src/model/DescribeLogAnalysisRequest.cc index 8f13bd825..084301ac3 100644 --- a/nas/src/model/DescribeLogAnalysisRequest.cc +++ b/nas/src/model/DescribeLogAnalysisRequest.cc @@ -25,6 +25,15 @@ DescribeLogAnalysisRequest::DescribeLogAnalysisRequest() DescribeLogAnalysisRequest::~DescribeLogAnalysisRequest() {} +std::string DescribeLogAnalysisRequest::getFileSystemType() const { + return fileSystemType_; +} + +void DescribeLogAnalysisRequest::setFileSystemType(const std::string &fileSystemType) { + fileSystemType_ = fileSystemType; + setParameter(std::string("FileSystemType"), fileSystemType); +} + int DescribeLogAnalysisRequest::getPageNumber() const { return pageNumber_; } diff --git a/nas/src/model/DescribeMountTargetsResult.cc b/nas/src/model/DescribeMountTargetsResult.cc index d5130cfd1..78aac4cc8 100644 --- a/nas/src/model/DescribeMountTargetsResult.cc +++ b/nas/src/model/DescribeMountTargetsResult.cc @@ -59,6 +59,8 @@ void DescribeMountTargetsResult::parse(const std::string &payload) mountTargetsObject.networkType = valueMountTargetsMountTarget["NetworkType"].asString(); if(!valueMountTargetsMountTarget["IPVersion"].isNull()) mountTargetsObject.iPVersion = valueMountTargetsMountTarget["IPVersion"].asString(); + if(!valueMountTargetsMountTarget["MountTargetIp"].isNull()) + mountTargetsObject.mountTargetIp = valueMountTargetsMountTarget["MountTargetIp"].asString(); auto allClientMasterNodesNode = valueMountTargetsMountTarget["ClientMasterNodes"]["ClientMasterNode"]; for (auto valueMountTargetsMountTargetClientMasterNodesClientMasterNode : allClientMasterNodesNode) { diff --git a/nas/src/model/DescribeLDAPConfigRequest.cc b/nas/src/model/DescribeNfsAclRequest.cc similarity index 62% rename from nas/src/model/DescribeLDAPConfigRequest.cc rename to nas/src/model/DescribeNfsAclRequest.cc index c13a7bf50..403ad19cd 100644 --- a/nas/src/model/DescribeLDAPConfigRequest.cc +++ b/nas/src/model/DescribeNfsAclRequest.cc @@ -14,22 +14,22 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::NAS::Model::DescribeLDAPConfigRequest; +using AlibabaCloud::NAS::Model::DescribeNfsAclRequest; -DescribeLDAPConfigRequest::DescribeLDAPConfigRequest() - : RpcServiceRequest("nas", "2017-06-26", "DescribeLDAPConfig") { +DescribeNfsAclRequest::DescribeNfsAclRequest() + : RpcServiceRequest("nas", "2017-06-26", "DescribeNfsAcl") { setMethod(HttpRequest::Method::Post); } -DescribeLDAPConfigRequest::~DescribeLDAPConfigRequest() {} +DescribeNfsAclRequest::~DescribeNfsAclRequest() {} -std::string DescribeLDAPConfigRequest::getFileSystemId() const { +std::string DescribeNfsAclRequest::getFileSystemId() const { return fileSystemId_; } -void DescribeLDAPConfigRequest::setFileSystemId(const std::string &fileSystemId) { +void DescribeNfsAclRequest::setFileSystemId(const std::string &fileSystemId) { fileSystemId_ = fileSystemId; setParameter(std::string("FileSystemId"), fileSystemId); } diff --git a/nas/src/model/DescribeNfsAclResult.cc b/nas/src/model/DescribeNfsAclResult.cc new file mode 100644 index 000000000..0bec56bb0 --- /dev/null +++ b/nas/src/model/DescribeNfsAclResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::NAS; +using namespace AlibabaCloud::NAS::Model; + +DescribeNfsAclResult::DescribeNfsAclResult() : + ServiceResult() +{} + +DescribeNfsAclResult::DescribeNfsAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNfsAclResult::~DescribeNfsAclResult() +{} + +void DescribeNfsAclResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto aclNode = value["Acl"]; + if(!aclNode["Enabled"].isNull()) + acl_.enabled = aclNode["Enabled"].asString() == "true"; + +} + +DescribeNfsAclResult::Acl DescribeNfsAclResult::getAcl()const +{ + return acl_; +} + diff --git a/nas/src/model/DescribeSnapshotsResult.cc b/nas/src/model/DescribeSnapshotsResult.cc index 7c203bb36..24f26e5c9 100644 --- a/nas/src/model/DescribeSnapshotsResult.cc +++ b/nas/src/model/DescribeSnapshotsResult.cc @@ -67,6 +67,10 @@ void DescribeSnapshotsResult::parse(const std::string &payload) snapshotsObject.description = valueSnapshotsSnapshot["Description"].asString(); if(!valueSnapshotsSnapshot["SnapshotId"].isNull()) snapshotsObject.snapshotId = valueSnapshotsSnapshot["SnapshotId"].asString(); + if(!valueSnapshotsSnapshot["FileSystemType"].isNull()) + snapshotsObject.fileSystemType = valueSnapshotsSnapshot["FileSystemType"].asString(); + if(!valueSnapshotsSnapshot["SnapshotType"].isNull()) + snapshotsObject.snapshotType = valueSnapshotsSnapshot["SnapshotType"].asString(); snapshots_.push_back(snapshotsObject); } if(!value["TotalCount"].isNull()) diff --git a/nas/src/model/DescribeTagsRequest.cc b/nas/src/model/DescribeTagsRequest.cc deleted file mode 100644 index a6219cf83..000000000 --- a/nas/src/model/DescribeTagsRequest.cc +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::NAS::Model::DescribeTagsRequest; - -DescribeTagsRequest::DescribeTagsRequest() - : RpcServiceRequest("nas", "2017-06-26", "DescribeTags") { - setMethod(HttpRequest::Method::Post); -} - -DescribeTagsRequest::~DescribeTagsRequest() {} - -int DescribeTagsRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeTagsRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -int DescribeTagsRequest::getPageSize() const { - return pageSize_; -} - -void DescribeTagsRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::vector DescribeTagsRequest::getTag() const { - return tag_; -} - -void DescribeTagsRequest::setTag(const std::vector &tag) { - tag_ = tag; - for(int dep1 = 0; dep1 != tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } -} - -std::string DescribeTagsRequest::getFileSystemId() const { - return fileSystemId_; -} - -void DescribeTagsRequest::setFileSystemId(const std::string &fileSystemId) { - fileSystemId_ = fileSystemId; - setParameter(std::string("FileSystemId"), fileSystemId); -} - diff --git a/nas/src/model/DescribeTagsResult.cc b/nas/src/model/DescribeTagsResult.cc deleted file mode 100644 index 732a6f56a..000000000 --- a/nas/src/model/DescribeTagsResult.cc +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::NAS; -using namespace AlibabaCloud::NAS::Model; - -DescribeTagsResult::DescribeTagsResult() : - ServiceResult() -{} - -DescribeTagsResult::DescribeTagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTagsResult::~DescribeTagsResult() -{} - -void DescribeTagsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allTagsNode = value["Tags"]["Tag"]; - for (auto valueTagsTag : allTagsNode) - { - Tag tagsObject; - if(!valueTagsTag["Key"].isNull()) - tagsObject.key = valueTagsTag["Key"].asString(); - if(!valueTagsTag["Value"].isNull()) - tagsObject.value = valueTagsTag["Value"].asString(); - auto allFileSystemIds = value["FileSystemIds"]["FileSystemId"]; - for (auto value : allFileSystemIds) - tagsObject.fileSystemIds.push_back(value.asString()); - tags_.push_back(tagsObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - -int DescribeTagsResult::getTotalCount()const -{ - return totalCount_; -} - -int DescribeTagsResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeTagsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeTagsResult::getTags()const -{ - return tags_; -} - diff --git a/nas/src/model/DisableNfsAclRequest.cc b/nas/src/model/DisableNfsAclRequest.cc new file mode 100644 index 000000000..4ec523438 --- /dev/null +++ b/nas/src/model/DisableNfsAclRequest.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::NAS::Model::DisableNfsAclRequest; + +DisableNfsAclRequest::DisableNfsAclRequest() + : RpcServiceRequest("nas", "2017-06-26", "DisableNfsAcl") { + setMethod(HttpRequest::Method::Post); +} + +DisableNfsAclRequest::~DisableNfsAclRequest() {} + +std::string DisableNfsAclRequest::getFileSystemId() const { + return fileSystemId_; +} + +void DisableNfsAclRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + diff --git a/nas/src/model/DisableNfsAclResult.cc b/nas/src/model/DisableNfsAclResult.cc new file mode 100644 index 000000000..915936158 --- /dev/null +++ b/nas/src/model/DisableNfsAclResult.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::NAS; +using namespace AlibabaCloud::NAS::Model; + +DisableNfsAclResult::DisableNfsAclResult() : + ServiceResult() +{} + +DisableNfsAclResult::DisableNfsAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableNfsAclResult::~DisableNfsAclResult() +{} + +void DisableNfsAclResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/nas/src/model/EnableNfsAclRequest.cc b/nas/src/model/EnableNfsAclRequest.cc new file mode 100644 index 000000000..7df832d5e --- /dev/null +++ b/nas/src/model/EnableNfsAclRequest.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::NAS::Model::EnableNfsAclRequest; + +EnableNfsAclRequest::EnableNfsAclRequest() + : RpcServiceRequest("nas", "2017-06-26", "EnableNfsAcl") { + setMethod(HttpRequest::Method::Post); +} + +EnableNfsAclRequest::~EnableNfsAclRequest() {} + +std::string EnableNfsAclRequest::getFileSystemId() const { + return fileSystemId_; +} + +void EnableNfsAclRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + diff --git a/nas/src/model/EnableNfsAclResult.cc b/nas/src/model/EnableNfsAclResult.cc new file mode 100644 index 000000000..69250bd32 --- /dev/null +++ b/nas/src/model/EnableNfsAclResult.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::NAS; +using namespace AlibabaCloud::NAS::Model; + +EnableNfsAclResult::EnableNfsAclResult() : + ServiceResult() +{} + +EnableNfsAclResult::EnableNfsAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableNfsAclResult::~EnableNfsAclResult() +{} + +void EnableNfsAclResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/nas/src/model/GetDirectoryOrFilePropertiesResult.cc b/nas/src/model/GetDirectoryOrFilePropertiesResult.cc index 1ae80317b..42ce8802e 100644 --- a/nas/src/model/GetDirectoryOrFilePropertiesResult.cc +++ b/nas/src/model/GetDirectoryOrFilePropertiesResult.cc @@ -60,6 +60,8 @@ void GetDirectoryOrFilePropertiesResult::parse(const std::string &payload) entry_.retrieveTime = entryNode["RetrieveTime"].asString(); if(!entryNode["Inode"].isNull()) entry_.inode = entryNode["Inode"].asString(); + if(!entryNode["HasArchiveFile"].isNull()) + entry_.hasArchiveFile = entryNode["HasArchiveFile"].asString() == "true"; } diff --git a/nas/src/model/GetRecycleBinAttributeResult.cc b/nas/src/model/GetRecycleBinAttributeResult.cc index 494877292..2d3a616d0 100644 --- a/nas/src/model/GetRecycleBinAttributeResult.cc +++ b/nas/src/model/GetRecycleBinAttributeResult.cc @@ -50,6 +50,8 @@ void GetRecycleBinAttributeResult::parse(const std::string &payload) recycleBinAttribute_.reservedDays = std::stol(recycleBinAttributeNode["ReservedDays"].asString()); if(!recycleBinAttributeNode["EnableTime"].isNull()) recycleBinAttribute_.enableTime = recycleBinAttributeNode["EnableTime"].asString(); + if(!recycleBinAttributeNode["ArchiveSize"].isNull()) + recycleBinAttribute_.archiveSize = std::stol(recycleBinAttributeNode["ArchiveSize"].asString()); } diff --git a/nas/src/model/ListDirectoriesAndFilesResult.cc b/nas/src/model/ListDirectoriesAndFilesResult.cc index 4fe646644..c3cebb07d 100644 --- a/nas/src/model/ListDirectoriesAndFilesResult.cc +++ b/nas/src/model/ListDirectoriesAndFilesResult.cc @@ -67,6 +67,8 @@ void ListDirectoriesAndFilesResult::parse(const std::string &payload) entriesObject.fileId = valueEntriesEntry["FileId"].asString(); if(!valueEntriesEntry["Owner"].isNull()) entriesObject.owner = valueEntriesEntry["Owner"].asString(); + if(!valueEntriesEntry["HasArchiveFile"].isNull()) + entriesObject.hasArchiveFile = valueEntriesEntry["HasArchiveFile"].asString(); entries_.push_back(entriesObject); } if(!value["NextToken"].isNull()) diff --git a/nas/src/model/ListLifecycleRetrieveJobsRequest.cc b/nas/src/model/ListLifecycleRetrieveJobsRequest.cc index a40493cba..1027b9cc2 100644 --- a/nas/src/model/ListLifecycleRetrieveJobsRequest.cc +++ b/nas/src/model/ListLifecycleRetrieveJobsRequest.cc @@ -34,6 +34,15 @@ void ListLifecycleRetrieveJobsRequest::setPageNumber(int pageNumber) { setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } +std::string ListLifecycleRetrieveJobsRequest::getStorageType() const { + return storageType_; +} + +void ListLifecycleRetrieveJobsRequest::setStorageType(const std::string &storageType) { + storageType_ = storageType; + setParameter(std::string("StorageType"), storageType); +} + int ListLifecycleRetrieveJobsRequest::getPageSize() const { return pageSize_; } diff --git a/nas/src/model/ListLifecycleRetrieveJobsResult.cc b/nas/src/model/ListLifecycleRetrieveJobsResult.cc index 72c09435f..ae869b092 100644 --- a/nas/src/model/ListLifecycleRetrieveJobsResult.cc +++ b/nas/src/model/ListLifecycleRetrieveJobsResult.cc @@ -57,6 +57,8 @@ void ListLifecycleRetrieveJobsResult::parse(const std::string &payload) lifecycleRetrieveJobsObject.jobId = valueLifecycleRetrieveJobsLifecycleRetrieveJob["JobId"].asString(); if(!valueLifecycleRetrieveJobsLifecycleRetrieveJob["CreateTime"].isNull()) lifecycleRetrieveJobsObject.createTime = valueLifecycleRetrieveJobsLifecycleRetrieveJob["CreateTime"].asString(); + if(!valueLifecycleRetrieveJobsLifecycleRetrieveJob["StorageType"].isNull()) + lifecycleRetrieveJobsObject.storageType = valueLifecycleRetrieveJobsLifecycleRetrieveJob["StorageType"].asString(); auto allPaths = value["Paths"]["Path"]; for (auto value : allPaths) lifecycleRetrieveJobsObject.paths.push_back(value.asString()); diff --git a/nas/src/model/ModifyAccessPointRequest.cc b/nas/src/model/ModifyAccessPointRequest.cc new file mode 100644 index 000000000..8dd7f6e95 --- /dev/null +++ b/nas/src/model/ModifyAccessPointRequest.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::NAS::Model::ModifyAccessPointRequest; + +ModifyAccessPointRequest::ModifyAccessPointRequest() + : RpcServiceRequest("nas", "2017-06-26", "ModifyAccessPoint") { + setMethod(HttpRequest::Method::Post); +} + +ModifyAccessPointRequest::~ModifyAccessPointRequest() {} + +std::string ModifyAccessPointRequest::getAccessPointId() const { + return accessPointId_; +} + +void ModifyAccessPointRequest::setAccessPointId(const std::string &accessPointId) { + accessPointId_ = accessPointId; + setParameter(std::string("AccessPointId"), accessPointId); +} + +std::string ModifyAccessPointRequest::getAccessPointName() const { + return accessPointName_; +} + +void ModifyAccessPointRequest::setAccessPointName(const std::string &accessPointName) { + accessPointName_ = accessPointName; + setParameter(std::string("AccessPointName"), accessPointName); +} + +std::string ModifyAccessPointRequest::getFileSystemId() const { + return fileSystemId_; +} + +void ModifyAccessPointRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + +bool ModifyAccessPointRequest::getEnabledRam() const { + return enabledRam_; +} + +void ModifyAccessPointRequest::setEnabledRam(bool enabledRam) { + enabledRam_ = enabledRam; + setParameter(std::string("EnabledRam"), enabledRam ? "true" : "false"); +} + +std::string ModifyAccessPointRequest::getAccessGroup() const { + return accessGroup_; +} + +void ModifyAccessPointRequest::setAccessGroup(const std::string &accessGroup) { + accessGroup_ = accessGroup; + setParameter(std::string("AccessGroup"), accessGroup); +} + diff --git a/nas/src/model/ModifyAccessPointResult.cc b/nas/src/model/ModifyAccessPointResult.cc new file mode 100644 index 000000000..a62d988cb --- /dev/null +++ b/nas/src/model/ModifyAccessPointResult.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::NAS; +using namespace AlibabaCloud::NAS::Model; + +ModifyAccessPointResult::ModifyAccessPointResult() : + ServiceResult() +{} + +ModifyAccessPointResult::ModifyAccessPointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAccessPointResult::~ModifyAccessPointResult() +{} + +void ModifyAccessPointResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/nas/src/model/ModifyFileSystemRequest.cc b/nas/src/model/ModifyFileSystemRequest.cc index 2553acbfd..634f0255a 100644 --- a/nas/src/model/ModifyFileSystemRequest.cc +++ b/nas/src/model/ModifyFileSystemRequest.cc @@ -34,6 +34,15 @@ void ModifyFileSystemRequest::setDescription(const std::string &description) { setParameter(std::string("Description"), description); } +ModifyFileSystemRequest::Options ModifyFileSystemRequest::getOptions() const { + return options_; +} + +void ModifyFileSystemRequest::setOptions(const ModifyFileSystemRequest::Options &options) { + options_ = options; + setParameter(std::string("Options") + ".EnableOplock", options.enableOplock ? "true" : "false"); +} + std::string ModifyFileSystemRequest::getFileSystemId() const { return fileSystemId_; } diff --git a/nas/src/model/ModifyFilesetRequest.cc b/nas/src/model/ModifyFilesetRequest.cc index e7c700dde..5515159e4 100644 --- a/nas/src/model/ModifyFilesetRequest.cc +++ b/nas/src/model/ModifyFilesetRequest.cc @@ -52,6 +52,15 @@ void ModifyFilesetRequest::setDescription(const std::string &description) { setParameter(std::string("Description"), description); } +bool ModifyFilesetRequest::getDeletionProtection() const { + return deletionProtection_; +} + +void ModifyFilesetRequest::setDeletionProtection(bool deletionProtection) { + deletionProtection_ = deletionProtection; + setParameter(std::string("DeletionProtection"), deletionProtection ? "true" : "false"); +} + std::string ModifyFilesetRequest::getFileSystemId() const { return fileSystemId_; } diff --git a/nas/src/model/OpenNASServiceResult.cc b/nas/src/model/OpenNASServiceResult.cc index e8e135f96..369b42e6e 100644 --- a/nas/src/model/OpenNASServiceResult.cc +++ b/nas/src/model/OpenNASServiceResult.cc @@ -41,9 +41,16 @@ void OpenNASServiceResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); + if(!value["AccessDeniedDetail"].isNull()) + accessDeniedDetail_ = value["AccessDeniedDetail"].asString(); } +std::string OpenNASServiceResult::getAccessDeniedDetail()const +{ + return accessDeniedDetail_; +} + std::string OpenNASServiceResult::getOrderId()const { return orderId_; diff --git a/nas/src/model/SetFilesetQuotaRequest.cc b/nas/src/model/SetFilesetQuotaRequest.cc new file mode 100644 index 000000000..241a22195 --- /dev/null +++ b/nas/src/model/SetFilesetQuotaRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::NAS::Model::SetFilesetQuotaRequest; + +SetFilesetQuotaRequest::SetFilesetQuotaRequest() + : RpcServiceRequest("nas", "2017-06-26", "SetFilesetQuota") { + setMethod(HttpRequest::Method::Post); +} + +SetFilesetQuotaRequest::~SetFilesetQuotaRequest() {} + +std::string SetFilesetQuotaRequest::getFsetId() const { + return fsetId_; +} + +void SetFilesetQuotaRequest::setFsetId(const std::string &fsetId) { + fsetId_ = fsetId; + setParameter(std::string("FsetId"), fsetId); +} + +std::string SetFilesetQuotaRequest::getClientToken() const { + return clientToken_; +} + +void SetFilesetQuotaRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +long SetFilesetQuotaRequest::getFileCountLimit() const { + return fileCountLimit_; +} + +void SetFilesetQuotaRequest::setFileCountLimit(long fileCountLimit) { + fileCountLimit_ = fileCountLimit; + setParameter(std::string("FileCountLimit"), std::to_string(fileCountLimit)); +} + +long SetFilesetQuotaRequest::getSizeLimit() const { + return sizeLimit_; +} + +void SetFilesetQuotaRequest::setSizeLimit(long sizeLimit) { + sizeLimit_ = sizeLimit; + setParameter(std::string("SizeLimit"), std::to_string(sizeLimit)); +} + +std::string SetFilesetQuotaRequest::getFileSystemId() const { + return fileSystemId_; +} + +void SetFilesetQuotaRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + +bool SetFilesetQuotaRequest::getDryRun() const { + return dryRun_; +} + +void SetFilesetQuotaRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/nas/src/model/SetFilesetQuotaResult.cc b/nas/src/model/SetFilesetQuotaResult.cc new file mode 100644 index 000000000..ba676bcc3 --- /dev/null +++ b/nas/src/model/SetFilesetQuotaResult.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::NAS; +using namespace AlibabaCloud::NAS::Model; + +SetFilesetQuotaResult::SetFilesetQuotaResult() : + ServiceResult() +{} + +SetFilesetQuotaResult::SetFilesetQuotaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetFilesetQuotaResult::~SetFilesetQuotaResult() +{} + +void SetFilesetQuotaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +