/// <summary>
 /// Gets the validation errors in case the VM is unsuitable for protection.
 /// </summary>
 /// <remarks>
 /// Validates whether a given VM can be protected or not in which case returns
 /// list of errors.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='virtualMachineName'>
 /// Virtual Machine name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ReplicationEligibilityResults> GetAsync(this IReplicationEligibilityResultsOperations operations, string virtualMachineName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(virtualMachineName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets the validation errors in case the VM is unsuitable for protection.
 /// </summary>
 /// <remarks>
 /// Validates whether a given VM can be protected or not in which case returns
 /// list of errors.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='virtualMachineName'>
 /// Virtual Machine name.
 /// </param>
 public static ReplicationEligibilityResults Get(this IReplicationEligibilityResultsOperations operations, string virtualMachineName)
 {
     return(operations.GetAsync(virtualMachineName).GetAwaiter().GetResult());
 }