From 18ec42f1b678ca56121594bd36ca9692999ceb65 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Sun, 11 Oct 2020 01:33:10 +0000 Subject: [PATCH] Generated from 107bc96b5f9b28633b5f99549f983421e66d8ddc --- sdk/kusto/mgmt-v2020_06_14/pom.xml | 4 ++-- .../implementation/ClustersImpl.java | 6 ++--- .../implementation/ClustersInner.java | 23 ++++++------------- .../implementation/DataConnectionInner.java | 3 --- .../implementation/DatabaseInner.java | 2 -- 5 files changed, 12 insertions(+), 26 deletions(-) diff --git a/sdk/kusto/mgmt-v2020_06_14/pom.xml b/sdk/kusto/mgmt-v2020_06_14/pom.xml index 959138e7e0767..596628d7f5ce0 100644 --- a/sdk/kusto/mgmt-v2020_06_14/pom.xml +++ b/sdk/kusto/mgmt-v2020_06_14/pom.xml @@ -11,8 +11,8 @@ com.microsoft.azure azure-arm-parent - 1.3.2 - ../../parents/azure-arm-parent/pom.xml + 1.1.0 + ../../../pom.management.xml azure-mgmt-kusto 1.0.0-beta diff --git a/sdk/kusto/mgmt-v2020_06_14/src/main/java/com/microsoft/azure/management/kusto/v2020_06_14/implementation/ClustersImpl.java b/sdk/kusto/mgmt-v2020_06_14/src/main/java/com/microsoft/azure/management/kusto/v2020_06_14/implementation/ClustersImpl.java index 356232ace4f76..48eb035516ab4 100644 --- a/sdk/kusto/mgmt-v2020_06_14/src/main/java/com/microsoft/azure/management/kusto/v2020_06_14/implementation/ClustersImpl.java +++ b/sdk/kusto/mgmt-v2020_06_14/src/main/java/com/microsoft/azure/management/kusto/v2020_06_14/implementation/ClustersImpl.java @@ -113,10 +113,10 @@ public PagedList list() { public Observable listAsync() { ClustersInner client = this.inner(); return client.listAsync() - .flatMap(new Func1, Observable>() { + .flatMap(new Func1, Observable>() { @Override - public Observable call(Page innerList) { - return Observable.from(innerList.items()); + public Observable call(List innerList) { + return Observable.from(innerList); } }) .map(new Func1() { diff --git a/sdk/kusto/mgmt-v2020_06_14/src/main/java/com/microsoft/azure/management/kusto/v2020_06_14/implementation/ClustersInner.java b/sdk/kusto/mgmt-v2020_06_14/src/main/java/com/microsoft/azure/management/kusto/v2020_06_14/implementation/ClustersInner.java index 879aa11f51ce1..88e096e4736b1 100644 --- a/sdk/kusto/mgmt-v2020_06_14/src/main/java/com/microsoft/azure/management/kusto/v2020_06_14/implementation/ClustersInner.java +++ b/sdk/kusto/mgmt-v2020_06_14/src/main/java/com/microsoft/azure/management/kusto/v2020_06_14/implementation/ClustersInner.java @@ -1581,16 +1581,8 @@ private ServiceResponse> listByResourceGroupDelegate(Resp * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<ClusterInner> object if successful. */ - public PagedList list() { - PageImpl page = new PageImpl<>(); - page.setItems(listWithServiceResponseAsync().toBlocking().single().body()); - page.setNextPageLink(null); - return new PagedList(page) { - @Override - public Page nextPage(String nextPageLink) { - return null; - } - }; + public List list() { + return listWithServiceResponseAsync().toBlocking().single().body(); } /** @@ -1610,12 +1602,11 @@ public ServiceFuture> listAsync(final ServiceCallback> listAsync() { - return listWithServiceResponseAsync().map(new Func1>, Page>() { - public Page call(ServiceResponse> response) { - PageImpl page = new PageImpl<>(); - page.setItems(response.body()); - return page; + public Observable> listAsync() { + return listWithServiceResponseAsync().map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); } }); } diff --git a/sdk/kusto/mgmt-v2020_06_14/src/main/java/com/microsoft/azure/management/kusto/v2020_06_14/implementation/DataConnectionInner.java b/sdk/kusto/mgmt-v2020_06_14/src/main/java/com/microsoft/azure/management/kusto/v2020_06_14/implementation/DataConnectionInner.java index 28078531be343..60e93a2481002 100644 --- a/sdk/kusto/mgmt-v2020_06_14/src/main/java/com/microsoft/azure/management/kusto/v2020_06_14/implementation/DataConnectionInner.java +++ b/sdk/kusto/mgmt-v2020_06_14/src/main/java/com/microsoft/azure/management/kusto/v2020_06_14/implementation/DataConnectionInner.java @@ -13,9 +13,6 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.microsoft.azure.ProxyResource; -import com.microsoft.azure.management.kusto.v2020_06_14.EventGridDataConnection; -import com.microsoft.azure.management.kusto.v2020_06_14.EventHubDataConnection; -import com.microsoft.azure.management.kusto.v2020_06_14.IotHubDataConnection; /** * Class representing an data connection. diff --git a/sdk/kusto/mgmt-v2020_06_14/src/main/java/com/microsoft/azure/management/kusto/v2020_06_14/implementation/DatabaseInner.java b/sdk/kusto/mgmt-v2020_06_14/src/main/java/com/microsoft/azure/management/kusto/v2020_06_14/implementation/DatabaseInner.java index f596cc35f7c23..307680649ec28 100644 --- a/sdk/kusto/mgmt-v2020_06_14/src/main/java/com/microsoft/azure/management/kusto/v2020_06_14/implementation/DatabaseInner.java +++ b/sdk/kusto/mgmt-v2020_06_14/src/main/java/com/microsoft/azure/management/kusto/v2020_06_14/implementation/DatabaseInner.java @@ -13,8 +13,6 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.microsoft.azure.ProxyResource; -import com.microsoft.azure.management.kusto.v2020_06_14.ReadOnlyFollowingDatabase; -import com.microsoft.azure.management.kusto.v2020_06_14.ReadWriteDatabase; /** * Class representing a Kusto database.