/// <summary>
 /// Gets the status of long running operation
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='userName'>
 /// The name of the user.
 /// </param>
 /// <param name='operationStatusPayload'>
 /// Payload to get the status of an operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <OperationStatusResponse> GetOperationStatusAsync(this IGlobalUsersOperations operations, string userName, OperationStatusPayload operationStatusPayload, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetOperationStatusWithHttpMessagesAsync(userName, operationStatusPayload, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets the status of long running operation
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='userName'>
 /// The name of the user.
 /// </param>
 /// <param name='operationStatusPayload'>
 /// Payload to get the status of an operation
 /// </param>
 public static OperationStatusResponse GetOperationStatus(this IGlobalUsersOperations operations, string userName, OperationStatusPayload operationStatusPayload)
 {
     return(operations.GetOperationStatusAsync(userName, operationStatusPayload).GetAwaiter().GetResult());
 }