Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR sdk/relay/mgmt-v2017_04_01] Relay: adding new API version 2018-preview #2536

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/relay/mgmt-v2017_04_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-relay</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,14 @@ public HybridConnection call(HybridConnectionInner inner) {
public Observable<HybridConnection> getAsync(String resourceGroupName, String namespaceName, String hybridConnectionName) {
HybridConnectionsInner client = this.inner();
return client.getAsync(resourceGroupName, namespaceName, hybridConnectionName)
.map(new Func1<HybridConnectionInner, HybridConnection>() {
.flatMap(new Func1<HybridConnectionInner, Observable<HybridConnection>>() {
@Override
public HybridConnection call(HybridConnectionInner inner) {
return wrapModel(inner);
public Observable<HybridConnection> call(HybridConnectionInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((HybridConnection)wrapModel(inner));
}
}
});
}
Expand Down Expand Up @@ -107,10 +111,14 @@ private Observable<AuthorizationRuleInner> getAuthorizationRuleInnerUsingHybridC
public Observable<HybridConnectionNamespaceAuthorizationRule> getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName) {
HybridConnectionsInner client = this.inner();
return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, hybridConnectionName, authorizationRuleName)
.map(new Func1<AuthorizationRuleInner, HybridConnectionNamespaceAuthorizationRule>() {
.flatMap(new Func1<AuthorizationRuleInner, Observable<HybridConnectionNamespaceAuthorizationRule>>() {
@Override
public HybridConnectionNamespaceAuthorizationRule call(AuthorizationRuleInner inner) {
return wrapHybridConnectionNamespaceAuthorizationRuleModel(inner);
public Observable<HybridConnectionNamespaceAuthorizationRule> call(AuthorizationRuleInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((HybridConnectionNamespaceAuthorizationRule)wrapHybridConnectionNamespaceAuthorizationRuleModel(inner));
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,14 @@ private Observable<AuthorizationRuleInner> getAuthorizationRuleInnerUsingNamespa
public Observable<NamespaceAuthorizationRule> getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName) {
NamespacesInner client = this.inner();
return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, authorizationRuleName)
.map(new Func1<AuthorizationRuleInner, NamespaceAuthorizationRule>() {
.flatMap(new Func1<AuthorizationRuleInner, Observable<NamespaceAuthorizationRule>>() {
@Override
public NamespaceAuthorizationRule call(AuthorizationRuleInner inner) {
return wrapNamespaceAuthorizationRuleModel(inner);
public Observable<NamespaceAuthorizationRule> call(AuthorizationRuleInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((NamespaceAuthorizationRule)wrapNamespaceAuthorizationRuleModel(inner));
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,14 @@ public WcfRelay call(WcfRelayInner inner) {
public Observable<WcfRelay> getAsync(String resourceGroupName, String namespaceName, String relayName) {
WCFRelaysInner client = this.inner();
return client.getAsync(resourceGroupName, namespaceName, relayName)
.map(new Func1<WcfRelayInner, WcfRelay>() {
.flatMap(new Func1<WcfRelayInner, Observable<WcfRelay>>() {
@Override
public WcfRelay call(WcfRelayInner inner) {
return wrapModel(inner);
public Observable<WcfRelay> call(WcfRelayInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((WcfRelay)wrapModel(inner));
}
}
});
}
Expand Down Expand Up @@ -107,10 +111,14 @@ private Observable<AuthorizationRuleInner> getAuthorizationRuleInnerUsingWCFRela
public Observable<WcfRelayNamespaceAuthorizationRule> getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String relayName, String authorizationRuleName) {
WCFRelaysInner client = this.inner();
return client.getAuthorizationRuleAsync(resourceGroupName, namespaceName, relayName, authorizationRuleName)
.map(new Func1<AuthorizationRuleInner, WcfRelayNamespaceAuthorizationRule>() {
.flatMap(new Func1<AuthorizationRuleInner, Observable<WcfRelayNamespaceAuthorizationRule>>() {
@Override
public WcfRelayNamespaceAuthorizationRule call(AuthorizationRuleInner inner) {
return wrapWcfRelayNamespaceAuthorizationRuleModel(inner);
public Observable<WcfRelayNamespaceAuthorizationRule> call(AuthorizationRuleInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((WcfRelayNamespaceAuthorizationRule)wrapWcfRelayNamespaceAuthorizationRuleModel(inner));
}
}
});
}
Expand Down