code: public Observable<ManagedClusterUpgradeProfileInner> getUpgradeProfileAsync(String resourceGroupName, String resourceName) {
          return getUpgradeProfileWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<ManagedClusterUpgradeProfileInner>, ManagedClusterUpgradeProfileInner>() {
              @Override
              public ManagedClusterUpgradeProfileInner call(ServiceResponse<ManagedClusterUpgradeProfileInner> response) {
                  return response.body();
              }
          });
      }
docs: Gets upgrade profile for a managed cluster.
  Gets the details of the upgrade profile for a managed cluster with a specified resource group and name.
  
  @param resourceGroupName The name of the resource group.
  @param resourceName The name of the managed cluster resource.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the ManagedClusterUpgradeProfileInner object