code: public Observable<NetworkProfileInner> createOrUpdateAsync(String resourceGroupName, String networkProfileName, NetworkProfileInner parameters) {
          return createOrUpdateWithServiceResponseAsync(resourceGroupName, networkProfileName, parameters).map(new Func1<ServiceResponse<NetworkProfileInner>, NetworkProfileInner>() {
              @Override
              public NetworkProfileInner call(ServiceResponse<NetworkProfileInner> response) {
                  return response.body();
              }
          });
      }
docs: Creates or updates a network profile.
  
  @param resourceGroupName The name of the resource group.
  @param networkProfileName The name of the network profile.
  @param parameters Parameters supplied to the create or update network profile operation.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable for the request