/// <summary>
 /// The operation to cancel a subscription
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='subscriptionId'>
 /// Subscription Id.
 /// </param>
 public static CanceledSubscriptionId Cancel(this ISubscriptionsOperations operations, bool ignoreResourceCheck, string subscriptionId)
 {
     return(operations.CancelAsync(subscriptionId, ignoreResourceCheck).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Cancels the subscription
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static CanceledSubscriptionId Cancel(this ISubscriptionsOperations operations)
 {
     return(operations.CancelAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// The operation to cancel a subscription
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='subscriptionId'>
 /// Subscription Id.
 /// </param>
 public static CanceledSubscriptionId Cancel(this ISubscriptionsOperations operations, string subscriptionId)
 {
     return operations.CancelAsync(subscriptionId).GetAwaiter().GetResult();
 }