From 120a5302b8d0be4bc69277c3ea46dc9cc5354833 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 1 Aug 2019 03:19:59 +0000 Subject: [PATCH] Generated from d7909e7e70af1018eb2227f1250bcecd6f5634fb try #5. --- resources/resource-manager/v2019_05_01/pom.xml | 8 +++----- .../resources/v2019_05_01/DeploymentExtended.java | 8 ++++---- .../implementation/DeploymentExtendedImpl.java | 2 +- .../implementation/DeploymentOperationsImpl.java | 10 +++------- .../v2019_05_01/implementation/ProvidersImpl.java | 10 +++------- .../v2019_05_01/implementation/ResourceGroupsImpl.java | 10 +++------- 6 files changed, 17 insertions(+), 31 deletions(-) diff --git a/resources/resource-manager/v2019_05_01/pom.xml b/resources/resource-manager/v2019_05_01/pom.xml index 876f64e4c98e6..f45275bc895b5 100644 --- a/resources/resource-manager/v2019_05_01/pom.xml +++ b/resources/resource-manager/v2019_05_01/pom.xml @@ -11,11 +11,11 @@ com.microsoft.azure azure-arm-parent - 1.1.0 - ../../../pom.management.xml + 0.0.3-beta + ../../../pom.xml azure-mgmt-resources - 1.0.0-beta-1 + 1.0.0-beta jar Microsoft Azure SDK for Resources Management This package contains Microsoft Resources Management SDK. @@ -71,8 +71,6 @@ azure-arm-client-runtime test-jar test - - 1.6.5 diff --git a/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/DeploymentExtended.java b/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/DeploymentExtended.java index 732f08c5e8754..abf1085c30e63 100644 --- a/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/DeploymentExtended.java +++ b/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/DeploymentExtended.java @@ -49,7 +49,7 @@ public interface DeploymentExtended extends HasInner, I /** * The entirety of the DeploymentExtended definition. */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithMicrosoftResource, DefinitionStages.WithProperties, DefinitionStages.WithCreate { + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithMicrosoft.Resource, DefinitionStages.WithProperties, DefinitionStages.WithCreate { } /** @@ -59,19 +59,19 @@ interface DefinitionStages { /** * The first stage of a DeploymentExtended definition. */ - interface Blank extends WithMicrosoftResource { + interface Blank extends WithMicrosoft.Resource { } /** * The stage of the deploymentextended definition allowing to specify Microsoft.Resource. */ - interface WithMicrosoftResource { + interface WithMicrosoft.Resource { /** * Specifies groupId. * @param groupId The management group ID * @return the next definition stage */ - WithProperties withExistingMicrosoftResource(String groupId); + WithProperties withExistingMicrosoft.Resource(String groupId); } /** diff --git a/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/implementation/DeploymentExtendedImpl.java b/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/implementation/DeploymentExtendedImpl.java index ea34e06a1eb67..6d33270840600 100644 --- a/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/implementation/DeploymentExtendedImpl.java +++ b/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/implementation/DeploymentExtendedImpl.java @@ -116,7 +116,7 @@ public String type() { } @Override - public DeploymentExtendedImpl withExistingMicrosoftResource(String groupId) { + public DeploymentExtendedImpl withExistingMicrosoft.Resource(String groupId) { this.groupId = groupId; return this; } diff --git a/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/implementation/DeploymentOperationsImpl.java b/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/implementation/DeploymentOperationsImpl.java index feff2c66838c1..ee2ba19fa3d05 100644 --- a/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/implementation/DeploymentOperationsImpl.java +++ b/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/implementation/DeploymentOperationsImpl.java @@ -114,14 +114,10 @@ public DeploymentOperation call(DeploymentOperationInner inner) { public Observable getAtManagementGroupScopeAsync(String groupId, String deploymentName, String operationId) { DeploymentOperationsInner client = this.inner(); return client.getAtManagementGroupScopeAsync(groupId, deploymentName, operationId) - .flatMap(new Func1>() { + .map(new Func1() { @Override - public Observable call(DeploymentOperationInner inner) { - if (inner == null) { - return Observable.empty(); - } else { - return Observable.just((DeploymentOperation)wrapModel(inner)); - } + public DeploymentOperation call(DeploymentOperationInner inner) { + return wrapModel(inner); } }); } diff --git a/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/implementation/ProvidersImpl.java b/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/implementation/ProvidersImpl.java index 0d0e9d92facbb..60b5f189ceb4e 100644 --- a/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/implementation/ProvidersImpl.java +++ b/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/implementation/ProvidersImpl.java @@ -78,14 +78,10 @@ public Provider call(ProviderInner inner) { public Observable getAsync(String resourceProviderNamespace) { ProvidersInner client = this.inner(); return client.getAsync(resourceProviderNamespace) - .flatMap(new Func1>() { + .map(new Func1() { @Override - public Observable call(ProviderInner inner) { - if (inner == null) { - return Observable.empty(); - } else { - return Observable.just((Provider)wrapModel(inner)); - } + public Provider call(ProviderInner inner) { + return wrapModel(inner); } }); } diff --git a/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/implementation/ResourceGroupsImpl.java b/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/implementation/ResourceGroupsImpl.java index 440565aa7dd9f..b942e2864c31b 100644 --- a/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/implementation/ResourceGroupsImpl.java +++ b/resources/resource-manager/v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/implementation/ResourceGroupsImpl.java @@ -84,14 +84,10 @@ public ResourceGroup call(ResourceGroupInner inner) { public Observable getAsync(String resourceGroupName) { ResourceGroupsInner client = this.inner(); return client.getAsync(resourceGroupName) - .flatMap(new Func1>() { + .map(new Func1() { @Override - public Observable call(ResourceGroupInner inner) { - if (inner == null) { - return Observable.empty(); - } else { - return Observable.just((ResourceGroup)wrapModel(inner)); - } + public ResourceGroup call(ResourceGroupInner inner) { + return wrapModel(inner); } }); }