Esempio n. 1
0
 /// <summary>
 /// Gets an application control VM/server group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupName'>
 /// Name of an application control machine group
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AdaptiveApplicationControlGroup> GetAsync(this IAdaptiveApplicationControlsOperations operations, string groupName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(groupName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Gets a list of application control machine groups for the subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='includePathRecommendations'>
 /// Include the policy rules
 /// </param>
 /// <param name='summary'>
 /// Return output in a summarized form
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AdaptiveApplicationControlGroups> ListAsync(this IAdaptiveApplicationControlsOperations operations, bool?includePathRecommendations = default(bool?), bool?summary = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(includePathRecommendations, summary, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Update an application control VM/server group
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupName'>
 /// Name of an application control VM/server group
 /// </param>
 /// <param name='body'>
 /// The updated VM/server group data
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AppWhitelistingGroup> PutAsync(this IAdaptiveApplicationControlsOperations operations, string groupName, AppWhitelistingPutGroupData body, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PutWithHttpMessagesAsync(groupName, body, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Gets an application control VM/server group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupName'>
 /// Name of an application control machine group
 /// </param>
 public static AdaptiveApplicationControlGroup Get(this IAdaptiveApplicationControlsOperations operations, string groupName)
 {
     return(operations.GetAsync(groupName).GetAwaiter().GetResult());
 }
Esempio n. 5
0
 /// <summary>
 /// Gets a list of application control machine groups for the subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='includePathRecommendations'>
 /// Include the policy rules
 /// </param>
 /// <param name='summary'>
 /// Return output in a summarized form
 /// </param>
 public static AdaptiveApplicationControlGroups List(this IAdaptiveApplicationControlsOperations operations, bool?includePathRecommendations = default(bool?), bool?summary = default(bool?))
 {
     return(operations.ListAsync(includePathRecommendations, summary).GetAwaiter().GetResult());
 }
Esempio n. 6
0
 /// <summary>
 /// Delete an application control machine group
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupName'>
 /// Name of an application control machine group
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IAdaptiveApplicationControlsOperations operations, string groupName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(groupName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Esempio n. 7
0
 /// <summary>
 /// Delete an application control machine group
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupName'>
 /// Name of an application control machine group
 /// </param>
 public static void Delete(this IAdaptiveApplicationControlsOperations operations, string groupName)
 {
     operations.DeleteAsync(groupName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Update an application control VM/server group
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupName'>
 /// Name of an application control VM/server group
 /// </param>
 /// <param name='body'>
 /// The updated VM/server group data
 /// </param>
 public static AppWhitelistingGroup Put(this IAdaptiveApplicationControlsOperations operations, string groupName, AppWhitelistingPutGroupData body)
 {
     return(operations.PutAsync(groupName, body).GetAwaiter().GetResult());
 }