/// <summary>
 /// Create a schedule.
 /// <see href="http://aka.ms/azureautomationsdk/scheduleoperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='scheduleName'>
 /// The schedule name.
 /// </param>
 /// <param name='parameters'>
 /// The parameters supplied to the create or update schedule operation.
 /// </param>
 public static Schedule CreateOrUpdate(this IScheduleOperations operations, string resourceGroupName, string automationAccountName, string scheduleName, ScheduleCreateOrUpdateParameters parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, scheduleName, parameters).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Create a schedule.  (see
 /// http://aka.ms/azureautomationsdk/scheduleoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IScheduleOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters supplied to the create or update schedule
 /// operation.
 /// </param>
 /// <returns>
 /// The response model for the create or update schedule operation.
 /// </returns>
 public static Task <ScheduleCreateOrUpdateResponse> CreateOrUpdateAsync(this IScheduleOperations operations, string resourceGroupName, string automationAccount, ScheduleCreateOrUpdateParameters parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, automationAccount, parameters, CancellationToken.None));
 }