/// <summary>
 /// Create or update a web service. This call will overwrite an existing web
 /// service. Note that there is no warning or confirmation. This is a
 /// nonrecoverable operation. If your intent is to create a new web service,
 /// call the Get operation first to verify that it does not exist.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group in which the web service is located.
 /// </param>
 /// <param name='webServiceName'>
 /// The name of the web service.
 /// </param>
 /// <param name='createOrUpdatePayload'>
 /// The payload that is used to create or update the web service.
 /// </param>
 public static WebService CreateOrUpdate(this IWebServicesOperations operations, string resourceGroupName, string webServiceName, WebService createOrUpdatePayload)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, webServiceName, createOrUpdatePayload).GetAwaiter().GetResult());
 }