Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
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: 2 additions & 0 deletions azurestack/resource-manager/v2017_06_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
<version>1.6.5</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@ public CustomerSubscription call(CustomerSubscriptionInner inner) {
public Observable<CustomerSubscription> getAsync(String resourceGroup, String registrationName, String customerSubscriptionName) {
CustomerSubscriptionsInner client = this.inner();
return client.getAsync(resourceGroup, registrationName, customerSubscriptionName)
.map(new Func1<CustomerSubscriptionInner, CustomerSubscription>() {
.flatMap(new Func1<CustomerSubscriptionInner, Observable<CustomerSubscription>>() {
@Override
public CustomerSubscription call(CustomerSubscriptionInner inner) {
return wrapModel(inner);
public Observable<CustomerSubscription> call(CustomerSubscriptionInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((CustomerSubscription)wrapModel(inner));
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,14 @@ public Product call(ProductInner inner) {
public Observable<Product> getAsync(String resourceGroup, String registrationName, String productName) {
ProductsInner client = this.inner();
return client.getAsync(resourceGroup, registrationName, productName)
.map(new Func1<ProductInner, Product>() {
.flatMap(new Func1<ProductInner, Observable<Product>>() {
@Override
public Product call(ProductInner inner) {
return wrapModel(inner);
public Observable<Product> call(ProductInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((Product)wrapModel(inner));
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
package com.microsoft.azure.management.azurestack.v2017_06_01.implementation;

import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl;
import com.microsoft.azure.management.azurestack.v2017_06_01.Location;
import com.microsoft.azure.management.azurestack.v2017_06_01.Registration;
import rx.Observable;
import com.microsoft.azure.management.azurestack.v2017_06_01.RegistrationParameter;
Expand All @@ -25,7 +24,7 @@ class RegistrationImpl extends GroupableResourceCoreImpl<Registration, Registrat
@Override
public Observable<Registration> createResourceAsync() {
RegistrationsInner client = this.manager().inner().registrations();
this.createOrUpdateParameter.withLocation(Location.fromString(inner().location()));
this.createOrUpdateParameter.withLocation(inner().location());
return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.createOrUpdateParameter)
.map(new Func1<RegistrationInner, RegistrationInner>() {
@Override
Expand Down