Exemple #1
0
 /// <summary>
 /// Updates an VirtualNetworkTap tags.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='tapName'>
 /// The name of the tap.
 /// </param>
 /// <param name='tapParameters'>
 /// Parameters supplied to update VirtualNetworkTap tags.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <VirtualNetworkTap> BeginUpdateTagsAsync(this IVirtualNetworkTapsOperations operations, string resourceGroupName, string tapName, TagsObject tapParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateTagsWithHttpMessagesAsync(resourceGroupName, tapName, tapParameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #2
0
 /// <summary>
 /// Gets information about the specified virtual network tap.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='tapName'>
 /// The name of virtual network tap.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <VirtualNetworkTap> GetAsync(this IVirtualNetworkTapsOperations operations, string resourceGroupName, string tapName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, tapName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #3
0
 /// <summary>
 /// Gets all the VirtualNetworkTaps in a subscription.
 /// </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 <VirtualNetworkTap> > ListAllNextAsync(this IVirtualNetworkTapsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListAllNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Creates or updates a Virtual Network Tap.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='tapName'>
 /// The name of the virtual network tap.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the create or update virtual network tap operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <VirtualNetworkTapInner> CreateOrUpdateAsync(this IVirtualNetworkTapsOperations operations, string resourceGroupName, string tapName, VirtualNetworkTapInner parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, tapName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Updates an VirtualNetworkTap tags.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='tapName'>
 /// The name of the tap.
 /// </param>
 /// <param name='tags'>
 /// Resource tags.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <VirtualNetworkTapInner> UpdateTagsAsync(this IVirtualNetworkTapsOperations operations, string resourceGroupName, string tapName, IDictionary <string, string> tags = default(IDictionary <string, string>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateTagsWithHttpMessagesAsync(resourceGroupName, tapName, tags, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #6
0
 /// <summary>
 /// Gets information about the specified virtual network tap.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='tapName'>
 /// The name of virtual network tap.
 /// </param>
 public static VirtualNetworkTap Get(this IVirtualNetworkTapsOperations operations, string resourceGroupName, string tapName)
 {
     return(operations.GetAsync(resourceGroupName, tapName).GetAwaiter().GetResult());
 }
Exemple #7
0
 /// <summary>
 /// Deletes the specified virtual network tap.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='tapName'>
 /// The name of the virtual network tap.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IVirtualNetworkTapsOperations operations, string resourceGroupName, string tapName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, tapName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Exemple #8
0
 /// <summary>
 /// Gets all the VirtualNetworkTaps in a subscription.
 /// </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 <VirtualNetworkTap> ListByResourceGroupNext(this IVirtualNetworkTapsOperations operations, string nextPageLink)
 {
     return(operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Exemple #9
0
 /// <summary>
 /// Updates an VirtualNetworkTap tags.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='tapName'>
 /// The name of the tap.
 /// </param>
 /// <param name='tapParameters'>
 /// Parameters supplied to update VirtualNetworkTap tags.
 /// </param>
 public static VirtualNetworkTap BeginUpdateTags(this IVirtualNetworkTapsOperations operations, string resourceGroupName, string tapName, TagsObject tapParameters)
 {
     return(operations.BeginUpdateTagsAsync(resourceGroupName, tapName, tapParameters).GetAwaiter().GetResult());
 }
Exemple #10
0
 /// <summary>
 /// Deletes the specified virtual network tap.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='tapName'>
 /// The name of the virtual network tap.
 /// </param>
 public static void Delete(this IVirtualNetworkTapsOperations operations, string resourceGroupName, string tapName)
 {
     operations.DeleteAsync(resourceGroupName, tapName).GetAwaiter().GetResult();
 }
Exemple #11
0
 /// <summary>
 /// Creates or updates a Virtual Network Tap.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='tapName'>
 /// The name of the virtual network tap.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the create or update virtual network tap operation.
 /// </param>
 public static VirtualNetworkTap BeginCreateOrUpdate(this IVirtualNetworkTapsOperations operations, string resourceGroupName, string tapName, VirtualNetworkTap parameters)
 {
     return(operations.BeginCreateOrUpdateAsync(resourceGroupName, tapName, parameters).GetAwaiter().GetResult());
 }
Exemple #12
0
 /// <summary>
 /// Gets all the VirtualNetworkTaps in a subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 public static IPage <VirtualNetworkTap> ListByResourceGroup(this IVirtualNetworkTapsOperations operations, string resourceGroupName)
 {
     return(operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult());
 }
Exemple #13
0
 /// <summary>
 /// Gets all the VirtualNetworkTaps in a subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <VirtualNetworkTap> ListAll(this IVirtualNetworkTapsOperations operations)
 {
     return(operations.ListAllAsync().GetAwaiter().GetResult());
 }