From d63056fae77654a5fbbdb5d0328268f2860bb019 Mon Sep 17 00:00:00 2001 From: Kamil Sobol Date: Fri, 20 Mar 2020 10:46:19 -0700 Subject: [PATCH] [Storage][Recursive ACL] Tweak mode enum to allow hiding it in transforms --- .../stable/2019-12-12/DataLakeStorage.json | 50 ++++++++----------- 1 file changed, 20 insertions(+), 30 deletions(-) diff --git a/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2019-12-12/DataLakeStorage.json b/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2019-12-12/DataLakeStorage.json index aebe5c36ba6f..6497dd98bf43 100644 --- a/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2019-12-12/DataLakeStorage.json +++ b/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2019-12-12/DataLakeStorage.json @@ -670,22 +670,6 @@ "modelAsString": false } }, - { - "name": "mode", - "in": "query", - "description": "Optional. Valid and Required for \"SetAccessControlRecursive\" operation. Mode \"set\" sets POSIX access control rights on files and directories, \"modify\" modifies one or more POSIX access control rights that pre-exist on files and directories, \"remove\" removes one or more POSIX access control rights that were present earlier on files and directories", - "required": false, - "type": "string", - "enum": [ - "set", - "modify", - "remove" - ], - "x-ms-enum": { - "name": "PathSetAccessControlRecursiveMode", - "modelAsString": false - } - }, { "name": "maxRecords", "in": "query", @@ -702,6 +686,9 @@ "required": false, "type": "string" }, + { + "$ref": "#/parameters/PathSetAccessControlRecursiveMode" + }, { "$ref": "#/parameters/Position" }, @@ -1704,20 +1691,7 @@ "$ref": "#/parameters/Continuation" }, { - "name": "mode", - "in": "query", - "description": "Mode \"set\" sets POSIX access control rights on files and directories, \"modify\" modifies one or more POSIX access control rights that pre-exist on files and directories, \"remove\" removes one or more POSIX access control rights that were present earlier on files and directories", - "required": true, - "type": "string", - "enum": [ - "set", - "modify", - "remove" - ], - "x-ms-enum": { - "name": "PathSetAccessControlRecursiveMode", - "modelAsString": false - } + "$ref": "#/parameters/PathSetAccessControlRecursiveMode" }, { "name": "maxRecords", @@ -2198,6 +2172,22 @@ "required": false, "type": "string" }, + "PathSetAccessControlRecursiveMode": { + "name": "mode", + "in": "query", + "description": "Mode \"set\" sets POSIX access control rights on files and directories, \"modify\" modifies one or more POSIX access control rights that pre-exist on files and directories, \"remove\" removes one or more POSIX access control rights that were present earlier on files and directories", + "required": true, + "type": "string", + "enum": [ + "set", + "modify", + "remove" + ], + "x-ms-enum": { + "name": "PathSetAccessControlRecursiveMode", + "modelAsString": false + } + }, "Directory": { "name": "directory", "x-ms-client-name": "Path",