From fff3ce6d7b72605d4de09da2178cae1005925e6a Mon Sep 17 00:00:00 2001 From: Sean McCullough Date: Thu, 6 Aug 2020 12:16:33 -0500 Subject: [PATCH 1/6] Added Set File Tier --- .../preview/2019-12-12/file.json | 50 +++++++++++++++++++ .../preview/2020-02-10/file.json | 50 +++++++++++++++++++ 2 files changed, 100 insertions(+) diff --git a/specification/storage/data-plane/Microsoft.FileStorage/preview/2019-12-12/file.json b/specification/storage/data-plane/Microsoft.FileStorage/preview/2019-12-12/file.json index a6551a53d9cf..129ed6843477 100644 --- a/specification/storage/data-plane/Microsoft.FileStorage/preview/2019-12-12/file.json +++ b/specification/storage/data-plane/Microsoft.FileStorage/preview/2019-12-12/file.json @@ -237,6 +237,9 @@ { "$ref": "#/parameters/ShareQuota" }, + { + "$ref": "#/parameters/AccessTierOptional" + }, { "$ref": "#/parameters/ApiVersionParameter" } @@ -362,6 +365,22 @@ "type": "string", "format": "date-time-rfc1123", "description": "Returns the current share next allowed quota downgrade time." + }, + "x-ms-access-tier": { + "x-ms-client-name": "AccessTier", + "type": "string", + "description": "Returns the access tier set on the share." + }, + "x-ms-access-tier-change-time": { + "x-ms-client-name": "AccessTierChangeTime", + "type": "string", + "format": "date-time-rfc1123", + "description": "Returns the last modified time (in UTC) of the access tier of the share." + }, + "x-ms-access-tier-transition-state": { + "x-ms-client-name": "AccessTierTransitionState", + "type": "string", + "description": "Returns the transition state betweeen access tiers, when present." } } }, @@ -682,6 +701,9 @@ }, { "$ref": "#/parameters/ShareQuota" + }, + { + "$ref": "#/parameters/AccessTierOptional" } ], "responses": { @@ -4677,6 +4699,16 @@ }, "RemainingRetentionDays": { "type": "integer" + }, + "AccessTier": { + "type": "string" + }, + "AccessTierChangeTime": { + "type": "string", + "format": "date-time-rfc1123" + }, + "AccessTierTransitionState": { + "type": "string" } } }, @@ -4763,6 +4795,24 @@ } }, "parameters": { + "AccessTierOptional": { + "name": "x-ms-access-tier", + "x-ms-client-name": "accessTier", + "in": "header", + "description": "Specifies the access tier of the share.", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "enum": [ + "TransactionOptimized", + "Hot", + "Cold" + ], + "x-ms-enum": { + "name": "ShareAccessTier", + "modelAsString": true + } + }, "ApiVersionParameter": { "name": "x-ms-version", "x-ms-client-name": "version", diff --git a/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json b/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json index af23b5bdc1c4..1f5f25156b91 100644 --- a/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json +++ b/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json @@ -237,6 +237,9 @@ { "$ref": "#/parameters/ShareQuota" }, + { + "$ref": "#/parameters/AccessTierOptional" + }, { "$ref": "#/parameters/ApiVersionParameter" } @@ -362,6 +365,22 @@ "type": "string", "format": "date-time-rfc1123", "description": "Returns the current share next allowed quota downgrade time." + }, + "x-ms-access-tier": { + "x-ms-client-name": "AccessTier", + "type": "string", + "description": "Returns the access tier set on the share." + }, + "x-ms-access-tier-change-time": { + "x-ms-client-name": "AccessTierChangeTime", + "type": "string", + "format": "date-time-rfc1123", + "description": "Returns the last modified time (in UTC) of the access tier of the share." + }, + "x-ms-access-tier-transition-state": { + "x-ms-client-name": "AccessTierTransitionState", + "type": "string", + "description": "Returns the transition state betweeen access tiers, when present." } } }, @@ -682,6 +701,9 @@ }, { "$ref": "#/parameters/ShareQuota" + }, + { + "$ref": "#/parameters/AccessTierOptional" } ], "responses": { @@ -4677,6 +4699,16 @@ }, "RemainingRetentionDays": { "type": "integer" + }, + "AccessTier": { + "type": "string" + }, + "AccessTierChangeTime": { + "type": "string", + "format": "date-time-rfc1123" + }, + "AccessTierTransitionState": { + "type": "string" } } }, @@ -4763,6 +4795,24 @@ } }, "parameters": { + "AccessTierOptional": { + "name": "x-ms-access-tier", + "x-ms-client-name": "accessTier", + "in": "header", + "description": "Specifies the access tier of the share.", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "enum": [ + "TransactionOptimized", + "Hot", + "Cold" + ], + "x-ms-enum": { + "name": "ShareAccessTier", + "modelAsString": true + } + }, "ApiVersionParameter": { "name": "x-ms-version", "x-ms-client-name": "version", From d433051af1d88a3ff52c20c0f579b88d18a06139 Mon Sep 17 00:00:00 2001 From: Sean McCullough Date: Thu, 6 Aug 2020 15:38:44 -0500 Subject: [PATCH 2/6] Another update --- .../Microsoft.FileStorage/preview/2019-12-12/file.json | 4 ++-- .../Microsoft.FileStorage/preview/2020-02-10/file.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/storage/data-plane/Microsoft.FileStorage/preview/2019-12-12/file.json b/specification/storage/data-plane/Microsoft.FileStorage/preview/2019-12-12/file.json index 129ed6843477..cb3f22f8028b 100644 --- a/specification/storage/data-plane/Microsoft.FileStorage/preview/2019-12-12/file.json +++ b/specification/storage/data-plane/Microsoft.FileStorage/preview/2019-12-12/file.json @@ -691,8 +691,8 @@ "tags": [ "share" ], - "operationId": "Share_SetQuota", - "description": "Sets quota for the specified share.", + "operationId": "Share_SetProperties", + "description": "Sets properties for the specified share.", "parameters": [{ "$ref": "#/parameters/Timeout" }, diff --git a/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json b/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json index 1f5f25156b91..6ec41afed167 100644 --- a/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json +++ b/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json @@ -691,8 +691,8 @@ "tags": [ "share" ], - "operationId": "Share_SetQuota", - "description": "Sets quota for the specified share.", + "operationId": "Share_SetProperties", + "description": "Sets properties for the specified share.", "parameters": [{ "$ref": "#/parameters/Timeout" }, From 833a2b373c8dd77dd3cd1637657596bd28080c7f Mon Sep 17 00:00:00 2001 From: Sean McCullough Date: Mon, 17 Aug 2020 18:28:44 -0500 Subject: [PATCH 3/6] update --- .../Microsoft.FileStorage/preview/2020-02-10/file.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json b/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json index 6ec41afed167..03177c850278 100644 --- a/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json +++ b/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json @@ -4806,7 +4806,7 @@ "enum": [ "TransactionOptimized", "Hot", - "Cold" + "Cool" ], "x-ms-enum": { "name": "ShareAccessTier", From 2c526ebbd79ed762990c1b4b0fe0837b358126ea Mon Sep 17 00:00:00 2001 From: Sean McCullough Date: Mon, 17 Aug 2020 18:36:25 -0500 Subject: [PATCH 4/6] update --- .../Microsoft.FileStorage/preview/2019-12-12/file.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/storage/data-plane/Microsoft.FileStorage/preview/2019-12-12/file.json b/specification/storage/data-plane/Microsoft.FileStorage/preview/2019-12-12/file.json index cb3f22f8028b..46111408d625 100644 --- a/specification/storage/data-plane/Microsoft.FileStorage/preview/2019-12-12/file.json +++ b/specification/storage/data-plane/Microsoft.FileStorage/preview/2019-12-12/file.json @@ -4806,7 +4806,7 @@ "enum": [ "TransactionOptimized", "Hot", - "Cold" + "Cool" ], "x-ms-enum": { "name": "ShareAccessTier", From 68cb3e29295f0662e8befaac77cfe25f3a2531bf Mon Sep 17 00:00:00 2001 From: Sean McCullough <=> Date: Tue, 29 Sep 2020 12:24:28 -0500 Subject: [PATCH 5/6] removed non-existant properties from ShareLease --- .../preview/2020-02-10/file.json | 26 ++++--------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json b/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json index 16a6936a6368..707007293d24 100644 --- a/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json +++ b/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json @@ -876,11 +876,11 @@ "format": "etag", "description": "The ETag contains a value that you can use to perform operations conditionally, in quotes." }, - "Last-Modified": { - "type": "string", - "format": "date-time-rfc1123", - "description": "Returns the date and time the share was last modified. Any operation that modifies the share or its properties updates the last modified time. Operations on files do not affect the last modified time of the share." - }, + "Last-Modified": { + "type": "string", + "format": "date-time-rfc1123", + "description": "Returns the date and time the share was last modified. Any operation that modifies the share or its properties updates the last modified time. Operations on files do not affect the last modified time of the share." + }, "x-ms-lease-id": { "x-ms-client-name": "LeaseId", "type": "string", @@ -905,22 +905,6 @@ "type": "string", "format": "date-time-rfc1123", "description": "Returns the current share next allowed quota downgrade time." - }, - "x-ms-access-tier": { - "x-ms-client-name": "AccessTier", - "type": "string", - "description": "Returns the access tier set on the share." - }, - "x-ms-access-tier-change-time": { - "x-ms-client-name": "AccessTierChangeTime", - "type": "string", - "format": "date-time-rfc1123", - "description": "Returns the last modified time (in UTC) of the access tier of the share." - }, - "x-ms-access-tier-transition-state": { - "x-ms-client-name": "AccessTierTransitionState", - "type": "string", - "description": "Returns the transition state betweeen access tiers, when present." } } }, From a7b54d4d6f85b70f3d3e7980eccbaa3e762b483e Mon Sep 17 00:00:00 2001 From: Sean McCullough <=> Date: Tue, 29 Sep 2020 12:31:15 -0500 Subject: [PATCH 6/6] another update --- .../preview/2020-02-10/file.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json b/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json index 707007293d24..e90e33e5f281 100644 --- a/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json +++ b/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.json @@ -410,6 +410,22 @@ "name": "LeaseStatusType", "modelAsString": false } + }, + "x-ms-access-tier": { + "x-ms-client-name": "AccessTier", + "type": "string", + "description": "Returns the access tier set on the share." + }, + "x-ms-access-tier-change-time": { + "x-ms-client-name": "AccessTierChangeTime", + "type": "string", + "format": "date-time-rfc1123", + "description": "Returns the last modified time (in UTC) of the access tier of the share." + }, + "x-ms-access-tier-transition-state": { + "x-ms-client-name": "AccessTierTransitionState", + "type": "string", + "description": "Returns the transition state betweeen access tiers, when present." } } },