// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

namespace AutorestClient
{
    using Models;
    using System.Threading;
    using System.Threading.Tasks;

    /// <summary>
    /// Extension methods for AllowedAttributesOperations.
    /// </summary>
    public static partial class AllowedAttributesOperationsExtensions
    {
            /// <summary>
            /// AllowedAttributes Description
            /// </summary>
            /// <remarks>
            /// AllowedAttributes Description
            /// </remarks>
            /// <param name='operations'>
            /// The operations group for this extension method.
            /// </param>
            /// <param name='aliased'>
            /// </param>
            public static void Get(this IAllowedAttributesOperations operations, int aliased)
            {
                operations.GetAsync(aliased).GetAwaiter().GetResult();
            }

            /// <summary>
            /// AllowedAttributes Description
            /// </summary>
            /// <remarks>
            /// AllowedAttributes Description
            /// </remarks>
            /// <param name='operations'>
            /// The operations group for this extension method.
            /// </param>
            /// <param name='aliased'>
            /// </param>
            /// <param name='cancellationToken'>
            /// The cancellation token.
            /// </param>
            public static async Task GetAsync(this IAllowedAttributesOperations operations, int aliased, CancellationToken cancellationToken = default(CancellationToken))
            {
                (await operations.GetWithHttpMessagesAsync(aliased, null, cancellationToken).ConfigureAwait(false)).Dispose();
            }

    }
}
