From 9a9be32ee7b2c40330b028522d109528bda7f9e6 Mon Sep 17 00:00:00 2001 From: huizlAzure Date: Wed, 24 Apr 2019 13:56:48 -0700 Subject: [PATCH] Fix lease container example files; fix casing in Lease Container URL --- .../examples/BlobContainersLease_Acquire.json | 19 +++---- .../examples/BlobContainersLease_Break.json | 19 +++---- .../examples/BlobContainersLease_Acquire.json | 19 +++---- .../examples/BlobContainersLease_Break.json | 19 +++---- .../examples/BlobContainersLease_Acquire.json | 19 +++---- .../examples/BlobContainersLease_Break.json | 19 +++---- .../stable/2019-04-01/blob.json | 2 +- .../examples/BlobContainersLease_Acquire.json | 53 ++++++++----------- .../examples/BlobContainersLease_Break.json | 53 ++++++++----------- 9 files changed, 83 insertions(+), 139 deletions(-) diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLease_Acquire.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLease_Acquire.json index 2adf9b52f08c..bb8b046aa4d3 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLease_Acquire.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLease_Acquire.json @@ -7,24 +7,17 @@ "api-version": "2018-03-01-preview", "monitor": "true", "parameters": { - "properties": { - "Action": 0, - "LeaseId": null, - "BreakPeriod": null, - "LeaseDuration": -1, - "ProposedLeaseId": null - } + "action": "Acquire", + "leaseId": null, + "breakPeriod": null, + "leaseDuration": -1, + "proposedLeaseId": null } }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/blobServices/default/containers/container6185", - "name": "container6185", - "type": "Microsoft.Storage/storageAccounts/blobServices/containers", - "properties": { - "LeaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d" - } + "leaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d" } } } diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLease_Break.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLease_Break.json index e14bdc92d3b3..418c63ed1bdb 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLease_Break.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLease_Break.json @@ -7,24 +7,17 @@ "api-version": "2018-03-01-preview", "monitor": "true", "parameters": { - "properties": { - "Action": 4, - "LeaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d", - "BreakPeriod": null, - "LeaseDuration": null, - "ProposedLeaseId": null - } + "action": "Break", + "leaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d", + "breakPeriod": null, + "leaseDuration": null, + "proposedLeaseId": null } }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/blobServices/default/containers/container6185", - "name": "container6185", - "type": "Microsoft.Storage/storageAccounts/blobServices/containers", - "properties": { - "LeaseTimeSeconds": "0" - } + "leaseTimeSeconds": "0" } } } diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLease_Acquire.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLease_Acquire.json index 18c697021828..03d7d9e857bf 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLease_Acquire.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLease_Acquire.json @@ -7,24 +7,17 @@ "api-version": "2018-07-01", "monitor": "true", "parameters": { - "properties": { - "Action": 0, - "LeaseId": null, - "BreakPeriod": null, - "LeaseDuration": -1, - "ProposedLeaseId": null - } + "action": "Acquire", + "leaseId": null, + "breakPeriod": null, + "leaseDuration": -1, + "proposedLeaseId": null } }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/blobServices/default/containers/container6185", - "name": "container6185", - "type": "Microsoft.Storage/storageAccounts/blobServices/containers", - "properties": { - "LeaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d" - } + "leaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d" } } } diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLease_Break.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLease_Break.json index 2245f77ac01c..d0a97bce588d 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLease_Break.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLease_Break.json @@ -7,24 +7,17 @@ "api-version": "2018-07-01", "monitor": "true", "parameters": { - "properties": { - "Action": 4, - "LeaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d", - "BreakPeriod": null, - "LeaseDuration": null, - "ProposedLeaseId": null - } + "action": "Break", + "leaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d", + "breakPeriod": null, + "leaseDuration": null, + "proposedLeaseId": null } }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/blobServices/default/containers/container6185", - "name": "container6185", - "type": "Microsoft.Storage/storageAccounts/blobServices/containers", - "properties": { - "LeaseTimeSeconds": "0" - } + "leaseTimeSeconds": "0" } } } diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLease_Acquire.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLease_Acquire.json index e38f795bdc16..a7d2e6b56976 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLease_Acquire.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLease_Acquire.json @@ -7,24 +7,17 @@ "api-version": "2018-11-01", "monitor": "true", "parameters": { - "properties": { - "Action": 0, - "LeaseId": null, - "BreakPeriod": null, - "LeaseDuration": -1, - "ProposedLeaseId": null - } + "action": "Acquire", + "leaseId": null, + "breakPeriod": null, + "leaseDuration": -1, + "proposedLeaseId": null } }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/blobServices/default/containers/container6185", - "name": "container6185", - "type": "Microsoft.Storage/storageAccounts/blobServices/containers", - "properties": { - "LeaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d" - } + "leaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d" } } } diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLease_Break.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLease_Break.json index 2d2924c42b3d..54ef93b1f6e3 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLease_Break.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLease_Break.json @@ -7,24 +7,17 @@ "api-version": "2018-11-01", "monitor": "true", "parameters": { - "properties": { - "Action": 4, - "LeaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d", - "BreakPeriod": null, - "LeaseDuration": null, - "ProposedLeaseId": null - } + "action": "Break", + "leaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d", + "breakPeriod": null, + "leaseDuration": null, + "proposedLeaseId": null } }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/blobServices/default/containers/container6185", - "name": "container6185", - "type": "Microsoft.Storage/storageAccounts/blobServices/containers", - "properties": { - "LeaseTimeSeconds": "0" - } + "leaseTimeSeconds": "0" } } } diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/blob.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/blob.json index e5fb40d9ab61..966b39d203c0 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/blob.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/blob.json @@ -689,7 +689,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease": { "post": { "tags": [ "BlobContainers" diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLease_Acquire.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLease_Acquire.json index 940347ab9496..b12570e9ef7f 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLease_Acquire.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLease_Acquire.json @@ -1,31 +1,24 @@ -{ - "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "res3376", - "accountName": "sto328", - "containerName": "container6185", - "api-version": "2019-04-01", - "monitor": "true", - "parameters": { - "properties": { - "Action": 0, - "LeaseId": null, - "BreakPeriod": null, - "LeaseDuration": -1, - "ProposedLeaseId": null - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/blobServices/default/containers/container6185", - "name": "container6185", - "type": "Microsoft.Storage/storageAccounts/blobServices/containers", - "properties": { - "LeaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d" - } - } - } - } +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res3376", + "accountName": "sto328", + "containerName": "container6185", + "api-version": "2019-04-01", + "monitor": "true", + "parameters": { + "action": "Acquire", + "leaseId": null, + "breakPeriod": null, + "leaseDuration": -1, + "proposedLeaseId": null + } + }, + "responses": { + "200": { + "body": { + "leaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d" + } + } + } } \ No newline at end of file diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLease_Break.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLease_Break.json index fb8a2ea1a5c8..4a786add7ec4 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLease_Break.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLease_Break.json @@ -1,31 +1,24 @@ -{ - "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "res3376", - "accountName": "sto328", - "containerName": "container6185", - "api-version": "2019-04-01", - "monitor": "true", - "parameters": { - "properties": { - "Action": 4, - "LeaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d", - "BreakPeriod": null, - "LeaseDuration": null, - "ProposedLeaseId": null - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/blobServices/default/containers/container6185", - "name": "container6185", - "type": "Microsoft.Storage/storageAccounts/blobServices/containers", - "properties": { - "LeaseTimeSeconds": "0" - } - } - } - } +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res3376", + "accountName": "sto328", + "containerName": "container6185", + "api-version": "2019-04-01", + "monitor": "true", + "parameters": { + "action": "Break", + "leaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d", + "breakPeriod": null, + "leaseDuration": null, + "proposedLeaseId": null + } + }, + "responses": { + "200": { + "body": { + "leaseTimeSeconds": "0" + } + } + } } \ No newline at end of file