/// <summary>
 /// Details of a specific setting
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='settingName'>
 /// Auto provisioning setting key
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AutoProvisioningSetting> GetAsync(this IAutoProvisioningSettingsOperations operations, string settingName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(settingName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Exposes the auto provisioning settings of the subscriptions
 /// </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 <AutoProvisioningSetting> > ListNextAsync(this IAutoProvisioningSettingsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Details of a specific setting
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='settingName'>
 /// Auto provisioning setting key
 /// </param>
 /// <param name='autoProvision'>
 /// Describes what kind of security agent provisioning action to take. Possible
 /// values include: 'On', 'Off'
 /// </param>
 public static AutoProvisioningSetting Create(this IAutoProvisioningSettingsOperations operations, string settingName, string autoProvision)
 {
     return(operations.CreateAsync(settingName, autoProvision).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Details of a specific setting
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='settingName'>
 /// Auto provisioning setting key
 /// </param>
 public static AutoProvisioningSetting Get(this IAutoProvisioningSettingsOperations operations, string settingName)
 {
     return(operations.GetAsync(settingName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Exposes the auto provisioning settings of the subscriptions
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <AutoProvisioningSetting> List(this IAutoProvisioningSettingsOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Exposes the auto provisioning settings of the subscriptions
 /// </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 <AutoProvisioningSetting> ListNext(this IAutoProvisioningSettingsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }