code: public ManagedClusterInner beginCreateOrUpdate(String resourceGroupName, String resourceName, ManagedClusterInner parameters) {
          return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, resourceName, parameters).toBlocking().single().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
  @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 ManagedClusterInner object if successful.