From f6f2407ee72b254627f4fb77aefc78f9b6ea5316 Mon Sep 17 00:00:00 2001 From: Johannes Bader Date: Mon, 28 Aug 2017 15:36:00 -0700 Subject: [PATCH 1/2] bump tool version --- src/autorest.python.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/autorest.python.csproj b/src/autorest.python.csproj index 044ec503827..d27a9957feb 100644 --- a/src/autorest.python.csproj +++ b/src/autorest.python.csproj @@ -70,8 +70,8 @@ - - + + All From 110c0c3fe527fec5a4fea3390093e4c99837f82d Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Tue, 15 Aug 2017 14:36:23 -0700 Subject: [PATCH 2/2] If LRO + Pageable, choose LRO --- src/azure/TransformerPya.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/azure/TransformerPya.cs b/src/azure/TransformerPya.cs index 9ef2c57d566..54e4a44fb8b 100644 --- a/src/azure/TransformerPya.cs +++ b/src/azure/TransformerPya.cs @@ -54,6 +54,14 @@ private void TransformPagingMethods(CodeModelPya codeModel) { var pageableExtension = method.Extensions[AzureExtensions.PageableExtension] as Newtonsoft.Json.Linq.JContainer; + + /* We don't support LRO + Paging at the same time for now */ + if (method.Extensions.ContainsKey(AzureExtensions.LongRunningExtension)) + { + method.Extensions.Remove(AzureExtensions.PageableExtension); + continue; + } + var operationName = (string) pageableExtension["operationName"]; if (operationName != null) {