From a6fb6a3e79b9fd33093281638817c87cf1d09092 Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Mon, 9 Mar 2020 09:27:53 -0700 Subject: [PATCH] Use request method from azure.core (#504) --- .../Generated/Operations/ServiceRestClient.cs | 36 ++--- .../Generated/Operations/ServiceRestClient.cs | 22 +-- ...workInterfaceIPConfigurationsRestClient.cs | 6 +- ...NetworkInterfaceLoadBalancersRestClient.cs | 4 +- ...orkInterfaceTapConfigurationsRestClient.cs | 10 +- .../Operations/NetworkInterfacesRestClient.cs | 20 +-- .../Operations/BlobContainersRestClient.cs | 28 ++-- .../Operations/BlobServicesRestClient.cs | 8 +- .../Operations/EncryptionScopesRestClient.cs | 10 +- .../Operations/FileServicesRestClient.cs | 6 +- .../Operations/FileSharesRestClient.cs | 12 +- .../ManagementPoliciesRestClient.cs | 6 +- .../Operations/OperationsRestClient.cs | 4 +- .../PrivateEndpointConnectionsRestClient.cs | 6 +- .../PrivateLinkResourcesRestClient.cs | 2 +- .../Generated/Operations/SkusRestClient.cs | 4 +- .../Operations/StorageAccountsRestClient.cs | 32 ++-- .../Generated/Operations/UsagesRestClient.cs | 4 +- .../Generated/Operations/ServiceRestClient.cs | 6 +- .../Generated/Operations/TableRestClient.cs | 20 +-- .../Operations/DataSourcesRestClient.cs | 10 +- .../Operations/DocumentsRestClient.cs | 18 +-- .../Operations/IndexersRestClient.cs | 16 +- .../Generated/Operations/IndexesRestClient.cs | 14 +- .../Generated/Operations/ServiceRestClient.cs | 2 +- .../Operations/SkillsetsRestClient.cs | 10 +- .../Operations/SynonymMapsRestClient.cs | 10 +- .../Generated/Operations/ServiceRestClient.cs | 12 +- .../AutoRest.CSharp.V3.csproj | 2 +- .../Generation/Writers/RestClientWriter.cs | 2 +- .../Utilities/AzureCoreExtensions.cs | 32 ++-- .../Generator.Shared/ArmOperationHelpers.cs | 2 +- .../RequestMethodAdditional.cs | 46 ------ .../AutoRest.TestServer.Tests.csproj | 2 +- .../Generated/Operations/ServiceRestClient.cs | 2 +- .../Generated/Operations/ServiceRestClient.cs | 2 +- .../Generated/Operations/PetsRestClient.cs | 12 +- .../Generated/Operations/ArrayRestClient.cs | 138 +++++++++--------- .../Generated/Operations/BoolRestClient.cs | 12 +- .../Generated/Operations/ByteRestClient.cs | 10 +- .../Generated/Operations/ArrayRestClient.cs | 10 +- .../Generated/Operations/BasicRestClient.cs | 12 +- .../Operations/DictionaryRestClient.cs | 12 +- .../Operations/FlattencomplexRestClient.cs | 2 +- .../Operations/InheritanceRestClient.cs | 4 +- .../PolymorphicrecursiveRestClient.cs | 4 +- .../Operations/PolymorphismRestClient.cs | 18 +-- .../Operations/PrimitiveRestClient.cs | 44 +++--- .../Operations/ReadonlypropertyRestClient.cs | 4 +- .../Generated/Operations/DateRestClient.cs | 16 +- .../Operations/Datetimerfc1123RestClient.cs | 18 +-- .../Operations/DatetimeRestClient.cs | 42 +++--- .../Operations/DictionaryRestClient.cs | 130 ++++++++--------- .../Operations/DurationRestClient.cs | 8 +- .../Generated/Operations/FilesRestClient.cs | 6 +- .../Generated/Operations/IntRestClient.cs | 28 ++-- .../Generated/Operations/NumberRestClient.cs | 48 +++--- .../Generated/Operations/EnumRestClient.cs | 12 +- .../Generated/Operations/StringRestClient.cs | 26 ++-- .../Generated/Operations/PathsRestClient.cs | 2 +- .../Generated/Operations/PagingRestClient.cs | 10 +- .../Generated/Operations/PathsRestClient.cs | 2 +- .../Generated/Operations/PetRestClient.cs | 4 +- .../Generated/Operations/HeaderRestClient.cs | 58 ++++---- .../Operations/HttpClientFailureRestClient.cs | 52 +++---- .../Operations/HttpFailureRestClient.cs | 6 +- .../Operations/HttpRedirectsRestClient.cs | 32 ++-- .../Operations/HttpRetryRestClient.cs | 18 +-- .../Operations/HttpServerFailureRestClient.cs | 8 +- .../Operations/HttpSuccessRestClient.cs | 38 ++--- .../Operations/MultipleResponsesRestClient.cs | 68 ++++----- .../Operations/LRORetrysRestClient.cs | 14 +- .../Operations/LROsCustomHeaderRestClient.cs | 8 +- .../Generated/Operations/LROsRestClient.cs | 78 +++++----- .../Generated/Operations/LrosaDsRestClient.cs | 52 +++---- .../Generated/Operations/ServiceRestClient.cs | 22 +-- .../Generated/Operations/PagingRestClient.cs | 60 ++++---- .../Generated/Operations/QueriesRestClient.cs | 6 +- .../Operations/PathItemsRestClient.cs | 8 +- .../Generated/Operations/PathsRestClient.cs | 54 +++---- .../Generated/Operations/QueriesRestClient.cs | 68 ++++----- .../Generated/Operations/ServiceRestClient.cs | 8 +- .../Generated/Operations/XmlRestClient.cs | 58 ++++---- 83 files changed, 866 insertions(+), 912 deletions(-) delete mode 100644 src/assets/Generator.Shared/RequestMethodAdditional.cs diff --git a/samples/AppConfiguration/AppConfiguration/Generated/Operations/ServiceRestClient.cs b/samples/AppConfiguration/AppConfiguration/Generated/Operations/ServiceRestClient.cs index 64200004..f97c2e76 100644 --- a/samples/AppConfiguration/AppConfiguration/Generated/Operations/ServiceRestClient.cs +++ b/samples/AppConfiguration/AppConfiguration/Generated/Operations/ServiceRestClient.cs @@ -45,7 +45,7 @@ namespace AppConfiguration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/keys", false); @@ -137,7 +137,7 @@ namespace AppConfiguration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Head; + request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/keys", false); @@ -221,7 +221,7 @@ namespace AppConfiguration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/kv", false); @@ -325,7 +325,7 @@ namespace AppConfiguration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Head; + request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/kv", false); @@ -421,7 +421,7 @@ namespace AppConfiguration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/kv/", false); @@ -538,7 +538,7 @@ namespace AppConfiguration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/kv/", false); @@ -654,7 +654,7 @@ namespace AppConfiguration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/kv/", false); @@ -753,7 +753,7 @@ namespace AppConfiguration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Head; + request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/kv/", false); @@ -862,7 +862,7 @@ namespace AppConfiguration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/labels", false); @@ -960,7 +960,7 @@ namespace AppConfiguration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Head; + request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/labels", false); @@ -1050,7 +1050,7 @@ namespace AppConfiguration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/locks/", false); @@ -1155,7 +1155,7 @@ namespace AppConfiguration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/locks/", false); @@ -1260,7 +1260,7 @@ namespace AppConfiguration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/revisions", false); @@ -1364,7 +1364,7 @@ namespace AppConfiguration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Head; + request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/revisions", false); @@ -1460,7 +1460,7 @@ namespace AppConfiguration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -1550,7 +1550,7 @@ namespace AppConfiguration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -1640,7 +1640,7 @@ namespace AppConfiguration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -1730,7 +1730,7 @@ namespace AppConfiguration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; diff --git a/samples/Azure.AI.FormRecognizer/Azure.AI.FormRecognizer/Generated/Operations/ServiceRestClient.cs b/samples/Azure.AI.FormRecognizer/Azure.AI.FormRecognizer/Generated/Operations/ServiceRestClient.cs index 3e59fc99..30a52a00 100644 --- a/samples/Azure.AI.FormRecognizer/Azure.AI.FormRecognizer/Generated/Operations/ServiceRestClient.cs +++ b/samples/Azure.AI.FormRecognizer/Azure.AI.FormRecognizer/Generated/Operations/ServiceRestClient.cs @@ -37,7 +37,7 @@ namespace Azure.AI.FormRecognizer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); uri.AppendRaw("/formrecognizer/v2.0-preview", false); @@ -115,7 +115,7 @@ namespace Azure.AI.FormRecognizer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); uri.AppendRaw("/formrecognizer/v2.0-preview", false); @@ -189,7 +189,7 @@ namespace Azure.AI.FormRecognizer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); uri.AppendRaw("/formrecognizer/v2.0-preview", false); @@ -266,7 +266,7 @@ namespace Azure.AI.FormRecognizer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); uri.AppendRaw("/formrecognizer/v2.0-preview", false); @@ -329,7 +329,7 @@ namespace Azure.AI.FormRecognizer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); uri.AppendRaw("/formrecognizer/v2.0-preview", false); @@ -407,7 +407,7 @@ namespace Azure.AI.FormRecognizer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); uri.AppendRaw("/formrecognizer/v2.0-preview", false); @@ -482,7 +482,7 @@ namespace Azure.AI.FormRecognizer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); uri.AppendRaw("/formrecognizer/v2.0-preview", false); @@ -556,7 +556,7 @@ namespace Azure.AI.FormRecognizer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); uri.AppendRaw("/formrecognizer/v2.0-preview", false); @@ -627,7 +627,7 @@ namespace Azure.AI.FormRecognizer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); uri.AppendRaw("/formrecognizer/v2.0-preview", false); @@ -695,7 +695,7 @@ namespace Azure.AI.FormRecognizer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); uri.AppendRaw("/formrecognizer/v2.0-preview", false); @@ -766,7 +766,7 @@ namespace Azure.AI.FormRecognizer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; diff --git a/samples/Azure.Network.Management.Interface/Azure.Network.Management.Interface/Generated/Operations/NetworkInterfaceIPConfigurationsRestClient.cs b/samples/Azure.Network.Management.Interface/Azure.Network.Management.Interface/Generated/Operations/NetworkInterfaceIPConfigurationsRestClient.cs index 69e06573..b3bdc9fc 100644 --- a/samples/Azure.Network.Management.Interface/Azure.Network.Management.Interface/Generated/Operations/NetworkInterfaceIPConfigurationsRestClient.cs +++ b/samples/Azure.Network.Management.Interface/Azure.Network.Management.Interface/Generated/Operations/NetworkInterfaceIPConfigurationsRestClient.cs @@ -49,7 +49,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -145,7 +145,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -252,7 +252,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; diff --git a/samples/Azure.Network.Management.Interface/Azure.Network.Management.Interface/Generated/Operations/NetworkInterfaceLoadBalancersRestClient.cs b/samples/Azure.Network.Management.Interface/Azure.Network.Management.Interface/Generated/Operations/NetworkInterfaceLoadBalancersRestClient.cs index fd86f29a..77bd9416 100644 --- a/samples/Azure.Network.Management.Interface/Azure.Network.Management.Interface/Generated/Operations/NetworkInterfaceLoadBalancersRestClient.cs +++ b/samples/Azure.Network.Management.Interface/Azure.Network.Management.Interface/Generated/Operations/NetworkInterfaceLoadBalancersRestClient.cs @@ -49,7 +49,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -145,7 +145,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; diff --git a/samples/Azure.Network.Management.Interface/Azure.Network.Management.Interface/Generated/Operations/NetworkInterfaceTapConfigurationsRestClient.cs b/samples/Azure.Network.Management.Interface/Azure.Network.Management.Interface/Generated/Operations/NetworkInterfaceTapConfigurationsRestClient.cs index dbeb5830..f2c27140 100644 --- a/samples/Azure.Network.Management.Interface/Azure.Network.Management.Interface/Generated/Operations/NetworkInterfaceTapConfigurationsRestClient.cs +++ b/samples/Azure.Network.Management.Interface/Azure.Network.Management.Interface/Generated/Operations/NetworkInterfaceTapConfigurationsRestClient.cs @@ -49,7 +49,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -148,7 +148,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -255,7 +255,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -368,7 +368,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -464,7 +464,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; diff --git a/samples/Azure.Network.Management.Interface/Azure.Network.Management.Interface/Generated/Operations/NetworkInterfacesRestClient.cs b/samples/Azure.Network.Management.Interface/Azure.Network.Management.Interface/Generated/Operations/NetworkInterfacesRestClient.cs index c561b0e3..357ed486 100644 --- a/samples/Azure.Network.Management.Interface/Azure.Network.Management.Interface/Generated/Operations/NetworkInterfacesRestClient.cs +++ b/samples/Azure.Network.Management.Interface/Azure.Network.Management.Interface/Generated/Operations/NetworkInterfacesRestClient.cs @@ -49,7 +49,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -136,7 +136,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -237,7 +237,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -338,7 +338,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Patch; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -447,7 +447,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -517,7 +517,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -601,7 +601,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -689,7 +689,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -777,7 +777,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -855,7 +855,7 @@ namespace Azure.Network.Management.Interface { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; diff --git a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/BlobContainersRestClient.cs b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/BlobContainersRestClient.cs index c5789074..4105e8e0 100644 --- a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/BlobContainersRestClient.cs +++ b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/BlobContainersRestClient.cs @@ -49,7 +49,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -157,7 +157,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -278,7 +278,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Patch; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -399,7 +399,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -506,7 +506,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -605,7 +605,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -727,7 +727,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -849,7 +849,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -972,7 +972,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -1089,7 +1089,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -1211,7 +1211,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -1332,7 +1332,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -1459,7 +1459,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -1573,7 +1573,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; diff --git a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/BlobServicesRestClient.cs b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/BlobServicesRestClient.cs index 5d588999..e7c50b4b 100644 --- a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/BlobServicesRestClient.cs +++ b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/BlobServicesRestClient.cs @@ -49,7 +49,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -145,7 +145,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -256,7 +256,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -353,7 +353,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; diff --git a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/EncryptionScopesRestClient.cs b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/EncryptionScopesRestClient.cs index 11d3e625..4a55490e 100644 --- a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/EncryptionScopesRestClient.cs +++ b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/EncryptionScopesRestClient.cs @@ -49,7 +49,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -170,7 +170,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Patch; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -291,7 +291,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -398,7 +398,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -494,7 +494,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; diff --git a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/FileServicesRestClient.cs b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/FileServicesRestClient.cs index db0ee699..892fca7c 100644 --- a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/FileServicesRestClient.cs +++ b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/FileServicesRestClient.cs @@ -49,7 +49,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -145,7 +145,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -256,7 +256,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); diff --git a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/FileSharesRestClient.cs b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/FileSharesRestClient.cs index 93735430..f6a6e4cc 100644 --- a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/FileSharesRestClient.cs +++ b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/FileSharesRestClient.cs @@ -49,7 +49,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -157,7 +157,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -278,7 +278,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Patch; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -399,7 +399,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -506,7 +506,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -605,7 +605,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; diff --git a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/ManagementPoliciesRestClient.cs b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/ManagementPoliciesRestClient.cs index 000a5f16..58498faa 100644 --- a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/ManagementPoliciesRestClient.cs +++ b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/ManagementPoliciesRestClient.cs @@ -49,7 +49,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -146,7 +146,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -257,7 +257,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); diff --git a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/OperationsRestClient.cs b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/OperationsRestClient.cs index 82092461..5e3086c4 100644 --- a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/OperationsRestClient.cs +++ b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/OperationsRestClient.cs @@ -43,7 +43,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/providers/Microsoft.Storage/operations", false); @@ -111,7 +111,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; diff --git a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/PrivateEndpointConnectionsRestClient.cs b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/PrivateEndpointConnectionsRestClient.cs index 410dafec..8c249be2 100644 --- a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/PrivateEndpointConnectionsRestClient.cs +++ b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/PrivateEndpointConnectionsRestClient.cs @@ -49,7 +49,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -156,7 +156,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -277,7 +277,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); diff --git a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/PrivateLinkResourcesRestClient.cs b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/PrivateLinkResourcesRestClient.cs index 6a6c515c..f378f5d3 100644 --- a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/PrivateLinkResourcesRestClient.cs +++ b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/PrivateLinkResourcesRestClient.cs @@ -49,7 +49,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); diff --git a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/SkusRestClient.cs b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/SkusRestClient.cs index a6f3d683..ac297629 100644 --- a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/SkusRestClient.cs +++ b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/SkusRestClient.cs @@ -49,7 +49,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -119,7 +119,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; diff --git a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/StorageAccountsRestClient.cs b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/StorageAccountsRestClient.cs index bd20ab15..da1f6f4f 100644 --- a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/StorageAccountsRestClient.cs +++ b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/StorageAccountsRestClient.cs @@ -49,7 +49,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -135,7 +135,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -236,7 +236,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -323,7 +323,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -424,7 +424,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Patch; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -533,7 +533,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -603,7 +603,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -687,7 +687,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -784,7 +784,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -894,7 +894,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -1004,7 +1004,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -1114,7 +1114,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -1202,7 +1202,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -1304,7 +1304,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -1392,7 +1392,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -1470,7 +1470,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; diff --git a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/UsagesRestClient.cs b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/UsagesRestClient.cs index 4dd6402d..1b5c686f 100644 --- a/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/UsagesRestClient.cs +++ b/samples/Azure.Storage.Management/Azure.Storage.Management/Generated/Operations/UsagesRestClient.cs @@ -49,7 +49,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/subscriptions/", false); @@ -133,7 +133,7 @@ namespace Azure.Storage.Management { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; diff --git a/samples/Azure.Storage.Tables/Azure.Storage.Tables/Generated/Operations/ServiceRestClient.cs b/samples/Azure.Storage.Tables/Azure.Storage.Tables/Generated/Operations/ServiceRestClient.cs index f00f5243..644b8b70 100644 --- a/samples/Azure.Storage.Tables/Azure.Storage.Tables/Generated/Operations/ServiceRestClient.cs +++ b/samples/Azure.Storage.Tables/Azure.Storage.Tables/Generated/Operations/ServiceRestClient.cs @@ -42,7 +42,7 @@ namespace Azure.Storage.Tables { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); uri.AppendPath("/", false); @@ -134,7 +134,7 @@ namespace Azure.Storage.Tables { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); uri.AppendPath("/", false); @@ -228,7 +228,7 @@ namespace Azure.Storage.Tables { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); uri.AppendPath("/", false); diff --git a/samples/Azure.Storage.Tables/Azure.Storage.Tables/Generated/Operations/TableRestClient.cs b/samples/Azure.Storage.Tables/Azure.Storage.Tables/Generated/Operations/TableRestClient.cs index a98a75ef..7358088b 100644 --- a/samples/Azure.Storage.Tables/Azure.Storage.Tables/Generated/Operations/TableRestClient.cs +++ b/samples/Azure.Storage.Tables/Azure.Storage.Tables/Generated/Operations/TableRestClient.cs @@ -44,7 +44,7 @@ namespace Azure.Storage.Tables { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); uri.AppendPath("/Tables", false); @@ -145,7 +145,7 @@ namespace Azure.Storage.Tables { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); uri.AppendPath("/Tables", false); @@ -244,7 +244,7 @@ namespace Azure.Storage.Tables { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); uri.AppendPath("/Tables('", false); @@ -326,7 +326,7 @@ namespace Azure.Storage.Tables { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); uri.AppendPath("/", false); @@ -447,7 +447,7 @@ namespace Azure.Storage.Tables { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); uri.AppendPath("/", false); @@ -586,7 +586,7 @@ namespace Azure.Storage.Tables { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); uri.AppendPath("/", false); @@ -717,7 +717,7 @@ namespace Azure.Storage.Tables { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); uri.AppendPath("/", false); @@ -836,7 +836,7 @@ namespace Azure.Storage.Tables { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); uri.AppendPath("/", false); @@ -958,7 +958,7 @@ namespace Azure.Storage.Tables { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); uri.AppendPath("/", false); @@ -1076,7 +1076,7 @@ namespace Azure.Storage.Tables { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(url, false); uri.AppendPath("/", false); diff --git a/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/DataSourcesRestClient.cs b/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/DataSourcesRestClient.cs index 828dc5b0..13aca221 100644 --- a/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/DataSourcesRestClient.cs +++ b/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/DataSourcesRestClient.cs @@ -49,7 +49,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -167,7 +167,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -262,7 +262,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -353,7 +353,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -436,7 +436,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); diff --git a/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/DocumentsRestClient.cs b/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/DocumentsRestClient.cs index 01301537..9f2621bf 100644 --- a/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/DocumentsRestClient.cs +++ b/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/DocumentsRestClient.cs @@ -56,7 +56,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -136,7 +136,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -318,7 +318,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -414,7 +414,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -514,7 +514,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -672,7 +672,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -768,7 +768,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -864,7 +864,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -1016,7 +1016,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); diff --git a/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/IndexersRestClient.cs b/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/IndexersRestClient.cs index 656c427a..f488eae5 100644 --- a/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/IndexersRestClient.cs +++ b/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/IndexersRestClient.cs @@ -49,7 +49,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -132,7 +132,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -215,7 +215,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -333,7 +333,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -428,7 +428,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -519,7 +519,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -602,7 +602,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -695,7 +695,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); diff --git a/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/IndexesRestClient.cs b/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/IndexesRestClient.cs index f348be14..857db1fb 100644 --- a/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/IndexesRestClient.cs +++ b/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/IndexesRestClient.cs @@ -49,7 +49,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -142,7 +142,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -225,7 +225,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -349,7 +349,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -444,7 +444,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -535,7 +535,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -626,7 +626,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); diff --git a/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/ServiceRestClient.cs b/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/ServiceRestClient.cs index 893bfc99..09d3e493 100644 --- a/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/ServiceRestClient.cs +++ b/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/ServiceRestClient.cs @@ -49,7 +49,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); diff --git a/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/SkillsetsRestClient.cs b/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/SkillsetsRestClient.cs index 635dba4e..f598dae0 100644 --- a/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/SkillsetsRestClient.cs +++ b/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/SkillsetsRestClient.cs @@ -49,7 +49,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -167,7 +167,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -262,7 +262,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -353,7 +353,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -436,7 +436,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); diff --git a/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/SynonymMapsRestClient.cs b/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/SynonymMapsRestClient.cs index c0f945ca..490c6bdc 100644 --- a/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/SynonymMapsRestClient.cs +++ b/samples/CognitiveSearch/CognitiveSearch/Generated/Operations/SynonymMapsRestClient.cs @@ -49,7 +49,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -167,7 +167,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -262,7 +262,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -353,7 +353,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); @@ -436,7 +436,7 @@ namespace CognitiveSearch { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw("https://", false); uri.AppendRaw(searchServiceName, false); diff --git a/samples/CognitiveServices.TextAnalytics/CognitiveServices.TextAnalytics/Generated/Operations/ServiceRestClient.cs b/samples/CognitiveServices.TextAnalytics/CognitiveServices.TextAnalytics/Generated/Operations/ServiceRestClient.cs index 6842c3a8..7ca4db1b 100644 --- a/samples/CognitiveServices.TextAnalytics/CognitiveServices.TextAnalytics/Generated/Operations/ServiceRestClient.cs +++ b/samples/CognitiveServices.TextAnalytics/CognitiveServices.TextAnalytics/Generated/Operations/ServiceRestClient.cs @@ -37,7 +37,7 @@ namespace CognitiveServices.TextAnalytics { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); uri.AppendRaw("/text/analytics/v3.0-preview.1", false); @@ -134,7 +134,7 @@ namespace CognitiveServices.TextAnalytics { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); uri.AppendRaw("/text/analytics/v3.0-preview.1", false); @@ -237,7 +237,7 @@ namespace CognitiveServices.TextAnalytics { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); uri.AppendRaw("/text/analytics/v3.0-preview.1", false); @@ -334,7 +334,7 @@ namespace CognitiveServices.TextAnalytics { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); uri.AppendRaw("/text/analytics/v3.0-preview.1", false); @@ -431,7 +431,7 @@ namespace CognitiveServices.TextAnalytics { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); uri.AppendRaw("/text/analytics/v3.0-preview.1", false); @@ -528,7 +528,7 @@ namespace CognitiveServices.TextAnalytics { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); uri.AppendRaw("/text/analytics/v3.0-preview.1", false); diff --git a/src/AutoRest.CSharp.V3/AutoRest.CSharp.V3.csproj b/src/AutoRest.CSharp.V3/AutoRest.CSharp.V3.csproj index 395c122e..a414e534 100644 --- a/src/AutoRest.CSharp.V3/AutoRest.CSharp.V3.csproj +++ b/src/AutoRest.CSharp.V3/AutoRest.CSharp.V3.csproj @@ -11,7 +11,7 @@ - + diff --git a/src/AutoRest.CSharp.V3/Generation/Writers/RestClientWriter.cs b/src/AutoRest.CSharp.V3/Generation/Writers/RestClientWriter.cs index 22f9787b..fcd83959 100644 --- a/src/AutoRest.CSharp.V3/Generation/Writers/RestClientWriter.cs +++ b/src/AutoRest.CSharp.V3/Generation/Writers/RestClientWriter.cs @@ -106,7 +106,7 @@ namespace AutoRest.CSharp.V3.Generation.Writers writer.Line($"var message = pipeline.CreateMessage();"); writer.Line($"var request = message.Request;"); var method = operation.Request.HttpMethod; - writer.Line($"request.Method = {typeof(RequestMethodAdditional)}.{method.ToRequestMethodName()};"); + writer.Line($"request.Method = {typeof(RequestMethod)}.{method.ToRequestMethodName()};"); //TODO: Add logic to escape the strings when specified, using Uri.EscapeDataString(value); //TODO: Need proper logic to convert the values to strings. Right now, everything is just using default ToString(). diff --git a/src/AutoRest.CSharp.V3/Utilities/AzureCoreExtensions.cs b/src/AutoRest.CSharp.V3/Utilities/AzureCoreExtensions.cs index 56695f71..26b6ef72 100644 --- a/src/AutoRest.CSharp.V3/Utilities/AzureCoreExtensions.cs +++ b/src/AutoRest.CSharp.V3/Utilities/AzureCoreExtensions.cs @@ -11,27 +11,27 @@ namespace AutoRest.CSharp.V3.Utilities { public static string ToRequestMethodName(this RequestMethod method) => method.ToString() switch { - "GET" => nameof(RequestMethodAdditional.Get), - "POST" => nameof(RequestMethodAdditional.Post), - "PUT" => nameof(RequestMethodAdditional.Put), - "PATCH" => nameof(RequestMethodAdditional.Patch), - "DELETE" => nameof(RequestMethodAdditional.Delete), - "HEAD" => nameof(RequestMethodAdditional.Head), - "OPTIONS" => nameof(RequestMethodAdditional.Options), - "TRACE" => nameof(RequestMethodAdditional.Trace), + "GET" => nameof(RequestMethod.Get), + "POST" => nameof(RequestMethod.Post), + "PUT" => nameof(RequestMethod.Put), + "PATCH" => nameof(RequestMethod.Patch), + "DELETE" => nameof(RequestMethod.Delete), + "HEAD" => nameof(RequestMethod.Head), + "OPTIONS" => nameof(RequestMethod.Options), + "TRACE" => nameof(RequestMethod.Trace), _ => String.Empty }; public static RequestMethod? ToCoreRequestMethod(this HttpMethod method) => method switch { - HttpMethod.Delete => RequestMethodAdditional.Delete, - HttpMethod.Get => RequestMethodAdditional.Get, - HttpMethod.Head => RequestMethodAdditional.Head, - HttpMethod.Options => RequestMethodAdditional.Options, - HttpMethod.Patch => RequestMethodAdditional.Patch, - HttpMethod.Post => RequestMethodAdditional.Post, - HttpMethod.Put => RequestMethodAdditional.Put, - HttpMethod.Trace => RequestMethodAdditional.Trace, + HttpMethod.Delete => RequestMethod.Delete, + HttpMethod.Get => RequestMethod.Get, + HttpMethod.Head => RequestMethod.Head, + HttpMethod.Options => RequestMethod.Options, + HttpMethod.Patch => RequestMethod.Patch, + HttpMethod.Post => RequestMethod.Post, + HttpMethod.Put => RequestMethod.Put, + HttpMethod.Trace => RequestMethod.Trace, _ => (RequestMethod?)null }; } diff --git a/src/assets/Generator.Shared/ArmOperationHelpers.cs b/src/assets/Generator.Shared/ArmOperationHelpers.cs index d03bae9f..faae3f93 100644 --- a/src/assets/Generator.Shared/ArmOperationHelpers.cs +++ b/src/assets/Generator.Shared/ArmOperationHelpers.cs @@ -195,7 +195,7 @@ namespace Azure.Core { HttpMessage message = _pipeline.CreateMessage(); Request request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; request.Uri.Reset(new Uri(link)); return message; } diff --git a/src/assets/Generator.Shared/RequestMethodAdditional.cs b/src/assets/Generator.Shared/RequestMethodAdditional.cs deleted file mode 100644 index 67d41bd8..00000000 --- a/src/assets/Generator.Shared/RequestMethodAdditional.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -#nullable enable - -namespace Azure.Core -{ - /// - /// Represents HTTP methods sent as part of a . - /// - internal readonly struct RequestMethodAdditional - { - /// - /// Gets instance for GET method. - /// - public static RequestMethod Get { get; } = new RequestMethod("GET"); - /// - /// Gets instance for POST method. - /// - public static RequestMethod Post { get; } = new RequestMethod("POST"); - /// - /// Gets instance for PUT method. - /// - public static RequestMethod Put { get; } = new RequestMethod("PUT"); - /// - /// Gets instance for PATCH method. - /// - public static RequestMethod Patch { get; } = new RequestMethod("PATCH"); - /// - /// Gets instance for DELETE method. - /// - public static RequestMethod Delete { get; } = new RequestMethod("DELETE"); - /// - /// Gets instance for HEAD method. - /// - public static RequestMethod Head { get; } = new RequestMethod("HEAD"); - /// - /// Gets instance for OPTIONS method. - /// - public static RequestMethod Options { get; } = new RequestMethod("OPTIONS"); - /// - /// Gets instance for TRACE method. - /// - public static RequestMethod Trace { get; } = new RequestMethod("TRACE"); - } -} diff --git a/test/AutoRest.TestServer.Tests/AutoRest.TestServer.Tests.csproj b/test/AutoRest.TestServer.Tests/AutoRest.TestServer.Tests.csproj index 9c397d78..54440187 100644 --- a/test/AutoRest.TestServer.Tests/AutoRest.TestServer.Tests.csproj +++ b/test/AutoRest.TestServer.Tests/AutoRest.TestServer.Tests.csproj @@ -8,7 +8,7 @@ - + diff --git a/test/TestProjects/ExtensionClientName/Generated/Operations/ServiceRestClient.cs b/test/TestProjects/ExtensionClientName/Generated/Operations/ServiceRestClient.cs index 5456f386..d1526aaa 100644 --- a/test/TestProjects/ExtensionClientName/Generated/Operations/ServiceRestClient.cs +++ b/test/TestProjects/ExtensionClientName/Generated/Operations/ServiceRestClient.cs @@ -36,7 +36,7 @@ namespace ExtensionClientName { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Patch; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/originalOperation/", false); diff --git a/test/TestProjects/TypeSchemaMapping/Generated/Operations/ServiceRestClient.cs b/test/TestProjects/TypeSchemaMapping/Generated/Operations/ServiceRestClient.cs index e8663d3d..5ff2c0a8 100644 --- a/test/TestProjects/TypeSchemaMapping/Generated/Operations/ServiceRestClient.cs +++ b/test/TestProjects/TypeSchemaMapping/Generated/Operations/ServiceRestClient.cs @@ -37,7 +37,7 @@ namespace TypeSchemaMapping { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Patch; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/Operation/", false); diff --git a/test/TestServerProjects/additionalProperties/Generated/Operations/PetsRestClient.cs b/test/TestServerProjects/additionalProperties/Generated/Operations/PetsRestClient.cs index d7edae85..61e110de 100644 --- a/test/TestServerProjects/additionalProperties/Generated/Operations/PetsRestClient.cs +++ b/test/TestServerProjects/additionalProperties/Generated/Operations/PetsRestClient.cs @@ -37,7 +37,7 @@ namespace additionalProperties { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/additionalProperties/true", false); @@ -120,7 +120,7 @@ namespace additionalProperties { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/additionalProperties/true-subclass", false); @@ -203,7 +203,7 @@ namespace additionalProperties { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/additionalProperties/type/object", false); @@ -286,7 +286,7 @@ namespace additionalProperties { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/additionalProperties/type/string", false); @@ -369,7 +369,7 @@ namespace additionalProperties { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/additionalProperties/in/properties", false); @@ -452,7 +452,7 @@ namespace additionalProperties { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/additionalProperties/in/properties/with/additionalProperties/string", false); diff --git a/test/TestServerProjects/body-array/Generated/Operations/ArrayRestClient.cs b/test/TestServerProjects/body-array/Generated/Operations/ArrayRestClient.cs index 38793293..fa4ac42c 100644 --- a/test/TestServerProjects/body-array/Generated/Operations/ArrayRestClient.cs +++ b/test/TestServerProjects/body-array/Generated/Operations/ArrayRestClient.cs @@ -38,7 +38,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/null", false); @@ -113,7 +113,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/invalid", false); @@ -188,7 +188,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/empty", false); @@ -263,7 +263,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/empty", false); @@ -343,7 +343,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/boolean/tfft", false); @@ -418,7 +418,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/boolean/tfft", false); @@ -498,7 +498,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/boolean/true.null.false", false); @@ -573,7 +573,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/boolean/true.boolean.false", false); @@ -648,7 +648,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/integer/1.-1.3.300", false); @@ -723,7 +723,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/integer/1.-1.3.300", false); @@ -803,7 +803,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/integer/1.null.zero", false); @@ -878,7 +878,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/integer/1.integer.0", false); @@ -953,7 +953,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/long/1.-1.3.300", false); @@ -1028,7 +1028,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/long/1.-1.3.300", false); @@ -1108,7 +1108,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/long/1.null.zero", false); @@ -1183,7 +1183,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/long/1.integer.0", false); @@ -1258,7 +1258,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/float/0--0.01-1.2e20", false); @@ -1333,7 +1333,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/float/0--0.01-1.2e20", false); @@ -1413,7 +1413,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/float/0.0-null-1.2e20", false); @@ -1488,7 +1488,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/float/1.number.0", false); @@ -1563,7 +1563,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/double/0--0.01-1.2e20", false); @@ -1638,7 +1638,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/double/0--0.01-1.2e20", false); @@ -1718,7 +1718,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/double/0.0-null-1.2e20", false); @@ -1793,7 +1793,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/double/1.number.0", false); @@ -1868,7 +1868,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/string/foo1.foo2.foo3", false); @@ -1943,7 +1943,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/string/foo1.foo2.foo3", false); @@ -2023,7 +2023,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/enum/foo1.foo2.foo3", false); @@ -2098,7 +2098,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/enum/foo1.foo2.foo3", false); @@ -2178,7 +2178,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/string-enum/foo1.foo2.foo3", false); @@ -2253,7 +2253,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/string-enum/foo1.foo2.foo3", false); @@ -2333,7 +2333,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/string/foo.null.foo2", false); @@ -2408,7 +2408,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/string/foo.123.foo2", false); @@ -2483,7 +2483,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/uuid/valid", false); @@ -2558,7 +2558,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/uuid/valid", false); @@ -2638,7 +2638,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/uuid/invalidchars", false); @@ -2713,7 +2713,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/date/valid", false); @@ -2788,7 +2788,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/date/valid", false); @@ -2868,7 +2868,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/date/invalidnull", false); @@ -2943,7 +2943,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/date/invalidchars", false); @@ -3018,7 +3018,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/date-time/valid", false); @@ -3093,7 +3093,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/date-time/valid", false); @@ -3173,7 +3173,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/date-time/invalidnull", false); @@ -3248,7 +3248,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/date-time/invalidchars", false); @@ -3323,7 +3323,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/date-time-rfc1123/valid", false); @@ -3398,7 +3398,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/date-time-rfc1123/valid", false); @@ -3478,7 +3478,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/duration/valid", false); @@ -3553,7 +3553,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/duration/valid", false); @@ -3633,7 +3633,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/byte/valid", false); @@ -3708,7 +3708,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/byte/valid", false); @@ -3788,7 +3788,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/byte/invalidnull", false); @@ -3863,7 +3863,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/prim/base64url/valid", false); @@ -3938,7 +3938,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/complex/null", false); @@ -4013,7 +4013,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/complex/empty", false); @@ -4088,7 +4088,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/complex/itemnull", false); @@ -4163,7 +4163,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/complex/itemempty", false); @@ -4238,7 +4238,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/complex/valid", false); @@ -4313,7 +4313,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/complex/valid", false); @@ -4393,7 +4393,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/array/null", false); @@ -4478,7 +4478,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/array/empty", false); @@ -4563,7 +4563,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/array/itemnull", false); @@ -4648,7 +4648,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/array/itemempty", false); @@ -4733,7 +4733,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/array/valid", false); @@ -4818,7 +4818,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/array/valid", false); @@ -4903,7 +4903,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/dictionary/null", false); @@ -4988,7 +4988,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/dictionary/empty", false); @@ -5073,7 +5073,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/dictionary/itemnull", false); @@ -5158,7 +5158,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/dictionary/itemempty", false); @@ -5243,7 +5243,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/dictionary/valid", false); @@ -5328,7 +5328,7 @@ namespace body_array { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/array/dictionary/valid", false); diff --git a/test/TestServerProjects/body-boolean/Generated/Operations/BoolRestClient.cs b/test/TestServerProjects/body-boolean/Generated/Operations/BoolRestClient.cs index 93973c05..249c42df 100644 --- a/test/TestServerProjects/body-boolean/Generated/Operations/BoolRestClient.cs +++ b/test/TestServerProjects/body-boolean/Generated/Operations/BoolRestClient.cs @@ -36,7 +36,7 @@ namespace body_boolean { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/bool/true", false); @@ -103,7 +103,7 @@ namespace body_boolean { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/bool/true", false); @@ -166,7 +166,7 @@ namespace body_boolean { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/bool/false", false); @@ -233,7 +233,7 @@ namespace body_boolean { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/bool/false", false); @@ -296,7 +296,7 @@ namespace body_boolean { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/bool/null", false); @@ -363,7 +363,7 @@ namespace body_boolean { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/bool/invalid", false); diff --git a/test/TestServerProjects/body-byte/Generated/Operations/ByteRestClient.cs b/test/TestServerProjects/body-byte/Generated/Operations/ByteRestClient.cs index f6bcb962..c7c7c45e 100644 --- a/test/TestServerProjects/body-byte/Generated/Operations/ByteRestClient.cs +++ b/test/TestServerProjects/body-byte/Generated/Operations/ByteRestClient.cs @@ -36,7 +36,7 @@ namespace body_byte { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/byte/null", false); @@ -103,7 +103,7 @@ namespace body_byte { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/byte/empty", false); @@ -170,7 +170,7 @@ namespace body_byte { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/byte/nonAscii", false); @@ -237,7 +237,7 @@ namespace body_byte { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/byte/nonAscii", false); @@ -312,7 +312,7 @@ namespace body_byte { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/byte/invalid", false); diff --git a/test/TestServerProjects/body-complex/Generated/Operations/ArrayRestClient.cs b/test/TestServerProjects/body-complex/Generated/Operations/ArrayRestClient.cs index 23efac3e..3b8e6a50 100644 --- a/test/TestServerProjects/body-complex/Generated/Operations/ArrayRestClient.cs +++ b/test/TestServerProjects/body-complex/Generated/Operations/ArrayRestClient.cs @@ -37,7 +37,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/array/valid", false); @@ -104,7 +104,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/array/valid", false); @@ -179,7 +179,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/array/empty", false); @@ -246,7 +246,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/array/empty", false); @@ -321,7 +321,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/array/notprovided", false); diff --git a/test/TestServerProjects/body-complex/Generated/Operations/BasicRestClient.cs b/test/TestServerProjects/body-complex/Generated/Operations/BasicRestClient.cs index 94cbe2bc..93d663be 100644 --- a/test/TestServerProjects/body-complex/Generated/Operations/BasicRestClient.cs +++ b/test/TestServerProjects/body-complex/Generated/Operations/BasicRestClient.cs @@ -43,7 +43,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/basic/valid", false); @@ -110,7 +110,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/basic/valid", false); @@ -186,7 +186,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/basic/invalid", false); @@ -253,7 +253,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/basic/empty", false); @@ -320,7 +320,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/basic/null", false); @@ -387,7 +387,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/basic/notprovided", false); diff --git a/test/TestServerProjects/body-complex/Generated/Operations/DictionaryRestClient.cs b/test/TestServerProjects/body-complex/Generated/Operations/DictionaryRestClient.cs index 35b1354b..a83c009e 100644 --- a/test/TestServerProjects/body-complex/Generated/Operations/DictionaryRestClient.cs +++ b/test/TestServerProjects/body-complex/Generated/Operations/DictionaryRestClient.cs @@ -37,7 +37,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/dictionary/typed/valid", false); @@ -104,7 +104,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/dictionary/typed/valid", false); @@ -179,7 +179,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/dictionary/typed/empty", false); @@ -246,7 +246,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/dictionary/typed/empty", false); @@ -321,7 +321,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/dictionary/typed/null", false); @@ -388,7 +388,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/dictionary/typed/notprovided", false); diff --git a/test/TestServerProjects/body-complex/Generated/Operations/FlattencomplexRestClient.cs b/test/TestServerProjects/body-complex/Generated/Operations/FlattencomplexRestClient.cs index 51bb4f75..b4b5fe15 100644 --- a/test/TestServerProjects/body-complex/Generated/Operations/FlattencomplexRestClient.cs +++ b/test/TestServerProjects/body-complex/Generated/Operations/FlattencomplexRestClient.cs @@ -37,7 +37,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/flatten/valid", false); diff --git a/test/TestServerProjects/body-complex/Generated/Operations/InheritanceRestClient.cs b/test/TestServerProjects/body-complex/Generated/Operations/InheritanceRestClient.cs index 3d88f522..dd224b10 100644 --- a/test/TestServerProjects/body-complex/Generated/Operations/InheritanceRestClient.cs +++ b/test/TestServerProjects/body-complex/Generated/Operations/InheritanceRestClient.cs @@ -37,7 +37,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/inheritance/valid", false); @@ -104,7 +104,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/inheritance/valid", false); diff --git a/test/TestServerProjects/body-complex/Generated/Operations/PolymorphicrecursiveRestClient.cs b/test/TestServerProjects/body-complex/Generated/Operations/PolymorphicrecursiveRestClient.cs index 6858a7f6..0a0c2563 100644 --- a/test/TestServerProjects/body-complex/Generated/Operations/PolymorphicrecursiveRestClient.cs +++ b/test/TestServerProjects/body-complex/Generated/Operations/PolymorphicrecursiveRestClient.cs @@ -37,7 +37,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/polymorphicrecursive/valid", false); @@ -104,7 +104,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/polymorphicrecursive/valid", false); diff --git a/test/TestServerProjects/body-complex/Generated/Operations/PolymorphismRestClient.cs b/test/TestServerProjects/body-complex/Generated/Operations/PolymorphismRestClient.cs index 95f3bff1..2dcfa238 100644 --- a/test/TestServerProjects/body-complex/Generated/Operations/PolymorphismRestClient.cs +++ b/test/TestServerProjects/body-complex/Generated/Operations/PolymorphismRestClient.cs @@ -37,7 +37,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/polymorphism/valid", false); @@ -104,7 +104,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/polymorphism/valid", false); @@ -247,7 +247,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/polymorphism/dotsyntax", false); @@ -314,7 +314,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/polymorphism/composedWithDiscriminator", false); @@ -381,7 +381,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/polymorphism/composedWithoutDiscriminator", false); @@ -448,7 +448,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/polymorphism/complicated", false); @@ -515,7 +515,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/polymorphism/complicated", false); @@ -590,7 +590,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/polymorphism/missingdiscriminator", false); @@ -673,7 +673,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/polymorphism/missingrequired/invalid", false); diff --git a/test/TestServerProjects/body-complex/Generated/Operations/PrimitiveRestClient.cs b/test/TestServerProjects/body-complex/Generated/Operations/PrimitiveRestClient.cs index c601555d..a59bcfa9 100644 --- a/test/TestServerProjects/body-complex/Generated/Operations/PrimitiveRestClient.cs +++ b/test/TestServerProjects/body-complex/Generated/Operations/PrimitiveRestClient.cs @@ -37,7 +37,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/integer", false); @@ -104,7 +104,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/integer", false); @@ -179,7 +179,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/long", false); @@ -246,7 +246,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/long", false); @@ -321,7 +321,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/float", false); @@ -388,7 +388,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/float", false); @@ -463,7 +463,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/double", false); @@ -530,7 +530,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/double", false); @@ -605,7 +605,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/bool", false); @@ -672,7 +672,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/bool", false); @@ -747,7 +747,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/string", false); @@ -814,7 +814,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/string", false); @@ -889,7 +889,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/date", false); @@ -956,7 +956,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/date", false); @@ -1031,7 +1031,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/datetime", false); @@ -1098,7 +1098,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/datetime", false); @@ -1173,7 +1173,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/datetimerfc1123", false); @@ -1240,7 +1240,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/datetimerfc1123", false); @@ -1315,7 +1315,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/duration", false); @@ -1382,7 +1382,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/duration", false); @@ -1457,7 +1457,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/byte", false); @@ -1524,7 +1524,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/primitive/byte", false); diff --git a/test/TestServerProjects/body-complex/Generated/Operations/ReadonlypropertyRestClient.cs b/test/TestServerProjects/body-complex/Generated/Operations/ReadonlypropertyRestClient.cs index 81b0ef56..b8d7f7fc 100644 --- a/test/TestServerProjects/body-complex/Generated/Operations/ReadonlypropertyRestClient.cs +++ b/test/TestServerProjects/body-complex/Generated/Operations/ReadonlypropertyRestClient.cs @@ -37,7 +37,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/readonlyproperty/valid", false); @@ -104,7 +104,7 @@ namespace body_complex { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/complex/readonlyproperty/valid", false); diff --git a/test/TestServerProjects/body-date/Generated/Operations/DateRestClient.cs b/test/TestServerProjects/body-date/Generated/Operations/DateRestClient.cs index 8704e553..cfa806ab 100644 --- a/test/TestServerProjects/body-date/Generated/Operations/DateRestClient.cs +++ b/test/TestServerProjects/body-date/Generated/Operations/DateRestClient.cs @@ -36,7 +36,7 @@ namespace body_date { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/date/null", false); @@ -103,7 +103,7 @@ namespace body_date { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/date/invaliddate", false); @@ -170,7 +170,7 @@ namespace body_date { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/date/overflowdate", false); @@ -237,7 +237,7 @@ namespace body_date { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/date/underflowdate", false); @@ -304,7 +304,7 @@ namespace body_date { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/date/max", false); @@ -369,7 +369,7 @@ namespace body_date { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/date/max", false); @@ -436,7 +436,7 @@ namespace body_date { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/date/min", false); @@ -501,7 +501,7 @@ namespace body_date { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/date/min", false); diff --git a/test/TestServerProjects/body-datetime-rfc1123/Generated/Operations/Datetimerfc1123RestClient.cs b/test/TestServerProjects/body-datetime-rfc1123/Generated/Operations/Datetimerfc1123RestClient.cs index 70ff58b7..cebd6352 100644 --- a/test/TestServerProjects/body-datetime-rfc1123/Generated/Operations/Datetimerfc1123RestClient.cs +++ b/test/TestServerProjects/body-datetime-rfc1123/Generated/Operations/Datetimerfc1123RestClient.cs @@ -36,7 +36,7 @@ namespace body_datetime_rfc1123 { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetimerfc1123/null", false); @@ -103,7 +103,7 @@ namespace body_datetime_rfc1123 { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetimerfc1123/invalid", false); @@ -170,7 +170,7 @@ namespace body_datetime_rfc1123 { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetimerfc1123/overflow", false); @@ -237,7 +237,7 @@ namespace body_datetime_rfc1123 { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetimerfc1123/underflow", false); @@ -304,7 +304,7 @@ namespace body_datetime_rfc1123 { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetimerfc1123/max", false); @@ -369,7 +369,7 @@ namespace body_datetime_rfc1123 { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetimerfc1123/max/lowercase", false); @@ -436,7 +436,7 @@ namespace body_datetime_rfc1123 { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetimerfc1123/max/uppercase", false); @@ -503,7 +503,7 @@ namespace body_datetime_rfc1123 { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetimerfc1123/min", false); @@ -568,7 +568,7 @@ namespace body_datetime_rfc1123 { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetimerfc1123/min", false); diff --git a/test/TestServerProjects/body-datetime/Generated/Operations/DatetimeRestClient.cs b/test/TestServerProjects/body-datetime/Generated/Operations/DatetimeRestClient.cs index 21f86dad..3587a68c 100644 --- a/test/TestServerProjects/body-datetime/Generated/Operations/DatetimeRestClient.cs +++ b/test/TestServerProjects/body-datetime/Generated/Operations/DatetimeRestClient.cs @@ -36,7 +36,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/null", false); @@ -103,7 +103,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/invalid", false); @@ -170,7 +170,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/overflow", false); @@ -237,7 +237,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/underflow", false); @@ -304,7 +304,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/max/utc", false); @@ -369,7 +369,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/max/utc7ms", false); @@ -434,7 +434,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/max/utc/lowercase", false); @@ -501,7 +501,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/max/utc/uppercase", false); @@ -568,7 +568,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/max/utc7ms/uppercase", false); @@ -635,7 +635,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/max/localpositiveoffset", false); @@ -700,7 +700,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/max/localpositiveoffset/lowercase", false); @@ -767,7 +767,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/max/localpositiveoffset/uppercase", false); @@ -834,7 +834,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/max/localnegativeoffset", false); @@ -899,7 +899,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/max/localnegativeoffset/uppercase", false); @@ -966,7 +966,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/max/localnegativeoffset/lowercase", false); @@ -1033,7 +1033,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/min/utc", false); @@ -1098,7 +1098,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/min/utc", false); @@ -1165,7 +1165,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/min/localpositiveoffset", false); @@ -1230,7 +1230,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/min/localpositiveoffset", false); @@ -1297,7 +1297,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/min/localnegativeoffset", false); @@ -1362,7 +1362,7 @@ namespace body_datetime { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/datetime/min/localnegativeoffset", false); diff --git a/test/TestServerProjects/body-dictionary/Generated/Operations/DictionaryRestClient.cs b/test/TestServerProjects/body-dictionary/Generated/Operations/DictionaryRestClient.cs index d904ec3c..0d39e7c2 100644 --- a/test/TestServerProjects/body-dictionary/Generated/Operations/DictionaryRestClient.cs +++ b/test/TestServerProjects/body-dictionary/Generated/Operations/DictionaryRestClient.cs @@ -38,7 +38,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/null", false); @@ -113,7 +113,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/empty", false); @@ -188,7 +188,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/empty", false); @@ -269,7 +269,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/nullvalue", false); @@ -344,7 +344,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/nullkey", false); @@ -419,7 +419,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/keyemptystring", false); @@ -494,7 +494,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/invalid", false); @@ -569,7 +569,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/boolean/tfft", false); @@ -644,7 +644,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/boolean/tfft", false); @@ -725,7 +725,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/boolean/true.null.false", false); @@ -800,7 +800,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/boolean/true.boolean.false", false); @@ -875,7 +875,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/integer/1.-1.3.300", false); @@ -950,7 +950,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/integer/1.-1.3.300", false); @@ -1031,7 +1031,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/integer/1.null.zero", false); @@ -1106,7 +1106,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/integer/1.integer.0", false); @@ -1181,7 +1181,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/long/1.-1.3.300", false); @@ -1256,7 +1256,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/long/1.-1.3.300", false); @@ -1337,7 +1337,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/long/1.null.zero", false); @@ -1412,7 +1412,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/long/1.integer.0", false); @@ -1487,7 +1487,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/float/0--0.01-1.2e20", false); @@ -1562,7 +1562,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/float/0--0.01-1.2e20", false); @@ -1643,7 +1643,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/float/0.0-null-1.2e20", false); @@ -1718,7 +1718,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/float/1.number.0", false); @@ -1793,7 +1793,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/double/0--0.01-1.2e20", false); @@ -1868,7 +1868,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/double/0--0.01-1.2e20", false); @@ -1949,7 +1949,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/double/0.0-null-1.2e20", false); @@ -2024,7 +2024,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/double/1.number.0", false); @@ -2099,7 +2099,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/string/foo1.foo2.foo3", false); @@ -2174,7 +2174,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/string/foo1.foo2.foo3", false); @@ -2255,7 +2255,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/string/foo.null.foo2", false); @@ -2330,7 +2330,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/string/foo.123.foo2", false); @@ -2405,7 +2405,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/date/valid", false); @@ -2480,7 +2480,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/date/valid", false); @@ -2561,7 +2561,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/date/invalidnull", false); @@ -2636,7 +2636,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/date/invalidchars", false); @@ -2711,7 +2711,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/date-time/valid", false); @@ -2786,7 +2786,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/date-time/valid", false); @@ -2867,7 +2867,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/date-time/invalidnull", false); @@ -2942,7 +2942,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/date-time/invalidchars", false); @@ -3017,7 +3017,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/date-time-rfc1123/valid", false); @@ -3092,7 +3092,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/date-time-rfc1123/valid", false); @@ -3173,7 +3173,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/duration/valid", false); @@ -3248,7 +3248,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/duration/valid", false); @@ -3329,7 +3329,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/byte/valid", false); @@ -3404,7 +3404,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/byte/valid", false); @@ -3485,7 +3485,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/byte/invalidnull", false); @@ -3560,7 +3560,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/prim/base64url/valid", false); @@ -3635,7 +3635,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/complex/null", false); @@ -3710,7 +3710,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/complex/empty", false); @@ -3785,7 +3785,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/complex/itemnull", false); @@ -3860,7 +3860,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/complex/itemempty", false); @@ -3935,7 +3935,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/complex/valid", false); @@ -4010,7 +4010,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/complex/valid", false); @@ -4091,7 +4091,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/array/null", false); @@ -4176,7 +4176,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/array/empty", false); @@ -4261,7 +4261,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/array/itemnull", false); @@ -4346,7 +4346,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/array/itemempty", false); @@ -4431,7 +4431,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/array/valid", false); @@ -4516,7 +4516,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/array/valid", false); @@ -4602,7 +4602,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/dictionary/null", false); @@ -4677,7 +4677,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/dictionary/empty", false); @@ -4752,7 +4752,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/dictionary/itemnull", false); @@ -4827,7 +4827,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/dictionary/itemempty", false); @@ -4902,7 +4902,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/dictionary/valid", false); @@ -4977,7 +4977,7 @@ namespace body_dictionary { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/dictionary/dictionary/valid", false); diff --git a/test/TestServerProjects/body-duration/Generated/Operations/DurationRestClient.cs b/test/TestServerProjects/body-duration/Generated/Operations/DurationRestClient.cs index cda368e3..a2f2bef2 100644 --- a/test/TestServerProjects/body-duration/Generated/Operations/DurationRestClient.cs +++ b/test/TestServerProjects/body-duration/Generated/Operations/DurationRestClient.cs @@ -36,7 +36,7 @@ namespace body_duration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/duration/null", false); @@ -103,7 +103,7 @@ namespace body_duration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/duration/positiveduration", false); @@ -168,7 +168,7 @@ namespace body_duration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/duration/positiveduration", false); @@ -235,7 +235,7 @@ namespace body_duration { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/duration/invalid", false); diff --git a/test/TestServerProjects/body-file/Generated/Operations/FilesRestClient.cs b/test/TestServerProjects/body-file/Generated/Operations/FilesRestClient.cs index ba7d10b0..6c78a6d1 100644 --- a/test/TestServerProjects/body-file/Generated/Operations/FilesRestClient.cs +++ b/test/TestServerProjects/body-file/Generated/Operations/FilesRestClient.cs @@ -36,7 +36,7 @@ namespace body_file { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/files/stream/nonempty", false); @@ -101,7 +101,7 @@ namespace body_file { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/files/stream/verylarge", false); @@ -166,7 +166,7 @@ namespace body_file { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/files/stream/empty", false); diff --git a/test/TestServerProjects/body-integer/Generated/Operations/IntRestClient.cs b/test/TestServerProjects/body-integer/Generated/Operations/IntRestClient.cs index 9eb5007e..c1c775b2 100644 --- a/test/TestServerProjects/body-integer/Generated/Operations/IntRestClient.cs +++ b/test/TestServerProjects/body-integer/Generated/Operations/IntRestClient.cs @@ -36,7 +36,7 @@ namespace body_integer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/int/null", false); @@ -103,7 +103,7 @@ namespace body_integer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/int/invalid", false); @@ -170,7 +170,7 @@ namespace body_integer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/int/overflowint32", false); @@ -237,7 +237,7 @@ namespace body_integer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/int/underflowint32", false); @@ -304,7 +304,7 @@ namespace body_integer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/int/overflowint64", false); @@ -371,7 +371,7 @@ namespace body_integer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/int/underflowint64", false); @@ -438,7 +438,7 @@ namespace body_integer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/int/max/32", false); @@ -503,7 +503,7 @@ namespace body_integer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/int/max/64", false); @@ -568,7 +568,7 @@ namespace body_integer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/int/min/32", false); @@ -633,7 +633,7 @@ namespace body_integer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/int/min/64", false); @@ -698,7 +698,7 @@ namespace body_integer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/int/unixtime", false); @@ -765,7 +765,7 @@ namespace body_integer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/int/unixtime", false); @@ -830,7 +830,7 @@ namespace body_integer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/int/invalidunixtime", false); @@ -897,7 +897,7 @@ namespace body_integer { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/int/nullunixtime", false); diff --git a/test/TestServerProjects/body-number/Generated/Operations/NumberRestClient.cs b/test/TestServerProjects/body-number/Generated/Operations/NumberRestClient.cs index f50ff32f..885540fb 100644 --- a/test/TestServerProjects/body-number/Generated/Operations/NumberRestClient.cs +++ b/test/TestServerProjects/body-number/Generated/Operations/NumberRestClient.cs @@ -36,7 +36,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/null", false); @@ -103,7 +103,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/invalidfloat", false); @@ -170,7 +170,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/invaliddouble", false); @@ -237,7 +237,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/invaliddecimal", false); @@ -304,7 +304,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/big/float/3.402823e+20", false); @@ -369,7 +369,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/big/float/3.402823e+20", false); @@ -436,7 +436,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/big/double/2.5976931e+101", false); @@ -501,7 +501,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/big/double/2.5976931e+101", false); @@ -568,7 +568,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/big/double/99999999.99", false); @@ -631,7 +631,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/big/double/99999999.99", false); @@ -698,7 +698,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/big/double/-99999999.99", false); @@ -761,7 +761,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/big/double/-99999999.99", false); @@ -828,7 +828,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/big/decimal/2.5976931e+101", false); @@ -893,7 +893,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/big/decimal/2.5976931e+101", false); @@ -960,7 +960,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/big/decimal/99999999.99", false); @@ -1023,7 +1023,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/big/decimal/99999999.99", false); @@ -1090,7 +1090,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/big/decimal/-99999999.99", false); @@ -1153,7 +1153,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/big/decimal/-99999999.99", false); @@ -1220,7 +1220,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/small/float/3.402823e-20", false); @@ -1285,7 +1285,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/small/float/3.402823e-20", false); @@ -1352,7 +1352,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/small/double/2.5976931e-101", false); @@ -1417,7 +1417,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/small/double/2.5976931e-101", false); @@ -1484,7 +1484,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/small/decimal/2.5976931e-101", false); @@ -1549,7 +1549,7 @@ namespace body_number { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/number/small/decimal/2.5976931e-101", false); diff --git a/test/TestServerProjects/body-string/Generated/Operations/EnumRestClient.cs b/test/TestServerProjects/body-string/Generated/Operations/EnumRestClient.cs index c55e3188..d10cd9be 100644 --- a/test/TestServerProjects/body-string/Generated/Operations/EnumRestClient.cs +++ b/test/TestServerProjects/body-string/Generated/Operations/EnumRestClient.cs @@ -37,7 +37,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/enum/notExpandable", false); @@ -104,7 +104,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/enum/notExpandable", false); @@ -169,7 +169,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/enum/Referenced", false); @@ -236,7 +236,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/enum/Referenced", false); @@ -301,7 +301,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/enum/ReferencedConstant", false); @@ -368,7 +368,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/enum/ReferencedConstant", false); diff --git a/test/TestServerProjects/body-string/Generated/Operations/StringRestClient.cs b/test/TestServerProjects/body-string/Generated/Operations/StringRestClient.cs index 0eb69845..8738545f 100644 --- a/test/TestServerProjects/body-string/Generated/Operations/StringRestClient.cs +++ b/test/TestServerProjects/body-string/Generated/Operations/StringRestClient.cs @@ -36,7 +36,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/null", false); @@ -103,7 +103,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/null", false); @@ -166,7 +166,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/empty", false); @@ -233,7 +233,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/empty", false); @@ -296,7 +296,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/mbcs", false); @@ -363,7 +363,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/mbcs", false); @@ -426,7 +426,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/whitespace", false); @@ -493,7 +493,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/whitespace", false); @@ -556,7 +556,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/notProvided", false); @@ -623,7 +623,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/base64Encoding", false); @@ -690,7 +690,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/base64UrlEncoding", false); @@ -757,7 +757,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/base64UrlEncoding", false); @@ -832,7 +832,7 @@ namespace body_string { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/string/nullBase64UrlEncoding", false); diff --git a/test/TestServerProjects/custom-baseUrl-more-options/Generated/Operations/PathsRestClient.cs b/test/TestServerProjects/custom-baseUrl-more-options/Generated/Operations/PathsRestClient.cs index 122f3f13..4e63a288 100644 --- a/test/TestServerProjects/custom-baseUrl-more-options/Generated/Operations/PathsRestClient.cs +++ b/test/TestServerProjects/custom-baseUrl-more-options/Generated/Operations/PathsRestClient.cs @@ -41,7 +41,7 @@ namespace custom_baseUrl_more_options { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(vault, false); uri.AppendRaw(secret, false); diff --git a/test/TestServerProjects/custom-baseUrl-paging/Generated/Operations/PagingRestClient.cs b/test/TestServerProjects/custom-baseUrl-paging/Generated/Operations/PagingRestClient.cs index 4c48a130..165879b3 100644 --- a/test/TestServerProjects/custom-baseUrl-paging/Generated/Operations/PagingRestClient.cs +++ b/test/TestServerProjects/custom-baseUrl-paging/Generated/Operations/PagingRestClient.cs @@ -37,7 +37,7 @@ namespace custom_baseUrl_paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("http://", false); uri.AppendRaw(accountName, false); @@ -118,7 +118,7 @@ namespace custom_baseUrl_paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("http://", false); uri.AppendRaw(accountName, false); @@ -199,7 +199,7 @@ namespace custom_baseUrl_paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("http://", false); uri.AppendRaw(accountName, false); @@ -291,7 +291,7 @@ namespace custom_baseUrl_paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -369,7 +369,7 @@ namespace custom_baseUrl_paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; diff --git a/test/TestServerProjects/custom-baseUrl/Generated/Operations/PathsRestClient.cs b/test/TestServerProjects/custom-baseUrl/Generated/Operations/PathsRestClient.cs index 5ba8175e..796de20d 100644 --- a/test/TestServerProjects/custom-baseUrl/Generated/Operations/PathsRestClient.cs +++ b/test/TestServerProjects/custom-baseUrl/Generated/Operations/PathsRestClient.cs @@ -35,7 +35,7 @@ namespace custom_baseUrl { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw("http://", false); uri.AppendRaw(accountName, false); diff --git a/test/TestServerProjects/extensible-enums-swagger/Generated/Operations/PetRestClient.cs b/test/TestServerProjects/extensible-enums-swagger/Generated/Operations/PetRestClient.cs index 07e8e840..cc662151 100644 --- a/test/TestServerProjects/extensible-enums-swagger/Generated/Operations/PetRestClient.cs +++ b/test/TestServerProjects/extensible-enums-swagger/Generated/Operations/PetRestClient.cs @@ -37,7 +37,7 @@ namespace extensible_enums_swagger { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/extensibleenums/pet/", false); @@ -115,7 +115,7 @@ namespace extensible_enums_swagger { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/extensibleenums/pet/addPet", false); diff --git a/test/TestServerProjects/header/Generated/Operations/HeaderRestClient.cs b/test/TestServerProjects/header/Generated/Operations/HeaderRestClient.cs index a64f7e2e..2b826978 100644 --- a/test/TestServerProjects/header/Generated/Operations/HeaderRestClient.cs +++ b/test/TestServerProjects/header/Generated/Operations/HeaderRestClient.cs @@ -36,7 +36,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/param/existingkey", false); @@ -108,7 +108,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/response/existingkey", false); @@ -169,7 +169,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/param/protectedkey", false); @@ -241,7 +241,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/response/protectedkey", false); @@ -302,7 +302,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/param/prim/integer", false); @@ -377,7 +377,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/response/prim/integer", false); @@ -451,7 +451,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/param/prim/long", false); @@ -526,7 +526,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/response/prim/long", false); @@ -600,7 +600,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/param/prim/float", false); @@ -675,7 +675,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/response/prim/float", false); @@ -749,7 +749,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/param/prim/double", false); @@ -824,7 +824,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/response/prim/double", false); @@ -898,7 +898,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/param/prim/bool", false); @@ -973,7 +973,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/response/prim/bool", false); @@ -1047,7 +1047,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/param/prim/string", false); @@ -1125,7 +1125,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/response/prim/string", false); @@ -1199,7 +1199,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/param/prim/date", false); @@ -1274,7 +1274,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/response/prim/date", false); @@ -1348,7 +1348,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/param/prim/datetime", false); @@ -1423,7 +1423,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/response/prim/datetime", false); @@ -1497,7 +1497,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/param/prim/datetimerfc1123", false); @@ -1575,7 +1575,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/response/prim/datetimerfc1123", false); @@ -1649,7 +1649,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/param/prim/duration", false); @@ -1724,7 +1724,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/response/prim/duration", false); @@ -1798,7 +1798,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/param/prim/byte", false); @@ -1881,7 +1881,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/response/prim/byte", false); @@ -1955,7 +1955,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/param/prim/enum", false); @@ -2033,7 +2033,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/response/prim/enum", false); @@ -2107,7 +2107,7 @@ namespace header { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/header/custom/x-ms-client-request-id/9C4D50EE-2D56-4CD3-8152-34347DC9F2B0", false); diff --git a/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpClientFailureRestClient.cs b/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpClientFailureRestClient.cs index af85b967..f1c06552 100644 --- a/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpClientFailureRestClient.cs +++ b/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpClientFailureRestClient.cs @@ -35,7 +35,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Head; + request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/400", false); @@ -90,7 +90,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/400", false); @@ -145,7 +145,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Options; + request.Method = RequestMethod.Options; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/400", false); @@ -200,7 +200,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/400", false); @@ -259,7 +259,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Patch; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/400", false); @@ -318,7 +318,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/400", false); @@ -377,7 +377,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/400", false); @@ -436,7 +436,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Head; + request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/401", false); @@ -491,7 +491,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/402", false); @@ -546,7 +546,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Options; + request.Method = RequestMethod.Options; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/403", false); @@ -601,7 +601,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/403", false); @@ -656,7 +656,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/404", false); @@ -715,7 +715,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Patch; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/405", false); @@ -774,7 +774,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/406", false); @@ -833,7 +833,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/407", false); @@ -892,7 +892,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/409", false); @@ -951,7 +951,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Head; + request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/410", false); @@ -1006,7 +1006,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/411", false); @@ -1061,7 +1061,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Options; + request.Method = RequestMethod.Options; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/412", false); @@ -1116,7 +1116,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/412", false); @@ -1171,7 +1171,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/413", false); @@ -1230,7 +1230,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Patch; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/414", false); @@ -1289,7 +1289,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/415", false); @@ -1348,7 +1348,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/416", false); @@ -1403,7 +1403,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/417", false); @@ -1462,7 +1462,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Head; + request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/client/429", false); diff --git a/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpFailureRestClient.cs b/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpFailureRestClient.cs index 594c4c36..913cdee3 100644 --- a/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpFailureRestClient.cs +++ b/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpFailureRestClient.cs @@ -36,7 +36,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/emptybody/error", false); @@ -103,7 +103,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/nomodel/error", false); @@ -170,7 +170,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/nomodel/empty", false); diff --git a/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpRedirectsRestClient.cs b/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpRedirectsRestClient.cs index a1cee788..faea62cb 100644 --- a/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpRedirectsRestClient.cs +++ b/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpRedirectsRestClient.cs @@ -35,7 +35,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Head; + request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/redirect/300", false); @@ -94,7 +94,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/redirect/300", false); @@ -153,7 +153,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Head; + request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/redirect/301", false); @@ -212,7 +212,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/redirect/301", false); @@ -271,7 +271,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/redirect/301", false); @@ -336,7 +336,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Head; + request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/redirect/302", false); @@ -395,7 +395,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/redirect/302", false); @@ -454,7 +454,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Patch; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/redirect/302", false); @@ -519,7 +519,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/redirect/303", false); @@ -582,7 +582,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Head; + request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/redirect/307", false); @@ -641,7 +641,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/redirect/307", false); @@ -700,7 +700,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Options; + request.Method = RequestMethod.Options; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/redirect/307", false); @@ -759,7 +759,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/redirect/307", false); @@ -822,7 +822,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Patch; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/redirect/307", false); @@ -885,7 +885,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/redirect/307", false); @@ -948,7 +948,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/redirect/307", false); diff --git a/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpRetryRestClient.cs b/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpRetryRestClient.cs index 4dbe4ef2..26fc8425 100644 --- a/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpRetryRestClient.cs +++ b/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpRetryRestClient.cs @@ -36,7 +36,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Head; + request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/retry/408", false); @@ -95,7 +95,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/retry/500", false); @@ -158,7 +158,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Patch; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/retry/500", false); @@ -221,7 +221,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/retry/502", false); @@ -280,7 +280,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Options; + request.Method = RequestMethod.Options; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/retry/502", false); @@ -347,7 +347,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/retry/503", false); @@ -410,7 +410,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/retry/503", false); @@ -473,7 +473,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/retry/504", false); @@ -536,7 +536,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Patch; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/retry/504", false); diff --git a/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpServerFailureRestClient.cs b/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpServerFailureRestClient.cs index 8984becd..630200f0 100644 --- a/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpServerFailureRestClient.cs +++ b/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpServerFailureRestClient.cs @@ -35,7 +35,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Head; + request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/server/501", false); @@ -90,7 +90,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/server/501", false); @@ -145,7 +145,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/server/505", false); @@ -204,7 +204,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/failure/server/505", false); diff --git a/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpSuccessRestClient.cs b/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpSuccessRestClient.cs index d818e28f..dfed59d9 100644 --- a/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpSuccessRestClient.cs +++ b/test/TestServerProjects/httpInfrastructure/Generated/Operations/HttpSuccessRestClient.cs @@ -36,7 +36,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Head; + request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/200", false); @@ -95,7 +95,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/200", false); @@ -162,7 +162,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Options; + request.Method = RequestMethod.Options; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/200", false); @@ -229,7 +229,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/200", false); @@ -292,7 +292,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Patch; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/200", false); @@ -355,7 +355,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/200", false); @@ -418,7 +418,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/200", false); @@ -481,7 +481,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/201", false); @@ -544,7 +544,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/201", false); @@ -607,7 +607,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/202", false); @@ -670,7 +670,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Patch; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/202", false); @@ -733,7 +733,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/202", false); @@ -796,7 +796,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/202", false); @@ -859,7 +859,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Head; + request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/204", false); @@ -918,7 +918,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/204", false); @@ -981,7 +981,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Patch; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/204", false); @@ -1044,7 +1044,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/204", false); @@ -1107,7 +1107,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/204", false); @@ -1170,7 +1170,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Head; + request.Method = RequestMethod.Head; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/success/404", false); diff --git a/test/TestServerProjects/httpInfrastructure/Generated/Operations/MultipleResponsesRestClient.cs b/test/TestServerProjects/httpInfrastructure/Generated/Operations/MultipleResponsesRestClient.cs index ed6539b1..1a82b674 100644 --- a/test/TestServerProjects/httpInfrastructure/Generated/Operations/MultipleResponsesRestClient.cs +++ b/test/TestServerProjects/httpInfrastructure/Generated/Operations/MultipleResponsesRestClient.cs @@ -37,7 +37,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/204/none/default/Error/response/200/valid", false); @@ -104,7 +104,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/204/none/default/Error/response/204/none", false); @@ -171,7 +171,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/204/none/default/Error/response/201/valid", false); @@ -238,7 +238,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/204/none/default/Error/response/202/none", false); @@ -305,7 +305,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/204/none/default/Error/response/400/valid", false); @@ -372,7 +372,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/201/B/default/Error/response/200/valid", false); @@ -439,7 +439,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/201/B/default/Error/response/201/valid", false); @@ -506,7 +506,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/201/B/default/Error/response/400/valid", false); @@ -573,7 +573,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/201/C/404/D/default/Error/response/200/valid", false); @@ -640,7 +640,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/201/C/404/D/default/Error/response/201/valid", false); @@ -707,7 +707,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/201/C/404/D/default/Error/response/404/valid", false); @@ -774,7 +774,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/201/C/404/D/default/Error/response/400/valid", false); @@ -841,7 +841,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/202/none/204/none/default/Error/response/202/none", false); @@ -900,7 +900,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/202/none/204/none/default/Error/response/204/none", false); @@ -959,7 +959,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/202/none/204/none/default/Error/response/400/valid", false); @@ -1018,7 +1018,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/202/none/204/none/default/none/response/202/invalid", false); @@ -1077,7 +1077,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/202/none/204/none/default/none/response/204/none", false); @@ -1136,7 +1136,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/202/none/204/none/default/none/response/400/none", false); @@ -1195,7 +1195,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/202/none/204/none/default/none/response/400/invalid", false); @@ -1254,7 +1254,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/default/A/response/200/valid", false); @@ -1321,7 +1321,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/default/A/response/200/none", false); @@ -1388,7 +1388,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/default/A/response/400/valid", false); @@ -1447,7 +1447,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/default/A/response/400/none", false); @@ -1506,7 +1506,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/default/none/response/200/invalid", false); @@ -1565,7 +1565,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/default/none/response/200/none", false); @@ -1624,7 +1624,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/default/none/response/400/invalid", false); @@ -1683,7 +1683,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/default/none/response/400/none", false); @@ -1742,7 +1742,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/response/200/none", false); @@ -1809,7 +1809,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/response/200/valid", false); @@ -1876,7 +1876,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/response/200/invalid", false); @@ -1943,7 +1943,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/response/400/none", false); @@ -2010,7 +2010,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/response/400/valid", false); @@ -2077,7 +2077,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/response/400/invalid", false); @@ -2144,7 +2144,7 @@ namespace httpInfrastructure { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/http/payloads/200/A/response/202/valid", false); diff --git a/test/TestServerProjects/lro/Generated/Operations/LRORetrysRestClient.cs b/test/TestServerProjects/lro/Generated/Operations/LRORetrysRestClient.cs index 75ef1ddb..23e9e447 100644 --- a/test/TestServerProjects/lro/Generated/Operations/LRORetrysRestClient.cs +++ b/test/TestServerProjects/lro/Generated/Operations/LRORetrysRestClient.cs @@ -36,7 +36,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/retryerror/put/201/creating/succeeded/200", false); @@ -101,7 +101,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/retryerror/putasync/retry/succeeded", false); @@ -166,7 +166,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/retryerror/delete/provisioning/202/accepted/200/succeeded", false); @@ -225,7 +225,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/retryerror/delete/202/retry/200", false); @@ -284,7 +284,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/retryerror/deleteasync/retry/succeeded", false); @@ -343,7 +343,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/retryerror/post/202/retry/200", false); @@ -408,7 +408,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/retryerror/postasync/retry/succeeded", false); diff --git a/test/TestServerProjects/lro/Generated/Operations/LROsCustomHeaderRestClient.cs b/test/TestServerProjects/lro/Generated/Operations/LROsCustomHeaderRestClient.cs index 473496c3..adc7edd6 100644 --- a/test/TestServerProjects/lro/Generated/Operations/LROsCustomHeaderRestClient.cs +++ b/test/TestServerProjects/lro/Generated/Operations/LROsCustomHeaderRestClient.cs @@ -36,7 +36,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/customheader/putasync/retry/succeeded", false); @@ -101,7 +101,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/customheader/put/201/creating/succeeded/200", false); @@ -166,7 +166,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/customheader/post/202/retry/200", false); @@ -231,7 +231,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/customheader/postasync/retry/succeeded", false); diff --git a/test/TestServerProjects/lro/Generated/Operations/LROsRestClient.cs b/test/TestServerProjects/lro/Generated/Operations/LROsRestClient.cs index 16823494..18ee26b9 100644 --- a/test/TestServerProjects/lro/Generated/Operations/LROsRestClient.cs +++ b/test/TestServerProjects/lro/Generated/Operations/LROsRestClient.cs @@ -36,7 +36,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/put/200/succeeded", false); @@ -101,7 +101,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/put/200/succeeded/nostate", false); @@ -166,7 +166,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/put/202/retry/200", false); @@ -231,7 +231,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/put/201/creating/succeeded/200", false); @@ -296,7 +296,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/put/200/updating/succeeded/200", false); @@ -361,7 +361,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/put/201/created/failed/200", false); @@ -426,7 +426,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/put/200/accepted/canceled/200", false); @@ -491,7 +491,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/put/noheader/202/200", false); @@ -556,7 +556,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/putasync/retry/succeeded", false); @@ -621,7 +621,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/putasync/noretry/succeeded", false); @@ -686,7 +686,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/putasync/retry/failed", false); @@ -751,7 +751,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/putasync/noretry/canceled", false); @@ -816,7 +816,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/putasync/noheader/201/200", false); @@ -881,7 +881,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/putnonresource/202/200", false); @@ -946,7 +946,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/putnonresourceasync/202/200", false); @@ -1011,7 +1011,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/putsubresource/202/200", false); @@ -1076,7 +1076,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/putsubresourceasync/202/200", false); @@ -1141,7 +1141,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/delete/provisioning/202/accepted/200/succeeded", false); @@ -1200,7 +1200,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/delete/provisioning/202/deleting/200/failed", false); @@ -1259,7 +1259,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/delete/provisioning/202/deleting/200/canceled", false); @@ -1318,7 +1318,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/delete/204/succeeded", false); @@ -1377,7 +1377,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/delete/202/retry/200", false); @@ -1436,7 +1436,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/delete/202/noretry/204", false); @@ -1495,7 +1495,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/delete/noheader", false); @@ -1554,7 +1554,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/deleteasync/noheader/202/204", false); @@ -1613,7 +1613,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/deleteasync/retry/succeeded", false); @@ -1672,7 +1672,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/deleteasync/noretry/succeeded", false); @@ -1731,7 +1731,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/deleteasync/retry/failed", false); @@ -1790,7 +1790,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/deleteasync/retry/canceled", false); @@ -1849,7 +1849,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/post/payload/200", false); @@ -1908,7 +1908,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/post/202/retry/200", false); @@ -1973,7 +1973,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/post/202/noretry/204", false); @@ -2038,7 +2038,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/LROPostDoubleHeadersFinalLocationGet", false); @@ -2097,7 +2097,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/LROPostDoubleHeadersFinalAzureHeaderGet", false); @@ -2156,7 +2156,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/LROPostDoubleHeadersFinalAzureHeaderGetDefault", false); @@ -2215,7 +2215,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/postasync/retry/succeeded", false); @@ -2280,7 +2280,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/postasync/noretry/succeeded", false); @@ -2345,7 +2345,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/postasync/retry/failed", false); @@ -2410,7 +2410,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/postasync/retry/canceled", false); diff --git a/test/TestServerProjects/lro/Generated/Operations/LrosaDsRestClient.cs b/test/TestServerProjects/lro/Generated/Operations/LrosaDsRestClient.cs index c375cb83..a5ac191c 100644 --- a/test/TestServerProjects/lro/Generated/Operations/LrosaDsRestClient.cs +++ b/test/TestServerProjects/lro/Generated/Operations/LrosaDsRestClient.cs @@ -36,7 +36,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/nonretryerror/put/400", false); @@ -101,7 +101,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/nonretryerror/put/201/creating/400", false); @@ -166,7 +166,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/nonretryerror/put/201/creating/400/invalidjson", false); @@ -231,7 +231,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/nonretryerror/putasync/retry/400", false); @@ -296,7 +296,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/nonretryerror/delete/400", false); @@ -355,7 +355,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/nonretryerror/delete/202/retry/400", false); @@ -414,7 +414,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/nonretryerror/deleteasync/retry/400", false); @@ -473,7 +473,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/nonretryerror/post/400", false); @@ -538,7 +538,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/nonretryerror/post/202/retry/400", false); @@ -603,7 +603,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/nonretryerror/postasync/retry/400", false); @@ -668,7 +668,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/error/put/201/noprovisioningstatepayload", false); @@ -733,7 +733,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/error/putasync/retry/nostatus", false); @@ -798,7 +798,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/error/putasync/retry/nostatuspayload", false); @@ -863,7 +863,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/error/delete/204/nolocation", false); @@ -922,7 +922,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/error/deleteasync/retry/nostatus", false); @@ -981,7 +981,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/error/post/202/nolocation", false); @@ -1046,7 +1046,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/error/postasync/retry/nopayload", false); @@ -1111,7 +1111,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/error/put/200/invalidjson", false); @@ -1176,7 +1176,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/error/putasync/retry/invalidheader", false); @@ -1241,7 +1241,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/error/putasync/retry/invalidjsonpolling", false); @@ -1306,7 +1306,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/error/delete/202/retry/invalidheader", false); @@ -1365,7 +1365,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/error/deleteasync/retry/invalidheader", false); @@ -1424,7 +1424,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Delete; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/error/deleteasync/retry/invalidjsonpolling", false); @@ -1483,7 +1483,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/error/post/202/retry/invalidheader", false); @@ -1548,7 +1548,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/error/postasync/retry/invalidheader", false); @@ -1613,7 +1613,7 @@ namespace lro { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/lro/error/postasync/retry/invalidjsonpolling", false); diff --git a/test/TestServerProjects/model-flattening/Generated/Operations/ServiceRestClient.cs b/test/TestServerProjects/model-flattening/Generated/Operations/ServiceRestClient.cs index 9740da8d..bc2d31f5 100644 --- a/test/TestServerProjects/model-flattening/Generated/Operations/ServiceRestClient.cs +++ b/test/TestServerProjects/model-flattening/Generated/Operations/ServiceRestClient.cs @@ -38,7 +38,7 @@ namespace model_flattening { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/model-flatten/array", false); @@ -108,7 +108,7 @@ namespace model_flattening { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/model-flatten/array", false); @@ -183,7 +183,7 @@ namespace model_flattening { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/model-flatten/wrappedarray", false); @@ -253,7 +253,7 @@ namespace model_flattening { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/model-flatten/wrappedarray", false); @@ -328,7 +328,7 @@ namespace model_flattening { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/model-flatten/dictionary", false); @@ -399,7 +399,7 @@ namespace model_flattening { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/model-flatten/dictionary", false); @@ -474,7 +474,7 @@ namespace model_flattening { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/model-flatten/resourcecollection", false); @@ -539,7 +539,7 @@ namespace model_flattening { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/model-flatten/resourcecollection", false); @@ -606,7 +606,7 @@ namespace model_flattening { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/model-flatten/customFlattening", false); @@ -679,7 +679,7 @@ namespace model_flattening { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/model-flatten/customFlattening", false); @@ -752,7 +752,7 @@ namespace model_flattening { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/model-flatten/customFlattening/parametergrouping/", false); diff --git a/test/TestServerProjects/paging/Generated/Operations/PagingRestClient.cs b/test/TestServerProjects/paging/Generated/Operations/PagingRestClient.cs index e8f572c2..c2be2b8f 100644 --- a/test/TestServerProjects/paging/Generated/Operations/PagingRestClient.cs +++ b/test/TestServerProjects/paging/Generated/Operations/PagingRestClient.cs @@ -37,7 +37,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paging/noitemname", false); @@ -104,7 +104,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paging/nullnextlink", false); @@ -171,7 +171,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paging/single", false); @@ -238,7 +238,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paging/multiple", false); @@ -323,7 +323,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paging/multiple/odata", false); @@ -408,7 +408,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paging/multiple/withpath/", false); @@ -496,7 +496,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paging/multiple/retryfirst", false); @@ -563,7 +563,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paging/multiple/retrysecond", false); @@ -630,7 +630,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paging/single/failure", false); @@ -697,7 +697,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paging/multiple/failure", false); @@ -764,7 +764,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paging/multiple/failureuri", false); @@ -831,7 +831,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paging/multiple/fragment/", false); @@ -922,7 +922,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paging/multiple/fragmentwithgrouping/", false); @@ -1013,7 +1013,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paging/multiple/lro", false); @@ -1098,7 +1098,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paging/multiple/fragment/", false); @@ -1201,7 +1201,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paging/multiple/fragmentwithgrouping/", false); @@ -1304,7 +1304,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -1382,7 +1382,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -1460,7 +1460,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -1538,7 +1538,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -1634,7 +1634,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -1730,7 +1730,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -1826,7 +1826,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -1904,7 +1904,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -1982,7 +1982,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -2060,7 +2060,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -2138,7 +2138,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -2216,7 +2216,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -2312,7 +2312,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; @@ -2390,7 +2390,7 @@ namespace paging { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(nextLink, false); request.Uri = uri; diff --git a/test/TestServerProjects/url-multi-collectionFormat/Generated/Operations/QueriesRestClient.cs b/test/TestServerProjects/url-multi-collectionFormat/Generated/Operations/QueriesRestClient.cs index 2e325513..cbef1d07 100644 --- a/test/TestServerProjects/url-multi-collectionFormat/Generated/Operations/QueriesRestClient.cs +++ b/test/TestServerProjects/url-multi-collectionFormat/Generated/Operations/QueriesRestClient.cs @@ -36,7 +36,7 @@ namespace url_multi_collectionFormat { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/array/multi/string/null", false); @@ -101,7 +101,7 @@ namespace url_multi_collectionFormat { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/array/multi/string/empty", false); @@ -166,7 +166,7 @@ namespace url_multi_collectionFormat { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/array/multi/string/valid", false); diff --git a/test/TestServerProjects/url/Generated/Operations/PathItemsRestClient.cs b/test/TestServerProjects/url/Generated/Operations/PathItemsRestClient.cs index 8827d082..48a81417 100644 --- a/test/TestServerProjects/url/Generated/Operations/PathItemsRestClient.cs +++ b/test/TestServerProjects/url/Generated/Operations/PathItemsRestClient.cs @@ -43,7 +43,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/pathitem/nullable/globalStringPath/", false); @@ -146,7 +146,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/pathitem/nullable/globalStringPath/", false); @@ -249,7 +249,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/pathitem/nullable/globalStringPath/", false); @@ -352,7 +352,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/pathitem/nullable/globalStringPath/", false); diff --git a/test/TestServerProjects/url/Generated/Operations/PathsRestClient.cs b/test/TestServerProjects/url/Generated/Operations/PathsRestClient.cs index 4bd025a3..be5267b0 100644 --- a/test/TestServerProjects/url/Generated/Operations/PathsRestClient.cs +++ b/test/TestServerProjects/url/Generated/Operations/PathsRestClient.cs @@ -37,7 +37,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/bool/true/", false); @@ -97,7 +97,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/bool/false/", false); @@ -157,7 +157,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/int/1000000/", false); @@ -217,7 +217,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/int/-1000000/", false); @@ -277,7 +277,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/long/10000000000/", false); @@ -337,7 +337,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/long/-10000000000/", false); @@ -397,7 +397,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/float/1.034E+20/", false); @@ -457,7 +457,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/float/-1.034E-20/", false); @@ -517,7 +517,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/double/9999999.999/", false); @@ -577,7 +577,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/double/-9999999.999/", false); @@ -637,7 +637,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/string/unicode/", false); @@ -697,7 +697,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend/", false); @@ -757,7 +757,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/string/begin!*'();:@&=+$,end/", false); @@ -817,7 +817,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/string/empty/", false); @@ -877,7 +877,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/string/null/", false); @@ -949,7 +949,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/enum/green%20color/", false); @@ -1011,7 +1011,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/string/null/", false); @@ -1073,7 +1073,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/byte/multibyte/", false); @@ -1145,7 +1145,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/byte/empty/", false); @@ -1205,7 +1205,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/byte/null/", false); @@ -1277,7 +1277,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/date/2012-01-01/", false); @@ -1337,7 +1337,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/date/null/", false); @@ -1399,7 +1399,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/datetime/2012-01-01T01%3A01%3A01Z/", false); @@ -1459,7 +1459,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/datetime/null/", false); @@ -1521,7 +1521,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/string/bG9yZW0/", false); @@ -1593,7 +1593,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/array/ArrayPath1%2cbegin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend%2c%2c/", false); @@ -1665,7 +1665,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/paths/int/1460505600/", false); diff --git a/test/TestServerProjects/url/Generated/Operations/QueriesRestClient.cs b/test/TestServerProjects/url/Generated/Operations/QueriesRestClient.cs index 2c6509df..e5b121c4 100644 --- a/test/TestServerProjects/url/Generated/Operations/QueriesRestClient.cs +++ b/test/TestServerProjects/url/Generated/Operations/QueriesRestClient.cs @@ -37,7 +37,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/bool/true", false); @@ -97,7 +97,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/bool/false", false); @@ -157,7 +157,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/bool/null", false); @@ -222,7 +222,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/int/1000000", false); @@ -282,7 +282,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/int/-1000000", false); @@ -342,7 +342,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/int/null", false); @@ -407,7 +407,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/long/10000000000", false); @@ -467,7 +467,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/long/-10000000000", false); @@ -527,7 +527,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/long/null", false); @@ -592,7 +592,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/float/1.034E+20", false); @@ -652,7 +652,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/float/-1.034E-20", false); @@ -712,7 +712,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/float/null", false); @@ -777,7 +777,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/double/9999999.999", false); @@ -837,7 +837,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/double/-9999999.999", false); @@ -897,7 +897,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/double/null", false); @@ -962,7 +962,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/string/unicode/", false); @@ -1022,7 +1022,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend", false); @@ -1082,7 +1082,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/string/empty", false); @@ -1142,7 +1142,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/string/null", false); @@ -1207,7 +1207,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/enum/green%20color", false); @@ -1272,7 +1272,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/enum/null", false); @@ -1337,7 +1337,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/byte/multibyte", false); @@ -1402,7 +1402,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/byte/empty", false); @@ -1462,7 +1462,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/byte/null", false); @@ -1527,7 +1527,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/date/2012-01-01", false); @@ -1587,7 +1587,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/date/null", false); @@ -1652,7 +1652,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/datetime/2012-01-01T01%3A01%3A01Z", false); @@ -1712,7 +1712,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/datetime/null", false); @@ -1777,7 +1777,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/array/csv/string/valid", false); @@ -1842,7 +1842,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/array/csv/string/null", false); @@ -1907,7 +1907,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/array/csv/string/empty", false); @@ -1972,7 +1972,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/array/ssv/string/valid", false); @@ -2037,7 +2037,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/array/tsv/string/valid", false); @@ -2102,7 +2102,7 @@ namespace url { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/queries/array/pipes/string/valid", false); diff --git a/test/TestServerProjects/validation/Generated/Operations/ServiceRestClient.cs b/test/TestServerProjects/validation/Generated/Operations/ServiceRestClient.cs index ac514706..b95f2db7 100644 --- a/test/TestServerProjects/validation/Generated/Operations/ServiceRestClient.cs +++ b/test/TestServerProjects/validation/Generated/Operations/ServiceRestClient.cs @@ -49,7 +49,7 @@ namespace validation { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/fakepath/", false); @@ -136,7 +136,7 @@ namespace validation { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/fakepath/", false); @@ -229,7 +229,7 @@ namespace validation { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/validation/constantsInPath/", false); @@ -288,7 +288,7 @@ namespace validation { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Post; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/validation/constantsInPath/", false); diff --git a/test/TestServerProjects/xml-service/Generated/Operations/XmlRestClient.cs b/test/TestServerProjects/xml-service/Generated/Operations/XmlRestClient.cs index 2cbf9d3a..f794aac4 100644 --- a/test/TestServerProjects/xml-service/Generated/Operations/XmlRestClient.cs +++ b/test/TestServerProjects/xml-service/Generated/Operations/XmlRestClient.cs @@ -39,7 +39,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/complex-type-ref-no-meta", false); @@ -116,7 +116,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/complex-type-ref-no-meta", false); @@ -191,7 +191,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/complex-type-ref-with-meta", false); @@ -268,7 +268,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/complex-type-ref-with-meta", false); @@ -343,7 +343,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/simple", false); @@ -420,7 +420,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/simple", false); @@ -495,7 +495,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/wrapped-lists", false); @@ -572,7 +572,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/wrapped-lists", false); @@ -647,7 +647,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/headers", false); @@ -708,7 +708,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/empty-list", false); @@ -785,7 +785,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/empty-list", false); @@ -860,7 +860,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/empty-wrapped-lists", false); @@ -937,7 +937,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/empty-wrapped-lists", false); @@ -1012,7 +1012,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/root-list", false); @@ -1101,7 +1101,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/root-list", false); @@ -1181,7 +1181,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/root-list-single-item", false); @@ -1270,7 +1270,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/root-list-single-item", false); @@ -1350,7 +1350,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/empty-root-list", false); @@ -1439,7 +1439,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/empty-root-list", false); @@ -1519,7 +1519,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/empty-child-element", false); @@ -1596,7 +1596,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/empty-child-element", false); @@ -1671,7 +1671,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/", false); @@ -1749,7 +1749,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/", false); @@ -1828,7 +1828,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/", false); @@ -1905,7 +1905,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/mycontainer", false); @@ -1996,7 +1996,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/mycontainer", false); @@ -2078,7 +2078,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/mycontainer", false); @@ -2157,7 +2157,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Put; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/jsoninput", false); @@ -2232,7 +2232,7 @@ namespace xml_service { var message = pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethodAdditional.Get; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(host, false); uri.AppendPath("/xml/jsonoutput", false);