/// <summary> /// Creates or updates an OpenShift managed cluster. /// </summary> /// <remarks> /// Creates or updates a OpenShift managed cluster with the specified /// configuration for agents and OpenShift version. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='resourceName'> /// The name of the OpenShift managed cluster resource. /// </param> /// <param name='parameters'> /// Parameters supplied to the Create or Update an OpenShift Managed Cluster /// operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <OpenShiftManagedCluster> BeginCreateOrUpdateAsync(this IOpenShiftManagedClustersOperations operations, string resourceGroupName, string resourceName, OpenShiftManagedCluster parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates or updates an OpenShift managed cluster. /// </summary> /// <remarks> /// Creates or updates a OpenShift managed cluster with the specified /// configuration for agents and OpenShift version. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='resourceName'> /// The name of the OpenShift managed cluster resource. /// </param> /// <param name='parameters'> /// Parameters supplied to the Create or Update an OpenShift Managed Cluster /// operation. /// </param> public static OpenShiftManagedCluster BeginCreateOrUpdate(this IOpenShiftManagedClustersOperations operations, string resourceGroupName, string resourceName, OpenShiftManagedCluster parameters) { return(operations.BeginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult()); }