/// <summary>
 /// Creates or updates the Advanced Threat Protection settings on a specified
 /// resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceId'>
 /// The identifier of the resource.
 /// </param>
 /// <param name='isEnabled'>
 /// Indicates whether Advanced Threat Protection is enabled.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AdvancedThreatProtectionSetting> CreateAsync(this IAdvancedThreatProtectionOperations operations, string resourceId, bool?isEnabled = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(resourceId, isEnabled, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Creates or updates the Advanced Threat Protection settings on a specified
 /// resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceId'>
 /// The identifier of the resource.
 /// </param>
 /// <param name='isEnabled'>
 /// Indicates whether Advanced Threat Protection is enabled.
 /// </param>
 public static AdvancedThreatProtectionSetting Create(this IAdvancedThreatProtectionOperations operations, string resourceId, bool?isEnabled = default(bool?))
 {
     return(operations.CreateAsync(resourceId, isEnabled).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets the Advanced Threat Protection settings for the specified resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceId'>
 /// The identifier of the resource.
 /// </param>
 public static AdvancedThreatProtectionSetting Get(this IAdvancedThreatProtectionOperations operations, string resourceId)
 {
     return(operations.GetAsync(resourceId).GetAwaiter().GetResult());
 }