Skip to content

Commit

Permalink
Generated from 141cce2c654fd9011e7b57664cf8f845c527074c
Browse files Browse the repository at this point in the history
change clicommon to cli
  • Loading branch information
SDK Automation committed Mar 5, 2020
1 parent e1559ad commit 136bcd3
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 19 deletions.
2 changes: 1 addition & 1 deletion sdk/servicebus/mgmt-v2015_08_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-servicebus</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,14 @@ private Observable<SharedAccessAuthorizationRuleResourceInner> getSharedAccessAu
public Observable<NamespaceSharedAccessAuthorizationRuleResource> getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) {
NamespacesInner client = this.inner();
return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, authorizationRuleName)
.map(new Func1<SharedAccessAuthorizationRuleResourceInner, NamespaceSharedAccessAuthorizationRuleResource>() {
.flatMap(new Func1<SharedAccessAuthorizationRuleResourceInner, Observable<NamespaceSharedAccessAuthorizationRuleResource>>() {
@Override
public NamespaceSharedAccessAuthorizationRuleResource call(SharedAccessAuthorizationRuleResourceInner inner) {
return wrapNamespaceSharedAccessAuthorizationRuleResourceModel(inner);
public Observable<NamespaceSharedAccessAuthorizationRuleResource> call(SharedAccessAuthorizationRuleResourceInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((NamespaceSharedAccessAuthorizationRuleResource)wrapNamespaceSharedAccessAuthorizationRuleResourceModel(inner));
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,14 @@ public QueueResource call(QueueResourceInner inner) {
public Observable<QueueResource> getAsync(String resourceGroupName, String namespaceName, String queueName) {
QueuesInner client = this.inner();
return client.getAsync(resourceGroupName, namespaceName, queueName)
.map(new Func1<QueueResourceInner, QueueResource>() {
.flatMap(new Func1<QueueResourceInner, Observable<QueueResource>>() {
@Override
public QueueResource call(QueueResourceInner inner) {
return wrapModel(inner);
public Observable<QueueResource> call(QueueResourceInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((QueueResource)wrapModel(inner));
}
}
});
}
Expand Down Expand Up @@ -107,10 +111,14 @@ private Observable<SharedAccessAuthorizationRuleResourceInner> getSharedAccessAu
public Observable<QueueNamespaceSharedAccessAuthorizationRuleResource> getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String queueName, String authorizationRuleName) {
QueuesInner client = this.inner();
return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, queueName, authorizationRuleName)
.map(new Func1<SharedAccessAuthorizationRuleResourceInner, QueueNamespaceSharedAccessAuthorizationRuleResource>() {
.flatMap(new Func1<SharedAccessAuthorizationRuleResourceInner, Observable<QueueNamespaceSharedAccessAuthorizationRuleResource>>() {
@Override
public QueueNamespaceSharedAccessAuthorizationRuleResource call(SharedAccessAuthorizationRuleResourceInner inner) {
return wrapQueueNamespaceSharedAccessAuthorizationRuleResourceModel(inner);
public Observable<QueueNamespaceSharedAccessAuthorizationRuleResource> call(SharedAccessAuthorizationRuleResourceInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((QueueNamespaceSharedAccessAuthorizationRuleResource)wrapQueueNamespaceSharedAccessAuthorizationRuleResourceModel(inner));
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@ public SubscriptionResource call(SubscriptionResourceInner inner) {
public Observable<SubscriptionResource> getAsync(String resourceGroupName, String namespaceName, String topicName, String subscriptionName) {
SubscriptionsInner client = this.inner();
return client.getAsync(resourceGroupName, namespaceName, topicName, subscriptionName)
.map(new Func1<SubscriptionResourceInner, SubscriptionResource>() {
.flatMap(new Func1<SubscriptionResourceInner, Observable<SubscriptionResource>>() {
@Override
public SubscriptionResource call(SubscriptionResourceInner inner) {
return wrapModel(inner);
public Observable<SubscriptionResource> call(SubscriptionResourceInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((SubscriptionResource)wrapModel(inner));
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,14 @@ public TopicResource call(TopicResourceInner inner) {
public Observable<TopicResource> getAsync(String resourceGroupName, String namespaceName, String topicName) {
TopicsInner client = this.inner();
return client.getAsync(resourceGroupName, namespaceName, topicName)
.map(new Func1<TopicResourceInner, TopicResource>() {
.flatMap(new Func1<TopicResourceInner, Observable<TopicResource>>() {
@Override
public TopicResource call(TopicResourceInner inner) {
return wrapModel(inner);
public Observable<TopicResource> call(TopicResourceInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((TopicResource)wrapModel(inner));
}
}
});
}
Expand Down Expand Up @@ -107,10 +111,14 @@ private Observable<SharedAccessAuthorizationRuleResourceInner> getSharedAccessAu
public Observable<TopicNamespaceSharedAccessAuthorizationRuleResource> getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String topicName, String authorizationRuleName) {
TopicsInner client = this.inner();
return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, topicName, authorizationRuleName)
.map(new Func1<SharedAccessAuthorizationRuleResourceInner, TopicNamespaceSharedAccessAuthorizationRuleResource>() {
.flatMap(new Func1<SharedAccessAuthorizationRuleResourceInner, Observable<TopicNamespaceSharedAccessAuthorizationRuleResource>>() {
@Override
public TopicNamespaceSharedAccessAuthorizationRuleResource call(SharedAccessAuthorizationRuleResourceInner inner) {
return wrapTopicNamespaceSharedAccessAuthorizationRuleResourceModel(inner);
public Observable<TopicNamespaceSharedAccessAuthorizationRuleResource> call(SharedAccessAuthorizationRuleResourceInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((TopicNamespaceSharedAccessAuthorizationRuleResource)wrapTopicNamespaceSharedAccessAuthorizationRuleResourceModel(inner));
}
}
});
}
Expand Down

0 comments on commit 136bcd3

Please sign in to comment.