/// <summary>
 /// Get the subscription tenant policy for the user's tenant.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <GetTenantPolicyResponse> GetPolicyForTenantAsync(this ISubscriptionPolicyOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetPolicyForTenantWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Get the subscription tenant policy for the user's tenant.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <GetTenantPolicyResponse> ListPolicyForTenant(this ISubscriptionPolicyOperations operations)
 {
     return(operations.ListPolicyForTenantAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get the subscription tenant policy for the user's tenant.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <GetTenantPolicyResponse> > ListPolicyForTenantNextAsync(this ISubscriptionPolicyOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListPolicyForTenantNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Create or Update Subscription tenant policy for user's tenant.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// </param>
 public static GetTenantPolicyResponse AddUpdatePolicyForTenant(this ISubscriptionPolicyOperations operations, PutTenantPolicyRequestProperties body)
 {
     return(operations.AddUpdatePolicyForTenantAsync(body).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get the subscription tenant policy for the user's tenant.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <GetTenantPolicyResponse> ListPolicyForTenantNext(this ISubscriptionPolicyOperations operations, string nextPageLink)
 {
     return(operations.ListPolicyForTenantNextAsync(nextPageLink).GetAwaiter().GetResult());
 }