From bf01fa92aeb0904c136df8a076c0a6814302d56a Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 30 Apr 2020 02:58:17 +0000 Subject: [PATCH] Generated from aacab711ed01fee78d28005b4ab4a30be1ca5e22 Add public network access --- sdk/containerregistry/mgmt-v2017_06_01_preview/pom.xml | 4 +++- .../containerregistry/v2017_06_01_preview/Target.java | 6 +++--- .../implementation/ReplicationsImpl.java | 10 +++++++--- .../implementation/WebhooksImpl.java | 10 +++++++--- 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/sdk/containerregistry/mgmt-v2017_06_01_preview/pom.xml b/sdk/containerregistry/mgmt-v2017_06_01_preview/pom.xml index 8ae204d387f7e..7e6a610b267ef 100644 --- a/sdk/containerregistry/mgmt-v2017_06_01_preview/pom.xml +++ b/sdk/containerregistry/mgmt-v2017_06_01_preview/pom.xml @@ -11,7 +11,7 @@ com.microsoft.azure azure-arm-parent - 1.2.0 + 1.1.0 ../../../pom.management.xml azure-mgmt-containerregistry @@ -71,6 +71,8 @@ azure-arm-client-runtime test-jar test + + 1.6.5 diff --git a/sdk/containerregistry/mgmt-v2017_06_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2017_06_01_preview/Target.java b/sdk/containerregistry/mgmt-v2017_06_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2017_06_01_preview/Target.java index c3a24974a135f..c14b7193d5906 100644 --- a/sdk/containerregistry/mgmt-v2017_06_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2017_06_01_preview/Target.java +++ b/sdk/containerregistry/mgmt-v2017_06_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2017_06_01_preview/Target.java @@ -28,7 +28,7 @@ public class Target { /** * The digest of the content, as defined by the Registry V2 HTTP API - * Specificiation. + * Specification. */ @JsonProperty(value = "digest") private String digest; @@ -98,7 +98,7 @@ public Target withSize(Long size) { } /** - * Get the digest of the content, as defined by the Registry V2 HTTP API Specificiation. + * Get the digest of the content, as defined by the Registry V2 HTTP API Specification. * * @return the digest value */ @@ -107,7 +107,7 @@ public String digest() { } /** - * Set the digest of the content, as defined by the Registry V2 HTTP API Specificiation. + * Set the digest of the content, as defined by the Registry V2 HTTP API Specification. * * @param digest the digest value to set * @return the Target object itself. diff --git a/sdk/containerregistry/mgmt-v2017_06_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2017_06_01_preview/implementation/ReplicationsImpl.java b/sdk/containerregistry/mgmt-v2017_06_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2017_06_01_preview/implementation/ReplicationsImpl.java index e79a4505bc134..3f27ad5168573 100644 --- a/sdk/containerregistry/mgmt-v2017_06_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2017_06_01_preview/implementation/ReplicationsImpl.java +++ b/sdk/containerregistry/mgmt-v2017_06_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2017_06_01_preview/implementation/ReplicationsImpl.java @@ -64,10 +64,14 @@ public Replication call(ReplicationInner inner) { public Observable getAsync(String resourceGroupName, String registryName, String replicationName) { ReplicationsInner client = this.inner(); return client.getAsync(resourceGroupName, registryName, replicationName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public Replication call(ReplicationInner inner) { - return wrapModel(inner); + public Observable call(ReplicationInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((Replication)wrapModel(inner)); + } } }); } diff --git a/sdk/containerregistry/mgmt-v2017_06_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2017_06_01_preview/implementation/WebhooksImpl.java b/sdk/containerregistry/mgmt-v2017_06_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2017_06_01_preview/implementation/WebhooksImpl.java index 6260a05f972a6..4d6e8ab7c6718 100644 --- a/sdk/containerregistry/mgmt-v2017_06_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2017_06_01_preview/implementation/WebhooksImpl.java +++ b/sdk/containerregistry/mgmt-v2017_06_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2017_06_01_preview/implementation/WebhooksImpl.java @@ -109,10 +109,14 @@ public Webhook call(WebhookInner inner) { public Observable getAsync(String resourceGroupName, String registryName, String webhookName) { WebhooksInner client = this.inner(); return client.getAsync(resourceGroupName, registryName, webhookName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public Webhook call(WebhookInner inner) { - return wrapModel(inner); + public Observable call(WebhookInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((Webhook)wrapModel(inner)); + } } }); }