From d0405dd61f96d109171142ba7a73592e3e406041 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 22 Aug 2022 06:25:46 +0000 Subject: [PATCH] Automatically generate sdk tasks. --- VERSION | 2 +- dbfs/CMakeLists.txt | 72 +-- dbfs/include/alibabacloud/dbfs/DBFSClient.h | 144 +---- .../dbfs/model/AddTagsBatchRequest.h | 86 ++- .../dbfs/model/AttachDbfsRequest.h | 92 +-- .../dbfs/model/CreateConstantsRequest.h | 57 -- .../dbfs/model/CreateDbfsRequest.h | 152 ++--- .../model/CreateServiceLinkedRoleRequest.h | 74 +-- .../dbfs/model/CreateSnapshotRequest.h | 98 ++- .../dbfs/model/DbfsRecordRequest.h | 57 -- .../dbfs/model/DbfsRecordResult.h | 78 --- .../dbfs/model/DeleteConstantsRequest.h | 57 -- .../dbfs/model/DeleteDbfsRequest.h | 74 +-- .../dbfs/model/DeleteSnapshotRequest.h | 80 ++- .../dbfs/model/DeleteTagsBatchRequest.h | 80 ++- .../model/DescribeDbfsSpecificationsRequest.h | 80 ++- .../dbfs/model/DescribeInstanceTypesRequest.h | 42 ++ ...Result.h => DescribeInstanceTypesResult.h} | 31 +- .../dbfs/model/DetachDbfsRequest.h | 80 ++- .../dbfs/model/GenerateUpgradeRecordRequest.h | 57 -- .../dbfs/model/GenerateUpgradeRecordResult.h | 71 --- .../alibabacloud/dbfs/model/GetDbfsRequest.h | 74 +-- .../alibabacloud/dbfs/model/GetDbfsResult.h | 18 +- .../dbfs/model/GetServiceLinkedRoleRequest.h | 68 +- .../model/GetSynchronizConstantsRequest.h | 54 -- .../dbfs/model/GetSynchronizConstantsResult.h | 71 --- .../model/InsertSynchronizConstantsRequest.h | 75 --- .../model/InsertSynchronizConstantsResult.h | 57 -- .../dbfs/model/ListConstantsRequest.h | 57 -- .../ListDbfsAttachableEcsInstancesRequest.h | 48 ++ ...=> ListDbfsAttachableEcsInstancesResult.h} | 35 +- .../ListDbfsAttachedEcsInstancesRequest.h | 45 ++ ...h => ListDbfsAttachedEcsInstancesResult.h} | 33 +- .../alibabacloud/dbfs/model/ListDbfsRequest.h | 110 ++-- .../alibabacloud/dbfs/model/ListDbfsResult.h | 2 + .../dbfs/model/ListSnapshotRequest.h | 134 ++-- .../dbfs/model/ListSnapshotResult.h | 3 +- .../dbfs/model/ListTagKeysRequest.h | 68 +- .../dbfs/model/ListTagValuesRequest.h | 74 +-- .../alibabacloud/dbfs/model/ListTaskRequest.h | 66 -- .../alibabacloud/dbfs/model/ListTaskResult.h | 78 --- .../dbfs/model/OpreateConstantsRequest.h | 57 -- .../dbfs/model/OpreateConstantsResult.h | 71 --- .../dbfs/model/PublishUpgradeTaskRequest.h | 57 -- .../dbfs/model/PublishUpgradeTaskResult.h | 49 -- .../dbfs/model/RenameDbfsRequest.h | 80 ++- .../dbfs/model/ResetDbfsRequest.h | 54 -- .../alibabacloud/dbfs/model/ResetDbfsResult.h | 49 -- .../dbfs/model/ResizeDbfsRequest.h | 80 ++- .../dbfs/model/StopUpgradeTaskRequest.h | 57 -- .../dbfs/model/StopUpgradeTaskResult.h | 49 -- .../alibabacloud/dbfs/model/TagDbfsRequest.h | 80 ++- .../dbfs/model/UpdateConstantsRequest.h | 57 -- .../dbfs/model/UpdateConstantsResult.h | 57 -- .../dbfs/model/UpdateDbfsRequest.h | 54 ++ ...{UpdateTaskResult.h => UpdateDbfsResult.h} | 14 +- .../dbfs/model/UpdateTaskRequest.h | 54 -- dbfs/src/DBFSClient.cc | 600 ++++-------------- dbfs/src/model/AddTagsBatchRequest.cc | 82 ++- dbfs/src/model/AttachDbfsRequest.cc | 100 +-- dbfs/src/model/CreateConstantsRequest.cc | 73 --- dbfs/src/model/CreateConstantsResult.cc | 72 --- dbfs/src/model/CreateDbfsRequest.cc | 220 +++---- .../model/CreateServiceLinkedRoleRequest.cc | 58 +- dbfs/src/model/CreateSnapshotRequest.cc | 106 ++-- dbfs/src/model/DbfsRecordRequest.cc | 73 --- dbfs/src/model/DbfsRecordResult.cc | 112 ---- dbfs/src/model/DeleteConstantsRequest.cc | 73 --- dbfs/src/model/DeleteConstantsResult.cc | 72 --- dbfs/src/model/DeleteDbfsRequest.cc | 58 +- dbfs/src/model/DeleteSnapshotRequest.cc | 70 +- dbfs/src/model/DeleteTagsBatchRequest.cc | 70 +- .../DescribeDbfsSpecificationsRequest.cc | 70 +- .../src/model/DescribeInstanceTypesRequest.cc | 36 ++ dbfs/src/model/DescribeInstanceTypesResult.cc | 63 ++ dbfs/src/model/DetachDbfsRequest.cc | 70 +- .../src/model/GenerateUpgradeRecordRequest.cc | 73 --- dbfs/src/model/GenerateUpgradeRecordResult.cc | 89 --- dbfs/src/model/GetDbfsRequest.cc | 58 +- dbfs/src/model/GetDbfsResult.cc | 4 + dbfs/src/model/GetServiceLinkedRoleRequest.cc | 46 +- dbfs/src/model/GetServiceLinkedRoleResult.cc | 4 +- .../model/GetSynchronizConstantsRequest.cc | 62 -- .../src/model/GetSynchronizConstantsResult.cc | 121 ---- .../model/InsertSynchronizConstantsRequest.cc | 139 ---- .../model/InsertSynchronizConstantsResult.cc | 72 --- dbfs/src/model/ListConstantsRequest.cc | 73 --- dbfs/src/model/ListConstantsResult.cc | 72 --- .../ListDbfsAttachableEcsInstancesRequest.cc | 54 ++ .../ListDbfsAttachableEcsInstancesResult.cc | 74 +++ .../ListDbfsAttachedEcsInstancesRequest.cc | 45 ++ .../ListDbfsAttachedEcsInstancesResult.cc | 67 ++ dbfs/src/model/ListDbfsRequest.cc | 130 ++-- dbfs/src/model/ListDbfsResult.cc | 4 + dbfs/src/model/ListSnapshotRequest.cc | 178 +++--- dbfs/src/model/ListSnapshotResult.cc | 50 +- dbfs/src/model/ListTagKeysRequest.cc | 46 +- dbfs/src/model/ListTagValuesRequest.cc | 58 +- dbfs/src/model/ListTaskRequest.cc | 106 ---- dbfs/src/model/ListTaskResult.cc | 112 ---- dbfs/src/model/OpreateConstantsRequest.cc | 73 --- dbfs/src/model/OpreateConstantsResult.cc | 121 ---- dbfs/src/model/PublishUpgradeTaskRequest.cc | 73 --- dbfs/src/model/PublishUpgradeTaskResult.cc | 44 -- dbfs/src/model/RenameDbfsRequest.cc | 70 +- dbfs/src/model/ResetDbfsRequest.cc | 62 -- dbfs/src/model/ResetDbfsResult.cc | 44 -- dbfs/src/model/ResizeDbfsRequest.cc | 70 +- dbfs/src/model/StopUpgradeTaskRequest.cc | 73 --- dbfs/src/model/StopUpgradeTaskResult.cc | 44 -- dbfs/src/model/TagDbfsRequest.cc | 70 +- dbfs/src/model/UpdateConstantsRequest.cc | 73 --- dbfs/src/model/UpdateConstantsResult.cc | 72 --- dbfs/src/model/UpdateDbfsRequest.cc | 72 +++ ...pdateTaskResult.cc => UpdateDbfsResult.cc} | 10 +- dbfs/src/model/UpdateTaskRequest.cc | 62 -- 116 files changed, 2401 insertions(+), 6100 deletions(-) delete mode 100644 dbfs/include/alibabacloud/dbfs/model/CreateConstantsRequest.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/DbfsRecordRequest.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/DbfsRecordResult.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/DeleteConstantsRequest.h create mode 100644 dbfs/include/alibabacloud/dbfs/model/DescribeInstanceTypesRequest.h rename dbfs/include/alibabacloud/dbfs/model/{DeleteConstantsResult.h => DescribeInstanceTypesResult.h} (57%) delete mode 100644 dbfs/include/alibabacloud/dbfs/model/GenerateUpgradeRecordRequest.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/GenerateUpgradeRecordResult.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/GetSynchronizConstantsRequest.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/GetSynchronizConstantsResult.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/InsertSynchronizConstantsRequest.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/InsertSynchronizConstantsResult.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/ListConstantsRequest.h create mode 100644 dbfs/include/alibabacloud/dbfs/model/ListDbfsAttachableEcsInstancesRequest.h rename dbfs/include/alibabacloud/dbfs/model/{ListConstantsResult.h => ListDbfsAttachableEcsInstancesResult.h} (53%) create mode 100644 dbfs/include/alibabacloud/dbfs/model/ListDbfsAttachedEcsInstancesRequest.h rename dbfs/include/alibabacloud/dbfs/model/{CreateConstantsResult.h => ListDbfsAttachedEcsInstancesResult.h} (55%) delete mode 100644 dbfs/include/alibabacloud/dbfs/model/ListTaskRequest.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/ListTaskResult.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/OpreateConstantsRequest.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/OpreateConstantsResult.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/PublishUpgradeTaskRequest.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/PublishUpgradeTaskResult.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/ResetDbfsRequest.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/ResetDbfsResult.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/StopUpgradeTaskRequest.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/StopUpgradeTaskResult.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/UpdateConstantsRequest.h delete mode 100644 dbfs/include/alibabacloud/dbfs/model/UpdateConstantsResult.h create mode 100644 dbfs/include/alibabacloud/dbfs/model/UpdateDbfsRequest.h rename dbfs/include/alibabacloud/dbfs/model/{UpdateTaskResult.h => UpdateDbfsResult.h} (74%) delete mode 100644 dbfs/include/alibabacloud/dbfs/model/UpdateTaskRequest.h delete mode 100644 dbfs/src/model/CreateConstantsRequest.cc delete mode 100644 dbfs/src/model/CreateConstantsResult.cc delete mode 100644 dbfs/src/model/DbfsRecordRequest.cc delete mode 100644 dbfs/src/model/DbfsRecordResult.cc delete mode 100644 dbfs/src/model/DeleteConstantsRequest.cc delete mode 100644 dbfs/src/model/DeleteConstantsResult.cc create mode 100644 dbfs/src/model/DescribeInstanceTypesRequest.cc create mode 100644 dbfs/src/model/DescribeInstanceTypesResult.cc delete mode 100644 dbfs/src/model/GenerateUpgradeRecordRequest.cc delete mode 100644 dbfs/src/model/GenerateUpgradeRecordResult.cc delete mode 100644 dbfs/src/model/GetSynchronizConstantsRequest.cc delete mode 100644 dbfs/src/model/GetSynchronizConstantsResult.cc delete mode 100644 dbfs/src/model/InsertSynchronizConstantsRequest.cc delete mode 100644 dbfs/src/model/InsertSynchronizConstantsResult.cc delete mode 100644 dbfs/src/model/ListConstantsRequest.cc delete mode 100644 dbfs/src/model/ListConstantsResult.cc create mode 100644 dbfs/src/model/ListDbfsAttachableEcsInstancesRequest.cc create mode 100644 dbfs/src/model/ListDbfsAttachableEcsInstancesResult.cc create mode 100644 dbfs/src/model/ListDbfsAttachedEcsInstancesRequest.cc create mode 100644 dbfs/src/model/ListDbfsAttachedEcsInstancesResult.cc delete mode 100644 dbfs/src/model/ListTaskRequest.cc delete mode 100644 dbfs/src/model/ListTaskResult.cc delete mode 100644 dbfs/src/model/OpreateConstantsRequest.cc delete mode 100644 dbfs/src/model/OpreateConstantsResult.cc delete mode 100644 dbfs/src/model/PublishUpgradeTaskRequest.cc delete mode 100644 dbfs/src/model/PublishUpgradeTaskResult.cc delete mode 100644 dbfs/src/model/ResetDbfsRequest.cc delete mode 100644 dbfs/src/model/ResetDbfsResult.cc delete mode 100644 dbfs/src/model/StopUpgradeTaskRequest.cc delete mode 100644 dbfs/src/model/StopUpgradeTaskResult.cc delete mode 100644 dbfs/src/model/UpdateConstantsRequest.cc delete mode 100644 dbfs/src/model/UpdateConstantsResult.cc create mode 100644 dbfs/src/model/UpdateDbfsRequest.cc rename dbfs/src/model/{UpdateTaskResult.cc => UpdateDbfsResult.cc} (78%) delete mode 100644 dbfs/src/model/UpdateTaskRequest.cc diff --git a/VERSION b/VERSION index e6f876f4d..fc468745f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1228 \ No newline at end of file +1.36.1229 \ No newline at end of file diff --git a/dbfs/CMakeLists.txt b/dbfs/CMakeLists.txt index 7fda8f0d1..b52c1bd97 100644 --- a/dbfs/CMakeLists.txt +++ b/dbfs/CMakeLists.txt @@ -25,18 +25,12 @@ set(dbfs_public_header_model include/alibabacloud/dbfs/model/AddTagsBatchResult.h include/alibabacloud/dbfs/model/AttachDbfsRequest.h include/alibabacloud/dbfs/model/AttachDbfsResult.h - include/alibabacloud/dbfs/model/CreateConstantsRequest.h - include/alibabacloud/dbfs/model/CreateConstantsResult.h include/alibabacloud/dbfs/model/CreateDbfsRequest.h include/alibabacloud/dbfs/model/CreateDbfsResult.h include/alibabacloud/dbfs/model/CreateServiceLinkedRoleRequest.h include/alibabacloud/dbfs/model/CreateServiceLinkedRoleResult.h include/alibabacloud/dbfs/model/CreateSnapshotRequest.h include/alibabacloud/dbfs/model/CreateSnapshotResult.h - include/alibabacloud/dbfs/model/DbfsRecordRequest.h - include/alibabacloud/dbfs/model/DbfsRecordResult.h - include/alibabacloud/dbfs/model/DeleteConstantsRequest.h - include/alibabacloud/dbfs/model/DeleteConstantsResult.h include/alibabacloud/dbfs/model/DeleteDbfsRequest.h include/alibabacloud/dbfs/model/DeleteDbfsResult.h include/alibabacloud/dbfs/model/DeleteSnapshotRequest.h @@ -45,48 +39,34 @@ set(dbfs_public_header_model include/alibabacloud/dbfs/model/DeleteTagsBatchResult.h include/alibabacloud/dbfs/model/DescribeDbfsSpecificationsRequest.h include/alibabacloud/dbfs/model/DescribeDbfsSpecificationsResult.h + include/alibabacloud/dbfs/model/DescribeInstanceTypesRequest.h + include/alibabacloud/dbfs/model/DescribeInstanceTypesResult.h include/alibabacloud/dbfs/model/DetachDbfsRequest.h include/alibabacloud/dbfs/model/DetachDbfsResult.h - include/alibabacloud/dbfs/model/GenerateUpgradeRecordRequest.h - include/alibabacloud/dbfs/model/GenerateUpgradeRecordResult.h include/alibabacloud/dbfs/model/GetDbfsRequest.h include/alibabacloud/dbfs/model/GetDbfsResult.h include/alibabacloud/dbfs/model/GetServiceLinkedRoleRequest.h include/alibabacloud/dbfs/model/GetServiceLinkedRoleResult.h - include/alibabacloud/dbfs/model/GetSynchronizConstantsRequest.h - include/alibabacloud/dbfs/model/GetSynchronizConstantsResult.h - include/alibabacloud/dbfs/model/InsertSynchronizConstantsRequest.h - include/alibabacloud/dbfs/model/InsertSynchronizConstantsResult.h - include/alibabacloud/dbfs/model/ListConstantsRequest.h - include/alibabacloud/dbfs/model/ListConstantsResult.h include/alibabacloud/dbfs/model/ListDbfsRequest.h include/alibabacloud/dbfs/model/ListDbfsResult.h + include/alibabacloud/dbfs/model/ListDbfsAttachableEcsInstancesRequest.h + include/alibabacloud/dbfs/model/ListDbfsAttachableEcsInstancesResult.h + include/alibabacloud/dbfs/model/ListDbfsAttachedEcsInstancesRequest.h + include/alibabacloud/dbfs/model/ListDbfsAttachedEcsInstancesResult.h include/alibabacloud/dbfs/model/ListSnapshotRequest.h include/alibabacloud/dbfs/model/ListSnapshotResult.h include/alibabacloud/dbfs/model/ListTagKeysRequest.h include/alibabacloud/dbfs/model/ListTagKeysResult.h include/alibabacloud/dbfs/model/ListTagValuesRequest.h include/alibabacloud/dbfs/model/ListTagValuesResult.h - include/alibabacloud/dbfs/model/ListTaskRequest.h - include/alibabacloud/dbfs/model/ListTaskResult.h - include/alibabacloud/dbfs/model/OpreateConstantsRequest.h - include/alibabacloud/dbfs/model/OpreateConstantsResult.h - include/alibabacloud/dbfs/model/PublishUpgradeTaskRequest.h - include/alibabacloud/dbfs/model/PublishUpgradeTaskResult.h include/alibabacloud/dbfs/model/RenameDbfsRequest.h include/alibabacloud/dbfs/model/RenameDbfsResult.h - include/alibabacloud/dbfs/model/ResetDbfsRequest.h - include/alibabacloud/dbfs/model/ResetDbfsResult.h include/alibabacloud/dbfs/model/ResizeDbfsRequest.h include/alibabacloud/dbfs/model/ResizeDbfsResult.h - include/alibabacloud/dbfs/model/StopUpgradeTaskRequest.h - include/alibabacloud/dbfs/model/StopUpgradeTaskResult.h include/alibabacloud/dbfs/model/TagDbfsRequest.h include/alibabacloud/dbfs/model/TagDbfsResult.h - include/alibabacloud/dbfs/model/UpdateConstantsRequest.h - include/alibabacloud/dbfs/model/UpdateConstantsResult.h - include/alibabacloud/dbfs/model/UpdateTaskRequest.h - include/alibabacloud/dbfs/model/UpdateTaskResult.h ) + include/alibabacloud/dbfs/model/UpdateDbfsRequest.h + include/alibabacloud/dbfs/model/UpdateDbfsResult.h ) set(dbfs_src src/DBFSClient.cc @@ -94,18 +74,12 @@ set(dbfs_src src/model/AddTagsBatchResult.cc src/model/AttachDbfsRequest.cc src/model/AttachDbfsResult.cc - src/model/CreateConstantsRequest.cc - src/model/CreateConstantsResult.cc src/model/CreateDbfsRequest.cc src/model/CreateDbfsResult.cc src/model/CreateServiceLinkedRoleRequest.cc src/model/CreateServiceLinkedRoleResult.cc src/model/CreateSnapshotRequest.cc src/model/CreateSnapshotResult.cc - src/model/DbfsRecordRequest.cc - src/model/DbfsRecordResult.cc - src/model/DeleteConstantsRequest.cc - src/model/DeleteConstantsResult.cc src/model/DeleteDbfsRequest.cc src/model/DeleteDbfsResult.cc src/model/DeleteSnapshotRequest.cc @@ -114,48 +88,34 @@ set(dbfs_src src/model/DeleteTagsBatchResult.cc src/model/DescribeDbfsSpecificationsRequest.cc src/model/DescribeDbfsSpecificationsResult.cc + src/model/DescribeInstanceTypesRequest.cc + src/model/DescribeInstanceTypesResult.cc src/model/DetachDbfsRequest.cc src/model/DetachDbfsResult.cc - src/model/GenerateUpgradeRecordRequest.cc - src/model/GenerateUpgradeRecordResult.cc src/model/GetDbfsRequest.cc src/model/GetDbfsResult.cc src/model/GetServiceLinkedRoleRequest.cc src/model/GetServiceLinkedRoleResult.cc - src/model/GetSynchronizConstantsRequest.cc - src/model/GetSynchronizConstantsResult.cc - src/model/InsertSynchronizConstantsRequest.cc - src/model/InsertSynchronizConstantsResult.cc - src/model/ListConstantsRequest.cc - src/model/ListConstantsResult.cc src/model/ListDbfsRequest.cc src/model/ListDbfsResult.cc + src/model/ListDbfsAttachableEcsInstancesRequest.cc + src/model/ListDbfsAttachableEcsInstancesResult.cc + src/model/ListDbfsAttachedEcsInstancesRequest.cc + src/model/ListDbfsAttachedEcsInstancesResult.cc src/model/ListSnapshotRequest.cc src/model/ListSnapshotResult.cc src/model/ListTagKeysRequest.cc src/model/ListTagKeysResult.cc src/model/ListTagValuesRequest.cc src/model/ListTagValuesResult.cc - src/model/ListTaskRequest.cc - src/model/ListTaskResult.cc - src/model/OpreateConstantsRequest.cc - src/model/OpreateConstantsResult.cc - src/model/PublishUpgradeTaskRequest.cc - src/model/PublishUpgradeTaskResult.cc src/model/RenameDbfsRequest.cc src/model/RenameDbfsResult.cc - src/model/ResetDbfsRequest.cc - src/model/ResetDbfsResult.cc src/model/ResizeDbfsRequest.cc src/model/ResizeDbfsResult.cc - src/model/StopUpgradeTaskRequest.cc - src/model/StopUpgradeTaskResult.cc src/model/TagDbfsRequest.cc src/model/TagDbfsResult.cc - src/model/UpdateConstantsRequest.cc - src/model/UpdateConstantsResult.cc - src/model/UpdateTaskRequest.cc - src/model/UpdateTaskResult.cc ) + src/model/UpdateDbfsRequest.cc + src/model/UpdateDbfsResult.cc ) add_library(dbfs ${LIB_TYPE} ${dbfs_public_header} diff --git a/dbfs/include/alibabacloud/dbfs/DBFSClient.h b/dbfs/include/alibabacloud/dbfs/DBFSClient.h index bfd9e74b3..a83ad7345 100644 --- a/dbfs/include/alibabacloud/dbfs/DBFSClient.h +++ b/dbfs/include/alibabacloud/dbfs/DBFSClient.h @@ -26,18 +26,12 @@ #include "model/AddTagsBatchResult.h" #include "model/AttachDbfsRequest.h" #include "model/AttachDbfsResult.h" -#include "model/CreateConstantsRequest.h" -#include "model/CreateConstantsResult.h" #include "model/CreateDbfsRequest.h" #include "model/CreateDbfsResult.h" #include "model/CreateServiceLinkedRoleRequest.h" #include "model/CreateServiceLinkedRoleResult.h" #include "model/CreateSnapshotRequest.h" #include "model/CreateSnapshotResult.h" -#include "model/DbfsRecordRequest.h" -#include "model/DbfsRecordResult.h" -#include "model/DeleteConstantsRequest.h" -#include "model/DeleteConstantsResult.h" #include "model/DeleteDbfsRequest.h" #include "model/DeleteDbfsResult.h" #include "model/DeleteSnapshotRequest.h" @@ -46,48 +40,34 @@ #include "model/DeleteTagsBatchResult.h" #include "model/DescribeDbfsSpecificationsRequest.h" #include "model/DescribeDbfsSpecificationsResult.h" +#include "model/DescribeInstanceTypesRequest.h" +#include "model/DescribeInstanceTypesResult.h" #include "model/DetachDbfsRequest.h" #include "model/DetachDbfsResult.h" -#include "model/GenerateUpgradeRecordRequest.h" -#include "model/GenerateUpgradeRecordResult.h" #include "model/GetDbfsRequest.h" #include "model/GetDbfsResult.h" #include "model/GetServiceLinkedRoleRequest.h" #include "model/GetServiceLinkedRoleResult.h" -#include "model/GetSynchronizConstantsRequest.h" -#include "model/GetSynchronizConstantsResult.h" -#include "model/InsertSynchronizConstantsRequest.h" -#include "model/InsertSynchronizConstantsResult.h" -#include "model/ListConstantsRequest.h" -#include "model/ListConstantsResult.h" #include "model/ListDbfsRequest.h" #include "model/ListDbfsResult.h" +#include "model/ListDbfsAttachableEcsInstancesRequest.h" +#include "model/ListDbfsAttachableEcsInstancesResult.h" +#include "model/ListDbfsAttachedEcsInstancesRequest.h" +#include "model/ListDbfsAttachedEcsInstancesResult.h" #include "model/ListSnapshotRequest.h" #include "model/ListSnapshotResult.h" #include "model/ListTagKeysRequest.h" #include "model/ListTagKeysResult.h" #include "model/ListTagValuesRequest.h" #include "model/ListTagValuesResult.h" -#include "model/ListTaskRequest.h" -#include "model/ListTaskResult.h" -#include "model/OpreateConstantsRequest.h" -#include "model/OpreateConstantsResult.h" -#include "model/PublishUpgradeTaskRequest.h" -#include "model/PublishUpgradeTaskResult.h" #include "model/RenameDbfsRequest.h" #include "model/RenameDbfsResult.h" -#include "model/ResetDbfsRequest.h" -#include "model/ResetDbfsResult.h" #include "model/ResizeDbfsRequest.h" #include "model/ResizeDbfsResult.h" -#include "model/StopUpgradeTaskRequest.h" -#include "model/StopUpgradeTaskResult.h" #include "model/TagDbfsRequest.h" #include "model/TagDbfsResult.h" -#include "model/UpdateConstantsRequest.h" -#include "model/UpdateConstantsResult.h" -#include "model/UpdateTaskRequest.h" -#include "model/UpdateTaskResult.h" +#include "model/UpdateDbfsRequest.h" +#include "model/UpdateDbfsResult.h" namespace AlibabaCloud @@ -103,9 +83,6 @@ namespace AlibabaCloud typedef Outcome AttachDbfsOutcome; typedef std::future AttachDbfsOutcomeCallable; typedef std::function&)> AttachDbfsAsyncHandler; - typedef Outcome CreateConstantsOutcome; - typedef std::future CreateConstantsOutcomeCallable; - typedef std::function&)> CreateConstantsAsyncHandler; typedef Outcome CreateDbfsOutcome; typedef std::future CreateDbfsOutcomeCallable; typedef std::function&)> CreateDbfsAsyncHandler; @@ -115,12 +92,6 @@ namespace AlibabaCloud typedef Outcome CreateSnapshotOutcome; typedef std::future CreateSnapshotOutcomeCallable; typedef std::function&)> CreateSnapshotAsyncHandler; - typedef Outcome DbfsRecordOutcome; - typedef std::future DbfsRecordOutcomeCallable; - typedef std::function&)> DbfsRecordAsyncHandler; - typedef Outcome DeleteConstantsOutcome; - typedef std::future DeleteConstantsOutcomeCallable; - typedef std::function&)> DeleteConstantsAsyncHandler; typedef Outcome DeleteDbfsOutcome; typedef std::future DeleteDbfsOutcomeCallable; typedef std::function&)> DeleteDbfsAsyncHandler; @@ -133,30 +104,27 @@ namespace AlibabaCloud typedef Outcome DescribeDbfsSpecificationsOutcome; typedef std::future DescribeDbfsSpecificationsOutcomeCallable; typedef std::function&)> DescribeDbfsSpecificationsAsyncHandler; + typedef Outcome DescribeInstanceTypesOutcome; + typedef std::future DescribeInstanceTypesOutcomeCallable; + typedef std::function&)> DescribeInstanceTypesAsyncHandler; typedef Outcome DetachDbfsOutcome; typedef std::future DetachDbfsOutcomeCallable; typedef std::function&)> DetachDbfsAsyncHandler; - typedef Outcome GenerateUpgradeRecordOutcome; - typedef std::future GenerateUpgradeRecordOutcomeCallable; - typedef std::function&)> GenerateUpgradeRecordAsyncHandler; typedef Outcome GetDbfsOutcome; typedef std::future GetDbfsOutcomeCallable; typedef std::function&)> GetDbfsAsyncHandler; typedef Outcome GetServiceLinkedRoleOutcome; typedef std::future GetServiceLinkedRoleOutcomeCallable; typedef std::function&)> GetServiceLinkedRoleAsyncHandler; - typedef Outcome GetSynchronizConstantsOutcome; - typedef std::future GetSynchronizConstantsOutcomeCallable; - typedef std::function&)> GetSynchronizConstantsAsyncHandler; - typedef Outcome InsertSynchronizConstantsOutcome; - typedef std::future InsertSynchronizConstantsOutcomeCallable; - typedef std::function&)> InsertSynchronizConstantsAsyncHandler; - typedef Outcome ListConstantsOutcome; - typedef std::future ListConstantsOutcomeCallable; - typedef std::function&)> ListConstantsAsyncHandler; typedef Outcome ListDbfsOutcome; typedef std::future ListDbfsOutcomeCallable; typedef std::function&)> ListDbfsAsyncHandler; + typedef Outcome ListDbfsAttachableEcsInstancesOutcome; + typedef std::future ListDbfsAttachableEcsInstancesOutcomeCallable; + typedef std::function&)> ListDbfsAttachableEcsInstancesAsyncHandler; + typedef Outcome ListDbfsAttachedEcsInstancesOutcome; + typedef std::future ListDbfsAttachedEcsInstancesOutcomeCallable; + typedef std::function&)> ListDbfsAttachedEcsInstancesAsyncHandler; typedef Outcome ListSnapshotOutcome; typedef std::future ListSnapshotOutcomeCallable; typedef std::function&)> ListSnapshotAsyncHandler; @@ -166,36 +134,18 @@ namespace AlibabaCloud typedef Outcome ListTagValuesOutcome; typedef std::future ListTagValuesOutcomeCallable; typedef std::function&)> ListTagValuesAsyncHandler; - typedef Outcome ListTaskOutcome; - typedef std::future ListTaskOutcomeCallable; - typedef std::function&)> ListTaskAsyncHandler; - typedef Outcome OpreateConstantsOutcome; - typedef std::future OpreateConstantsOutcomeCallable; - typedef std::function&)> OpreateConstantsAsyncHandler; - typedef Outcome PublishUpgradeTaskOutcome; - typedef std::future PublishUpgradeTaskOutcomeCallable; - typedef std::function&)> PublishUpgradeTaskAsyncHandler; typedef Outcome RenameDbfsOutcome; typedef std::future RenameDbfsOutcomeCallable; typedef std::function&)> RenameDbfsAsyncHandler; - typedef Outcome ResetDbfsOutcome; - typedef std::future ResetDbfsOutcomeCallable; - typedef std::function&)> ResetDbfsAsyncHandler; typedef Outcome ResizeDbfsOutcome; typedef std::future ResizeDbfsOutcomeCallable; typedef std::function&)> ResizeDbfsAsyncHandler; - typedef Outcome StopUpgradeTaskOutcome; - typedef std::future StopUpgradeTaskOutcomeCallable; - typedef std::function&)> StopUpgradeTaskAsyncHandler; typedef Outcome TagDbfsOutcome; typedef std::future TagDbfsOutcomeCallable; typedef std::function&)> TagDbfsAsyncHandler; - typedef Outcome UpdateConstantsOutcome; - typedef std::future UpdateConstantsOutcomeCallable; - typedef std::function&)> UpdateConstantsAsyncHandler; - typedef Outcome UpdateTaskOutcome; - typedef std::future UpdateTaskOutcomeCallable; - typedef std::function&)> UpdateTaskAsyncHandler; + typedef Outcome UpdateDbfsOutcome; + typedef std::future UpdateDbfsOutcomeCallable; + typedef std::function&)> UpdateDbfsAsyncHandler; DBFSClient(const Credentials &credentials, const ClientConfiguration &configuration); DBFSClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -207,9 +157,6 @@ namespace AlibabaCloud AttachDbfsOutcome attachDbfs(const Model::AttachDbfsRequest &request)const; void attachDbfsAsync(const Model::AttachDbfsRequest& request, const AttachDbfsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AttachDbfsOutcomeCallable attachDbfsCallable(const Model::AttachDbfsRequest& request) const; - CreateConstantsOutcome createConstants(const Model::CreateConstantsRequest &request)const; - void createConstantsAsync(const Model::CreateConstantsRequest& request, const CreateConstantsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateConstantsOutcomeCallable createConstantsCallable(const Model::CreateConstantsRequest& request) const; CreateDbfsOutcome createDbfs(const Model::CreateDbfsRequest &request)const; void createDbfsAsync(const Model::CreateDbfsRequest& request, const CreateDbfsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDbfsOutcomeCallable createDbfsCallable(const Model::CreateDbfsRequest& request) const; @@ -219,12 +166,6 @@ namespace AlibabaCloud CreateSnapshotOutcome createSnapshot(const Model::CreateSnapshotRequest &request)const; void createSnapshotAsync(const Model::CreateSnapshotRequest& request, const CreateSnapshotAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSnapshotOutcomeCallable createSnapshotCallable(const Model::CreateSnapshotRequest& request) const; - DbfsRecordOutcome dbfsRecord(const Model::DbfsRecordRequest &request)const; - void dbfsRecordAsync(const Model::DbfsRecordRequest& request, const DbfsRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DbfsRecordOutcomeCallable dbfsRecordCallable(const Model::DbfsRecordRequest& request) const; - DeleteConstantsOutcome deleteConstants(const Model::DeleteConstantsRequest &request)const; - void deleteConstantsAsync(const Model::DeleteConstantsRequest& request, const DeleteConstantsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteConstantsOutcomeCallable deleteConstantsCallable(const Model::DeleteConstantsRequest& request) const; DeleteDbfsOutcome deleteDbfs(const Model::DeleteDbfsRequest &request)const; void deleteDbfsAsync(const Model::DeleteDbfsRequest& request, const DeleteDbfsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDbfsOutcomeCallable deleteDbfsCallable(const Model::DeleteDbfsRequest& request) const; @@ -237,30 +178,27 @@ namespace AlibabaCloud DescribeDbfsSpecificationsOutcome describeDbfsSpecifications(const Model::DescribeDbfsSpecificationsRequest &request)const; void describeDbfsSpecificationsAsync(const Model::DescribeDbfsSpecificationsRequest& request, const DescribeDbfsSpecificationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDbfsSpecificationsOutcomeCallable describeDbfsSpecificationsCallable(const Model::DescribeDbfsSpecificationsRequest& request) const; + DescribeInstanceTypesOutcome describeInstanceTypes(const Model::DescribeInstanceTypesRequest &request)const; + void describeInstanceTypesAsync(const Model::DescribeInstanceTypesRequest& request, const DescribeInstanceTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceTypesOutcomeCallable describeInstanceTypesCallable(const Model::DescribeInstanceTypesRequest& request) const; DetachDbfsOutcome detachDbfs(const Model::DetachDbfsRequest &request)const; void detachDbfsAsync(const Model::DetachDbfsRequest& request, const DetachDbfsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetachDbfsOutcomeCallable detachDbfsCallable(const Model::DetachDbfsRequest& request) const; - GenerateUpgradeRecordOutcome generateUpgradeRecord(const Model::GenerateUpgradeRecordRequest &request)const; - void generateUpgradeRecordAsync(const Model::GenerateUpgradeRecordRequest& request, const GenerateUpgradeRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GenerateUpgradeRecordOutcomeCallable generateUpgradeRecordCallable(const Model::GenerateUpgradeRecordRequest& request) const; GetDbfsOutcome getDbfs(const Model::GetDbfsRequest &request)const; void getDbfsAsync(const Model::GetDbfsRequest& request, const GetDbfsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetDbfsOutcomeCallable getDbfsCallable(const Model::GetDbfsRequest& request) const; GetServiceLinkedRoleOutcome getServiceLinkedRole(const Model::GetServiceLinkedRoleRequest &request)const; void getServiceLinkedRoleAsync(const Model::GetServiceLinkedRoleRequest& request, const GetServiceLinkedRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetServiceLinkedRoleOutcomeCallable getServiceLinkedRoleCallable(const Model::GetServiceLinkedRoleRequest& request) const; - GetSynchronizConstantsOutcome getSynchronizConstants(const Model::GetSynchronizConstantsRequest &request)const; - void getSynchronizConstantsAsync(const Model::GetSynchronizConstantsRequest& request, const GetSynchronizConstantsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetSynchronizConstantsOutcomeCallable getSynchronizConstantsCallable(const Model::GetSynchronizConstantsRequest& request) const; - InsertSynchronizConstantsOutcome insertSynchronizConstants(const Model::InsertSynchronizConstantsRequest &request)const; - void insertSynchronizConstantsAsync(const Model::InsertSynchronizConstantsRequest& request, const InsertSynchronizConstantsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - InsertSynchronizConstantsOutcomeCallable insertSynchronizConstantsCallable(const Model::InsertSynchronizConstantsRequest& request) const; - ListConstantsOutcome listConstants(const Model::ListConstantsRequest &request)const; - void listConstantsAsync(const Model::ListConstantsRequest& request, const ListConstantsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListConstantsOutcomeCallable listConstantsCallable(const Model::ListConstantsRequest& request) const; ListDbfsOutcome listDbfs(const Model::ListDbfsRequest &request)const; void listDbfsAsync(const Model::ListDbfsRequest& request, const ListDbfsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListDbfsOutcomeCallable listDbfsCallable(const Model::ListDbfsRequest& request) const; + ListDbfsAttachableEcsInstancesOutcome listDbfsAttachableEcsInstances(const Model::ListDbfsAttachableEcsInstancesRequest &request)const; + void listDbfsAttachableEcsInstancesAsync(const Model::ListDbfsAttachableEcsInstancesRequest& request, const ListDbfsAttachableEcsInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDbfsAttachableEcsInstancesOutcomeCallable listDbfsAttachableEcsInstancesCallable(const Model::ListDbfsAttachableEcsInstancesRequest& request) const; + ListDbfsAttachedEcsInstancesOutcome listDbfsAttachedEcsInstances(const Model::ListDbfsAttachedEcsInstancesRequest &request)const; + void listDbfsAttachedEcsInstancesAsync(const Model::ListDbfsAttachedEcsInstancesRequest& request, const ListDbfsAttachedEcsInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDbfsAttachedEcsInstancesOutcomeCallable listDbfsAttachedEcsInstancesCallable(const Model::ListDbfsAttachedEcsInstancesRequest& request) const; ListSnapshotOutcome listSnapshot(const Model::ListSnapshotRequest &request)const; void listSnapshotAsync(const Model::ListSnapshotRequest& request, const ListSnapshotAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListSnapshotOutcomeCallable listSnapshotCallable(const Model::ListSnapshotRequest& request) const; @@ -270,36 +208,18 @@ namespace AlibabaCloud ListTagValuesOutcome listTagValues(const Model::ListTagValuesRequest &request)const; void listTagValuesAsync(const Model::ListTagValuesRequest& request, const ListTagValuesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTagValuesOutcomeCallable listTagValuesCallable(const Model::ListTagValuesRequest& request) const; - ListTaskOutcome listTask(const Model::ListTaskRequest &request)const; - void listTaskAsync(const Model::ListTaskRequest& request, const ListTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListTaskOutcomeCallable listTaskCallable(const Model::ListTaskRequest& request) const; - OpreateConstantsOutcome opreateConstants(const Model::OpreateConstantsRequest &request)const; - void opreateConstantsAsync(const Model::OpreateConstantsRequest& request, const OpreateConstantsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - OpreateConstantsOutcomeCallable opreateConstantsCallable(const Model::OpreateConstantsRequest& request) const; - PublishUpgradeTaskOutcome publishUpgradeTask(const Model::PublishUpgradeTaskRequest &request)const; - void publishUpgradeTaskAsync(const Model::PublishUpgradeTaskRequest& request, const PublishUpgradeTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PublishUpgradeTaskOutcomeCallable publishUpgradeTaskCallable(const Model::PublishUpgradeTaskRequest& request) const; RenameDbfsOutcome renameDbfs(const Model::RenameDbfsRequest &request)const; void renameDbfsAsync(const Model::RenameDbfsRequest& request, const RenameDbfsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RenameDbfsOutcomeCallable renameDbfsCallable(const Model::RenameDbfsRequest& request) const; - ResetDbfsOutcome resetDbfs(const Model::ResetDbfsRequest &request)const; - void resetDbfsAsync(const Model::ResetDbfsRequest& request, const ResetDbfsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ResetDbfsOutcomeCallable resetDbfsCallable(const Model::ResetDbfsRequest& request) const; ResizeDbfsOutcome resizeDbfs(const Model::ResizeDbfsRequest &request)const; void resizeDbfsAsync(const Model::ResizeDbfsRequest& request, const ResizeDbfsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResizeDbfsOutcomeCallable resizeDbfsCallable(const Model::ResizeDbfsRequest& request) const; - StopUpgradeTaskOutcome stopUpgradeTask(const Model::StopUpgradeTaskRequest &request)const; - void stopUpgradeTaskAsync(const Model::StopUpgradeTaskRequest& request, const StopUpgradeTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StopUpgradeTaskOutcomeCallable stopUpgradeTaskCallable(const Model::StopUpgradeTaskRequest& request) const; TagDbfsOutcome tagDbfs(const Model::TagDbfsRequest &request)const; void tagDbfsAsync(const Model::TagDbfsRequest& request, const TagDbfsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TagDbfsOutcomeCallable tagDbfsCallable(const Model::TagDbfsRequest& request) const; - UpdateConstantsOutcome updateConstants(const Model::UpdateConstantsRequest &request)const; - void updateConstantsAsync(const Model::UpdateConstantsRequest& request, const UpdateConstantsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateConstantsOutcomeCallable updateConstantsCallable(const Model::UpdateConstantsRequest& request) const; - UpdateTaskOutcome updateTask(const Model::UpdateTaskRequest &request)const; - void updateTaskAsync(const Model::UpdateTaskRequest& request, const UpdateTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateTaskOutcomeCallable updateTaskCallable(const Model::UpdateTaskRequest& request) const; + UpdateDbfsOutcome updateDbfs(const Model::UpdateDbfsRequest &request)const; + void updateDbfsAsync(const Model::UpdateDbfsRequest& request, const UpdateDbfsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDbfsOutcomeCallable updateDbfsCallable(const Model::UpdateDbfsRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/dbfs/include/alibabacloud/dbfs/model/AddTagsBatchRequest.h b/dbfs/include/alibabacloud/dbfs/model/AddTagsBatchRequest.h index 4c0f40ecb..878416b99 100644 --- a/dbfs/include/alibabacloud/dbfs/model/AddTagsBatchRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/AddTagsBatchRequest.h @@ -1,57 +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_DBFS_MODEL_ADDTAGSBATCHREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_ADDTAGSBATCHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT AddTagsBatchRequest : public RpcServiceRequest - { - - public: - AddTagsBatchRequest(); - ~AddTagsBatchRequest(); - - std::string getDbfsList()const; - void setDbfsList(const std::string& dbfsList); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getTags()const; - void setTags(const std::string& tags); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::string dbfsList_; - std::string clientToken_; - std::string tags_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_ADDTAGSBATCHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_ADDTAGSBATCHREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_ADDTAGSBATCHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT AddTagsBatchRequest : public RpcServiceRequest { +public: + AddTagsBatchRequest(); + ~AddTagsBatchRequest(); + std::string getDbfsList() const; + void setDbfsList(const std::string &dbfsList); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string dbfsList_; + std::string clientToken_; + std::string tags_; + std::string regionId_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_ADDTAGSBATCHREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/AttachDbfsRequest.h b/dbfs/include/alibabacloud/dbfs/model/AttachDbfsRequest.h index 3477316bd..d59076b15 100644 --- a/dbfs/include/alibabacloud/dbfs/model/AttachDbfsRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/AttachDbfsRequest.h @@ -1,57 +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_DBFS_MODEL_ATTACHDBFSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_ATTACHDBFSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT AttachDbfsRequest : public RpcServiceRequest - { - - public: - AttachDbfsRequest(); - ~AttachDbfsRequest(); - - std::string getECSInstanceId()const; - void setECSInstanceId(const std::string& eCSInstanceId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getServerUrl()const; - void setServerUrl(const std::string& serverUrl); - std::string getFsId()const; - void setFsId(const std::string& fsId); - - private: - std::string eCSInstanceId_; - std::string regionId_; - std::string serverUrl_; - std::string fsId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_ATTACHDBFSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_ATTACHDBFSREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_ATTACHDBFSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT AttachDbfsRequest : public RpcServiceRequest { +public: + AttachDbfsRequest(); + ~AttachDbfsRequest(); + std::string getECSInstanceId() const; + void setECSInstanceId(const std::string &eCSInstanceId); + std::string getAttachPoint() const; + void setAttachPoint(const std::string &attachPoint); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getServerUrl() const; + void setServerUrl(const std::string &serverUrl); + std::string getFsId() const; + void setFsId(const std::string &fsId); + std::string getAttachMode() const; + void setAttachMode(const std::string &attachMode); + +private: + std::string eCSInstanceId_; + std::string attachPoint_; + std::string regionId_; + std::string serverUrl_; + std::string fsId_; + std::string attachMode_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_ATTACHDBFSREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/CreateConstantsRequest.h b/dbfs/include/alibabacloud/dbfs/model/CreateConstantsRequest.h deleted file mode 100644 index 8eae8fa62..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/CreateConstantsRequest.h +++ /dev/null @@ -1,57 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_CREATECONSTANTSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_CREATECONSTANTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT CreateConstantsRequest : public RpcServiceRequest - { - - public: - CreateConstantsRequest(); - ~CreateConstantsRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getConstantsData()const; - void setConstantsData(const std::string& constantsData); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string regionId_; - std::string constantsData_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_CREATECONSTANTSREQUEST_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/CreateDbfsRequest.h b/dbfs/include/alibabacloud/dbfs/model/CreateDbfsRequest.h index 1d9e2d15c..bdd6c9dfd 100644 --- a/dbfs/include/alibabacloud/dbfs/model/CreateDbfsRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/CreateDbfsRequest.h @@ -1,87 +1,87 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_DBFS_MODEL_CREATEDBFSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_CREATEDBFSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT CreateDbfsRequest : public RpcServiceRequest - { - - public: - CreateDbfsRequest(); - ~CreateDbfsRequest(); - - int getSizeG()const; - void setSizeG(int sizeG); - std::string getSnapshotId()const; - void setSnapshotId(const std::string& snapshotId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getUsedScene()const; - void setUsedScene(const std::string& usedScene); - std::string getFsName()const; - void setFsName(const std::string& fsName); - int getRaidStripeUnitNumber()const; - void setRaidStripeUnitNumber(int raidStripeUnitNumber); - bool getEncryption()const; - void setEncryption(bool encryption); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getPerformanceLevel()const; - void setPerformanceLevel(const std::string& performanceLevel); - bool getEnableRaid()const; - void setEnableRaid(bool enableRaid); - bool getDeleteSnapshot()const; - void setDeleteSnapshot(bool deleteSnapshot); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - std::string getCategory()const; - void setCategory(const std::string& category); - std::string getKMSKeyId()const; - void setKMSKeyId(const std::string& kMSKeyId); - - private: - int sizeG_; - std::string snapshotId_; - std::string clientToken_; - std::string usedScene_; - std::string fsName_; - int raidStripeUnitNumber_; - bool encryption_; - std::string regionId_; - std::string performanceLevel_; - bool enableRaid_; - bool deleteSnapshot_; - std::string zoneId_; - std::string category_; - std::string kMSKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_CREATEDBFSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_CREATEDBFSREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_CREATEDBFSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT CreateDbfsRequest : public RpcServiceRequest { +public: + CreateDbfsRequest(); + ~CreateDbfsRequest(); + int getSizeG() const; + void setSizeG(int sizeG); + std::string getSnapshotId() const; + void setSnapshotId(const std::string &snapshotId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getUsedScene() const; + void setUsedScene(const std::string &usedScene); + std::string getFsName() const; + void setFsName(const std::string &fsName); + int getRaidStripeUnitNumber() const; + void setRaidStripeUnitNumber(int raidStripeUnitNumber); + bool getEncryption() const; + void setEncryption(bool encryption); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getAdvancedFeatures() const; + void setAdvancedFeatures(const std::string &advancedFeatures); + std::string getPerformanceLevel() const; + void setPerformanceLevel(const std::string &performanceLevel); + bool getEnableRaid() const; + void setEnableRaid(bool enableRaid); + bool getDeleteSnapshot() const; + void setDeleteSnapshot(bool deleteSnapshot); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getCategory() const; + void setCategory(const std::string &category); + std::string getKMSKeyId() const; + void setKMSKeyId(const std::string &kMSKeyId); + +private: + int sizeG_; + std::string snapshotId_; + std::string clientToken_; + std::string usedScene_; + std::string fsName_; + int raidStripeUnitNumber_; + bool encryption_; + std::string regionId_; + std::string instanceType_; + std::string advancedFeatures_; + std::string performanceLevel_; + bool enableRaid_; + bool deleteSnapshot_; + std::string zoneId_; + std::string category_; + std::string kMSKeyId_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_CREATEDBFSREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/CreateServiceLinkedRoleRequest.h b/dbfs/include/alibabacloud/dbfs/model/CreateServiceLinkedRoleRequest.h index 7a0f5db0e..4e2b1d3cb 100644 --- a/dbfs/include/alibabacloud/dbfs/model/CreateServiceLinkedRoleRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/CreateServiceLinkedRoleRequest.h @@ -1,51 +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_DBFS_MODEL_CREATESERVICELINKEDROLEREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_CREATESERVICELINKEDROLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT CreateServiceLinkedRoleRequest : public RpcServiceRequest - { - - public: - CreateServiceLinkedRoleRequest(); - ~CreateServiceLinkedRoleRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::string clientToken_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_CREATESERVICELINKEDROLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_CREATESERVICELINKEDROLEREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_CREATESERVICELINKEDROLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT CreateServiceLinkedRoleRequest : public RpcServiceRequest { +public: + CreateServiceLinkedRoleRequest(); + ~CreateServiceLinkedRoleRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + std::string regionId_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_CREATESERVICELINKEDROLEREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/CreateSnapshotRequest.h b/dbfs/include/alibabacloud/dbfs/model/CreateSnapshotRequest.h index 6c104f641..3730479f2 100644 --- a/dbfs/include/alibabacloud/dbfs/model/CreateSnapshotRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/CreateSnapshotRequest.h @@ -1,63 +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_DBFS_MODEL_CREATESNAPSHOTREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_CREATESNAPSHOTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT CreateSnapshotRequest : public RpcServiceRequest - { - - public: - CreateSnapshotRequest(); - ~CreateSnapshotRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getSnapshotName()const; - void setSnapshotName(const std::string& snapshotName); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getFsId()const; - void setFsId(const std::string& fsId); - int getRetentionDays()const; - void setRetentionDays(int retentionDays); - - private: - std::string clientToken_; - std::string description_; - std::string snapshotName_; - std::string regionId_; - std::string fsId_; - int retentionDays_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_CREATESNAPSHOTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_CREATESNAPSHOTREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_CREATESNAPSHOTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT CreateSnapshotRequest : public RpcServiceRequest { +public: + CreateSnapshotRequest(); + ~CreateSnapshotRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSnapshotName() const; + void setSnapshotName(const std::string &snapshotName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getFsId() const; + void setFsId(const std::string &fsId); + int getRetentionDays() const; + void setRetentionDays(int retentionDays); + +private: + std::string clientToken_; + std::string description_; + std::string snapshotName_; + std::string regionId_; + std::string fsId_; + int retentionDays_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_CREATESNAPSHOTREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/DbfsRecordRequest.h b/dbfs/include/alibabacloud/dbfs/model/DbfsRecordRequest.h deleted file mode 100644 index 9e94a3c93..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/DbfsRecordRequest.h +++ /dev/null @@ -1,57 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_DBFSRECORDREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_DBFSRECORDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT DbfsRecordRequest : public RpcServiceRequest - { - - public: - DbfsRecordRequest(); - ~DbfsRecordRequest(); - - std::string getData()const; - void setData(const std::string& data); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string data_; - int pageNumber_; - std::string regionId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_DBFSRECORDREQUEST_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/DbfsRecordResult.h b/dbfs/include/alibabacloud/dbfs/model/DbfsRecordResult.h deleted file mode 100644 index 779cfe5b2..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/DbfsRecordResult.h +++ /dev/null @@ -1,78 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_DBFSRECORDRESULT_H_ -#define ALIBABACLOUD_DBFS_MODEL_DBFSRECORDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT DbfsRecordResult : public ServiceResult - { - public: - struct RecordsItem - { - std::string targetVersion; - std::string accountId; - std::string taskId; - std::string zoneId; - std::string currentVersion; - long createTime; - std::string ecsId; - std::string taskErrorReason; - std::string batchStrategyNo; - long upgradeEndTime; - std::string state; - std::string dbfsId; - long updateTime; - long id; - std::string regionId; - long upgradeStartTime; - std::string isDel; - int taskExecutionCounts; - }; - - - DbfsRecordResult(); - explicit DbfsRecordResult(const std::string &payload); - ~DbfsRecordResult(); - long getPageSize()const; - long getTotal()const; - long getPageNo()const; - std::vector getRecords()const; - - protected: - void parse(const std::string &payload); - private: - long pageSize_; - long total_; - long pageNo_; - std::vector records_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_DBFSRECORDRESULT_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/DeleteConstantsRequest.h b/dbfs/include/alibabacloud/dbfs/model/DeleteConstantsRequest.h deleted file mode 100644 index 69d558081..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/DeleteConstantsRequest.h +++ /dev/null @@ -1,57 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_DELETECONSTANTSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_DELETECONSTANTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT DeleteConstantsRequest : public RpcServiceRequest - { - - public: - DeleteConstantsRequest(); - ~DeleteConstantsRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getConstantsData()const; - void setConstantsData(const std::string& constantsData); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string regionId_; - std::string constantsData_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_DELETECONSTANTSREQUEST_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/DeleteDbfsRequest.h b/dbfs/include/alibabacloud/dbfs/model/DeleteDbfsRequest.h index a8c75143f..ba387c95d 100644 --- a/dbfs/include/alibabacloud/dbfs/model/DeleteDbfsRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/DeleteDbfsRequest.h @@ -1,51 +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_DBFS_MODEL_DELETEDBFSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_DELETEDBFSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT DeleteDbfsRequest : public RpcServiceRequest - { - - public: - DeleteDbfsRequest(); - ~DeleteDbfsRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getFsId()const; - void setFsId(const std::string& fsId); - - private: - std::string regionId_; - std::string fsId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_DELETEDBFSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_DELETEDBFSREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_DELETEDBFSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT DeleteDbfsRequest : public RpcServiceRequest { +public: + DeleteDbfsRequest(); + ~DeleteDbfsRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getFsId() const; + void setFsId(const std::string &fsId); + +private: + std::string regionId_; + std::string fsId_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_DELETEDBFSREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/DeleteSnapshotRequest.h b/dbfs/include/alibabacloud/dbfs/model/DeleteSnapshotRequest.h index 54a9e291b..949f6a416 100644 --- a/dbfs/include/alibabacloud/dbfs/model/DeleteSnapshotRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/DeleteSnapshotRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_DELETESNAPSHOTREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_DELETESNAPSHOTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT DeleteSnapshotRequest : public RpcServiceRequest - { - - public: - DeleteSnapshotRequest(); - ~DeleteSnapshotRequest(); - - std::string getSnapshotId()const; - void setSnapshotId(const std::string& snapshotId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - bool getForce()const; - void setForce(bool force); - - private: - std::string snapshotId_; - std::string regionId_; - bool force_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_DELETESNAPSHOTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_DELETESNAPSHOTREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_DELETESNAPSHOTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT DeleteSnapshotRequest : public RpcServiceRequest { +public: + DeleteSnapshotRequest(); + ~DeleteSnapshotRequest(); + std::string getSnapshotId() const; + void setSnapshotId(const std::string &snapshotId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getForce() const; + void setForce(bool force); + +private: + std::string snapshotId_; + std::string regionId_; + bool force_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_DELETESNAPSHOTREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/DeleteTagsBatchRequest.h b/dbfs/include/alibabacloud/dbfs/model/DeleteTagsBatchRequest.h index c10ec0157..fe3d796ec 100644 --- a/dbfs/include/alibabacloud/dbfs/model/DeleteTagsBatchRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/DeleteTagsBatchRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_DELETETAGSBATCHREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_DELETETAGSBATCHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT DeleteTagsBatchRequest : public RpcServiceRequest - { - - public: - DeleteTagsBatchRequest(); - ~DeleteTagsBatchRequest(); - - std::string getDbfsList()const; - void setDbfsList(const std::string& dbfsList); - std::string getTags()const; - void setTags(const std::string& tags); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::string dbfsList_; - std::string tags_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_DELETETAGSBATCHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_DELETETAGSBATCHREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_DELETETAGSBATCHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT DeleteTagsBatchRequest : public RpcServiceRequest { +public: + DeleteTagsBatchRequest(); + ~DeleteTagsBatchRequest(); + std::string getDbfsList() const; + void setDbfsList(const std::string &dbfsList); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string dbfsList_; + std::string tags_; + std::string regionId_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_DELETETAGSBATCHREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/DescribeDbfsSpecificationsRequest.h b/dbfs/include/alibabacloud/dbfs/model/DescribeDbfsSpecificationsRequest.h index 0487791be..7c7154cb6 100644 --- a/dbfs/include/alibabacloud/dbfs/model/DescribeDbfsSpecificationsRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/DescribeDbfsSpecificationsRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_DESCRIBEDBFSSPECIFICATIONSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_DESCRIBEDBFSSPECIFICATIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT DescribeDbfsSpecificationsRequest : public RpcServiceRequest - { - - public: - DescribeDbfsSpecificationsRequest(); - ~DescribeDbfsSpecificationsRequest(); - - std::string getEcsInstanceType()const; - void setEcsInstanceType(const std::string& ecsInstanceType); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getCategory()const; - void setCategory(const std::string& category); - - private: - std::string ecsInstanceType_; - std::string regionId_; - std::string category_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_DESCRIBEDBFSSPECIFICATIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_DESCRIBEDBFSSPECIFICATIONSREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_DESCRIBEDBFSSPECIFICATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT DescribeDbfsSpecificationsRequest : public RpcServiceRequest { +public: + DescribeDbfsSpecificationsRequest(); + ~DescribeDbfsSpecificationsRequest(); + std::string getEcsInstanceType() const; + void setEcsInstanceType(const std::string &ecsInstanceType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + std::string ecsInstanceType_; + std::string regionId_; + std::string category_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_DESCRIBEDBFSSPECIFICATIONSREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/DescribeInstanceTypesRequest.h b/dbfs/include/alibabacloud/dbfs/model/DescribeInstanceTypesRequest.h new file mode 100644 index 000000000..6e2fae348 --- /dev/null +++ b/dbfs/include/alibabacloud/dbfs/model/DescribeInstanceTypesRequest.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_DBFS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT DescribeInstanceTypesRequest : public RpcServiceRequest { +public: + DescribeInstanceTypesRequest(); + ~DescribeInstanceTypesRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/DeleteConstantsResult.h b/dbfs/include/alibabacloud/dbfs/model/DescribeInstanceTypesResult.h similarity index 57% rename from dbfs/include/alibabacloud/dbfs/model/DeleteConstantsResult.h rename to dbfs/include/alibabacloud/dbfs/model/DescribeInstanceTypesResult.h index 3651e8a16..a1dac89f7 100644 --- a/dbfs/include/alibabacloud/dbfs/model/DeleteConstantsResult.h +++ b/dbfs/include/alibabacloud/dbfs/model/DescribeInstanceTypesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_DBFS_MODEL_DELETECONSTANTSRESULT_H_ -#define ALIBABACLOUD_DBFS_MODEL_DELETECONSTANTSRESULT_H_ +#ifndef ALIBABACLOUD_DBFS_MODEL_DESCRIBEINSTANCETYPESRESULT_H_ +#define ALIBABACLOUD_DBFS_MODEL_DESCRIBEINSTANCETYPESRESULT_H_ #include #include @@ -29,29 +29,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_DBFS_EXPORT DeleteConstantsResult : public ServiceResult + class ALIBABACLOUD_DBFS_EXPORT DescribeInstanceTypesResult : public ServiceResult { public: + struct InstanceTypesItem + { + std::string instanceTypeDescription; + float memorySize; + float cpuCoreCount; + std::string instanceTypeId; + }; - DeleteConstantsResult(); - explicit DeleteConstantsResult(const std::string &payload); - ~DeleteConstantsResult(); - long getTotalCount()const; - long getPageSize()const; - long getPageNumber()const; - std::string getData()const; + DescribeInstanceTypesResult(); + explicit DescribeInstanceTypesResult(const std::string &payload); + ~DescribeInstanceTypesResult(); + std::vector getInstanceTypes()const; protected: void parse(const std::string &payload); private: - long totalCount_; - long pageSize_; - long pageNumber_; - std::string data_; + std::vector instanceTypes_; }; } } } -#endif // !ALIBABACLOUD_DBFS_MODEL_DELETECONSTANTSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_DBFS_MODEL_DESCRIBEINSTANCETYPESRESULT_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/DetachDbfsRequest.h b/dbfs/include/alibabacloud/dbfs/model/DetachDbfsRequest.h index cc6847780..a492be6a0 100644 --- a/dbfs/include/alibabacloud/dbfs/model/DetachDbfsRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/DetachDbfsRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_DETACHDBFSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_DETACHDBFSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT DetachDbfsRequest : public RpcServiceRequest - { - - public: - DetachDbfsRequest(); - ~DetachDbfsRequest(); - - std::string getECSInstanceId()const; - void setECSInstanceId(const std::string& eCSInstanceId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getFsId()const; - void setFsId(const std::string& fsId); - - private: - std::string eCSInstanceId_; - std::string regionId_; - std::string fsId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_DETACHDBFSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_DETACHDBFSREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_DETACHDBFSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT DetachDbfsRequest : public RpcServiceRequest { +public: + DetachDbfsRequest(); + ~DetachDbfsRequest(); + std::string getECSInstanceId() const; + void setECSInstanceId(const std::string &eCSInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getFsId() const; + void setFsId(const std::string &fsId); + +private: + std::string eCSInstanceId_; + std::string regionId_; + std::string fsId_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_DETACHDBFSREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/GenerateUpgradeRecordRequest.h b/dbfs/include/alibabacloud/dbfs/model/GenerateUpgradeRecordRequest.h deleted file mode 100644 index be22cc271..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/GenerateUpgradeRecordRequest.h +++ /dev/null @@ -1,57 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_GENERATEUPGRADERECORDREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_GENERATEUPGRADERECORDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT GenerateUpgradeRecordRequest : public RpcServiceRequest - { - - public: - GenerateUpgradeRecordRequest(); - ~GenerateUpgradeRecordRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getBatchStrategyList()const; - void setBatchStrategyList(const std::string& batchStrategyList); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string batchStrategyList_; - std::string regionId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_GENERATEUPGRADERECORDREQUEST_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/GenerateUpgradeRecordResult.h b/dbfs/include/alibabacloud/dbfs/model/GenerateUpgradeRecordResult.h deleted file mode 100644 index e5e995eec..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/GenerateUpgradeRecordResult.h +++ /dev/null @@ -1,71 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_GENERATEUPGRADERECORDRESULT_H_ -#define ALIBABACLOUD_DBFS_MODEL_GENERATEUPGRADERECORDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT GenerateUpgradeRecordResult : public ServiceResult - { - public: - struct RecordsItem - { - std::string targetVersion; - std::string accountId; - std::string taskId; - std::string zoneId; - std::string currentVersion; - long createTime; - std::string ecsId; - std::string taskErrorReason; - std::string batchStrategyNo; - long upgradeEndTime; - std::string state; - std::string dbfsId; - long updateTime; - long id; - std::string regionId; - long upgradeStartTime; - int taskExecutionCounts; - }; - - - GenerateUpgradeRecordResult(); - explicit GenerateUpgradeRecordResult(const std::string &payload); - ~GenerateUpgradeRecordResult(); - std::vector getRecords()const; - - protected: - void parse(const std::string &payload); - private: - std::vector records_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_GENERATEUPGRADERECORDRESULT_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/GetDbfsRequest.h b/dbfs/include/alibabacloud/dbfs/model/GetDbfsRequest.h index 736b06732..d7e1f1ba4 100644 --- a/dbfs/include/alibabacloud/dbfs/model/GetDbfsRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/GetDbfsRequest.h @@ -1,51 +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_DBFS_MODEL_GETDBFSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_GETDBFSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT GetDbfsRequest : public RpcServiceRequest - { - - public: - GetDbfsRequest(); - ~GetDbfsRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getFsId()const; - void setFsId(const std::string& fsId); - - private: - std::string regionId_; - std::string fsId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_GETDBFSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_GETDBFSREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_GETDBFSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT GetDbfsRequest : public RpcServiceRequest { +public: + GetDbfsRequest(); + ~GetDbfsRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getFsId() const; + void setFsId(const std::string &fsId); + +private: + std::string regionId_; + std::string fsId_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_GETDBFSREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/GetDbfsResult.h b/dbfs/include/alibabacloud/dbfs/model/GetDbfsResult.h index b1402893f..192968f83 100644 --- a/dbfs/include/alibabacloud/dbfs/model/GetDbfsResult.h +++ b/dbfs/include/alibabacloud/dbfs/model/GetDbfsResult.h @@ -49,29 +49,31 @@ namespace AlibabaCloud int sizeG; std::string ebsId; }; - std::string status; std::string description; std::string category; std::string createdTime; std::string kMSKeyId; - std::string zoneId; - bool enableRaid; std::vector ecsList; int sizeG; - std::string performanceLevel; std::string fsId; std::string dBFSClusterId; - std::string payType; bool encryption; std::string lastUmountTime; - std::string fsName; std::vector ebsList; - std::string usedScene; int raidStrip; std::string lastMountTime; + std::string instanceType; + std::vector tags; + std::string status; + std::string lastFailed; + std::string zoneId; + bool enableRaid; + std::string performanceLevel; + std::string payType; + std::string fsName; + std::string usedScene; std::string regionId; int attachNodeNumber; - std::vector tags; }; diff --git a/dbfs/include/alibabacloud/dbfs/model/GetServiceLinkedRoleRequest.h b/dbfs/include/alibabacloud/dbfs/model/GetServiceLinkedRoleRequest.h index ceb05090f..3f06ff167 100644 --- a/dbfs/include/alibabacloud/dbfs/model/GetServiceLinkedRoleRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/GetServiceLinkedRoleRequest.h @@ -1,48 +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_DBFS_MODEL_GETSERVICELINKEDROLEREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_GETSERVICELINKEDROLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT GetServiceLinkedRoleRequest : public RpcServiceRequest - { - - public: - GetServiceLinkedRoleRequest(); - ~GetServiceLinkedRoleRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_GETSERVICELINKEDROLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_GETSERVICELINKEDROLEREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_GETSERVICELINKEDROLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT GetServiceLinkedRoleRequest : public RpcServiceRequest { +public: + GetServiceLinkedRoleRequest(); + ~GetServiceLinkedRoleRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_GETSERVICELINKEDROLEREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/GetSynchronizConstantsRequest.h b/dbfs/include/alibabacloud/dbfs/model/GetSynchronizConstantsRequest.h deleted file mode 100644 index 7e31f2dd6..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/GetSynchronizConstantsRequest.h +++ /dev/null @@ -1,54 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_GETSYNCHRONIZCONSTANTSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_GETSYNCHRONIZCONSTANTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT GetSynchronizConstantsRequest : public RpcServiceRequest - { - - public: - GetSynchronizConstantsRequest(); - ~GetSynchronizConstantsRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string regionId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_GETSYNCHRONIZCONSTANTSREQUEST_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/GetSynchronizConstantsResult.h b/dbfs/include/alibabacloud/dbfs/model/GetSynchronizConstantsResult.h deleted file mode 100644 index 24b46e90c..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/GetSynchronizConstantsResult.h +++ /dev/null @@ -1,71 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_GETSYNCHRONIZCONSTANTSRESULT_H_ -#define ALIBABACLOUD_DBFS_MODEL_GETSYNCHRONIZCONSTANTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT GetSynchronizConstantsResult : public ServiceResult - { - public: - - - GetSynchronizConstantsResult(); - explicit GetSynchronizConstantsResult(const std::string &payload); - ~GetSynchronizConstantsResult(); - long getTotalCount()const; - std::string getMasterData()const; - long getPageSize()const; - std::string getZoneData()const; - long getPageNumber()const; - std::string getAccessData()const; - std::string getProductCodeData()const; - std::string getOsversionData()const; - std::string getData()const; - std::string getRegionData()const; - std::string getEndpointData()const; - - protected: - void parse(const std::string &payload); - private: - long totalCount_; - std::string masterData_; - long pageSize_; - std::string zoneData_; - long pageNumber_; - std::string accessData_; - std::string productCodeData_; - std::string osversionData_; - std::string data_; - std::string regionData_; - std::string endpointData_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_GETSYNCHRONIZCONSTANTSRESULT_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/InsertSynchronizConstantsRequest.h b/dbfs/include/alibabacloud/dbfs/model/InsertSynchronizConstantsRequest.h deleted file mode 100644 index b004858ae..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/InsertSynchronizConstantsRequest.h +++ /dev/null @@ -1,75 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_INSERTSYNCHRONIZCONSTANTSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_INSERTSYNCHRONIZCONSTANTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT InsertSynchronizConstantsRequest : public RpcServiceRequest - { - - public: - InsertSynchronizConstantsRequest(); - ~InsertSynchronizConstantsRequest(); - - std::string getZoneData()const; - void setZoneData(const std::string& zoneData); - std::string getOsversionData()const; - void setOsversionData(const std::string& osversionData); - std::string getEndpointData()const; - void setEndpointData(const std::string& endpointData); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getMasterData()const; - void setMasterData(const std::string& masterData); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getProductCodeData()const; - void setProductCodeData(const std::string& productCodeData); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getAccessData()const; - void setAccessData(const std::string& accessData); - std::string getRegionData()const; - void setRegionData(const std::string& regionData); - - private: - std::string zoneData_; - std::string osversionData_; - std::string endpointData_; - int pageNumber_; - std::string masterData_; - std::string regionId_; - std::string productCodeData_; - int pageSize_; - std::string accessData_; - std::string regionData_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_INSERTSYNCHRONIZCONSTANTSREQUEST_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/InsertSynchronizConstantsResult.h b/dbfs/include/alibabacloud/dbfs/model/InsertSynchronizConstantsResult.h deleted file mode 100644 index 0d6baad6e..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/InsertSynchronizConstantsResult.h +++ /dev/null @@ -1,57 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_INSERTSYNCHRONIZCONSTANTSRESULT_H_ -#define ALIBABACLOUD_DBFS_MODEL_INSERTSYNCHRONIZCONSTANTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT InsertSynchronizConstantsResult : public ServiceResult - { - public: - - - InsertSynchronizConstantsResult(); - explicit InsertSynchronizConstantsResult(const std::string &payload); - ~InsertSynchronizConstantsResult(); - long getTotalCount()const; - long getPageSize()const; - long getPageNumber()const; - std::string getData()const; - - protected: - void parse(const std::string &payload); - private: - long totalCount_; - long pageSize_; - long pageNumber_; - std::string data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_INSERTSYNCHRONIZCONSTANTSRESULT_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/ListConstantsRequest.h b/dbfs/include/alibabacloud/dbfs/model/ListConstantsRequest.h deleted file mode 100644 index 9ef6c71c8..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/ListConstantsRequest.h +++ /dev/null @@ -1,57 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_LISTCONSTANTSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_LISTCONSTANTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT ListConstantsRequest : public RpcServiceRequest - { - - public: - ListConstantsRequest(); - ~ListConstantsRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getConstantsData()const; - void setConstantsData(const std::string& constantsData); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string regionId_; - std::string constantsData_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_LISTCONSTANTSREQUEST_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/ListDbfsAttachableEcsInstancesRequest.h b/dbfs/include/alibabacloud/dbfs/model/ListDbfsAttachableEcsInstancesRequest.h new file mode 100644 index 000000000..388024481 --- /dev/null +++ b/dbfs/include/alibabacloud/dbfs/model/ListDbfsAttachableEcsInstancesRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_LISTDBFSATTACHABLEECSINSTANCESREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_LISTDBFSATTACHABLEECSINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT ListDbfsAttachableEcsInstancesRequest : public RpcServiceRequest { +public: + ListDbfsAttachableEcsInstancesRequest(); + ~ListDbfsAttachableEcsInstancesRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + int getPageNumber() const; + void setPageNumber(int pageNumber); + +private: + std::string regionId_; + int pageSize_; + int pageNumber_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_LISTDBFSATTACHABLEECSINSTANCESREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/ListConstantsResult.h b/dbfs/include/alibabacloud/dbfs/model/ListDbfsAttachableEcsInstancesResult.h similarity index 53% rename from dbfs/include/alibabacloud/dbfs/model/ListConstantsResult.h rename to dbfs/include/alibabacloud/dbfs/model/ListDbfsAttachableEcsInstancesResult.h index 70dd330ff..e6c8a215d 100644 --- a/dbfs/include/alibabacloud/dbfs/model/ListConstantsResult.h +++ b/dbfs/include/alibabacloud/dbfs/model/ListDbfsAttachableEcsInstancesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_DBFS_MODEL_LISTCONSTANTSRESULT_H_ -#define ALIBABACLOUD_DBFS_MODEL_LISTCONSTANTSRESULT_H_ +#ifndef ALIBABACLOUD_DBFS_MODEL_LISTDBFSATTACHABLEECSINSTANCESRESULT_H_ +#define ALIBABACLOUD_DBFS_MODEL_LISTDBFSATTACHABLEECSINSTANCESRESULT_H_ #include #include @@ -29,29 +29,34 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_DBFS_EXPORT ListConstantsResult : public ServiceResult + class ALIBABACLOUD_DBFS_EXPORT ListDbfsAttachableEcsInstancesResult : public ServiceResult { public: + struct LabelInfo + { + std::string status; + std::string zoneId; + std::string instanceTypeFamily; + std::string value; + std::string label; + std::string oSName; + }; - ListConstantsResult(); - explicit ListConstantsResult(const std::string &payload); - ~ListConstantsResult(); - long getTotalCount()const; - long getPageSize()const; - long getPageNumber()const; - std::string getData()const; + ListDbfsAttachableEcsInstancesResult(); + explicit ListDbfsAttachableEcsInstancesResult(const std::string &payload); + ~ListDbfsAttachableEcsInstancesResult(); + int getTotalCount()const; + std::vector getEcsLabelInfo()const; protected: void parse(const std::string &payload); private: - long totalCount_; - long pageSize_; - long pageNumber_; - std::string data_; + int totalCount_; + std::vector ecsLabelInfo_; }; } } } -#endif // !ALIBABACLOUD_DBFS_MODEL_LISTCONSTANTSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_DBFS_MODEL_LISTDBFSATTACHABLEECSINSTANCESRESULT_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/ListDbfsAttachedEcsInstancesRequest.h b/dbfs/include/alibabacloud/dbfs/model/ListDbfsAttachedEcsInstancesRequest.h new file mode 100644 index 000000000..93e286d2f --- /dev/null +++ b/dbfs/include/alibabacloud/dbfs/model/ListDbfsAttachedEcsInstancesRequest.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_DBFS_MODEL_LISTDBFSATTACHEDECSINSTANCESREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_LISTDBFSATTACHEDECSINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT ListDbfsAttachedEcsInstancesRequest : public RpcServiceRequest { +public: + ListDbfsAttachedEcsInstancesRequest(); + ~ListDbfsAttachedEcsInstancesRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getFsId() const; + void setFsId(const std::string &fsId); + +private: + std::string regionId_; + std::string fsId_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_LISTDBFSATTACHEDECSINSTANCESREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/CreateConstantsResult.h b/dbfs/include/alibabacloud/dbfs/model/ListDbfsAttachedEcsInstancesResult.h similarity index 55% rename from dbfs/include/alibabacloud/dbfs/model/CreateConstantsResult.h rename to dbfs/include/alibabacloud/dbfs/model/ListDbfsAttachedEcsInstancesResult.h index f72bd1a5a..2542d5adf 100644 --- a/dbfs/include/alibabacloud/dbfs/model/CreateConstantsResult.h +++ b/dbfs/include/alibabacloud/dbfs/model/ListDbfsAttachedEcsInstancesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_DBFS_MODEL_CREATECONSTANTSRESULT_H_ -#define ALIBABACLOUD_DBFS_MODEL_CREATECONSTANTSRESULT_H_ +#ifndef ALIBABACLOUD_DBFS_MODEL_LISTDBFSATTACHEDECSINSTANCESRESULT_H_ +#define ALIBABACLOUD_DBFS_MODEL_LISTDBFSATTACHEDECSINSTANCESRESULT_H_ #include #include @@ -29,29 +29,32 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_DBFS_EXPORT CreateConstantsResult : public ServiceResult + class ALIBABACLOUD_DBFS_EXPORT ListDbfsAttachedEcsInstancesResult : public ServiceResult { public: + struct LabelInfo + { + std::string mountPoint; + std::string instanceTypeFamily; + std::string value; + std::string label; + std::string mountedTime; + std::string oSName; + }; - CreateConstantsResult(); - explicit CreateConstantsResult(const std::string &payload); - ~CreateConstantsResult(); - long getTotalCount()const; - long getPageSize()const; - long getPageNumber()const; - std::string getData()const; + ListDbfsAttachedEcsInstancesResult(); + explicit ListDbfsAttachedEcsInstancesResult(const std::string &payload); + ~ListDbfsAttachedEcsInstancesResult(); + std::vector getEcsLabelInfo()const; protected: void parse(const std::string &payload); private: - long totalCount_; - long pageSize_; - long pageNumber_; - std::string data_; + std::vector ecsLabelInfo_; }; } } } -#endif // !ALIBABACLOUD_DBFS_MODEL_CREATECONSTANTSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_DBFS_MODEL_LISTDBFSATTACHEDECSINSTANCESRESULT_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/ListDbfsRequest.h b/dbfs/include/alibabacloud/dbfs/model/ListDbfsRequest.h index 678b3585e..b561e3342 100644 --- a/dbfs/include/alibabacloud/dbfs/model/ListDbfsRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/ListDbfsRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_LISTDBFSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_LISTDBFSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT ListDbfsRequest : public RpcServiceRequest - { - - public: - ListDbfsRequest(); - ~ListDbfsRequest(); - - std::string getSortType()const; - void setSortType(const std::string& sortType); - std::string getFilterValue()const; - void setFilterValue(const std::string& filterValue); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getTags()const; - void setTags(const std::string& tags); - std::string getFilterKey()const; - void setFilterKey(const std::string& filterKey); - std::string getSortKey()const; - void setSortKey(const std::string& sortKey); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string sortType_; - std::string filterValue_; - int pageNumber_; - std::string tags_; - std::string filterKey_; - std::string sortKey_; - std::string regionId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_LISTDBFSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_LISTDBFSREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_LISTDBFSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT ListDbfsRequest : public RpcServiceRequest { +public: + ListDbfsRequest(); + ~ListDbfsRequest(); + std::string getSortType() const; + void setSortType(const std::string &sortType); + std::string getFilterValue() const; + void setFilterValue(const std::string &filterValue); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getFilterKey() const; + void setFilterKey(const std::string &filterKey); + std::string getSortKey() const; + void setSortKey(const std::string &sortKey); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string sortType_; + std::string filterValue_; + int pageNumber_; + std::string tags_; + std::string filterKey_; + std::string sortKey_; + std::string regionId_; + int pageSize_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_LISTDBFSREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/ListDbfsResult.h b/dbfs/include/alibabacloud/dbfs/model/ListDbfsResult.h index b65a8acd2..cad08eb9f 100644 --- a/dbfs/include/alibabacloud/dbfs/model/ListDbfsResult.h +++ b/dbfs/include/alibabacloud/dbfs/model/ListDbfsResult.h @@ -50,6 +50,7 @@ namespace AlibabaCloud std::string ebsId; }; std::string status; + std::string lastFailed; std::string category; std::string createdTime; std::string kMSKeyId; @@ -70,6 +71,7 @@ namespace AlibabaCloud std::string lastMountTime; std::string regionId; int attachNodeNumber; + std::string instanceType; std::vector tags; }; diff --git a/dbfs/include/alibabacloud/dbfs/model/ListSnapshotRequest.h b/dbfs/include/alibabacloud/dbfs/model/ListSnapshotRequest.h index efd7ce46b..8ad32cb80 100644 --- a/dbfs/include/alibabacloud/dbfs/model/ListSnapshotRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/ListSnapshotRequest.h @@ -1,81 +1,75 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_LISTSNAPSHOTREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_LISTSNAPSHOTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT ListSnapshotRequest : public RpcServiceRequest - { - - public: - ListSnapshotRequest(); - ~ListSnapshotRequest(); - - std::string getSortType()const; - void setSortType(const std::string& sortType); - std::string getSnapshotIds()const; - void setSnapshotIds(const std::string& snapshotIds); - std::string getFilterValue()const; - void setFilterValue(const std::string& filterValue); - std::string getSnapshotName()const; - void setSnapshotName(const std::string& snapshotName); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getFilterKey()const; - void setFilterKey(const std::string& filterKey); - std::string getSortKey()const; - void setSortKey(const std::string& sortKey); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getFsId()const; - void setFsId(const std::string& fsId); - std::string getSnapshotType()const; - void setSnapshotType(const std::string& snapshotType); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string sortType_; - std::string snapshotIds_; - std::string filterValue_; - std::string snapshotName_; - int pageNumber_; - std::string filterKey_; - std::string sortKey_; - std::string regionId_; - int pageSize_; - std::string fsId_; - std::string snapshotType_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_LISTSNAPSHOTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_LISTSNAPSHOTREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_LISTSNAPSHOTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT ListSnapshotRequest : public RpcServiceRequest { +public: + ListSnapshotRequest(); + ~ListSnapshotRequest(); + std::string getSortType() const; + void setSortType(const std::string &sortType); + std::string getSnapshotIds() const; + void setSnapshotIds(const std::string &snapshotIds); + std::string getFilterValue() const; + void setFilterValue(const std::string &filterValue); + std::string getSnapshotName() const; + void setSnapshotName(const std::string &snapshotName); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getFilterKey() const; + void setFilterKey(const std::string &filterKey); + std::string getSortKey() const; + void setSortKey(const std::string &sortKey); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getFsId() const; + void setFsId(const std::string &fsId); + std::string getSnapshotType() const; + void setSnapshotType(const std::string &snapshotType); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string sortType_; + std::string snapshotIds_; + std::string filterValue_; + std::string snapshotName_; + int pageNumber_; + std::string filterKey_; + std::string sortKey_; + std::string regionId_; + int pageSize_; + std::string fsId_; + std::string snapshotType_; + std::string status_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_LISTSNAPSHOTREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/ListSnapshotResult.h b/dbfs/include/alibabacloud/dbfs/model/ListSnapshotResult.h index d99ad7539..d6fb8a2ef 100644 --- a/dbfs/include/alibabacloud/dbfs/model/ListSnapshotResult.h +++ b/dbfs/include/alibabacloud/dbfs/model/ListSnapshotResult.h @@ -36,13 +36,14 @@ namespace AlibabaCloud { std::string status; std::string progress; - std::string category; std::string description; + std::string category; int retentionDays; int sourceFsSize; std::string snapshotName; std::string sourceFsId; std::string snapshotId; + int sourceFsStripeWidth; std::string creationTime; std::string lastModifiedTime; std::string snapshotType; diff --git a/dbfs/include/alibabacloud/dbfs/model/ListTagKeysRequest.h b/dbfs/include/alibabacloud/dbfs/model/ListTagKeysRequest.h index fb25de675..d317a60ee 100644 --- a/dbfs/include/alibabacloud/dbfs/model/ListTagKeysRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/ListTagKeysRequest.h @@ -1,48 +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_DBFS_MODEL_LISTTAGKEYSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_LISTTAGKEYSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT ListTagKeysRequest : public RpcServiceRequest - { - - public: - ListTagKeysRequest(); - ~ListTagKeysRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_LISTTAGKEYSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_LISTTAGKEYSREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_LISTTAGKEYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT ListTagKeysRequest : public RpcServiceRequest { +public: + ListTagKeysRequest(); + ~ListTagKeysRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_LISTTAGKEYSREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/ListTagValuesRequest.h b/dbfs/include/alibabacloud/dbfs/model/ListTagValuesRequest.h index eb9e394dc..67cdc92f2 100644 --- a/dbfs/include/alibabacloud/dbfs/model/ListTagValuesRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/ListTagValuesRequest.h @@ -1,51 +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_DBFS_MODEL_LISTTAGVALUESREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_LISTTAGVALUESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT ListTagValuesRequest : public RpcServiceRequest - { - - public: - ListTagValuesRequest(); - ~ListTagValuesRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getTagKey()const; - void setTagKey(const std::string& tagKey); - - private: - std::string regionId_; - std::string tagKey_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_LISTTAGVALUESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_LISTTAGVALUESREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_LISTTAGVALUESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT ListTagValuesRequest : public RpcServiceRequest { +public: + ListTagValuesRequest(); + ~ListTagValuesRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getTagKey() const; + void setTagKey(const std::string &tagKey); + +private: + std::string regionId_; + std::string tagKey_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_LISTTAGVALUESREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/ListTaskRequest.h b/dbfs/include/alibabacloud/dbfs/model/ListTaskRequest.h deleted file mode 100644 index eba411b8f..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/ListTaskRequest.h +++ /dev/null @@ -1,66 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_LISTTASKREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_LISTTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT ListTaskRequest : public RpcServiceRequest - { - - public: - ListTaskRequest(); - ~ListTaskRequest(); - - std::string getSortType()const; - void setSortType(const std::string& sortType); - std::string getFilterValue()const; - void setFilterValue(const std::string& filterValue); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getFilterKey()const; - void setFilterKey(const std::string& filterKey); - std::string getSortKey()const; - void setSortKey(const std::string& sortKey); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string sortType_; - std::string filterValue_; - int pageNumber_; - std::string filterKey_; - std::string sortKey_; - std::string regionId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_LISTTASKREQUEST_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/ListTaskResult.h b/dbfs/include/alibabacloud/dbfs/model/ListTaskResult.h deleted file mode 100644 index 2bf7c9be1..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/ListTaskResult.h +++ /dev/null @@ -1,78 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_LISTTASKRESULT_H_ -#define ALIBABACLOUD_DBFS_MODEL_LISTTASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT ListTaskResult : public ServiceResult - { - public: - struct TasksItem - { - std::string createdTime; - std::string taskAdder; - std::string priority; - int taskStatusCode; - int taskProgress; - int maxRetry; - std::string taskStatus; - std::string nextExecutionTime; - std::string taskErrorReason; - std::string taskRunner; - std::string taskOwner; - std::string taskName; - std::string completionTime; - std::string taskType; - int id; - std::string clientToken; - std::string taskProgressDescription; - int taskExecutionCounts; - }; - - - ListTaskResult(); - explicit ListTaskResult(const std::string &payload); - ~ListTaskResult(); - int getTotalCount()const; - std::vector getTasks()const; - int getPageSize()const; - int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: - int totalCount_; - std::vector tasks_; - int pageSize_; - int pageNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_LISTTASKRESULT_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/OpreateConstantsRequest.h b/dbfs/include/alibabacloud/dbfs/model/OpreateConstantsRequest.h deleted file mode 100644 index cc78af83a..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/OpreateConstantsRequest.h +++ /dev/null @@ -1,57 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_OPREATECONSTANTSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_OPREATECONSTANTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT OpreateConstantsRequest : public RpcServiceRequest - { - - public: - OpreateConstantsRequest(); - ~OpreateConstantsRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getConstantsData()const; - void setConstantsData(const std::string& constantsData); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string regionId_; - std::string constantsData_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_OPREATECONSTANTSREQUEST_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/OpreateConstantsResult.h b/dbfs/include/alibabacloud/dbfs/model/OpreateConstantsResult.h deleted file mode 100644 index 48713df50..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/OpreateConstantsResult.h +++ /dev/null @@ -1,71 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_OPREATECONSTANTSRESULT_H_ -#define ALIBABACLOUD_DBFS_MODEL_OPREATECONSTANTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT OpreateConstantsResult : public ServiceResult - { - public: - - - OpreateConstantsResult(); - explicit OpreateConstantsResult(const std::string &payload); - ~OpreateConstantsResult(); - long getTotalCount()const; - std::string getMasterData()const; - long getPageSize()const; - std::string getZoneData()const; - long getPageNumber()const; - std::string getAccessData()const; - std::string getProductCodeData()const; - std::string getOsversionData()const; - std::string getData()const; - std::string getRegionData()const; - std::string getEndpointData()const; - - protected: - void parse(const std::string &payload); - private: - long totalCount_; - std::string masterData_; - long pageSize_; - std::string zoneData_; - long pageNumber_; - std::string accessData_; - std::string productCodeData_; - std::string osversionData_; - std::string data_; - std::string regionData_; - std::string endpointData_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_OPREATECONSTANTSRESULT_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/PublishUpgradeTaskRequest.h b/dbfs/include/alibabacloud/dbfs/model/PublishUpgradeTaskRequest.h deleted file mode 100644 index ae557b86d..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/PublishUpgradeTaskRequest.h +++ /dev/null @@ -1,57 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_PUBLISHUPGRADETASKREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_PUBLISHUPGRADETASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT PublishUpgradeTaskRequest : public RpcServiceRequest - { - - public: - PublishUpgradeTaskRequest(); - ~PublishUpgradeTaskRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getBatchStrategyList()const; - void setBatchStrategyList(const std::string& batchStrategyList); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string batchStrategyList_; - std::string regionId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_PUBLISHUPGRADETASKREQUEST_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/PublishUpgradeTaskResult.h b/dbfs/include/alibabacloud/dbfs/model/PublishUpgradeTaskResult.h deleted file mode 100644 index 2da33f705..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/PublishUpgradeTaskResult.h +++ /dev/null @@ -1,49 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_PUBLISHUPGRADETASKRESULT_H_ -#define ALIBABACLOUD_DBFS_MODEL_PUBLISHUPGRADETASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT PublishUpgradeTaskResult : public ServiceResult - { - public: - - - PublishUpgradeTaskResult(); - explicit PublishUpgradeTaskResult(const std::string &payload); - ~PublishUpgradeTaskResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_PUBLISHUPGRADETASKRESULT_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/RenameDbfsRequest.h b/dbfs/include/alibabacloud/dbfs/model/RenameDbfsRequest.h index 7f78bd24c..eb5e2cceb 100644 --- a/dbfs/include/alibabacloud/dbfs/model/RenameDbfsRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/RenameDbfsRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_RENAMEDBFSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_RENAMEDBFSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT RenameDbfsRequest : public RpcServiceRequest - { - - public: - RenameDbfsRequest(); - ~RenameDbfsRequest(); - - std::string getFsName()const; - void setFsName(const std::string& fsName); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getFsId()const; - void setFsId(const std::string& fsId); - - private: - std::string fsName_; - std::string regionId_; - std::string fsId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_RENAMEDBFSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_RENAMEDBFSREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_RENAMEDBFSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT RenameDbfsRequest : public RpcServiceRequest { +public: + RenameDbfsRequest(); + ~RenameDbfsRequest(); + std::string getFsName() const; + void setFsName(const std::string &fsName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getFsId() const; + void setFsId(const std::string &fsId); + +private: + std::string fsName_; + std::string regionId_; + std::string fsId_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_RENAMEDBFSREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/ResetDbfsRequest.h b/dbfs/include/alibabacloud/dbfs/model/ResetDbfsRequest.h deleted file mode 100644 index f67843971..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/ResetDbfsRequest.h +++ /dev/null @@ -1,54 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_RESETDBFSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_RESETDBFSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT ResetDbfsRequest : public RpcServiceRequest - { - - public: - ResetDbfsRequest(); - ~ResetDbfsRequest(); - - std::string getSnapshotId()const; - void setSnapshotId(const std::string& snapshotId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getFsId()const; - void setFsId(const std::string& fsId); - - private: - std::string snapshotId_; - std::string regionId_; - std::string fsId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_RESETDBFSREQUEST_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/ResetDbfsResult.h b/dbfs/include/alibabacloud/dbfs/model/ResetDbfsResult.h deleted file mode 100644 index 9e49721f9..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/ResetDbfsResult.h +++ /dev/null @@ -1,49 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_RESETDBFSRESULT_H_ -#define ALIBABACLOUD_DBFS_MODEL_RESETDBFSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT ResetDbfsResult : public ServiceResult - { - public: - - - ResetDbfsResult(); - explicit ResetDbfsResult(const std::string &payload); - ~ResetDbfsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_RESETDBFSRESULT_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/ResizeDbfsRequest.h b/dbfs/include/alibabacloud/dbfs/model/ResizeDbfsRequest.h index a88b8681c..326108ec5 100644 --- a/dbfs/include/alibabacloud/dbfs/model/ResizeDbfsRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/ResizeDbfsRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_RESIZEDBFSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_RESIZEDBFSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT ResizeDbfsRequest : public RpcServiceRequest - { - - public: - ResizeDbfsRequest(); - ~ResizeDbfsRequest(); - - int getNewSizeG()const; - void setNewSizeG(int newSizeG); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getFsId()const; - void setFsId(const std::string& fsId); - - private: - int newSizeG_; - std::string regionId_; - std::string fsId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_RESIZEDBFSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_RESIZEDBFSREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_RESIZEDBFSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT ResizeDbfsRequest : public RpcServiceRequest { +public: + ResizeDbfsRequest(); + ~ResizeDbfsRequest(); + int getNewSizeG() const; + void setNewSizeG(int newSizeG); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getFsId() const; + void setFsId(const std::string &fsId); + +private: + int newSizeG_; + std::string regionId_; + std::string fsId_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_RESIZEDBFSREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/StopUpgradeTaskRequest.h b/dbfs/include/alibabacloud/dbfs/model/StopUpgradeTaskRequest.h deleted file mode 100644 index 8f759444b..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/StopUpgradeTaskRequest.h +++ /dev/null @@ -1,57 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_STOPUPGRADETASKREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_STOPUPGRADETASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT StopUpgradeTaskRequest : public RpcServiceRequest - { - - public: - StopUpgradeTaskRequest(); - ~StopUpgradeTaskRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getBatchStrategyList()const; - void setBatchStrategyList(const std::string& batchStrategyList); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string batchStrategyList_; - std::string regionId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_STOPUPGRADETASKREQUEST_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/StopUpgradeTaskResult.h b/dbfs/include/alibabacloud/dbfs/model/StopUpgradeTaskResult.h deleted file mode 100644 index 4e90470e7..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/StopUpgradeTaskResult.h +++ /dev/null @@ -1,49 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_STOPUPGRADETASKRESULT_H_ -#define ALIBABACLOUD_DBFS_MODEL_STOPUPGRADETASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT StopUpgradeTaskResult : public ServiceResult - { - public: - - - StopUpgradeTaskResult(); - explicit StopUpgradeTaskResult(const std::string &payload); - ~StopUpgradeTaskResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_STOPUPGRADETASKRESULT_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/TagDbfsRequest.h b/dbfs/include/alibabacloud/dbfs/model/TagDbfsRequest.h index 506a15ac1..c91170034 100644 --- a/dbfs/include/alibabacloud/dbfs/model/TagDbfsRequest.h +++ b/dbfs/include/alibabacloud/dbfs/model/TagDbfsRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_TAGDBFSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_TAGDBFSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT TagDbfsRequest : public RpcServiceRequest - { - - public: - TagDbfsRequest(); - ~TagDbfsRequest(); - - std::string getTags()const; - void setTags(const std::string& tags); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getDbfsId()const; - void setDbfsId(const std::string& dbfsId); - - private: - std::string tags_; - std::string regionId_; - std::string dbfsId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_TAGDBFSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBFS_MODEL_TAGDBFSREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_TAGDBFSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT TagDbfsRequest : public RpcServiceRequest { +public: + TagDbfsRequest(); + ~TagDbfsRequest(); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDbfsId() const; + void setDbfsId(const std::string &dbfsId); + +private: + std::string tags_; + std::string regionId_; + std::string dbfsId_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_TAGDBFSREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/UpdateConstantsRequest.h b/dbfs/include/alibabacloud/dbfs/model/UpdateConstantsRequest.h deleted file mode 100644 index dc3cb624c..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/UpdateConstantsRequest.h +++ /dev/null @@ -1,57 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_UPDATECONSTANTSREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_UPDATECONSTANTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT UpdateConstantsRequest : public RpcServiceRequest - { - - public: - UpdateConstantsRequest(); - ~UpdateConstantsRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getConstantsData()const; - void setConstantsData(const std::string& constantsData); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string regionId_; - std::string constantsData_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_UPDATECONSTANTSREQUEST_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/UpdateConstantsResult.h b/dbfs/include/alibabacloud/dbfs/model/UpdateConstantsResult.h deleted file mode 100644 index cb05e1ec0..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/UpdateConstantsResult.h +++ /dev/null @@ -1,57 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_UPDATECONSTANTSRESULT_H_ -#define ALIBABACLOUD_DBFS_MODEL_UPDATECONSTANTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT UpdateConstantsResult : public ServiceResult - { - public: - - - UpdateConstantsResult(); - explicit UpdateConstantsResult(const std::string &payload); - ~UpdateConstantsResult(); - long getTotalCount()const; - long getPageSize()const; - long getPageNumber()const; - std::string getData()const; - - protected: - void parse(const std::string &payload); - private: - long totalCount_; - long pageSize_; - long pageNumber_; - std::string data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_UPDATECONSTANTSRESULT_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/UpdateDbfsRequest.h b/dbfs/include/alibabacloud/dbfs/model/UpdateDbfsRequest.h new file mode 100644 index 000000000..7f06c1107 --- /dev/null +++ b/dbfs/include/alibabacloud/dbfs/model/UpdateDbfsRequest.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_DBFS_MODEL_UPDATEDBFSREQUEST_H_ +#define ALIBABACLOUD_DBFS_MODEL_UPDATEDBFSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace DBFS { +namespace Model { +class ALIBABACLOUD_DBFS_EXPORT UpdateDbfsRequest : public RpcServiceRequest { +public: + UpdateDbfsRequest(); + ~UpdateDbfsRequest(); + std::string getUsedScene() const; + void setUsedScene(const std::string &usedScene); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getFsId() const; + void setFsId(const std::string &fsId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getAdvancedFeatures() const; + void setAdvancedFeatures(const std::string &advancedFeatures); + +private: + std::string usedScene_; + std::string regionId_; + std::string fsId_; + std::string instanceType_; + std::string advancedFeatures_; +}; +} // namespace Model +} // namespace DBFS +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBFS_MODEL_UPDATEDBFSREQUEST_H_ diff --git a/dbfs/include/alibabacloud/dbfs/model/UpdateTaskResult.h b/dbfs/include/alibabacloud/dbfs/model/UpdateDbfsResult.h similarity index 74% rename from dbfs/include/alibabacloud/dbfs/model/UpdateTaskResult.h rename to dbfs/include/alibabacloud/dbfs/model/UpdateDbfsResult.h index ae610c266..2da4a50c8 100644 --- a/dbfs/include/alibabacloud/dbfs/model/UpdateTaskResult.h +++ b/dbfs/include/alibabacloud/dbfs/model/UpdateDbfsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_DBFS_MODEL_UPDATETASKRESULT_H_ -#define ALIBABACLOUD_DBFS_MODEL_UPDATETASKRESULT_H_ +#ifndef ALIBABACLOUD_DBFS_MODEL_UPDATEDBFSRESULT_H_ +#define ALIBABACLOUD_DBFS_MODEL_UPDATEDBFSRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_DBFS_EXPORT UpdateTaskResult : public ServiceResult + class ALIBABACLOUD_DBFS_EXPORT UpdateDbfsResult : public ServiceResult { public: - UpdateTaskResult(); - explicit UpdateTaskResult(const std::string &payload); - ~UpdateTaskResult(); + UpdateDbfsResult(); + explicit UpdateDbfsResult(const std::string &payload); + ~UpdateDbfsResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_DBFS_MODEL_UPDATETASKRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_DBFS_MODEL_UPDATEDBFSRESULT_H_ \ No newline at end of file diff --git a/dbfs/include/alibabacloud/dbfs/model/UpdateTaskRequest.h b/dbfs/include/alibabacloud/dbfs/model/UpdateTaskRequest.h deleted file mode 100644 index 84736838d..000000000 --- a/dbfs/include/alibabacloud/dbfs/model/UpdateTaskRequest.h +++ /dev/null @@ -1,54 +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. - */ - -#ifndef ALIBABACLOUD_DBFS_MODEL_UPDATETASKREQUEST_H_ -#define ALIBABACLOUD_DBFS_MODEL_UPDATETASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace DBFS - { - namespace Model - { - class ALIBABACLOUD_DBFS_EXPORT UpdateTaskRequest : public RpcServiceRequest - { - - public: - UpdateTaskRequest(); - ~UpdateTaskRequest(); - - int getTaskProgress()const; - void setTaskProgress(int taskProgress); - std::string getTaskIds()const; - void setTaskIds(const std::string& taskIds); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - int taskProgress_; - std::string taskIds_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBFS_MODEL_UPDATETASKREQUEST_H_ \ No newline at end of file diff --git a/dbfs/src/DBFSClient.cc b/dbfs/src/DBFSClient.cc index d9a99d5ad..ffe7afb3f 100644 --- a/dbfs/src/DBFSClient.cc +++ b/dbfs/src/DBFSClient.cc @@ -31,21 +31,21 @@ DBFSClient::DBFSClient(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, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dbfs"); } DBFSClient::DBFSClient(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, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dbfs"); } DBFSClient::DBFSClient(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, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dbfs"); } DBFSClient::~DBFSClient() @@ -123,42 +123,6 @@ DBFSClient::AttachDbfsOutcomeCallable DBFSClient::attachDbfsCallable(const Attac return task->get_future(); } -DBFSClient::CreateConstantsOutcome DBFSClient::createConstants(const CreateConstantsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateConstantsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateConstantsOutcome(CreateConstantsResult(outcome.result())); - else - return CreateConstantsOutcome(outcome.error()); -} - -void DBFSClient::createConstantsAsync(const CreateConstantsRequest& request, const CreateConstantsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createConstants(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DBFSClient::CreateConstantsOutcomeCallable DBFSClient::createConstantsCallable(const CreateConstantsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createConstants(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DBFSClient::CreateDbfsOutcome DBFSClient::createDbfs(const CreateDbfsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -267,78 +231,6 @@ DBFSClient::CreateSnapshotOutcomeCallable DBFSClient::createSnapshotCallable(con return task->get_future(); } -DBFSClient::DbfsRecordOutcome DBFSClient::dbfsRecord(const DbfsRecordRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DbfsRecordOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DbfsRecordOutcome(DbfsRecordResult(outcome.result())); - else - return DbfsRecordOutcome(outcome.error()); -} - -void DBFSClient::dbfsRecordAsync(const DbfsRecordRequest& request, const DbfsRecordAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, dbfsRecord(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DBFSClient::DbfsRecordOutcomeCallable DBFSClient::dbfsRecordCallable(const DbfsRecordRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->dbfsRecord(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DBFSClient::DeleteConstantsOutcome DBFSClient::deleteConstants(const DeleteConstantsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteConstantsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteConstantsOutcome(DeleteConstantsResult(outcome.result())); - else - return DeleteConstantsOutcome(outcome.error()); -} - -void DBFSClient::deleteConstantsAsync(const DeleteConstantsRequest& request, const DeleteConstantsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteConstants(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DBFSClient::DeleteConstantsOutcomeCallable DBFSClient::deleteConstantsCallable(const DeleteConstantsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteConstants(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DBFSClient::DeleteDbfsOutcome DBFSClient::deleteDbfs(const DeleteDbfsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +375,42 @@ DBFSClient::DescribeDbfsSpecificationsOutcomeCallable DBFSClient::describeDbfsSp return task->get_future(); } +DBFSClient::DescribeInstanceTypesOutcome DBFSClient::describeInstanceTypes(const DescribeInstanceTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceTypesOutcome(DescribeInstanceTypesResult(outcome.result())); + else + return DescribeInstanceTypesOutcome(outcome.error()); +} + +void DBFSClient::describeInstanceTypesAsync(const DescribeInstanceTypesRequest& request, const DescribeInstanceTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DBFSClient::DescribeInstanceTypesOutcomeCallable DBFSClient::describeInstanceTypesCallable(const DescribeInstanceTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DBFSClient::DetachDbfsOutcome DBFSClient::detachDbfs(const DetachDbfsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,42 +447,6 @@ DBFSClient::DetachDbfsOutcomeCallable DBFSClient::detachDbfsCallable(const Detac return task->get_future(); } -DBFSClient::GenerateUpgradeRecordOutcome DBFSClient::generateUpgradeRecord(const GenerateUpgradeRecordRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GenerateUpgradeRecordOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GenerateUpgradeRecordOutcome(GenerateUpgradeRecordResult(outcome.result())); - else - return GenerateUpgradeRecordOutcome(outcome.error()); -} - -void DBFSClient::generateUpgradeRecordAsync(const GenerateUpgradeRecordRequest& request, const GenerateUpgradeRecordAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, generateUpgradeRecord(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DBFSClient::GenerateUpgradeRecordOutcomeCallable DBFSClient::generateUpgradeRecordCallable(const GenerateUpgradeRecordRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->generateUpgradeRecord(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DBFSClient::GetDbfsOutcome DBFSClient::getDbfs(const GetDbfsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,114 +519,6 @@ DBFSClient::GetServiceLinkedRoleOutcomeCallable DBFSClient::getServiceLinkedRole return task->get_future(); } -DBFSClient::GetSynchronizConstantsOutcome DBFSClient::getSynchronizConstants(const GetSynchronizConstantsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetSynchronizConstantsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetSynchronizConstantsOutcome(GetSynchronizConstantsResult(outcome.result())); - else - return GetSynchronizConstantsOutcome(outcome.error()); -} - -void DBFSClient::getSynchronizConstantsAsync(const GetSynchronizConstantsRequest& request, const GetSynchronizConstantsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getSynchronizConstants(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DBFSClient::GetSynchronizConstantsOutcomeCallable DBFSClient::getSynchronizConstantsCallable(const GetSynchronizConstantsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getSynchronizConstants(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DBFSClient::InsertSynchronizConstantsOutcome DBFSClient::insertSynchronizConstants(const InsertSynchronizConstantsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return InsertSynchronizConstantsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return InsertSynchronizConstantsOutcome(InsertSynchronizConstantsResult(outcome.result())); - else - return InsertSynchronizConstantsOutcome(outcome.error()); -} - -void DBFSClient::insertSynchronizConstantsAsync(const InsertSynchronizConstantsRequest& request, const InsertSynchronizConstantsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, insertSynchronizConstants(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DBFSClient::InsertSynchronizConstantsOutcomeCallable DBFSClient::insertSynchronizConstantsCallable(const InsertSynchronizConstantsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->insertSynchronizConstants(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DBFSClient::ListConstantsOutcome DBFSClient::listConstants(const ListConstantsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListConstantsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListConstantsOutcome(ListConstantsResult(outcome.result())); - else - return ListConstantsOutcome(outcome.error()); -} - -void DBFSClient::listConstantsAsync(const ListConstantsRequest& request, const ListConstantsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listConstants(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DBFSClient::ListConstantsOutcomeCallable DBFSClient::listConstantsCallable(const ListConstantsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listConstants(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DBFSClient::ListDbfsOutcome DBFSClient::listDbfs(const ListDbfsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -771,6 +555,78 @@ DBFSClient::ListDbfsOutcomeCallable DBFSClient::listDbfsCallable(const ListDbfsR return task->get_future(); } +DBFSClient::ListDbfsAttachableEcsInstancesOutcome DBFSClient::listDbfsAttachableEcsInstances(const ListDbfsAttachableEcsInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDbfsAttachableEcsInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDbfsAttachableEcsInstancesOutcome(ListDbfsAttachableEcsInstancesResult(outcome.result())); + else + return ListDbfsAttachableEcsInstancesOutcome(outcome.error()); +} + +void DBFSClient::listDbfsAttachableEcsInstancesAsync(const ListDbfsAttachableEcsInstancesRequest& request, const ListDbfsAttachableEcsInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDbfsAttachableEcsInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DBFSClient::ListDbfsAttachableEcsInstancesOutcomeCallable DBFSClient::listDbfsAttachableEcsInstancesCallable(const ListDbfsAttachableEcsInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDbfsAttachableEcsInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DBFSClient::ListDbfsAttachedEcsInstancesOutcome DBFSClient::listDbfsAttachedEcsInstances(const ListDbfsAttachedEcsInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDbfsAttachedEcsInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDbfsAttachedEcsInstancesOutcome(ListDbfsAttachedEcsInstancesResult(outcome.result())); + else + return ListDbfsAttachedEcsInstancesOutcome(outcome.error()); +} + +void DBFSClient::listDbfsAttachedEcsInstancesAsync(const ListDbfsAttachedEcsInstancesRequest& request, const ListDbfsAttachedEcsInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDbfsAttachedEcsInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DBFSClient::ListDbfsAttachedEcsInstancesOutcomeCallable DBFSClient::listDbfsAttachedEcsInstancesCallable(const ListDbfsAttachedEcsInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDbfsAttachedEcsInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DBFSClient::ListSnapshotOutcome DBFSClient::listSnapshot(const ListSnapshotRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,114 +735,6 @@ DBFSClient::ListTagValuesOutcomeCallable DBFSClient::listTagValuesCallable(const return task->get_future(); } -DBFSClient::ListTaskOutcome DBFSClient::listTask(const ListTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListTaskOutcome(ListTaskResult(outcome.result())); - else - return ListTaskOutcome(outcome.error()); -} - -void DBFSClient::listTaskAsync(const ListTaskRequest& request, const ListTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DBFSClient::ListTaskOutcomeCallable DBFSClient::listTaskCallable(const ListTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DBFSClient::OpreateConstantsOutcome DBFSClient::opreateConstants(const OpreateConstantsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return OpreateConstantsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return OpreateConstantsOutcome(OpreateConstantsResult(outcome.result())); - else - return OpreateConstantsOutcome(outcome.error()); -} - -void DBFSClient::opreateConstantsAsync(const OpreateConstantsRequest& request, const OpreateConstantsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, opreateConstants(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DBFSClient::OpreateConstantsOutcomeCallable DBFSClient::opreateConstantsCallable(const OpreateConstantsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->opreateConstants(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DBFSClient::PublishUpgradeTaskOutcome DBFSClient::publishUpgradeTask(const PublishUpgradeTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return PublishUpgradeTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return PublishUpgradeTaskOutcome(PublishUpgradeTaskResult(outcome.result())); - else - return PublishUpgradeTaskOutcome(outcome.error()); -} - -void DBFSClient::publishUpgradeTaskAsync(const PublishUpgradeTaskRequest& request, const PublishUpgradeTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, publishUpgradeTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DBFSClient::PublishUpgradeTaskOutcomeCallable DBFSClient::publishUpgradeTaskCallable(const PublishUpgradeTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->publishUpgradeTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DBFSClient::RenameDbfsOutcome DBFSClient::renameDbfs(const RenameDbfsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1023,42 +771,6 @@ DBFSClient::RenameDbfsOutcomeCallable DBFSClient::renameDbfsCallable(const Renam return task->get_future(); } -DBFSClient::ResetDbfsOutcome DBFSClient::resetDbfs(const ResetDbfsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ResetDbfsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ResetDbfsOutcome(ResetDbfsResult(outcome.result())); - else - return ResetDbfsOutcome(outcome.error()); -} - -void DBFSClient::resetDbfsAsync(const ResetDbfsRequest& request, const ResetDbfsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, resetDbfs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DBFSClient::ResetDbfsOutcomeCallable DBFSClient::resetDbfsCallable(const ResetDbfsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->resetDbfs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DBFSClient::ResizeDbfsOutcome DBFSClient::resizeDbfs(const ResizeDbfsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1095,42 +807,6 @@ DBFSClient::ResizeDbfsOutcomeCallable DBFSClient::resizeDbfsCallable(const Resiz return task->get_future(); } -DBFSClient::StopUpgradeTaskOutcome DBFSClient::stopUpgradeTask(const StopUpgradeTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StopUpgradeTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StopUpgradeTaskOutcome(StopUpgradeTaskResult(outcome.result())); - else - return StopUpgradeTaskOutcome(outcome.error()); -} - -void DBFSClient::stopUpgradeTaskAsync(const StopUpgradeTaskRequest& request, const StopUpgradeTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, stopUpgradeTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DBFSClient::StopUpgradeTaskOutcomeCallable DBFSClient::stopUpgradeTaskCallable(const StopUpgradeTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->stopUpgradeTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DBFSClient::TagDbfsOutcome DBFSClient::tagDbfs(const TagDbfsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1167,72 +843,36 @@ DBFSClient::TagDbfsOutcomeCallable DBFSClient::tagDbfsCallable(const TagDbfsRequ return task->get_future(); } -DBFSClient::UpdateConstantsOutcome DBFSClient::updateConstants(const UpdateConstantsRequest &request) const +DBFSClient::UpdateDbfsOutcome DBFSClient::updateDbfs(const UpdateDbfsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UpdateConstantsOutcome(endpointOutcome.error()); + return UpdateDbfsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UpdateConstantsOutcome(UpdateConstantsResult(outcome.result())); + return UpdateDbfsOutcome(UpdateDbfsResult(outcome.result())); else - return UpdateConstantsOutcome(outcome.error()); + return UpdateDbfsOutcome(outcome.error()); } -void DBFSClient::updateConstantsAsync(const UpdateConstantsRequest& request, const UpdateConstantsAsyncHandler& handler, const std::shared_ptr& context) const +void DBFSClient::updateDbfsAsync(const UpdateDbfsRequest& request, const UpdateDbfsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, updateConstants(request), context); + handler(this, request, updateDbfs(request), context); }; asyncExecute(new Runnable(fn)); } -DBFSClient::UpdateConstantsOutcomeCallable DBFSClient::updateConstantsCallable(const UpdateConstantsRequest &request) const +DBFSClient::UpdateDbfsOutcomeCallable DBFSClient::updateDbfsCallable(const UpdateDbfsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->updateConstants(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DBFSClient::UpdateTaskOutcome DBFSClient::updateTask(const UpdateTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateTaskOutcome(UpdateTaskResult(outcome.result())); - else - return UpdateTaskOutcome(outcome.error()); -} - -void DBFSClient::updateTaskAsync(const UpdateTaskRequest& request, const UpdateTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DBFSClient::UpdateTaskOutcomeCallable DBFSClient::updateTaskCallable(const UpdateTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateTask(request); + return this->updateDbfs(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/dbfs/src/model/AddTagsBatchRequest.cc b/dbfs/src/model/AddTagsBatchRequest.cc index 07253cd3a..9a1219455 100644 --- a/dbfs/src/model/AddTagsBatchRequest.cc +++ b/dbfs/src/model/AddTagsBatchRequest.cc @@ -1,73 +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::DBFS::Model::AddTagsBatchRequest; - -AddTagsBatchRequest::AddTagsBatchRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "AddTagsBatch") -{ - setMethod(HttpRequest::Method::Post); -} - -AddTagsBatchRequest::~AddTagsBatchRequest() -{} - -std::string AddTagsBatchRequest::getDbfsList()const -{ - return dbfsList_; + */ + +#include + +using AlibabaCloud::DBFS::Model::AddTagsBatchRequest; + +AddTagsBatchRequest::AddTagsBatchRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "AddTagsBatch") { + setMethod(HttpRequest::Method::Post); } -void AddTagsBatchRequest::setDbfsList(const std::string& dbfsList) -{ - dbfsList_ = dbfsList; - setParameter("DbfsList", dbfsList); +AddTagsBatchRequest::~AddTagsBatchRequest() {} + +std::string AddTagsBatchRequest::getDbfsList() const { + return dbfsList_; } -std::string AddTagsBatchRequest::getClientToken()const -{ - return clientToken_; +void AddTagsBatchRequest::setDbfsList(const std::string &dbfsList) { + dbfsList_ = dbfsList; + setParameter(std::string("DbfsList"), dbfsList); } -void AddTagsBatchRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AddTagsBatchRequest::getClientToken() const { + return clientToken_; } -std::string AddTagsBatchRequest::getTags()const -{ - return tags_; +void AddTagsBatchRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AddTagsBatchRequest::setTags(const std::string& tags) -{ - tags_ = tags; - setParameter("Tags", tags); +std::string AddTagsBatchRequest::getTags() const { + return tags_; } -std::string AddTagsBatchRequest::getRegionId()const -{ - return regionId_; +void AddTagsBatchRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); } -void AddTagsBatchRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AddTagsBatchRequest::getRegionId() const { + return regionId_; +} + +void AddTagsBatchRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/dbfs/src/model/AttachDbfsRequest.cc b/dbfs/src/model/AttachDbfsRequest.cc index ad566d1ed..cd9b23eb0 100644 --- a/dbfs/src/model/AttachDbfsRequest.cc +++ b/dbfs/src/model/AttachDbfsRequest.cc @@ -1,73 +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::DBFS::Model::AttachDbfsRequest; - -AttachDbfsRequest::AttachDbfsRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "AttachDbfs") -{ - setMethod(HttpRequest::Method::Post); -} - -AttachDbfsRequest::~AttachDbfsRequest() -{} - -std::string AttachDbfsRequest::getECSInstanceId()const -{ - return eCSInstanceId_; + */ + +#include + +using AlibabaCloud::DBFS::Model::AttachDbfsRequest; + +AttachDbfsRequest::AttachDbfsRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "AttachDbfs") { + setMethod(HttpRequest::Method::Post); } -void AttachDbfsRequest::setECSInstanceId(const std::string& eCSInstanceId) -{ - eCSInstanceId_ = eCSInstanceId; - setParameter("ECSInstanceId", eCSInstanceId); +AttachDbfsRequest::~AttachDbfsRequest() {} + +std::string AttachDbfsRequest::getECSInstanceId() const { + return eCSInstanceId_; } -std::string AttachDbfsRequest::getRegionId()const -{ - return regionId_; +void AttachDbfsRequest::setECSInstanceId(const std::string &eCSInstanceId) { + eCSInstanceId_ = eCSInstanceId; + setParameter(std::string("ECSInstanceId"), eCSInstanceId); } -void AttachDbfsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AttachDbfsRequest::getAttachPoint() const { + return attachPoint_; } -std::string AttachDbfsRequest::getServerUrl()const -{ - return serverUrl_; +void AttachDbfsRequest::setAttachPoint(const std::string &attachPoint) { + attachPoint_ = attachPoint; + setParameter(std::string("AttachPoint"), attachPoint); } -void AttachDbfsRequest::setServerUrl(const std::string& serverUrl) -{ - serverUrl_ = serverUrl; - setParameter("ServerUrl", serverUrl); +std::string AttachDbfsRequest::getRegionId() const { + return regionId_; } -std::string AttachDbfsRequest::getFsId()const -{ - return fsId_; +void AttachDbfsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AttachDbfsRequest::setFsId(const std::string& fsId) -{ - fsId_ = fsId; - setParameter("FsId", fsId); +std::string AttachDbfsRequest::getServerUrl() const { + return serverUrl_; +} + +void AttachDbfsRequest::setServerUrl(const std::string &serverUrl) { + serverUrl_ = serverUrl; + setParameter(std::string("ServerUrl"), serverUrl); +} + +std::string AttachDbfsRequest::getFsId() const { + return fsId_; +} + +void AttachDbfsRequest::setFsId(const std::string &fsId) { + fsId_ = fsId; + setParameter(std::string("FsId"), fsId); +} + +std::string AttachDbfsRequest::getAttachMode() const { + return attachMode_; +} + +void AttachDbfsRequest::setAttachMode(const std::string &attachMode) { + attachMode_ = attachMode; + setParameter(std::string("AttachMode"), attachMode); } diff --git a/dbfs/src/model/CreateConstantsRequest.cc b/dbfs/src/model/CreateConstantsRequest.cc deleted file mode 100644 index 6922221d6..000000000 --- a/dbfs/src/model/CreateConstantsRequest.cc +++ /dev/null @@ -1,73 +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::DBFS::Model::CreateConstantsRequest; - -CreateConstantsRequest::CreateConstantsRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "CreateConstants") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateConstantsRequest::~CreateConstantsRequest() -{} - -int CreateConstantsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void CreateConstantsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string CreateConstantsRequest::getRegionId()const -{ - return regionId_; -} - -void CreateConstantsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string CreateConstantsRequest::getConstantsData()const -{ - return constantsData_; -} - -void CreateConstantsRequest::setConstantsData(const std::string& constantsData) -{ - constantsData_ = constantsData; - setParameter("ConstantsData", constantsData); -} - -int CreateConstantsRequest::getPageSize()const -{ - return pageSize_; -} - -void CreateConstantsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/dbfs/src/model/CreateConstantsResult.cc b/dbfs/src/model/CreateConstantsResult.cc deleted file mode 100644 index f0db9c079..000000000 --- a/dbfs/src/model/CreateConstantsResult.cc +++ /dev/null @@ -1,72 +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::DBFS; -using namespace AlibabaCloud::DBFS::Model; - -CreateConstantsResult::CreateConstantsResult() : - ServiceResult() -{} - -CreateConstantsResult::CreateConstantsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateConstantsResult::~CreateConstantsResult() -{} - -void CreateConstantsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["PageSize"].isNull()) - pageSize_ = std::stol(value["PageSize"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); - -} - -long CreateConstantsResult::getTotalCount()const -{ - return totalCount_; -} - -long CreateConstantsResult::getPageSize()const -{ - return pageSize_; -} - -long CreateConstantsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::string CreateConstantsResult::getData()const -{ - return data_; -} - diff --git a/dbfs/src/model/CreateDbfsRequest.cc b/dbfs/src/model/CreateDbfsRequest.cc index 841017e36..1c046f507 100644 --- a/dbfs/src/model/CreateDbfsRequest.cc +++ b/dbfs/src/model/CreateDbfsRequest.cc @@ -1,183 +1,171 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::DBFS::Model::CreateDbfsRequest; - -CreateDbfsRequest::CreateDbfsRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "CreateDbfs") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateDbfsRequest::~CreateDbfsRequest() -{} - -int CreateDbfsRequest::getSizeG()const -{ - return sizeG_; + */ + +#include + +using AlibabaCloud::DBFS::Model::CreateDbfsRequest; + +CreateDbfsRequest::CreateDbfsRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "CreateDbfs") { + setMethod(HttpRequest::Method::Post); } -void CreateDbfsRequest::setSizeG(int sizeG) -{ - sizeG_ = sizeG; - setParameter("SizeG", std::to_string(sizeG)); +CreateDbfsRequest::~CreateDbfsRequest() {} + +int CreateDbfsRequest::getSizeG() const { + return sizeG_; } -std::string CreateDbfsRequest::getSnapshotId()const -{ - return snapshotId_; +void CreateDbfsRequest::setSizeG(int sizeG) { + sizeG_ = sizeG; + setParameter(std::string("SizeG"), std::to_string(sizeG)); } -void CreateDbfsRequest::setSnapshotId(const std::string& snapshotId) -{ - snapshotId_ = snapshotId; - setParameter("SnapshotId", snapshotId); +std::string CreateDbfsRequest::getSnapshotId() const { + return snapshotId_; } -std::string CreateDbfsRequest::getClientToken()const -{ - return clientToken_; +void CreateDbfsRequest::setSnapshotId(const std::string &snapshotId) { + snapshotId_ = snapshotId; + setParameter(std::string("SnapshotId"), snapshotId); } -void CreateDbfsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateDbfsRequest::getClientToken() const { + return clientToken_; } -std::string CreateDbfsRequest::getUsedScene()const -{ - return usedScene_; +void CreateDbfsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateDbfsRequest::setUsedScene(const std::string& usedScene) -{ - usedScene_ = usedScene; - setParameter("UsedScene", usedScene); +std::string CreateDbfsRequest::getUsedScene() const { + return usedScene_; } -std::string CreateDbfsRequest::getFsName()const -{ - return fsName_; +void CreateDbfsRequest::setUsedScene(const std::string &usedScene) { + usedScene_ = usedScene; + setParameter(std::string("UsedScene"), usedScene); } -void CreateDbfsRequest::setFsName(const std::string& fsName) -{ - fsName_ = fsName; - setParameter("FsName", fsName); +std::string CreateDbfsRequest::getFsName() const { + return fsName_; } -int CreateDbfsRequest::getRaidStripeUnitNumber()const -{ - return raidStripeUnitNumber_; +void CreateDbfsRequest::setFsName(const std::string &fsName) { + fsName_ = fsName; + setParameter(std::string("FsName"), fsName); } -void CreateDbfsRequest::setRaidStripeUnitNumber(int raidStripeUnitNumber) -{ - raidStripeUnitNumber_ = raidStripeUnitNumber; - setParameter("RaidStripeUnitNumber", std::to_string(raidStripeUnitNumber)); +int CreateDbfsRequest::getRaidStripeUnitNumber() const { + return raidStripeUnitNumber_; } -bool CreateDbfsRequest::getEncryption()const -{ - return encryption_; +void CreateDbfsRequest::setRaidStripeUnitNumber(int raidStripeUnitNumber) { + raidStripeUnitNumber_ = raidStripeUnitNumber; + setParameter(std::string("RaidStripeUnitNumber"), std::to_string(raidStripeUnitNumber)); } -void CreateDbfsRequest::setEncryption(bool encryption) -{ - encryption_ = encryption; - setParameter("Encryption", encryption ? "true" : "false"); +bool CreateDbfsRequest::getEncryption() const { + return encryption_; } -std::string CreateDbfsRequest::getRegionId()const -{ - return regionId_; +void CreateDbfsRequest::setEncryption(bool encryption) { + encryption_ = encryption; + setParameter(std::string("Encryption"), encryption ? "true" : "false"); } -void CreateDbfsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateDbfsRequest::getRegionId() const { + return regionId_; } -std::string CreateDbfsRequest::getPerformanceLevel()const -{ - return performanceLevel_; +void CreateDbfsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateDbfsRequest::setPerformanceLevel(const std::string& performanceLevel) -{ - performanceLevel_ = performanceLevel; - setParameter("PerformanceLevel", performanceLevel); +std::string CreateDbfsRequest::getInstanceType() const { + return instanceType_; } -bool CreateDbfsRequest::getEnableRaid()const -{ - return enableRaid_; +void CreateDbfsRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void CreateDbfsRequest::setEnableRaid(bool enableRaid) -{ - enableRaid_ = enableRaid; - setParameter("EnableRaid", enableRaid ? "true" : "false"); +std::string CreateDbfsRequest::getAdvancedFeatures() const { + return advancedFeatures_; } -bool CreateDbfsRequest::getDeleteSnapshot()const -{ - return deleteSnapshot_; +void CreateDbfsRequest::setAdvancedFeatures(const std::string &advancedFeatures) { + advancedFeatures_ = advancedFeatures; + setParameter(std::string("AdvancedFeatures"), advancedFeatures); } -void CreateDbfsRequest::setDeleteSnapshot(bool deleteSnapshot) -{ - deleteSnapshot_ = deleteSnapshot; - setParameter("DeleteSnapshot", deleteSnapshot ? "true" : "false"); +std::string CreateDbfsRequest::getPerformanceLevel() const { + return performanceLevel_; } -std::string CreateDbfsRequest::getZoneId()const -{ - return zoneId_; +void CreateDbfsRequest::setPerformanceLevel(const std::string &performanceLevel) { + performanceLevel_ = performanceLevel; + setParameter(std::string("PerformanceLevel"), performanceLevel); } -void CreateDbfsRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +bool CreateDbfsRequest::getEnableRaid() const { + return enableRaid_; } -std::string CreateDbfsRequest::getCategory()const -{ - return category_; +void CreateDbfsRequest::setEnableRaid(bool enableRaid) { + enableRaid_ = enableRaid; + setParameter(std::string("EnableRaid"), enableRaid ? "true" : "false"); } -void CreateDbfsRequest::setCategory(const std::string& category) -{ - category_ = category; - setParameter("Category", category); +bool CreateDbfsRequest::getDeleteSnapshot() const { + return deleteSnapshot_; } -std::string CreateDbfsRequest::getKMSKeyId()const -{ - return kMSKeyId_; +void CreateDbfsRequest::setDeleteSnapshot(bool deleteSnapshot) { + deleteSnapshot_ = deleteSnapshot; + setParameter(std::string("DeleteSnapshot"), deleteSnapshot ? "true" : "false"); } -void CreateDbfsRequest::setKMSKeyId(const std::string& kMSKeyId) -{ - kMSKeyId_ = kMSKeyId; - setParameter("KMSKeyId", kMSKeyId); +std::string CreateDbfsRequest::getZoneId() const { + return zoneId_; +} + +void CreateDbfsRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + +std::string CreateDbfsRequest::getCategory() const { + return category_; +} + +void CreateDbfsRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); +} + +std::string CreateDbfsRequest::getKMSKeyId() const { + return kMSKeyId_; +} + +void CreateDbfsRequest::setKMSKeyId(const std::string &kMSKeyId) { + kMSKeyId_ = kMSKeyId; + setParameter(std::string("KMSKeyId"), kMSKeyId); } diff --git a/dbfs/src/model/CreateServiceLinkedRoleRequest.cc b/dbfs/src/model/CreateServiceLinkedRoleRequest.cc index c7bd2d1e7..7c16bd386 100644 --- a/dbfs/src/model/CreateServiceLinkedRoleRequest.cc +++ b/dbfs/src/model/CreateServiceLinkedRoleRequest.cc @@ -1,51 +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::DBFS::Model::CreateServiceLinkedRoleRequest; - -CreateServiceLinkedRoleRequest::CreateServiceLinkedRoleRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "CreateServiceLinkedRole") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateServiceLinkedRoleRequest::~CreateServiceLinkedRoleRequest() -{} - -std::string CreateServiceLinkedRoleRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::DBFS::Model::CreateServiceLinkedRoleRequest; + +CreateServiceLinkedRoleRequest::CreateServiceLinkedRoleRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "CreateServiceLinkedRole") { + setMethod(HttpRequest::Method::Post); } -void CreateServiceLinkedRoleRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +CreateServiceLinkedRoleRequest::~CreateServiceLinkedRoleRequest() {} + +std::string CreateServiceLinkedRoleRequest::getClientToken() const { + return clientToken_; } -std::string CreateServiceLinkedRoleRequest::getRegionId()const -{ - return regionId_; +void CreateServiceLinkedRoleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateServiceLinkedRoleRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateServiceLinkedRoleRequest::getRegionId() const { + return regionId_; +} + +void CreateServiceLinkedRoleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/dbfs/src/model/CreateSnapshotRequest.cc b/dbfs/src/model/CreateSnapshotRequest.cc index 83adaa9ad..c77d766e0 100644 --- a/dbfs/src/model/CreateSnapshotRequest.cc +++ b/dbfs/src/model/CreateSnapshotRequest.cc @@ -1,95 +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::DBFS::Model::CreateSnapshotRequest; - -CreateSnapshotRequest::CreateSnapshotRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "CreateSnapshot") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSnapshotRequest::~CreateSnapshotRequest() -{} - -std::string CreateSnapshotRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::DBFS::Model::CreateSnapshotRequest; + +CreateSnapshotRequest::CreateSnapshotRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "CreateSnapshot") { + setMethod(HttpRequest::Method::Post); } -void CreateSnapshotRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +CreateSnapshotRequest::~CreateSnapshotRequest() {} + +std::string CreateSnapshotRequest::getClientToken() const { + return clientToken_; } -std::string CreateSnapshotRequest::getDescription()const -{ - return description_; +void CreateSnapshotRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateSnapshotRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateSnapshotRequest::getDescription() const { + return description_; } -std::string CreateSnapshotRequest::getSnapshotName()const -{ - return snapshotName_; +void CreateSnapshotRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateSnapshotRequest::setSnapshotName(const std::string& snapshotName) -{ - snapshotName_ = snapshotName; - setParameter("SnapshotName", snapshotName); +std::string CreateSnapshotRequest::getSnapshotName() const { + return snapshotName_; } -std::string CreateSnapshotRequest::getRegionId()const -{ - return regionId_; +void CreateSnapshotRequest::setSnapshotName(const std::string &snapshotName) { + snapshotName_ = snapshotName; + setParameter(std::string("SnapshotName"), snapshotName); } -void CreateSnapshotRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateSnapshotRequest::getRegionId() const { + return regionId_; } -std::string CreateSnapshotRequest::getFsId()const -{ - return fsId_; +void CreateSnapshotRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateSnapshotRequest::setFsId(const std::string& fsId) -{ - fsId_ = fsId; - setParameter("FsId", fsId); +std::string CreateSnapshotRequest::getFsId() const { + return fsId_; } -int CreateSnapshotRequest::getRetentionDays()const -{ - return retentionDays_; +void CreateSnapshotRequest::setFsId(const std::string &fsId) { + fsId_ = fsId; + setParameter(std::string("FsId"), fsId); } -void CreateSnapshotRequest::setRetentionDays(int retentionDays) -{ - retentionDays_ = retentionDays; - setParameter("RetentionDays", std::to_string(retentionDays)); +int CreateSnapshotRequest::getRetentionDays() const { + return retentionDays_; +} + +void CreateSnapshotRequest::setRetentionDays(int retentionDays) { + retentionDays_ = retentionDays; + setParameter(std::string("RetentionDays"), std::to_string(retentionDays)); } diff --git a/dbfs/src/model/DbfsRecordRequest.cc b/dbfs/src/model/DbfsRecordRequest.cc deleted file mode 100644 index ad5be743e..000000000 --- a/dbfs/src/model/DbfsRecordRequest.cc +++ /dev/null @@ -1,73 +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::DBFS::Model::DbfsRecordRequest; - -DbfsRecordRequest::DbfsRecordRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "DbfsRecord") -{ - setMethod(HttpRequest::Method::Post); -} - -DbfsRecordRequest::~DbfsRecordRequest() -{} - -std::string DbfsRecordRequest::getData()const -{ - return data_; -} - -void DbfsRecordRequest::setData(const std::string& data) -{ - data_ = data; - setParameter("Data", data); -} - -int DbfsRecordRequest::getPageNumber()const -{ - return pageNumber_; -} - -void DbfsRecordRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DbfsRecordRequest::getRegionId()const -{ - return regionId_; -} - -void DbfsRecordRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -int DbfsRecordRequest::getPageSize()const -{ - return pageSize_; -} - -void DbfsRecordRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/dbfs/src/model/DbfsRecordResult.cc b/dbfs/src/model/DbfsRecordResult.cc deleted file mode 100644 index d595dcc4d..000000000 --- a/dbfs/src/model/DbfsRecordResult.cc +++ /dev/null @@ -1,112 +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::DBFS; -using namespace AlibabaCloud::DBFS::Model; - -DbfsRecordResult::DbfsRecordResult() : - ServiceResult() -{} - -DbfsRecordResult::DbfsRecordResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DbfsRecordResult::~DbfsRecordResult() -{} - -void DbfsRecordResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allRecordsNode = value["Records"]["RecordsItem"]; - for (auto valueRecordsRecordsItem : allRecordsNode) - { - RecordsItem recordsObject; - if(!valueRecordsRecordsItem["Id"].isNull()) - recordsObject.id = std::stol(valueRecordsRecordsItem["Id"].asString()); - if(!valueRecordsRecordsItem["BatchStrategyNo"].isNull()) - recordsObject.batchStrategyNo = valueRecordsRecordsItem["BatchStrategyNo"].asString(); - if(!valueRecordsRecordsItem["AccountId"].isNull()) - recordsObject.accountId = valueRecordsRecordsItem["AccountId"].asString(); - if(!valueRecordsRecordsItem["DbfsId"].isNull()) - recordsObject.dbfsId = valueRecordsRecordsItem["DbfsId"].asString(); - if(!valueRecordsRecordsItem["EcsId"].isNull()) - recordsObject.ecsId = valueRecordsRecordsItem["EcsId"].asString(); - if(!valueRecordsRecordsItem["TaskId"].isNull()) - recordsObject.taskId = valueRecordsRecordsItem["TaskId"].asString(); - if(!valueRecordsRecordsItem["RegionId"].isNull()) - recordsObject.regionId = valueRecordsRecordsItem["RegionId"].asString(); - if(!valueRecordsRecordsItem["ZoneId"].isNull()) - recordsObject.zoneId = valueRecordsRecordsItem["ZoneId"].asString(); - if(!valueRecordsRecordsItem["State"].isNull()) - recordsObject.state = valueRecordsRecordsItem["State"].asString(); - if(!valueRecordsRecordsItem["CurrentVersion"].isNull()) - recordsObject.currentVersion = valueRecordsRecordsItem["CurrentVersion"].asString(); - if(!valueRecordsRecordsItem["TargetVersion"].isNull()) - recordsObject.targetVersion = valueRecordsRecordsItem["TargetVersion"].asString(); - if(!valueRecordsRecordsItem["UpgradeStartTime"].isNull()) - recordsObject.upgradeStartTime = std::stol(valueRecordsRecordsItem["UpgradeStartTime"].asString()); - if(!valueRecordsRecordsItem["UpgradeEndTime"].isNull()) - recordsObject.upgradeEndTime = std::stol(valueRecordsRecordsItem["UpgradeEndTime"].asString()); - if(!valueRecordsRecordsItem["TaskExecutionCounts"].isNull()) - recordsObject.taskExecutionCounts = std::stoi(valueRecordsRecordsItem["TaskExecutionCounts"].asString()); - if(!valueRecordsRecordsItem["TaskErrorReason"].isNull()) - recordsObject.taskErrorReason = valueRecordsRecordsItem["TaskErrorReason"].asString(); - if(!valueRecordsRecordsItem["CreateTime"].isNull()) - recordsObject.createTime = std::stol(valueRecordsRecordsItem["CreateTime"].asString()); - if(!valueRecordsRecordsItem["UpdateTime"].isNull()) - recordsObject.updateTime = std::stol(valueRecordsRecordsItem["UpdateTime"].asString()); - if(!valueRecordsRecordsItem["IsDel"].isNull()) - recordsObject.isDel = valueRecordsRecordsItem["IsDel"].asString(); - records_.push_back(recordsObject); - } - if(!value["PageNo"].isNull()) - pageNo_ = std::stol(value["PageNo"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stol(value["PageSize"].asString()); - if(!value["Total"].isNull()) - total_ = std::stol(value["Total"].asString()); - -} - -long DbfsRecordResult::getPageSize()const -{ - return pageSize_; -} - -long DbfsRecordResult::getTotal()const -{ - return total_; -} - -long DbfsRecordResult::getPageNo()const -{ - return pageNo_; -} - -std::vector DbfsRecordResult::getRecords()const -{ - return records_; -} - diff --git a/dbfs/src/model/DeleteConstantsRequest.cc b/dbfs/src/model/DeleteConstantsRequest.cc deleted file mode 100644 index 408b5b3b5..000000000 --- a/dbfs/src/model/DeleteConstantsRequest.cc +++ /dev/null @@ -1,73 +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::DBFS::Model::DeleteConstantsRequest; - -DeleteConstantsRequest::DeleteConstantsRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "DeleteConstants") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteConstantsRequest::~DeleteConstantsRequest() -{} - -int DeleteConstantsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void DeleteConstantsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DeleteConstantsRequest::getRegionId()const -{ - return regionId_; -} - -void DeleteConstantsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string DeleteConstantsRequest::getConstantsData()const -{ - return constantsData_; -} - -void DeleteConstantsRequest::setConstantsData(const std::string& constantsData) -{ - constantsData_ = constantsData; - setParameter("ConstantsData", constantsData); -} - -int DeleteConstantsRequest::getPageSize()const -{ - return pageSize_; -} - -void DeleteConstantsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/dbfs/src/model/DeleteConstantsResult.cc b/dbfs/src/model/DeleteConstantsResult.cc deleted file mode 100644 index 6f65d1c70..000000000 --- a/dbfs/src/model/DeleteConstantsResult.cc +++ /dev/null @@ -1,72 +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::DBFS; -using namespace AlibabaCloud::DBFS::Model; - -DeleteConstantsResult::DeleteConstantsResult() : - ServiceResult() -{} - -DeleteConstantsResult::DeleteConstantsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteConstantsResult::~DeleteConstantsResult() -{} - -void DeleteConstantsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["PageSize"].isNull()) - pageSize_ = std::stol(value["PageSize"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); - -} - -long DeleteConstantsResult::getTotalCount()const -{ - return totalCount_; -} - -long DeleteConstantsResult::getPageSize()const -{ - return pageSize_; -} - -long DeleteConstantsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::string DeleteConstantsResult::getData()const -{ - return data_; -} - diff --git a/dbfs/src/model/DeleteDbfsRequest.cc b/dbfs/src/model/DeleteDbfsRequest.cc index 22b626231..e393c34cb 100644 --- a/dbfs/src/model/DeleteDbfsRequest.cc +++ b/dbfs/src/model/DeleteDbfsRequest.cc @@ -1,51 +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::DBFS::Model::DeleteDbfsRequest; - -DeleteDbfsRequest::DeleteDbfsRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "DeleteDbfs") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteDbfsRequest::~DeleteDbfsRequest() -{} - -std::string DeleteDbfsRequest::getRegionId()const -{ - return regionId_; + */ + +#include + +using AlibabaCloud::DBFS::Model::DeleteDbfsRequest; + +DeleteDbfsRequest::DeleteDbfsRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "DeleteDbfs") { + setMethod(HttpRequest::Method::Post); } -void DeleteDbfsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +DeleteDbfsRequest::~DeleteDbfsRequest() {} + +std::string DeleteDbfsRequest::getRegionId() const { + return regionId_; } -std::string DeleteDbfsRequest::getFsId()const -{ - return fsId_; +void DeleteDbfsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteDbfsRequest::setFsId(const std::string& fsId) -{ - fsId_ = fsId; - setParameter("FsId", fsId); +std::string DeleteDbfsRequest::getFsId() const { + return fsId_; +} + +void DeleteDbfsRequest::setFsId(const std::string &fsId) { + fsId_ = fsId; + setParameter(std::string("FsId"), fsId); } diff --git a/dbfs/src/model/DeleteSnapshotRequest.cc b/dbfs/src/model/DeleteSnapshotRequest.cc index 5c8811f39..91a36129c 100644 --- a/dbfs/src/model/DeleteSnapshotRequest.cc +++ b/dbfs/src/model/DeleteSnapshotRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::DBFS::Model::DeleteSnapshotRequest; - -DeleteSnapshotRequest::DeleteSnapshotRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "DeleteSnapshot") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSnapshotRequest::~DeleteSnapshotRequest() -{} - -std::string DeleteSnapshotRequest::getSnapshotId()const -{ - return snapshotId_; + */ + +#include + +using AlibabaCloud::DBFS::Model::DeleteSnapshotRequest; + +DeleteSnapshotRequest::DeleteSnapshotRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "DeleteSnapshot") { + setMethod(HttpRequest::Method::Post); } -void DeleteSnapshotRequest::setSnapshotId(const std::string& snapshotId) -{ - snapshotId_ = snapshotId; - setParameter("SnapshotId", snapshotId); +DeleteSnapshotRequest::~DeleteSnapshotRequest() {} + +std::string DeleteSnapshotRequest::getSnapshotId() const { + return snapshotId_; } -std::string DeleteSnapshotRequest::getRegionId()const -{ - return regionId_; +void DeleteSnapshotRequest::setSnapshotId(const std::string &snapshotId) { + snapshotId_ = snapshotId; + setParameter(std::string("SnapshotId"), snapshotId); } -void DeleteSnapshotRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteSnapshotRequest::getRegionId() const { + return regionId_; } -bool DeleteSnapshotRequest::getForce()const -{ - return force_; +void DeleteSnapshotRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteSnapshotRequest::setForce(bool force) -{ - force_ = force; - setParameter("Force", force ? "true" : "false"); +bool DeleteSnapshotRequest::getForce() const { + return force_; +} + +void DeleteSnapshotRequest::setForce(bool force) { + force_ = force; + setParameter(std::string("Force"), force ? "true" : "false"); } diff --git a/dbfs/src/model/DeleteTagsBatchRequest.cc b/dbfs/src/model/DeleteTagsBatchRequest.cc index f61242d12..77c29be29 100644 --- a/dbfs/src/model/DeleteTagsBatchRequest.cc +++ b/dbfs/src/model/DeleteTagsBatchRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::DBFS::Model::DeleteTagsBatchRequest; - -DeleteTagsBatchRequest::DeleteTagsBatchRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "DeleteTagsBatch") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteTagsBatchRequest::~DeleteTagsBatchRequest() -{} - -std::string DeleteTagsBatchRequest::getDbfsList()const -{ - return dbfsList_; + */ + +#include + +using AlibabaCloud::DBFS::Model::DeleteTagsBatchRequest; + +DeleteTagsBatchRequest::DeleteTagsBatchRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "DeleteTagsBatch") { + setMethod(HttpRequest::Method::Post); } -void DeleteTagsBatchRequest::setDbfsList(const std::string& dbfsList) -{ - dbfsList_ = dbfsList; - setParameter("DbfsList", dbfsList); +DeleteTagsBatchRequest::~DeleteTagsBatchRequest() {} + +std::string DeleteTagsBatchRequest::getDbfsList() const { + return dbfsList_; } -std::string DeleteTagsBatchRequest::getTags()const -{ - return tags_; +void DeleteTagsBatchRequest::setDbfsList(const std::string &dbfsList) { + dbfsList_ = dbfsList; + setParameter(std::string("DbfsList"), dbfsList); } -void DeleteTagsBatchRequest::setTags(const std::string& tags) -{ - tags_ = tags; - setParameter("Tags", tags); +std::string DeleteTagsBatchRequest::getTags() const { + return tags_; } -std::string DeleteTagsBatchRequest::getRegionId()const -{ - return regionId_; +void DeleteTagsBatchRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); } -void DeleteTagsBatchRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteTagsBatchRequest::getRegionId() const { + return regionId_; +} + +void DeleteTagsBatchRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/dbfs/src/model/DescribeDbfsSpecificationsRequest.cc b/dbfs/src/model/DescribeDbfsSpecificationsRequest.cc index 18b5b08e5..e63ab1963 100644 --- a/dbfs/src/model/DescribeDbfsSpecificationsRequest.cc +++ b/dbfs/src/model/DescribeDbfsSpecificationsRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::DBFS::Model::DescribeDbfsSpecificationsRequest; - -DescribeDbfsSpecificationsRequest::DescribeDbfsSpecificationsRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "DescribeDbfsSpecifications") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDbfsSpecificationsRequest::~DescribeDbfsSpecificationsRequest() -{} - -std::string DescribeDbfsSpecificationsRequest::getEcsInstanceType()const -{ - return ecsInstanceType_; + */ + +#include + +using AlibabaCloud::DBFS::Model::DescribeDbfsSpecificationsRequest; + +DescribeDbfsSpecificationsRequest::DescribeDbfsSpecificationsRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "DescribeDbfsSpecifications") { + setMethod(HttpRequest::Method::Post); } -void DescribeDbfsSpecificationsRequest::setEcsInstanceType(const std::string& ecsInstanceType) -{ - ecsInstanceType_ = ecsInstanceType; - setParameter("EcsInstanceType", ecsInstanceType); +DescribeDbfsSpecificationsRequest::~DescribeDbfsSpecificationsRequest() {} + +std::string DescribeDbfsSpecificationsRequest::getEcsInstanceType() const { + return ecsInstanceType_; } -std::string DescribeDbfsSpecificationsRequest::getRegionId()const -{ - return regionId_; +void DescribeDbfsSpecificationsRequest::setEcsInstanceType(const std::string &ecsInstanceType) { + ecsInstanceType_ = ecsInstanceType; + setParameter(std::string("EcsInstanceType"), ecsInstanceType); } -void DescribeDbfsSpecificationsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeDbfsSpecificationsRequest::getRegionId() const { + return regionId_; } -std::string DescribeDbfsSpecificationsRequest::getCategory()const -{ - return category_; +void DescribeDbfsSpecificationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeDbfsSpecificationsRequest::setCategory(const std::string& category) -{ - category_ = category; - setParameter("Category", category); +std::string DescribeDbfsSpecificationsRequest::getCategory() const { + return category_; +} + +void DescribeDbfsSpecificationsRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); } diff --git a/dbfs/src/model/DescribeInstanceTypesRequest.cc b/dbfs/src/model/DescribeInstanceTypesRequest.cc new file mode 100644 index 000000000..88d2e9733 --- /dev/null +++ b/dbfs/src/model/DescribeInstanceTypesRequest.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::DBFS::Model::DescribeInstanceTypesRequest; + +DescribeInstanceTypesRequest::DescribeInstanceTypesRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "DescribeInstanceTypes") { + setMethod(HttpRequest::Method::Post); +} + +DescribeInstanceTypesRequest::~DescribeInstanceTypesRequest() {} + +std::string DescribeInstanceTypesRequest::getRegionId() const { + return regionId_; +} + +void DescribeInstanceTypesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/dbfs/src/model/DescribeInstanceTypesResult.cc b/dbfs/src/model/DescribeInstanceTypesResult.cc new file mode 100644 index 000000000..954554d08 --- /dev/null +++ b/dbfs/src/model/DescribeInstanceTypesResult.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 +#include + +using namespace AlibabaCloud::DBFS; +using namespace AlibabaCloud::DBFS::Model; + +DescribeInstanceTypesResult::DescribeInstanceTypesResult() : + ServiceResult() +{} + +DescribeInstanceTypesResult::DescribeInstanceTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceTypesResult::~DescribeInstanceTypesResult() +{} + +void DescribeInstanceTypesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceTypesNode = value["InstanceTypes"]["InstanceTypesItem"]; + for (auto valueInstanceTypesInstanceTypesItem : allInstanceTypesNode) + { + InstanceTypesItem instanceTypesObject; + if(!valueInstanceTypesInstanceTypesItem["InstanceTypeId"].isNull()) + instanceTypesObject.instanceTypeId = valueInstanceTypesInstanceTypesItem["InstanceTypeId"].asString(); + if(!valueInstanceTypesInstanceTypesItem["CpuCoreCount"].isNull()) + instanceTypesObject.cpuCoreCount = std::stof(valueInstanceTypesInstanceTypesItem["CpuCoreCount"].asString()); + if(!valueInstanceTypesInstanceTypesItem["MemorySize"].isNull()) + instanceTypesObject.memorySize = std::stof(valueInstanceTypesInstanceTypesItem["MemorySize"].asString()); + if(!valueInstanceTypesInstanceTypesItem["InstanceTypeDescription"].isNull()) + instanceTypesObject.instanceTypeDescription = valueInstanceTypesInstanceTypesItem["InstanceTypeDescription"].asString(); + instanceTypes_.push_back(instanceTypesObject); + } + +} + +std::vector DescribeInstanceTypesResult::getInstanceTypes()const +{ + return instanceTypes_; +} + diff --git a/dbfs/src/model/DetachDbfsRequest.cc b/dbfs/src/model/DetachDbfsRequest.cc index 5d16f7a73..89a2d4050 100644 --- a/dbfs/src/model/DetachDbfsRequest.cc +++ b/dbfs/src/model/DetachDbfsRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::DBFS::Model::DetachDbfsRequest; - -DetachDbfsRequest::DetachDbfsRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "DetachDbfs") -{ - setMethod(HttpRequest::Method::Post); -} - -DetachDbfsRequest::~DetachDbfsRequest() -{} - -std::string DetachDbfsRequest::getECSInstanceId()const -{ - return eCSInstanceId_; + */ + +#include + +using AlibabaCloud::DBFS::Model::DetachDbfsRequest; + +DetachDbfsRequest::DetachDbfsRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "DetachDbfs") { + setMethod(HttpRequest::Method::Post); } -void DetachDbfsRequest::setECSInstanceId(const std::string& eCSInstanceId) -{ - eCSInstanceId_ = eCSInstanceId; - setParameter("ECSInstanceId", eCSInstanceId); +DetachDbfsRequest::~DetachDbfsRequest() {} + +std::string DetachDbfsRequest::getECSInstanceId() const { + return eCSInstanceId_; } -std::string DetachDbfsRequest::getRegionId()const -{ - return regionId_; +void DetachDbfsRequest::setECSInstanceId(const std::string &eCSInstanceId) { + eCSInstanceId_ = eCSInstanceId; + setParameter(std::string("ECSInstanceId"), eCSInstanceId); } -void DetachDbfsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DetachDbfsRequest::getRegionId() const { + return regionId_; } -std::string DetachDbfsRequest::getFsId()const -{ - return fsId_; +void DetachDbfsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DetachDbfsRequest::setFsId(const std::string& fsId) -{ - fsId_ = fsId; - setParameter("FsId", fsId); +std::string DetachDbfsRequest::getFsId() const { + return fsId_; +} + +void DetachDbfsRequest::setFsId(const std::string &fsId) { + fsId_ = fsId; + setParameter(std::string("FsId"), fsId); } diff --git a/dbfs/src/model/GenerateUpgradeRecordRequest.cc b/dbfs/src/model/GenerateUpgradeRecordRequest.cc deleted file mode 100644 index 83b89e4b9..000000000 --- a/dbfs/src/model/GenerateUpgradeRecordRequest.cc +++ /dev/null @@ -1,73 +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::DBFS::Model::GenerateUpgradeRecordRequest; - -GenerateUpgradeRecordRequest::GenerateUpgradeRecordRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "GenerateUpgradeRecord") -{ - setMethod(HttpRequest::Method::Post); -} - -GenerateUpgradeRecordRequest::~GenerateUpgradeRecordRequest() -{} - -int GenerateUpgradeRecordRequest::getPageNumber()const -{ - return pageNumber_; -} - -void GenerateUpgradeRecordRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string GenerateUpgradeRecordRequest::getBatchStrategyList()const -{ - return batchStrategyList_; -} - -void GenerateUpgradeRecordRequest::setBatchStrategyList(const std::string& batchStrategyList) -{ - batchStrategyList_ = batchStrategyList; - setParameter("BatchStrategyList", batchStrategyList); -} - -std::string GenerateUpgradeRecordRequest::getRegionId()const -{ - return regionId_; -} - -void GenerateUpgradeRecordRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -int GenerateUpgradeRecordRequest::getPageSize()const -{ - return pageSize_; -} - -void GenerateUpgradeRecordRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/dbfs/src/model/GenerateUpgradeRecordResult.cc b/dbfs/src/model/GenerateUpgradeRecordResult.cc deleted file mode 100644 index f1259212c..000000000 --- a/dbfs/src/model/GenerateUpgradeRecordResult.cc +++ /dev/null @@ -1,89 +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::DBFS; -using namespace AlibabaCloud::DBFS::Model; - -GenerateUpgradeRecordResult::GenerateUpgradeRecordResult() : - ServiceResult() -{} - -GenerateUpgradeRecordResult::GenerateUpgradeRecordResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GenerateUpgradeRecordResult::~GenerateUpgradeRecordResult() -{} - -void GenerateUpgradeRecordResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allRecordsNode = value["Records"]["RecordsItem"]; - for (auto valueRecordsRecordsItem : allRecordsNode) - { - RecordsItem recordsObject; - if(!valueRecordsRecordsItem["Id"].isNull()) - recordsObject.id = std::stol(valueRecordsRecordsItem["Id"].asString()); - if(!valueRecordsRecordsItem["BatchStrategyNo"].isNull()) - recordsObject.batchStrategyNo = valueRecordsRecordsItem["BatchStrategyNo"].asString(); - if(!valueRecordsRecordsItem["AccountId"].isNull()) - recordsObject.accountId = valueRecordsRecordsItem["AccountId"].asString(); - if(!valueRecordsRecordsItem["DbfsId"].isNull()) - recordsObject.dbfsId = valueRecordsRecordsItem["DbfsId"].asString(); - if(!valueRecordsRecordsItem["EcsId"].isNull()) - recordsObject.ecsId = valueRecordsRecordsItem["EcsId"].asString(); - if(!valueRecordsRecordsItem["TaskId"].isNull()) - recordsObject.taskId = valueRecordsRecordsItem["TaskId"].asString(); - if(!valueRecordsRecordsItem["RegionId"].isNull()) - recordsObject.regionId = valueRecordsRecordsItem["RegionId"].asString(); - if(!valueRecordsRecordsItem["ZoneId"].isNull()) - recordsObject.zoneId = valueRecordsRecordsItem["ZoneId"].asString(); - if(!valueRecordsRecordsItem["State"].isNull()) - recordsObject.state = valueRecordsRecordsItem["State"].asString(); - if(!valueRecordsRecordsItem["CurrentVersion"].isNull()) - recordsObject.currentVersion = valueRecordsRecordsItem["CurrentVersion"].asString(); - if(!valueRecordsRecordsItem["TargetVersion"].isNull()) - recordsObject.targetVersion = valueRecordsRecordsItem["TargetVersion"].asString(); - if(!valueRecordsRecordsItem["UpgradeStartTime"].isNull()) - recordsObject.upgradeStartTime = std::stol(valueRecordsRecordsItem["UpgradeStartTime"].asString()); - if(!valueRecordsRecordsItem["UpgradeEndTime"].isNull()) - recordsObject.upgradeEndTime = std::stol(valueRecordsRecordsItem["UpgradeEndTime"].asString()); - if(!valueRecordsRecordsItem["TaskExecutionCounts"].isNull()) - recordsObject.taskExecutionCounts = std::stoi(valueRecordsRecordsItem["TaskExecutionCounts"].asString()); - if(!valueRecordsRecordsItem["TaskErrorReason"].isNull()) - recordsObject.taskErrorReason = valueRecordsRecordsItem["TaskErrorReason"].asString(); - if(!valueRecordsRecordsItem["CreateTime"].isNull()) - recordsObject.createTime = std::stol(valueRecordsRecordsItem["CreateTime"].asString()); - if(!valueRecordsRecordsItem["UpdateTime"].isNull()) - recordsObject.updateTime = std::stol(valueRecordsRecordsItem["UpdateTime"].asString()); - records_.push_back(recordsObject); - } - -} - -std::vector GenerateUpgradeRecordResult::getRecords()const -{ - return records_; -} - diff --git a/dbfs/src/model/GetDbfsRequest.cc b/dbfs/src/model/GetDbfsRequest.cc index 6c59be92e..e60985ffb 100644 --- a/dbfs/src/model/GetDbfsRequest.cc +++ b/dbfs/src/model/GetDbfsRequest.cc @@ -1,51 +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::DBFS::Model::GetDbfsRequest; - -GetDbfsRequest::GetDbfsRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "GetDbfs") -{ - setMethod(HttpRequest::Method::Post); -} - -GetDbfsRequest::~GetDbfsRequest() -{} - -std::string GetDbfsRequest::getRegionId()const -{ - return regionId_; + */ + +#include + +using AlibabaCloud::DBFS::Model::GetDbfsRequest; + +GetDbfsRequest::GetDbfsRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "GetDbfs") { + setMethod(HttpRequest::Method::Post); } -void GetDbfsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +GetDbfsRequest::~GetDbfsRequest() {} + +std::string GetDbfsRequest::getRegionId() const { + return regionId_; } -std::string GetDbfsRequest::getFsId()const -{ - return fsId_; +void GetDbfsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void GetDbfsRequest::setFsId(const std::string& fsId) -{ - fsId_ = fsId; - setParameter("FsId", fsId); +std::string GetDbfsRequest::getFsId() const { + return fsId_; +} + +void GetDbfsRequest::setFsId(const std::string &fsId) { + fsId_ = fsId; + setParameter(std::string("FsId"), fsId); } diff --git a/dbfs/src/model/GetDbfsResult.cc b/dbfs/src/model/GetDbfsResult.cc index 8bbdd6180..6304d6419 100644 --- a/dbfs/src/model/GetDbfsResult.cc +++ b/dbfs/src/model/GetDbfsResult.cc @@ -78,8 +78,12 @@ void GetDbfsResult::parse(const std::string &payload) dBFSInfo_.lastUmountTime = dBFSInfoNode["LastUmountTime"].asString(); if(!dBFSInfoNode["EnableRaid"].isNull()) dBFSInfo_.enableRaid = dBFSInfoNode["EnableRaid"].asString() == "true"; + if(!dBFSInfoNode["InstanceType"].isNull()) + dBFSInfo_.instanceType = dBFSInfoNode["InstanceType"].asString(); if(!dBFSInfoNode["RaidStrip"].isNull()) dBFSInfo_.raidStrip = std::stoi(dBFSInfoNode["RaidStrip"].asString()); + if(!dBFSInfoNode["LastFailed"].isNull()) + dBFSInfo_.lastFailed = dBFSInfoNode["LastFailed"].asString(); auto allTagsNode = dBFSInfoNode["Tags"]["TagList"]; for (auto dBFSInfoNodeTagsTagList : allTagsNode) { diff --git a/dbfs/src/model/GetServiceLinkedRoleRequest.cc b/dbfs/src/model/GetServiceLinkedRoleRequest.cc index c4788d55a..4693bd729 100644 --- a/dbfs/src/model/GetServiceLinkedRoleRequest.cc +++ b/dbfs/src/model/GetServiceLinkedRoleRequest.cc @@ -1,40 +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::DBFS::Model::GetServiceLinkedRoleRequest; - -GetServiceLinkedRoleRequest::GetServiceLinkedRoleRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "GetServiceLinkedRole") -{ - setMethod(HttpRequest::Method::Post); -} - -GetServiceLinkedRoleRequest::~GetServiceLinkedRoleRequest() -{} - -std::string GetServiceLinkedRoleRequest::getRegionId()const -{ - return regionId_; + */ + +#include + +using AlibabaCloud::DBFS::Model::GetServiceLinkedRoleRequest; + +GetServiceLinkedRoleRequest::GetServiceLinkedRoleRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "GetServiceLinkedRole") { + setMethod(HttpRequest::Method::Post); } -void GetServiceLinkedRoleRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +GetServiceLinkedRoleRequest::~GetServiceLinkedRoleRequest() {} + +std::string GetServiceLinkedRoleRequest::getRegionId() const { + return regionId_; +} + +void GetServiceLinkedRoleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/dbfs/src/model/GetServiceLinkedRoleResult.cc b/dbfs/src/model/GetServiceLinkedRoleResult.cc index 9f79c5c16..b0732c976 100644 --- a/dbfs/src/model/GetServiceLinkedRoleResult.cc +++ b/dbfs/src/model/GetServiceLinkedRoleResult.cc @@ -41,10 +41,10 @@ void GetServiceLinkedRoleResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["AccountId"].isNull()) accountId_ = value["AccountId"].asString(); - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); if(!value["DbfsLinkedRole"].isNull()) dbfsLinkedRole_ = value["DbfsLinkedRole"].asString() == "true"; + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); } diff --git a/dbfs/src/model/GetSynchronizConstantsRequest.cc b/dbfs/src/model/GetSynchronizConstantsRequest.cc deleted file mode 100644 index 37dbe1855..000000000 --- a/dbfs/src/model/GetSynchronizConstantsRequest.cc +++ /dev/null @@ -1,62 +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::DBFS::Model::GetSynchronizConstantsRequest; - -GetSynchronizConstantsRequest::GetSynchronizConstantsRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "GetSynchronizConstants") -{ - setMethod(HttpRequest::Method::Post); -} - -GetSynchronizConstantsRequest::~GetSynchronizConstantsRequest() -{} - -int GetSynchronizConstantsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void GetSynchronizConstantsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string GetSynchronizConstantsRequest::getRegionId()const -{ - return regionId_; -} - -void GetSynchronizConstantsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -int GetSynchronizConstantsRequest::getPageSize()const -{ - return pageSize_; -} - -void GetSynchronizConstantsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/dbfs/src/model/GetSynchronizConstantsResult.cc b/dbfs/src/model/GetSynchronizConstantsResult.cc deleted file mode 100644 index ee3cd3fa5..000000000 --- a/dbfs/src/model/GetSynchronizConstantsResult.cc +++ /dev/null @@ -1,121 +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::DBFS; -using namespace AlibabaCloud::DBFS::Model; - -GetSynchronizConstantsResult::GetSynchronizConstantsResult() : - ServiceResult() -{} - -GetSynchronizConstantsResult::GetSynchronizConstantsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetSynchronizConstantsResult::~GetSynchronizConstantsResult() -{} - -void GetSynchronizConstantsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["PageSize"].isNull()) - pageSize_ = std::stol(value["PageSize"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); - if(!value["RegionData"].isNull()) - regionData_ = value["RegionData"].asString(); - if(!value["ZoneData"].isNull()) - zoneData_ = value["ZoneData"].asString(); - if(!value["OsversionData"].isNull()) - osversionData_ = value["OsversionData"].asString(); - if(!value["ProductCodeData"].isNull()) - productCodeData_ = value["ProductCodeData"].asString(); - if(!value["MasterData"].isNull()) - masterData_ = value["MasterData"].asString(); - if(!value["EndpointData"].isNull()) - endpointData_ = value["EndpointData"].asString(); - if(!value["AccessData"].isNull()) - accessData_ = value["AccessData"].asString(); - -} - -long GetSynchronizConstantsResult::getTotalCount()const -{ - return totalCount_; -} - -std::string GetSynchronizConstantsResult::getMasterData()const -{ - return masterData_; -} - -long GetSynchronizConstantsResult::getPageSize()const -{ - return pageSize_; -} - -std::string GetSynchronizConstantsResult::getZoneData()const -{ - return zoneData_; -} - -long GetSynchronizConstantsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::string GetSynchronizConstantsResult::getAccessData()const -{ - return accessData_; -} - -std::string GetSynchronizConstantsResult::getProductCodeData()const -{ - return productCodeData_; -} - -std::string GetSynchronizConstantsResult::getOsversionData()const -{ - return osversionData_; -} - -std::string GetSynchronizConstantsResult::getData()const -{ - return data_; -} - -std::string GetSynchronizConstantsResult::getRegionData()const -{ - return regionData_; -} - -std::string GetSynchronizConstantsResult::getEndpointData()const -{ - return endpointData_; -} - diff --git a/dbfs/src/model/InsertSynchronizConstantsRequest.cc b/dbfs/src/model/InsertSynchronizConstantsRequest.cc deleted file mode 100644 index 7a07fa5f8..000000000 --- a/dbfs/src/model/InsertSynchronizConstantsRequest.cc +++ /dev/null @@ -1,139 +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::DBFS::Model::InsertSynchronizConstantsRequest; - -InsertSynchronizConstantsRequest::InsertSynchronizConstantsRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "InsertSynchronizConstants") -{ - setMethod(HttpRequest::Method::Post); -} - -InsertSynchronizConstantsRequest::~InsertSynchronizConstantsRequest() -{} - -std::string InsertSynchronizConstantsRequest::getZoneData()const -{ - return zoneData_; -} - -void InsertSynchronizConstantsRequest::setZoneData(const std::string& zoneData) -{ - zoneData_ = zoneData; - setParameter("ZoneData", zoneData); -} - -std::string InsertSynchronizConstantsRequest::getOsversionData()const -{ - return osversionData_; -} - -void InsertSynchronizConstantsRequest::setOsversionData(const std::string& osversionData) -{ - osversionData_ = osversionData; - setParameter("OsversionData", osversionData); -} - -std::string InsertSynchronizConstantsRequest::getEndpointData()const -{ - return endpointData_; -} - -void InsertSynchronizConstantsRequest::setEndpointData(const std::string& endpointData) -{ - endpointData_ = endpointData; - setParameter("EndpointData", endpointData); -} - -int InsertSynchronizConstantsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void InsertSynchronizConstantsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string InsertSynchronizConstantsRequest::getMasterData()const -{ - return masterData_; -} - -void InsertSynchronizConstantsRequest::setMasterData(const std::string& masterData) -{ - masterData_ = masterData; - setParameter("MasterData", masterData); -} - -std::string InsertSynchronizConstantsRequest::getRegionId()const -{ - return regionId_; -} - -void InsertSynchronizConstantsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string InsertSynchronizConstantsRequest::getProductCodeData()const -{ - return productCodeData_; -} - -void InsertSynchronizConstantsRequest::setProductCodeData(const std::string& productCodeData) -{ - productCodeData_ = productCodeData; - setParameter("ProductCodeData", productCodeData); -} - -int InsertSynchronizConstantsRequest::getPageSize()const -{ - return pageSize_; -} - -void InsertSynchronizConstantsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string InsertSynchronizConstantsRequest::getAccessData()const -{ - return accessData_; -} - -void InsertSynchronizConstantsRequest::setAccessData(const std::string& accessData) -{ - accessData_ = accessData; - setParameter("AccessData", accessData); -} - -std::string InsertSynchronizConstantsRequest::getRegionData()const -{ - return regionData_; -} - -void InsertSynchronizConstantsRequest::setRegionData(const std::string& regionData) -{ - regionData_ = regionData; - setParameter("RegionData", regionData); -} - diff --git a/dbfs/src/model/InsertSynchronizConstantsResult.cc b/dbfs/src/model/InsertSynchronizConstantsResult.cc deleted file mode 100644 index 2cb24d6af..000000000 --- a/dbfs/src/model/InsertSynchronizConstantsResult.cc +++ /dev/null @@ -1,72 +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::DBFS; -using namespace AlibabaCloud::DBFS::Model; - -InsertSynchronizConstantsResult::InsertSynchronizConstantsResult() : - ServiceResult() -{} - -InsertSynchronizConstantsResult::InsertSynchronizConstantsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -InsertSynchronizConstantsResult::~InsertSynchronizConstantsResult() -{} - -void InsertSynchronizConstantsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["PageSize"].isNull()) - pageSize_ = std::stol(value["PageSize"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); - -} - -long InsertSynchronizConstantsResult::getTotalCount()const -{ - return totalCount_; -} - -long InsertSynchronizConstantsResult::getPageSize()const -{ - return pageSize_; -} - -long InsertSynchronizConstantsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::string InsertSynchronizConstantsResult::getData()const -{ - return data_; -} - diff --git a/dbfs/src/model/ListConstantsRequest.cc b/dbfs/src/model/ListConstantsRequest.cc deleted file mode 100644 index 80970204d..000000000 --- a/dbfs/src/model/ListConstantsRequest.cc +++ /dev/null @@ -1,73 +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::DBFS::Model::ListConstantsRequest; - -ListConstantsRequest::ListConstantsRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "ListConstants") -{ - setMethod(HttpRequest::Method::Post); -} - -ListConstantsRequest::~ListConstantsRequest() -{} - -int ListConstantsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListConstantsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListConstantsRequest::getRegionId()const -{ - return regionId_; -} - -void ListConstantsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string ListConstantsRequest::getConstantsData()const -{ - return constantsData_; -} - -void ListConstantsRequest::setConstantsData(const std::string& constantsData) -{ - constantsData_ = constantsData; - setParameter("ConstantsData", constantsData); -} - -int ListConstantsRequest::getPageSize()const -{ - return pageSize_; -} - -void ListConstantsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/dbfs/src/model/ListConstantsResult.cc b/dbfs/src/model/ListConstantsResult.cc deleted file mode 100644 index 15da75f7e..000000000 --- a/dbfs/src/model/ListConstantsResult.cc +++ /dev/null @@ -1,72 +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::DBFS; -using namespace AlibabaCloud::DBFS::Model; - -ListConstantsResult::ListConstantsResult() : - ServiceResult() -{} - -ListConstantsResult::ListConstantsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListConstantsResult::~ListConstantsResult() -{} - -void ListConstantsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["PageSize"].isNull()) - pageSize_ = std::stol(value["PageSize"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); - -} - -long ListConstantsResult::getTotalCount()const -{ - return totalCount_; -} - -long ListConstantsResult::getPageSize()const -{ - return pageSize_; -} - -long ListConstantsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::string ListConstantsResult::getData()const -{ - return data_; -} - diff --git a/dbfs/src/model/ListDbfsAttachableEcsInstancesRequest.cc b/dbfs/src/model/ListDbfsAttachableEcsInstancesRequest.cc new file mode 100644 index 000000000..69d33702b --- /dev/null +++ b/dbfs/src/model/ListDbfsAttachableEcsInstancesRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::DBFS::Model::ListDbfsAttachableEcsInstancesRequest; + +ListDbfsAttachableEcsInstancesRequest::ListDbfsAttachableEcsInstancesRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "ListDbfsAttachableEcsInstances") { + setMethod(HttpRequest::Method::Post); +} + +ListDbfsAttachableEcsInstancesRequest::~ListDbfsAttachableEcsInstancesRequest() {} + +std::string ListDbfsAttachableEcsInstancesRequest::getRegionId() const { + return regionId_; +} + +void ListDbfsAttachableEcsInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int ListDbfsAttachableEcsInstancesRequest::getPageSize() const { + return pageSize_; +} + +void ListDbfsAttachableEcsInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +int ListDbfsAttachableEcsInstancesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListDbfsAttachableEcsInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + diff --git a/dbfs/src/model/ListDbfsAttachableEcsInstancesResult.cc b/dbfs/src/model/ListDbfsAttachableEcsInstancesResult.cc new file mode 100644 index 000000000..11979a05b --- /dev/null +++ b/dbfs/src/model/ListDbfsAttachableEcsInstancesResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::DBFS; +using namespace AlibabaCloud::DBFS::Model; + +ListDbfsAttachableEcsInstancesResult::ListDbfsAttachableEcsInstancesResult() : + ServiceResult() +{} + +ListDbfsAttachableEcsInstancesResult::ListDbfsAttachableEcsInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDbfsAttachableEcsInstancesResult::~ListDbfsAttachableEcsInstancesResult() +{} + +void ListDbfsAttachableEcsInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEcsLabelInfoNode = value["EcsLabelInfo"]["LabelInfo"]; + for (auto valueEcsLabelInfoLabelInfo : allEcsLabelInfoNode) + { + LabelInfo ecsLabelInfoObject; + if(!valueEcsLabelInfoLabelInfo["value"].isNull()) + ecsLabelInfoObject.value = valueEcsLabelInfoLabelInfo["value"].asString(); + if(!valueEcsLabelInfoLabelInfo["label"].isNull()) + ecsLabelInfoObject.label = valueEcsLabelInfoLabelInfo["label"].asString(); + if(!valueEcsLabelInfoLabelInfo["InstanceTypeFamily"].isNull()) + ecsLabelInfoObject.instanceTypeFamily = valueEcsLabelInfoLabelInfo["InstanceTypeFamily"].asString(); + if(!valueEcsLabelInfoLabelInfo["OSName"].isNull()) + ecsLabelInfoObject.oSName = valueEcsLabelInfoLabelInfo["OSName"].asString(); + if(!valueEcsLabelInfoLabelInfo["Status"].isNull()) + ecsLabelInfoObject.status = valueEcsLabelInfoLabelInfo["Status"].asString(); + if(!valueEcsLabelInfoLabelInfo["ZoneId"].isNull()) + ecsLabelInfoObject.zoneId = valueEcsLabelInfoLabelInfo["ZoneId"].asString(); + ecsLabelInfo_.push_back(ecsLabelInfoObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListDbfsAttachableEcsInstancesResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListDbfsAttachableEcsInstancesResult::getEcsLabelInfo()const +{ + return ecsLabelInfo_; +} + diff --git a/dbfs/src/model/ListDbfsAttachedEcsInstancesRequest.cc b/dbfs/src/model/ListDbfsAttachedEcsInstancesRequest.cc new file mode 100644 index 000000000..c129f5f9c --- /dev/null +++ b/dbfs/src/model/ListDbfsAttachedEcsInstancesRequest.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::DBFS::Model::ListDbfsAttachedEcsInstancesRequest; + +ListDbfsAttachedEcsInstancesRequest::ListDbfsAttachedEcsInstancesRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "ListDbfsAttachedEcsInstances") { + setMethod(HttpRequest::Method::Post); +} + +ListDbfsAttachedEcsInstancesRequest::~ListDbfsAttachedEcsInstancesRequest() {} + +std::string ListDbfsAttachedEcsInstancesRequest::getRegionId() const { + return regionId_; +} + +void ListDbfsAttachedEcsInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListDbfsAttachedEcsInstancesRequest::getFsId() const { + return fsId_; +} + +void ListDbfsAttachedEcsInstancesRequest::setFsId(const std::string &fsId) { + fsId_ = fsId; + setParameter(std::string("FsId"), fsId); +} + diff --git a/dbfs/src/model/ListDbfsAttachedEcsInstancesResult.cc b/dbfs/src/model/ListDbfsAttachedEcsInstancesResult.cc new file mode 100644 index 000000000..8c2e82992 --- /dev/null +++ b/dbfs/src/model/ListDbfsAttachedEcsInstancesResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::DBFS; +using namespace AlibabaCloud::DBFS::Model; + +ListDbfsAttachedEcsInstancesResult::ListDbfsAttachedEcsInstancesResult() : + ServiceResult() +{} + +ListDbfsAttachedEcsInstancesResult::ListDbfsAttachedEcsInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDbfsAttachedEcsInstancesResult::~ListDbfsAttachedEcsInstancesResult() +{} + +void ListDbfsAttachedEcsInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEcsLabelInfoNode = value["EcsLabelInfo"]["LabelInfo"]; + for (auto valueEcsLabelInfoLabelInfo : allEcsLabelInfoNode) + { + LabelInfo ecsLabelInfoObject; + if(!valueEcsLabelInfoLabelInfo["MountPoint"].isNull()) + ecsLabelInfoObject.mountPoint = valueEcsLabelInfoLabelInfo["MountPoint"].asString(); + if(!valueEcsLabelInfoLabelInfo["value"].isNull()) + ecsLabelInfoObject.value = valueEcsLabelInfoLabelInfo["value"].asString(); + if(!valueEcsLabelInfoLabelInfo["label"].isNull()) + ecsLabelInfoObject.label = valueEcsLabelInfoLabelInfo["label"].asString(); + if(!valueEcsLabelInfoLabelInfo["MountedTime"].isNull()) + ecsLabelInfoObject.mountedTime = valueEcsLabelInfoLabelInfo["MountedTime"].asString(); + if(!valueEcsLabelInfoLabelInfo["InstanceTypeFamily"].isNull()) + ecsLabelInfoObject.instanceTypeFamily = valueEcsLabelInfoLabelInfo["InstanceTypeFamily"].asString(); + if(!valueEcsLabelInfoLabelInfo["OSName"].isNull()) + ecsLabelInfoObject.oSName = valueEcsLabelInfoLabelInfo["OSName"].asString(); + ecsLabelInfo_.push_back(ecsLabelInfoObject); + } + +} + +std::vector ListDbfsAttachedEcsInstancesResult::getEcsLabelInfo()const +{ + return ecsLabelInfo_; +} + diff --git a/dbfs/src/model/ListDbfsRequest.cc b/dbfs/src/model/ListDbfsRequest.cc index 3eb63dac9..35ea6ce75 100644 --- a/dbfs/src/model/ListDbfsRequest.cc +++ b/dbfs/src/model/ListDbfsRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::DBFS::Model::ListDbfsRequest; - -ListDbfsRequest::ListDbfsRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "ListDbfs") -{ - setMethod(HttpRequest::Method::Post); -} - -ListDbfsRequest::~ListDbfsRequest() -{} - -std::string ListDbfsRequest::getSortType()const -{ - return sortType_; + */ + +#include + +using AlibabaCloud::DBFS::Model::ListDbfsRequest; + +ListDbfsRequest::ListDbfsRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "ListDbfs") { + setMethod(HttpRequest::Method::Post); } -void ListDbfsRequest::setSortType(const std::string& sortType) -{ - sortType_ = sortType; - setParameter("SortType", sortType); +ListDbfsRequest::~ListDbfsRequest() {} + +std::string ListDbfsRequest::getSortType() const { + return sortType_; } -std::string ListDbfsRequest::getFilterValue()const -{ - return filterValue_; +void ListDbfsRequest::setSortType(const std::string &sortType) { + sortType_ = sortType; + setParameter(std::string("SortType"), sortType); } -void ListDbfsRequest::setFilterValue(const std::string& filterValue) -{ - filterValue_ = filterValue; - setParameter("FilterValue", filterValue); +std::string ListDbfsRequest::getFilterValue() const { + return filterValue_; } -int ListDbfsRequest::getPageNumber()const -{ - return pageNumber_; +void ListDbfsRequest::setFilterValue(const std::string &filterValue) { + filterValue_ = filterValue; + setParameter(std::string("FilterValue"), filterValue); } -void ListDbfsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListDbfsRequest::getPageNumber() const { + return pageNumber_; } -std::string ListDbfsRequest::getTags()const -{ - return tags_; +void ListDbfsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListDbfsRequest::setTags(const std::string& tags) -{ - tags_ = tags; - setParameter("Tags", tags); +std::string ListDbfsRequest::getTags() const { + return tags_; } -std::string ListDbfsRequest::getFilterKey()const -{ - return filterKey_; +void ListDbfsRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); } -void ListDbfsRequest::setFilterKey(const std::string& filterKey) -{ - filterKey_ = filterKey; - setParameter("FilterKey", filterKey); +std::string ListDbfsRequest::getFilterKey() const { + return filterKey_; } -std::string ListDbfsRequest::getSortKey()const -{ - return sortKey_; +void ListDbfsRequest::setFilterKey(const std::string &filterKey) { + filterKey_ = filterKey; + setParameter(std::string("FilterKey"), filterKey); } -void ListDbfsRequest::setSortKey(const std::string& sortKey) -{ - sortKey_ = sortKey; - setParameter("SortKey", sortKey); +std::string ListDbfsRequest::getSortKey() const { + return sortKey_; } -std::string ListDbfsRequest::getRegionId()const -{ - return regionId_; +void ListDbfsRequest::setSortKey(const std::string &sortKey) { + sortKey_ = sortKey; + setParameter(std::string("SortKey"), sortKey); } -void ListDbfsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListDbfsRequest::getRegionId() const { + return regionId_; } -int ListDbfsRequest::getPageSize()const -{ - return pageSize_; +void ListDbfsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListDbfsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListDbfsRequest::getPageSize() const { + return pageSize_; +} + +void ListDbfsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/dbfs/src/model/ListDbfsResult.cc b/dbfs/src/model/ListDbfsResult.cc index 10f7d3217..a138b5cc1 100644 --- a/dbfs/src/model/ListDbfsResult.cc +++ b/dbfs/src/model/ListDbfsResult.cc @@ -81,6 +81,10 @@ void ListDbfsResult::parse(const std::string &payload) dBFSInfoObject.enableRaid = valueDBFSInfoInfo["EnableRaid"].asString() == "true"; if(!valueDBFSInfoInfo["RaidStrip"].isNull()) dBFSInfoObject.raidStrip = std::stoi(valueDBFSInfoInfo["RaidStrip"].asString()); + if(!valueDBFSInfoInfo["InstanceType"].isNull()) + dBFSInfoObject.instanceType = valueDBFSInfoInfo["InstanceType"].asString(); + if(!valueDBFSInfoInfo["LastFailed"].isNull()) + dBFSInfoObject.lastFailed = valueDBFSInfoInfo["LastFailed"].asString(); auto allTagsNode = valueDBFSInfoInfo["Tags"]["TagList"]; for (auto valueDBFSInfoInfoTagsTagList : allTagsNode) { diff --git a/dbfs/src/model/ListSnapshotRequest.cc b/dbfs/src/model/ListSnapshotRequest.cc index 62b38a3c7..8bc822751 100644 --- a/dbfs/src/model/ListSnapshotRequest.cc +++ b/dbfs/src/model/ListSnapshotRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::DBFS::Model::ListSnapshotRequest; - -ListSnapshotRequest::ListSnapshotRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "ListSnapshot") -{ - setMethod(HttpRequest::Method::Post); -} - -ListSnapshotRequest::~ListSnapshotRequest() -{} - -std::string ListSnapshotRequest::getSortType()const -{ - return sortType_; + */ + +#include + +using AlibabaCloud::DBFS::Model::ListSnapshotRequest; + +ListSnapshotRequest::ListSnapshotRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "ListSnapshot") { + setMethod(HttpRequest::Method::Post); } -void ListSnapshotRequest::setSortType(const std::string& sortType) -{ - sortType_ = sortType; - setParameter("SortType", sortType); +ListSnapshotRequest::~ListSnapshotRequest() {} + +std::string ListSnapshotRequest::getSortType() const { + return sortType_; } -std::string ListSnapshotRequest::getSnapshotIds()const -{ - return snapshotIds_; +void ListSnapshotRequest::setSortType(const std::string &sortType) { + sortType_ = sortType; + setParameter(std::string("SortType"), sortType); } -void ListSnapshotRequest::setSnapshotIds(const std::string& snapshotIds) -{ - snapshotIds_ = snapshotIds; - setParameter("SnapshotIds", snapshotIds); +std::string ListSnapshotRequest::getSnapshotIds() const { + return snapshotIds_; } -std::string ListSnapshotRequest::getFilterValue()const -{ - return filterValue_; +void ListSnapshotRequest::setSnapshotIds(const std::string &snapshotIds) { + snapshotIds_ = snapshotIds; + setParameter(std::string("SnapshotIds"), snapshotIds); } -void ListSnapshotRequest::setFilterValue(const std::string& filterValue) -{ - filterValue_ = filterValue; - setParameter("FilterValue", filterValue); +std::string ListSnapshotRequest::getFilterValue() const { + return filterValue_; } -std::string ListSnapshotRequest::getSnapshotName()const -{ - return snapshotName_; +void ListSnapshotRequest::setFilterValue(const std::string &filterValue) { + filterValue_ = filterValue; + setParameter(std::string("FilterValue"), filterValue); } -void ListSnapshotRequest::setSnapshotName(const std::string& snapshotName) -{ - snapshotName_ = snapshotName; - setParameter("SnapshotName", snapshotName); +std::string ListSnapshotRequest::getSnapshotName() const { + return snapshotName_; } -int ListSnapshotRequest::getPageNumber()const -{ - return pageNumber_; +void ListSnapshotRequest::setSnapshotName(const std::string &snapshotName) { + snapshotName_ = snapshotName; + setParameter(std::string("SnapshotName"), snapshotName); } -void ListSnapshotRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListSnapshotRequest::getPageNumber() const { + return pageNumber_; } -std::string ListSnapshotRequest::getFilterKey()const -{ - return filterKey_; +void ListSnapshotRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListSnapshotRequest::setFilterKey(const std::string& filterKey) -{ - filterKey_ = filterKey; - setParameter("FilterKey", filterKey); +std::string ListSnapshotRequest::getFilterKey() const { + return filterKey_; } -std::string ListSnapshotRequest::getSortKey()const -{ - return sortKey_; +void ListSnapshotRequest::setFilterKey(const std::string &filterKey) { + filterKey_ = filterKey; + setParameter(std::string("FilterKey"), filterKey); } -void ListSnapshotRequest::setSortKey(const std::string& sortKey) -{ - sortKey_ = sortKey; - setParameter("SortKey", sortKey); +std::string ListSnapshotRequest::getSortKey() const { + return sortKey_; } -std::string ListSnapshotRequest::getRegionId()const -{ - return regionId_; +void ListSnapshotRequest::setSortKey(const std::string &sortKey) { + sortKey_ = sortKey; + setParameter(std::string("SortKey"), sortKey); } -void ListSnapshotRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListSnapshotRequest::getRegionId() const { + return regionId_; } -int ListSnapshotRequest::getPageSize()const -{ - return pageSize_; +void ListSnapshotRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListSnapshotRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListSnapshotRequest::getPageSize() const { + return pageSize_; } -std::string ListSnapshotRequest::getFsId()const -{ - return fsId_; +void ListSnapshotRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListSnapshotRequest::setFsId(const std::string& fsId) -{ - fsId_ = fsId; - setParameter("FsId", fsId); +std::string ListSnapshotRequest::getFsId() const { + return fsId_; } -std::string ListSnapshotRequest::getSnapshotType()const -{ - return snapshotType_; +void ListSnapshotRequest::setFsId(const std::string &fsId) { + fsId_ = fsId; + setParameter(std::string("FsId"), fsId); } -void ListSnapshotRequest::setSnapshotType(const std::string& snapshotType) -{ - snapshotType_ = snapshotType; - setParameter("SnapshotType", snapshotType); +std::string ListSnapshotRequest::getSnapshotType() const { + return snapshotType_; } -std::string ListSnapshotRequest::getStatus()const -{ - return status_; +void ListSnapshotRequest::setSnapshotType(const std::string &snapshotType) { + snapshotType_ = snapshotType; + setParameter(std::string("SnapshotType"), snapshotType); } -void ListSnapshotRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string ListSnapshotRequest::getStatus() const { + return status_; +} + +void ListSnapshotRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/dbfs/src/model/ListSnapshotResult.cc b/dbfs/src/model/ListSnapshotResult.cc index 4a552f08b..81a91a9d0 100644 --- a/dbfs/src/model/ListSnapshotResult.cc +++ b/dbfs/src/model/ListSnapshotResult.cc @@ -43,40 +43,42 @@ void ListSnapshotResult::parse(const std::string &payload) for (auto valueSnapshotsSnapshotsItem : allSnapshotsNode) { SnapshotsItem snapshotsObject; - if(!valueSnapshotsSnapshotsItem["Category"].isNull()) - snapshotsObject.category = valueSnapshotsSnapshotsItem["Category"].asString(); - if(!valueSnapshotsSnapshotsItem["CreationTime"].isNull()) - snapshotsObject.creationTime = valueSnapshotsSnapshotsItem["CreationTime"].asString(); - if(!valueSnapshotsSnapshotsItem["Description"].isNull()) - snapshotsObject.description = valueSnapshotsSnapshotsItem["Description"].asString(); - if(!valueSnapshotsSnapshotsItem["LastModifiedTime"].isNull()) - snapshotsObject.lastModifiedTime = valueSnapshotsSnapshotsItem["LastModifiedTime"].asString(); - if(!valueSnapshotsSnapshotsItem["Progress"].isNull()) - snapshotsObject.progress = valueSnapshotsSnapshotsItem["Progress"].asString(); - if(!valueSnapshotsSnapshotsItem["RemainTime"].isNull()) - snapshotsObject.remainTime = std::stoi(valueSnapshotsSnapshotsItem["RemainTime"].asString()); - if(!valueSnapshotsSnapshotsItem["RetentionDays"].isNull()) - snapshotsObject.retentionDays = std::stoi(valueSnapshotsSnapshotsItem["RetentionDays"].asString()); - if(!valueSnapshotsSnapshotsItem["SnapshotId"].isNull()) - snapshotsObject.snapshotId = valueSnapshotsSnapshotsItem["SnapshotId"].asString(); - if(!valueSnapshotsSnapshotsItem["SnapshotName"].isNull()) - snapshotsObject.snapshotName = valueSnapshotsSnapshotsItem["SnapshotName"].asString(); - if(!valueSnapshotsSnapshotsItem["SnapshotType"].isNull()) - snapshotsObject.snapshotType = valueSnapshotsSnapshotsItem["SnapshotType"].asString(); if(!valueSnapshotsSnapshotsItem["Status"].isNull()) snapshotsObject.status = valueSnapshotsSnapshotsItem["Status"].asString(); - if(!valueSnapshotsSnapshotsItem["SourceFsId"].isNull()) - snapshotsObject.sourceFsId = valueSnapshotsSnapshotsItem["SourceFsId"].asString(); + if(!valueSnapshotsSnapshotsItem["CreationTime"].isNull()) + snapshotsObject.creationTime = valueSnapshotsSnapshotsItem["CreationTime"].asString(); + if(!valueSnapshotsSnapshotsItem["Progress"].isNull()) + snapshotsObject.progress = valueSnapshotsSnapshotsItem["Progress"].asString(); if(!valueSnapshotsSnapshotsItem["SourceFsSize"].isNull()) snapshotsObject.sourceFsSize = std::stoi(valueSnapshotsSnapshotsItem["SourceFsSize"].asString()); + if(!valueSnapshotsSnapshotsItem["RetentionDays"].isNull()) + snapshotsObject.retentionDays = std::stoi(valueSnapshotsSnapshotsItem["RetentionDays"].asString()); + if(!valueSnapshotsSnapshotsItem["RemainTime"].isNull()) + snapshotsObject.remainTime = std::stoi(valueSnapshotsSnapshotsItem["RemainTime"].asString()); + if(!valueSnapshotsSnapshotsItem["LastModifiedTime"].isNull()) + snapshotsObject.lastModifiedTime = valueSnapshotsSnapshotsItem["LastModifiedTime"].asString(); + if(!valueSnapshotsSnapshotsItem["SnapshotType"].isNull()) + snapshotsObject.snapshotType = valueSnapshotsSnapshotsItem["SnapshotType"].asString(); + if(!valueSnapshotsSnapshotsItem["SnapshotName"].isNull()) + snapshotsObject.snapshotName = valueSnapshotsSnapshotsItem["SnapshotName"].asString(); + if(!valueSnapshotsSnapshotsItem["Description"].isNull()) + snapshotsObject.description = valueSnapshotsSnapshotsItem["Description"].asString(); + if(!valueSnapshotsSnapshotsItem["SourceFsId"].isNull()) + snapshotsObject.sourceFsId = valueSnapshotsSnapshotsItem["SourceFsId"].asString(); + if(!valueSnapshotsSnapshotsItem["SnapshotId"].isNull()) + snapshotsObject.snapshotId = valueSnapshotsSnapshotsItem["SnapshotId"].asString(); + if(!valueSnapshotsSnapshotsItem["Category"].isNull()) + snapshotsObject.category = valueSnapshotsSnapshotsItem["Category"].asString(); + if(!valueSnapshotsSnapshotsItem["SourceFsStripeWidth"].isNull()) + snapshotsObject.sourceFsStripeWidth = std::stoi(valueSnapshotsSnapshotsItem["SourceFsStripeWidth"].asString()); snapshots_.push_back(snapshotsObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/dbfs/src/model/ListTagKeysRequest.cc b/dbfs/src/model/ListTagKeysRequest.cc index e3e136c4e..c064f40c7 100644 --- a/dbfs/src/model/ListTagKeysRequest.cc +++ b/dbfs/src/model/ListTagKeysRequest.cc @@ -1,40 +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::DBFS::Model::ListTagKeysRequest; - -ListTagKeysRequest::ListTagKeysRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "ListTagKeys") -{ - setMethod(HttpRequest::Method::Post); -} - -ListTagKeysRequest::~ListTagKeysRequest() -{} - -std::string ListTagKeysRequest::getRegionId()const -{ - return regionId_; + */ + +#include + +using AlibabaCloud::DBFS::Model::ListTagKeysRequest; + +ListTagKeysRequest::ListTagKeysRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "ListTagKeys") { + setMethod(HttpRequest::Method::Post); } -void ListTagKeysRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +ListTagKeysRequest::~ListTagKeysRequest() {} + +std::string ListTagKeysRequest::getRegionId() const { + return regionId_; +} + +void ListTagKeysRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/dbfs/src/model/ListTagValuesRequest.cc b/dbfs/src/model/ListTagValuesRequest.cc index 4e010a493..6e719a790 100644 --- a/dbfs/src/model/ListTagValuesRequest.cc +++ b/dbfs/src/model/ListTagValuesRequest.cc @@ -1,51 +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::DBFS::Model::ListTagValuesRequest; - -ListTagValuesRequest::ListTagValuesRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "ListTagValues") -{ - setMethod(HttpRequest::Method::Post); -} - -ListTagValuesRequest::~ListTagValuesRequest() -{} - -std::string ListTagValuesRequest::getRegionId()const -{ - return regionId_; + */ + +#include + +using AlibabaCloud::DBFS::Model::ListTagValuesRequest; + +ListTagValuesRequest::ListTagValuesRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "ListTagValues") { + setMethod(HttpRequest::Method::Post); } -void ListTagValuesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +ListTagValuesRequest::~ListTagValuesRequest() {} + +std::string ListTagValuesRequest::getRegionId() const { + return regionId_; } -std::string ListTagValuesRequest::getTagKey()const -{ - return tagKey_; +void ListTagValuesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListTagValuesRequest::setTagKey(const std::string& tagKey) -{ - tagKey_ = tagKey; - setParameter("TagKey", tagKey); +std::string ListTagValuesRequest::getTagKey() const { + return tagKey_; +} + +void ListTagValuesRequest::setTagKey(const std::string &tagKey) { + tagKey_ = tagKey; + setParameter(std::string("TagKey"), tagKey); } diff --git a/dbfs/src/model/ListTaskRequest.cc b/dbfs/src/model/ListTaskRequest.cc deleted file mode 100644 index 19e2c85e7..000000000 --- a/dbfs/src/model/ListTaskRequest.cc +++ /dev/null @@ -1,106 +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::DBFS::Model::ListTaskRequest; - -ListTaskRequest::ListTaskRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "ListTask") -{ - setMethod(HttpRequest::Method::Post); -} - -ListTaskRequest::~ListTaskRequest() -{} - -std::string ListTaskRequest::getSortType()const -{ - return sortType_; -} - -void ListTaskRequest::setSortType(const std::string& sortType) -{ - sortType_ = sortType; - setParameter("SortType", sortType); -} - -std::string ListTaskRequest::getFilterValue()const -{ - return filterValue_; -} - -void ListTaskRequest::setFilterValue(const std::string& filterValue) -{ - filterValue_ = filterValue; - setParameter("FilterValue", filterValue); -} - -int ListTaskRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListTaskRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListTaskRequest::getFilterKey()const -{ - return filterKey_; -} - -void ListTaskRequest::setFilterKey(const std::string& filterKey) -{ - filterKey_ = filterKey; - setParameter("FilterKey", filterKey); -} - -std::string ListTaskRequest::getSortKey()const -{ - return sortKey_; -} - -void ListTaskRequest::setSortKey(const std::string& sortKey) -{ - sortKey_ = sortKey; - setParameter("SortKey", sortKey); -} - -std::string ListTaskRequest::getRegionId()const -{ - return regionId_; -} - -void ListTaskRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -int ListTaskRequest::getPageSize()const -{ - return pageSize_; -} - -void ListTaskRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/dbfs/src/model/ListTaskResult.cc b/dbfs/src/model/ListTaskResult.cc deleted file mode 100644 index 3167a3b01..000000000 --- a/dbfs/src/model/ListTaskResult.cc +++ /dev/null @@ -1,112 +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::DBFS; -using namespace AlibabaCloud::DBFS::Model; - -ListTaskResult::ListTaskResult() : - ServiceResult() -{} - -ListTaskResult::ListTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListTaskResult::~ListTaskResult() -{} - -void ListTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allTasksNode = value["Tasks"]["TasksItem"]; - for (auto valueTasksTasksItem : allTasksNode) - { - TasksItem tasksObject; - if(!valueTasksTasksItem["Id"].isNull()) - tasksObject.id = std::stoi(valueTasksTasksItem["Id"].asString()); - if(!valueTasksTasksItem["TaskName"].isNull()) - tasksObject.taskName = valueTasksTasksItem["TaskName"].asString(); - if(!valueTasksTasksItem["TaskType"].isNull()) - tasksObject.taskType = valueTasksTasksItem["TaskType"].asString(); - if(!valueTasksTasksItem["TaskOwner"].isNull()) - tasksObject.taskOwner = valueTasksTasksItem["TaskOwner"].asString(); - if(!valueTasksTasksItem["TaskAdder"].isNull()) - tasksObject.taskAdder = valueTasksTasksItem["TaskAdder"].asString(); - if(!valueTasksTasksItem["TaskRunner"].isNull()) - tasksObject.taskRunner = valueTasksTasksItem["TaskRunner"].asString(); - if(!valueTasksTasksItem["TaskProgress"].isNull()) - tasksObject.taskProgress = std::stoi(valueTasksTasksItem["TaskProgress"].asString()); - if(!valueTasksTasksItem["TaskProgressDescription"].isNull()) - tasksObject.taskProgressDescription = valueTasksTasksItem["TaskProgressDescription"].asString(); - if(!valueTasksTasksItem["TaskStatus"].isNull()) - tasksObject.taskStatus = valueTasksTasksItem["TaskStatus"].asString(); - if(!valueTasksTasksItem["ClientToken"].isNull()) - tasksObject.clientToken = valueTasksTasksItem["ClientToken"].asString(); - if(!valueTasksTasksItem["CreatedTime"].isNull()) - tasksObject.createdTime = valueTasksTasksItem["CreatedTime"].asString(); - if(!valueTasksTasksItem["CompletionTime"].isNull()) - tasksObject.completionTime = valueTasksTasksItem["CompletionTime"].asString(); - if(!valueTasksTasksItem["Priority"].isNull()) - tasksObject.priority = valueTasksTasksItem["Priority"].asString(); - if(!valueTasksTasksItem["MaxRetry"].isNull()) - tasksObject.maxRetry = std::stoi(valueTasksTasksItem["MaxRetry"].asString()); - if(!valueTasksTasksItem["NextExecutionTime"].isNull()) - tasksObject.nextExecutionTime = valueTasksTasksItem["NextExecutionTime"].asString(); - if(!valueTasksTasksItem["TaskExecutionCounts"].isNull()) - tasksObject.taskExecutionCounts = std::stoi(valueTasksTasksItem["TaskExecutionCounts"].asString()); - if(!valueTasksTasksItem["TaskErrorReason"].isNull()) - tasksObject.taskErrorReason = valueTasksTasksItem["TaskErrorReason"].asString(); - if(!valueTasksTasksItem["TaskStatusCode"].isNull()) - tasksObject.taskStatusCode = std::stoi(valueTasksTasksItem["TaskStatusCode"].asString()); - tasks_.push_back(tasksObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -int ListTaskResult::getTotalCount()const -{ - return totalCount_; -} - -std::vector ListTaskResult::getTasks()const -{ - return tasks_; -} - -int ListTaskResult::getPageSize()const -{ - return pageSize_; -} - -int ListTaskResult::getPageNumber()const -{ - return pageNumber_; -} - diff --git a/dbfs/src/model/OpreateConstantsRequest.cc b/dbfs/src/model/OpreateConstantsRequest.cc deleted file mode 100644 index bc4e6bb26..000000000 --- a/dbfs/src/model/OpreateConstantsRequest.cc +++ /dev/null @@ -1,73 +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::DBFS::Model::OpreateConstantsRequest; - -OpreateConstantsRequest::OpreateConstantsRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "OpreateConstants") -{ - setMethod(HttpRequest::Method::Post); -} - -OpreateConstantsRequest::~OpreateConstantsRequest() -{} - -int OpreateConstantsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void OpreateConstantsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string OpreateConstantsRequest::getRegionId()const -{ - return regionId_; -} - -void OpreateConstantsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string OpreateConstantsRequest::getConstantsData()const -{ - return constantsData_; -} - -void OpreateConstantsRequest::setConstantsData(const std::string& constantsData) -{ - constantsData_ = constantsData; - setParameter("ConstantsData", constantsData); -} - -int OpreateConstantsRequest::getPageSize()const -{ - return pageSize_; -} - -void OpreateConstantsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/dbfs/src/model/OpreateConstantsResult.cc b/dbfs/src/model/OpreateConstantsResult.cc deleted file mode 100644 index c15015b8e..000000000 --- a/dbfs/src/model/OpreateConstantsResult.cc +++ /dev/null @@ -1,121 +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::DBFS; -using namespace AlibabaCloud::DBFS::Model; - -OpreateConstantsResult::OpreateConstantsResult() : - ServiceResult() -{} - -OpreateConstantsResult::OpreateConstantsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -OpreateConstantsResult::~OpreateConstantsResult() -{} - -void OpreateConstantsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["MasterData"].isNull()) - masterData_ = value["MasterData"].asString(); - if(!value["PageSize"].isNull()) - pageSize_ = std::stol(value["PageSize"].asString()); - if(!value["ZoneData"].isNull()) - zoneData_ = value["ZoneData"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); - if(!value["AccessData"].isNull()) - accessData_ = value["AccessData"].asString(); - if(!value["ProductCodeData"].isNull()) - productCodeData_ = value["ProductCodeData"].asString(); - if(!value["OsversionData"].isNull()) - osversionData_ = value["OsversionData"].asString(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["RegionData"].isNull()) - regionData_ = value["RegionData"].asString(); - if(!value["EndpointData"].isNull()) - endpointData_ = value["EndpointData"].asString(); - -} - -long OpreateConstantsResult::getTotalCount()const -{ - return totalCount_; -} - -std::string OpreateConstantsResult::getMasterData()const -{ - return masterData_; -} - -long OpreateConstantsResult::getPageSize()const -{ - return pageSize_; -} - -std::string OpreateConstantsResult::getZoneData()const -{ - return zoneData_; -} - -long OpreateConstantsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::string OpreateConstantsResult::getAccessData()const -{ - return accessData_; -} - -std::string OpreateConstantsResult::getProductCodeData()const -{ - return productCodeData_; -} - -std::string OpreateConstantsResult::getOsversionData()const -{ - return osversionData_; -} - -std::string OpreateConstantsResult::getData()const -{ - return data_; -} - -std::string OpreateConstantsResult::getRegionData()const -{ - return regionData_; -} - -std::string OpreateConstantsResult::getEndpointData()const -{ - return endpointData_; -} - diff --git a/dbfs/src/model/PublishUpgradeTaskRequest.cc b/dbfs/src/model/PublishUpgradeTaskRequest.cc deleted file mode 100644 index 95882e996..000000000 --- a/dbfs/src/model/PublishUpgradeTaskRequest.cc +++ /dev/null @@ -1,73 +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::DBFS::Model::PublishUpgradeTaskRequest; - -PublishUpgradeTaskRequest::PublishUpgradeTaskRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "PublishUpgradeTask") -{ - setMethod(HttpRequest::Method::Post); -} - -PublishUpgradeTaskRequest::~PublishUpgradeTaskRequest() -{} - -int PublishUpgradeTaskRequest::getPageNumber()const -{ - return pageNumber_; -} - -void PublishUpgradeTaskRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string PublishUpgradeTaskRequest::getBatchStrategyList()const -{ - return batchStrategyList_; -} - -void PublishUpgradeTaskRequest::setBatchStrategyList(const std::string& batchStrategyList) -{ - batchStrategyList_ = batchStrategyList; - setParameter("BatchStrategyList", batchStrategyList); -} - -std::string PublishUpgradeTaskRequest::getRegionId()const -{ - return regionId_; -} - -void PublishUpgradeTaskRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -int PublishUpgradeTaskRequest::getPageSize()const -{ - return pageSize_; -} - -void PublishUpgradeTaskRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/dbfs/src/model/PublishUpgradeTaskResult.cc b/dbfs/src/model/PublishUpgradeTaskResult.cc deleted file mode 100644 index f5231ae98..000000000 --- a/dbfs/src/model/PublishUpgradeTaskResult.cc +++ /dev/null @@ -1,44 +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::DBFS; -using namespace AlibabaCloud::DBFS::Model; - -PublishUpgradeTaskResult::PublishUpgradeTaskResult() : - ServiceResult() -{} - -PublishUpgradeTaskResult::PublishUpgradeTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -PublishUpgradeTaskResult::~PublishUpgradeTaskResult() -{} - -void PublishUpgradeTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/dbfs/src/model/RenameDbfsRequest.cc b/dbfs/src/model/RenameDbfsRequest.cc index d5f9b6434..577e4adf6 100644 --- a/dbfs/src/model/RenameDbfsRequest.cc +++ b/dbfs/src/model/RenameDbfsRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::DBFS::Model::RenameDbfsRequest; - -RenameDbfsRequest::RenameDbfsRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "RenameDbfs") -{ - setMethod(HttpRequest::Method::Post); -} - -RenameDbfsRequest::~RenameDbfsRequest() -{} - -std::string RenameDbfsRequest::getFsName()const -{ - return fsName_; + */ + +#include + +using AlibabaCloud::DBFS::Model::RenameDbfsRequest; + +RenameDbfsRequest::RenameDbfsRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "RenameDbfs") { + setMethod(HttpRequest::Method::Post); } -void RenameDbfsRequest::setFsName(const std::string& fsName) -{ - fsName_ = fsName; - setParameter("FsName", fsName); +RenameDbfsRequest::~RenameDbfsRequest() {} + +std::string RenameDbfsRequest::getFsName() const { + return fsName_; } -std::string RenameDbfsRequest::getRegionId()const -{ - return regionId_; +void RenameDbfsRequest::setFsName(const std::string &fsName) { + fsName_ = fsName; + setParameter(std::string("FsName"), fsName); } -void RenameDbfsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RenameDbfsRequest::getRegionId() const { + return regionId_; } -std::string RenameDbfsRequest::getFsId()const -{ - return fsId_; +void RenameDbfsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RenameDbfsRequest::setFsId(const std::string& fsId) -{ - fsId_ = fsId; - setParameter("FsId", fsId); +std::string RenameDbfsRequest::getFsId() const { + return fsId_; +} + +void RenameDbfsRequest::setFsId(const std::string &fsId) { + fsId_ = fsId; + setParameter(std::string("FsId"), fsId); } diff --git a/dbfs/src/model/ResetDbfsRequest.cc b/dbfs/src/model/ResetDbfsRequest.cc deleted file mode 100644 index 7a70fa68e..000000000 --- a/dbfs/src/model/ResetDbfsRequest.cc +++ /dev/null @@ -1,62 +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::DBFS::Model::ResetDbfsRequest; - -ResetDbfsRequest::ResetDbfsRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "ResetDbfs") -{ - setMethod(HttpRequest::Method::Post); -} - -ResetDbfsRequest::~ResetDbfsRequest() -{} - -std::string ResetDbfsRequest::getSnapshotId()const -{ - return snapshotId_; -} - -void ResetDbfsRequest::setSnapshotId(const std::string& snapshotId) -{ - snapshotId_ = snapshotId; - setParameter("SnapshotId", snapshotId); -} - -std::string ResetDbfsRequest::getRegionId()const -{ - return regionId_; -} - -void ResetDbfsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string ResetDbfsRequest::getFsId()const -{ - return fsId_; -} - -void ResetDbfsRequest::setFsId(const std::string& fsId) -{ - fsId_ = fsId; - setParameter("FsId", fsId); -} - diff --git a/dbfs/src/model/ResetDbfsResult.cc b/dbfs/src/model/ResetDbfsResult.cc deleted file mode 100644 index 4aa75822e..000000000 --- a/dbfs/src/model/ResetDbfsResult.cc +++ /dev/null @@ -1,44 +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::DBFS; -using namespace AlibabaCloud::DBFS::Model; - -ResetDbfsResult::ResetDbfsResult() : - ServiceResult() -{} - -ResetDbfsResult::ResetDbfsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ResetDbfsResult::~ResetDbfsResult() -{} - -void ResetDbfsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/dbfs/src/model/ResizeDbfsRequest.cc b/dbfs/src/model/ResizeDbfsRequest.cc index f2ba1edd1..8572ef80c 100644 --- a/dbfs/src/model/ResizeDbfsRequest.cc +++ b/dbfs/src/model/ResizeDbfsRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::DBFS::Model::ResizeDbfsRequest; - -ResizeDbfsRequest::ResizeDbfsRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "ResizeDbfs") -{ - setMethod(HttpRequest::Method::Post); -} - -ResizeDbfsRequest::~ResizeDbfsRequest() -{} - -int ResizeDbfsRequest::getNewSizeG()const -{ - return newSizeG_; + */ + +#include + +using AlibabaCloud::DBFS::Model::ResizeDbfsRequest; + +ResizeDbfsRequest::ResizeDbfsRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "ResizeDbfs") { + setMethod(HttpRequest::Method::Post); } -void ResizeDbfsRequest::setNewSizeG(int newSizeG) -{ - newSizeG_ = newSizeG; - setParameter("NewSizeG", std::to_string(newSizeG)); +ResizeDbfsRequest::~ResizeDbfsRequest() {} + +int ResizeDbfsRequest::getNewSizeG() const { + return newSizeG_; } -std::string ResizeDbfsRequest::getRegionId()const -{ - return regionId_; +void ResizeDbfsRequest::setNewSizeG(int newSizeG) { + newSizeG_ = newSizeG; + setParameter(std::string("NewSizeG"), std::to_string(newSizeG)); } -void ResizeDbfsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ResizeDbfsRequest::getRegionId() const { + return regionId_; } -std::string ResizeDbfsRequest::getFsId()const -{ - return fsId_; +void ResizeDbfsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ResizeDbfsRequest::setFsId(const std::string& fsId) -{ - fsId_ = fsId; - setParameter("FsId", fsId); +std::string ResizeDbfsRequest::getFsId() const { + return fsId_; +} + +void ResizeDbfsRequest::setFsId(const std::string &fsId) { + fsId_ = fsId; + setParameter(std::string("FsId"), fsId); } diff --git a/dbfs/src/model/StopUpgradeTaskRequest.cc b/dbfs/src/model/StopUpgradeTaskRequest.cc deleted file mode 100644 index 08efcd7f9..000000000 --- a/dbfs/src/model/StopUpgradeTaskRequest.cc +++ /dev/null @@ -1,73 +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::DBFS::Model::StopUpgradeTaskRequest; - -StopUpgradeTaskRequest::StopUpgradeTaskRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "StopUpgradeTask") -{ - setMethod(HttpRequest::Method::Post); -} - -StopUpgradeTaskRequest::~StopUpgradeTaskRequest() -{} - -int StopUpgradeTaskRequest::getPageNumber()const -{ - return pageNumber_; -} - -void StopUpgradeTaskRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string StopUpgradeTaskRequest::getBatchStrategyList()const -{ - return batchStrategyList_; -} - -void StopUpgradeTaskRequest::setBatchStrategyList(const std::string& batchStrategyList) -{ - batchStrategyList_ = batchStrategyList; - setParameter("BatchStrategyList", batchStrategyList); -} - -std::string StopUpgradeTaskRequest::getRegionId()const -{ - return regionId_; -} - -void StopUpgradeTaskRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -int StopUpgradeTaskRequest::getPageSize()const -{ - return pageSize_; -} - -void StopUpgradeTaskRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/dbfs/src/model/StopUpgradeTaskResult.cc b/dbfs/src/model/StopUpgradeTaskResult.cc deleted file mode 100644 index af83f3c5f..000000000 --- a/dbfs/src/model/StopUpgradeTaskResult.cc +++ /dev/null @@ -1,44 +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::DBFS; -using namespace AlibabaCloud::DBFS::Model; - -StopUpgradeTaskResult::StopUpgradeTaskResult() : - ServiceResult() -{} - -StopUpgradeTaskResult::StopUpgradeTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StopUpgradeTaskResult::~StopUpgradeTaskResult() -{} - -void StopUpgradeTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/dbfs/src/model/TagDbfsRequest.cc b/dbfs/src/model/TagDbfsRequest.cc index 63ecc85eb..a8218e622 100644 --- a/dbfs/src/model/TagDbfsRequest.cc +++ b/dbfs/src/model/TagDbfsRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::DBFS::Model::TagDbfsRequest; - -TagDbfsRequest::TagDbfsRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "TagDbfs") -{ - setMethod(HttpRequest::Method::Post); -} - -TagDbfsRequest::~TagDbfsRequest() -{} - -std::string TagDbfsRequest::getTags()const -{ - return tags_; + */ + +#include + +using AlibabaCloud::DBFS::Model::TagDbfsRequest; + +TagDbfsRequest::TagDbfsRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "TagDbfs") { + setMethod(HttpRequest::Method::Post); } -void TagDbfsRequest::setTags(const std::string& tags) -{ - tags_ = tags; - setParameter("Tags", tags); +TagDbfsRequest::~TagDbfsRequest() {} + +std::string TagDbfsRequest::getTags() const { + return tags_; } -std::string TagDbfsRequest::getRegionId()const -{ - return regionId_; +void TagDbfsRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); } -void TagDbfsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string TagDbfsRequest::getRegionId() const { + return regionId_; } -std::string TagDbfsRequest::getDbfsId()const -{ - return dbfsId_; +void TagDbfsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void TagDbfsRequest::setDbfsId(const std::string& dbfsId) -{ - dbfsId_ = dbfsId; - setParameter("DbfsId", dbfsId); +std::string TagDbfsRequest::getDbfsId() const { + return dbfsId_; +} + +void TagDbfsRequest::setDbfsId(const std::string &dbfsId) { + dbfsId_ = dbfsId; + setParameter(std::string("DbfsId"), dbfsId); } diff --git a/dbfs/src/model/UpdateConstantsRequest.cc b/dbfs/src/model/UpdateConstantsRequest.cc deleted file mode 100644 index 5713b076c..000000000 --- a/dbfs/src/model/UpdateConstantsRequest.cc +++ /dev/null @@ -1,73 +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::DBFS::Model::UpdateConstantsRequest; - -UpdateConstantsRequest::UpdateConstantsRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "UpdateConstants") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateConstantsRequest::~UpdateConstantsRequest() -{} - -int UpdateConstantsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void UpdateConstantsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string UpdateConstantsRequest::getRegionId()const -{ - return regionId_; -} - -void UpdateConstantsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string UpdateConstantsRequest::getConstantsData()const -{ - return constantsData_; -} - -void UpdateConstantsRequest::setConstantsData(const std::string& constantsData) -{ - constantsData_ = constantsData; - setParameter("ConstantsData", constantsData); -} - -int UpdateConstantsRequest::getPageSize()const -{ - return pageSize_; -} - -void UpdateConstantsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/dbfs/src/model/UpdateConstantsResult.cc b/dbfs/src/model/UpdateConstantsResult.cc deleted file mode 100644 index 5f8d57e68..000000000 --- a/dbfs/src/model/UpdateConstantsResult.cc +++ /dev/null @@ -1,72 +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::DBFS; -using namespace AlibabaCloud::DBFS::Model; - -UpdateConstantsResult::UpdateConstantsResult() : - ServiceResult() -{} - -UpdateConstantsResult::UpdateConstantsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateConstantsResult::~UpdateConstantsResult() -{} - -void UpdateConstantsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["PageSize"].isNull()) - pageSize_ = std::stol(value["PageSize"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); - -} - -long UpdateConstantsResult::getTotalCount()const -{ - return totalCount_; -} - -long UpdateConstantsResult::getPageSize()const -{ - return pageSize_; -} - -long UpdateConstantsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::string UpdateConstantsResult::getData()const -{ - return data_; -} - diff --git a/dbfs/src/model/UpdateDbfsRequest.cc b/dbfs/src/model/UpdateDbfsRequest.cc new file mode 100644 index 000000000..2613f3047 --- /dev/null +++ b/dbfs/src/model/UpdateDbfsRequest.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::DBFS::Model::UpdateDbfsRequest; + +UpdateDbfsRequest::UpdateDbfsRequest() + : RpcServiceRequest("dbfs", "2020-04-18", "UpdateDbfs") { + setMethod(HttpRequest::Method::Post); +} + +UpdateDbfsRequest::~UpdateDbfsRequest() {} + +std::string UpdateDbfsRequest::getUsedScene() const { + return usedScene_; +} + +void UpdateDbfsRequest::setUsedScene(const std::string &usedScene) { + usedScene_ = usedScene; + setParameter(std::string("UsedScene"), usedScene); +} + +std::string UpdateDbfsRequest::getRegionId() const { + return regionId_; +} + +void UpdateDbfsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateDbfsRequest::getFsId() const { + return fsId_; +} + +void UpdateDbfsRequest::setFsId(const std::string &fsId) { + fsId_ = fsId; + setParameter(std::string("FsId"), fsId); +} + +std::string UpdateDbfsRequest::getInstanceType() const { + return instanceType_; +} + +void UpdateDbfsRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); +} + +std::string UpdateDbfsRequest::getAdvancedFeatures() const { + return advancedFeatures_; +} + +void UpdateDbfsRequest::setAdvancedFeatures(const std::string &advancedFeatures) { + advancedFeatures_ = advancedFeatures; + setParameter(std::string("AdvancedFeatures"), advancedFeatures); +} + diff --git a/dbfs/src/model/UpdateTaskResult.cc b/dbfs/src/model/UpdateDbfsResult.cc similarity index 78% rename from dbfs/src/model/UpdateTaskResult.cc rename to dbfs/src/model/UpdateDbfsResult.cc index 16c5e3422..e0b0b1d93 100644 --- a/dbfs/src/model/UpdateTaskResult.cc +++ b/dbfs/src/model/UpdateDbfsResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::DBFS; using namespace AlibabaCloud::DBFS::Model; -UpdateTaskResult::UpdateTaskResult() : +UpdateDbfsResult::UpdateDbfsResult() : ServiceResult() {} -UpdateTaskResult::UpdateTaskResult(const std::string &payload) : +UpdateDbfsResult::UpdateDbfsResult(const std::string &payload) : ServiceResult() { parse(payload); } -UpdateTaskResult::~UpdateTaskResult() +UpdateDbfsResult::~UpdateDbfsResult() {} -void UpdateTaskResult::parse(const std::string &payload) +void UpdateDbfsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/dbfs/src/model/UpdateTaskRequest.cc b/dbfs/src/model/UpdateTaskRequest.cc deleted file mode 100644 index bf02a1007..000000000 --- a/dbfs/src/model/UpdateTaskRequest.cc +++ /dev/null @@ -1,62 +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::DBFS::Model::UpdateTaskRequest; - -UpdateTaskRequest::UpdateTaskRequest() : - RpcServiceRequest("dbfs", "2020-04-18", "UpdateTask") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateTaskRequest::~UpdateTaskRequest() -{} - -int UpdateTaskRequest::getTaskProgress()const -{ - return taskProgress_; -} - -void UpdateTaskRequest::setTaskProgress(int taskProgress) -{ - taskProgress_ = taskProgress; - setParameter("TaskProgress", std::to_string(taskProgress)); -} - -std::string UpdateTaskRequest::getTaskIds()const -{ - return taskIds_; -} - -void UpdateTaskRequest::setTaskIds(const std::string& taskIds) -{ - taskIds_ = taskIds; - setParameter("TaskIds", taskIds); -} - -std::string UpdateTaskRequest::getRegionId()const -{ - return regionId_; -} - -void UpdateTaskRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} -