From 136bcd30ca53bede448f7be4cda6855f239ce3ec Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 5 Mar 2020 17:09:05 +0000 Subject: [PATCH] Generated from 141cce2c654fd9011e7b57664cf8f845c527074c change clicommon to cli --- sdk/servicebus/mgmt-v2015_08_01/pom.xml | 2 +- .../implementation/NamespacesImpl.java | 10 +++++++--- .../implementation/QueuesImpl.java | 20 +++++++++++++------ .../implementation/SubscriptionsImpl.java | 10 +++++++--- .../implementation/TopicsImpl.java | 20 +++++++++++++------ 5 files changed, 43 insertions(+), 19 deletions(-) diff --git a/sdk/servicebus/mgmt-v2015_08_01/pom.xml b/sdk/servicebus/mgmt-v2015_08_01/pom.xml index 6cbeaa2713cb3..6c4421ae3e797 100644 --- a/sdk/servicebus/mgmt-v2015_08_01/pom.xml +++ b/sdk/servicebus/mgmt-v2015_08_01/pom.xml @@ -11,7 +11,7 @@ com.microsoft.azure azure-arm-parent - 1.2.0 + 1.1.0 ../../../pom.management.xml azure-mgmt-servicebus diff --git a/sdk/servicebus/mgmt-v2015_08_01/src/main/java/com/microsoft/azure/management/servicebus/v2015_08_01/implementation/NamespacesImpl.java b/sdk/servicebus/mgmt-v2015_08_01/src/main/java/com/microsoft/azure/management/servicebus/v2015_08_01/implementation/NamespacesImpl.java index 91ec2e3ca1b02..2c5e91d880a1c 100644 --- a/sdk/servicebus/mgmt-v2015_08_01/src/main/java/com/microsoft/azure/management/servicebus/v2015_08_01/implementation/NamespacesImpl.java +++ b/sdk/servicebus/mgmt-v2015_08_01/src/main/java/com/microsoft/azure/management/servicebus/v2015_08_01/implementation/NamespacesImpl.java @@ -175,10 +175,14 @@ private Observable getSharedAccessAu public Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) { NamespacesInner client = this.inner(); return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, authorizationRuleName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public NamespaceSharedAccessAuthorizationRuleResource call(SharedAccessAuthorizationRuleResourceInner inner) { - return wrapNamespaceSharedAccessAuthorizationRuleResourceModel(inner); + public Observable call(SharedAccessAuthorizationRuleResourceInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((NamespaceSharedAccessAuthorizationRuleResource)wrapNamespaceSharedAccessAuthorizationRuleResourceModel(inner)); + } } }); } diff --git a/sdk/servicebus/mgmt-v2015_08_01/src/main/java/com/microsoft/azure/management/servicebus/v2015_08_01/implementation/QueuesImpl.java b/sdk/servicebus/mgmt-v2015_08_01/src/main/java/com/microsoft/azure/management/servicebus/v2015_08_01/implementation/QueuesImpl.java index d97578a9894fb..0b81385e29b91 100644 --- a/sdk/servicebus/mgmt-v2015_08_01/src/main/java/com/microsoft/azure/management/servicebus/v2015_08_01/implementation/QueuesImpl.java +++ b/sdk/servicebus/mgmt-v2015_08_01/src/main/java/com/microsoft/azure/management/servicebus/v2015_08_01/implementation/QueuesImpl.java @@ -67,10 +67,14 @@ public QueueResource call(QueueResourceInner inner) { public Observable getAsync(String resourceGroupName, String namespaceName, String queueName) { QueuesInner client = this.inner(); return client.getAsync(resourceGroupName, namespaceName, queueName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public QueueResource call(QueueResourceInner inner) { - return wrapModel(inner); + public Observable call(QueueResourceInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((QueueResource)wrapModel(inner)); + } } }); } @@ -107,10 +111,14 @@ private Observable getSharedAccessAu public Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String queueName, String authorizationRuleName) { QueuesInner client = this.inner(); return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, queueName, authorizationRuleName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public QueueNamespaceSharedAccessAuthorizationRuleResource call(SharedAccessAuthorizationRuleResourceInner inner) { - return wrapQueueNamespaceSharedAccessAuthorizationRuleResourceModel(inner); + public Observable call(SharedAccessAuthorizationRuleResourceInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((QueueNamespaceSharedAccessAuthorizationRuleResource)wrapQueueNamespaceSharedAccessAuthorizationRuleResourceModel(inner)); + } } }); } diff --git a/sdk/servicebus/mgmt-v2015_08_01/src/main/java/com/microsoft/azure/management/servicebus/v2015_08_01/implementation/SubscriptionsImpl.java b/sdk/servicebus/mgmt-v2015_08_01/src/main/java/com/microsoft/azure/management/servicebus/v2015_08_01/implementation/SubscriptionsImpl.java index a503c57b1b094..ad23625a7f6cf 100644 --- a/sdk/servicebus/mgmt-v2015_08_01/src/main/java/com/microsoft/azure/management/servicebus/v2015_08_01/implementation/SubscriptionsImpl.java +++ b/sdk/servicebus/mgmt-v2015_08_01/src/main/java/com/microsoft/azure/management/servicebus/v2015_08_01/implementation/SubscriptionsImpl.java @@ -64,10 +64,14 @@ public SubscriptionResource call(SubscriptionResourceInner inner) { public Observable getAsync(String resourceGroupName, String namespaceName, String topicName, String subscriptionName) { SubscriptionsInner client = this.inner(); return client.getAsync(resourceGroupName, namespaceName, topicName, subscriptionName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public SubscriptionResource call(SubscriptionResourceInner inner) { - return wrapModel(inner); + public Observable call(SubscriptionResourceInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((SubscriptionResource)wrapModel(inner)); + } } }); } diff --git a/sdk/servicebus/mgmt-v2015_08_01/src/main/java/com/microsoft/azure/management/servicebus/v2015_08_01/implementation/TopicsImpl.java b/sdk/servicebus/mgmt-v2015_08_01/src/main/java/com/microsoft/azure/management/servicebus/v2015_08_01/implementation/TopicsImpl.java index 395bf0675c6a2..2ebae4907a434 100644 --- a/sdk/servicebus/mgmt-v2015_08_01/src/main/java/com/microsoft/azure/management/servicebus/v2015_08_01/implementation/TopicsImpl.java +++ b/sdk/servicebus/mgmt-v2015_08_01/src/main/java/com/microsoft/azure/management/servicebus/v2015_08_01/implementation/TopicsImpl.java @@ -67,10 +67,14 @@ public TopicResource call(TopicResourceInner inner) { public Observable getAsync(String resourceGroupName, String namespaceName, String topicName) { TopicsInner client = this.inner(); return client.getAsync(resourceGroupName, namespaceName, topicName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public TopicResource call(TopicResourceInner inner) { - return wrapModel(inner); + public Observable call(TopicResourceInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((TopicResource)wrapModel(inner)); + } } }); } @@ -107,10 +111,14 @@ private Observable getSharedAccessAu public Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String topicName, String authorizationRuleName) { TopicsInner client = this.inner(); return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, topicName, authorizationRuleName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public TopicNamespaceSharedAccessAuthorizationRuleResource call(SharedAccessAuthorizationRuleResourceInner inner) { - return wrapTopicNamespaceSharedAccessAuthorizationRuleResourceModel(inner); + public Observable call(SharedAccessAuthorizationRuleResourceInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((TopicNamespaceSharedAccessAuthorizationRuleResource)wrapTopicNamespaceSharedAccessAuthorizationRuleResourceModel(inner)); + } } }); }