code: public Observable<NetworkProfileInner> getByResourceGroupAsync(String resourceGroupName, String networkProfileName, String expand) {
          return getByResourceGroupWithServiceResponseAsync(resourceGroupName, networkProfileName, expand).map(new Func1<ServiceResponse<NetworkProfileInner>, NetworkProfileInner>() {
              @Override
              public NetworkProfileInner call(ServiceResponse<NetworkProfileInner> response) {
                  return response.body();
              }
          });
      }
docs: Gets the specified network profile in a specified resource group.
  
  @param resourceGroupName The name of the resource group.
  @param networkProfileName The name of the PublicIPPrefx.
  @param expand Expands referenced resources.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the NetworkProfileInner object