/// <summary>
 /// Create Live Event
 /// </summary>
 /// <remarks>
 /// Creates a new live event.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the Azure subscription.
 /// </param>
 /// <param name='accountName'>
 /// The Media Services account name.
 /// </param>
 /// <param name='liveEventName'>
 /// The name of the live event, maximum length is 32.
 /// </param>
 /// <param name='parameters'>
 /// Live event properties needed for creation.
 /// </param>
 /// <param name='autoStart'>
 /// The flag indicates if the resource should be automatically started on
 /// creation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LiveEvent> CreateAsync(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName, LiveEvent parameters, bool?autoStart = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, accountName, liveEventName, parameters, autoStart, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }