From 11df900d31ac5aae72364227faff276287d4eb08 Mon Sep 17 00:00:00 2001 From: Kamil Sobol Date: Wed, 2 Jun 2021 14:50:12 -0700 Subject: [PATCH] try https://github.com/Azure/autorest/pull/4152 --- .../src/Generated/AppendBlobRestClient.cs | 4 --- .../src/Generated/BlobRestClient.cs | 26 +++---------------- .../src/Generated/BlockBlobRestClient.cs | 6 ----- .../src/Generated/ContainerRestClient.cs | 16 ------------ .../src/Generated/PageBlobRestClient.cs | 9 ------- .../Azure.Storage.Blobs/src/autorest.md | 4 +-- 6 files changed, 5 insertions(+), 60 deletions(-) diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/AppendBlobRestClient.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/AppendBlobRestClient.cs index e0b690b465493..9b91712bb9579 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/AppendBlobRestClient.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/AppendBlobRestClient.cs @@ -53,7 +53,6 @@ internal HttpMessage CreateCreateRequest(long contentLength, int? timeout, strin request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); - uri.AppendPath("/", false); if (timeout != null) { uri.AppendQuery("timeout", timeout.Value, true); @@ -234,7 +233,6 @@ internal HttpMessage CreateAppendBlockRequest(long contentLength, Stream body, i request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); - uri.AppendPath("/", false); uri.AppendQuery("comp", "appendblock", true); if (timeout != null) { @@ -390,7 +388,6 @@ internal HttpMessage CreateAppendBlockFromUrlRequest(string sourceUrl, long cont request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); - uri.AppendPath("/", false); uri.AppendQuery("comp", "appendblock", true); if (timeout != null) { @@ -576,7 +573,6 @@ internal HttpMessage CreateSealRequest(int? timeout, string leaseId, DateTimeOff request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); - uri.AppendPath("/", false); uri.AppendQuery("comp", "seal", true); if (timeout != null) { diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/BlobRestClient.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/BlobRestClient.cs index ef5cdd0ff2f14..0d1c5f1c87245 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/BlobRestClient.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/BlobRestClient.cs @@ -55,7 +55,7 @@ internal HttpMessage CreateDownloadRequest(string snapshot, string versionId, in request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); - uri.AppendPath("/", false); + uri.AppendPath("path:20.get", false); if (snapshot != null) { uri.AppendQuery("snapshot", snapshot, true); @@ -199,7 +199,7 @@ internal HttpMessage CreateGetPropertiesRequest(string snapshot, string versionI request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); - uri.AppendPath("/", false); + uri.AppendPath("path:20.head", false); if (snapshot != null) { uri.AppendQuery("snapshot", snapshot, true); @@ -317,7 +317,7 @@ internal HttpMessage CreateDeleteRequest(string snapshot, string versionId, int? request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); - uri.AppendPath("/", false); + uri.AppendPath("path:20.delete", false); if (snapshot != null) { uri.AppendQuery("snapshot", snapshot, true); @@ -429,7 +429,6 @@ internal HttpMessage CreateUndeleteRequest(int? timeout) request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); - uri.AppendPath("/", false); uri.AppendQuery("comp", "undelete", true); if (timeout != null) { @@ -482,7 +481,6 @@ internal HttpMessage CreateSetExpiryRequest(BlobExpiryOptions expiryOptions, int request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); - uri.AppendPath("/", false); uri.AppendQuery("comp", "expiry", true); if (timeout != null) { @@ -544,7 +542,6 @@ internal HttpMessage CreateSetHttpHeadersRequest(int? timeout, string blobCacheC request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); - uri.AppendPath("/", false); uri.AppendQuery("comp", "properties", true); if (timeout != null) { @@ -669,7 +666,6 @@ internal HttpMessage CreateSetImmutabilityPolicyRequest(int? timeout, DateTimeOf request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); - uri.AppendPath("/", false); uri.AppendQuery("comp", "immutabilityPolicies", true); if (timeout != null) { @@ -740,7 +736,6 @@ internal HttpMessage CreateDeleteImmutabilityPolicyRequest(int? timeout) request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); - uri.AppendPath("/", false); uri.AppendQuery("comp", "immutabilityPolicies", true); if (timeout != null) { @@ -793,7 +788,6 @@ internal HttpMessage CreateSetLegalHoldRequest(bool legalHold, int? timeout) request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); - uri.AppendPath("/", false); uri.AppendQuery("comp", "legalhold", true); if (timeout != null) { @@ -849,7 +843,6 @@ internal HttpMessage CreateSetMetadataRequest(int? timeout, IDictionary