code: public Observable<ManagedClusterInner> beginCreateOrUpdateAsync(String resourceGroupName, String resourceName, ManagedClusterInner parameters) {
          return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, resourceName, parameters).map(new Func1<ServiceResponse<ManagedClusterInner>, ManagedClusterInner>() {
              @Override
              public ManagedClusterInner call(ServiceResponse<ManagedClusterInner> response) {
                  return response.body();
              }
          });
      }
docs: Creates or updates a managed cluster.
  Creates or updates a managed cluster with the specified configuration for agents and Kubernetes version.
  
  @param resourceGroupName The name of the resource group.
  @param resourceName The name of the managed cluster resource.
  @param parameters Parameters supplied to the Create or Update a Managed Cluster operation.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the ManagedClusterInner object