code: public NetworkProfileInner getByResourceGroup(String resourceGroupName, String networkProfileName) {
          return getByResourceGroupWithServiceResponseAsync(resourceGroupName, networkProfileName).toBlocking().single().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.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the NetworkProfileInner object if successful.