@@ -24,9 +24,9 @@ public static partial class IPAllocationsOperationsExtensions
2424 /// <param name='ipAllocationName'>
2525 /// The name of the IpAllocation.
2626 /// </param>
27- public static void Delete ( this IIPAllocationsOperations operations , string resourceGroupName , string ipAllocationName )
27+ public static IPAllocationsDeleteHeaders Delete ( this IIPAllocationsOperations operations , string resourceGroupName , string ipAllocationName )
2828 {
29- ( ( IIPAllocationsOperations ) operations ) . DeleteAsync ( resourceGroupName , ipAllocationName ) . GetAwaiter ( ) . GetResult ( ) ;
29+ return ( ( IIPAllocationsOperations ) operations ) . DeleteAsync ( resourceGroupName , ipAllocationName ) . GetAwaiter ( ) . GetResult ( ) ;
3030 }
3131
3232 /// <summary>
@@ -44,9 +44,12 @@ public static void Delete(this IIPAllocationsOperations operations, string resou
4444 /// <param name='cancellationToken'>
4545 /// The cancellation token.
4646 /// </param>
47- public static async System . Threading . Tasks . Task DeleteAsync ( this IIPAllocationsOperations operations , string resourceGroupName , string ipAllocationName , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
47+ public static async System . Threading . Tasks . Task < IPAllocationsDeleteHeaders > DeleteAsync ( this IIPAllocationsOperations operations , string resourceGroupName , string ipAllocationName , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
4848 {
49- ( await operations . DeleteWithHttpMessagesAsync ( resourceGroupName , ipAllocationName , null , cancellationToken ) . ConfigureAwait ( false ) ) . Dispose ( ) ;
49+ using ( var _result = await operations . DeleteWithHttpMessagesAsync ( resourceGroupName , ipAllocationName , null , cancellationToken ) . ConfigureAwait ( false ) )
50+ {
51+ return _result . Headers ;
52+ }
5053 }
5154 /// <summary>
5255 /// Gets the specified IpAllocation by resource group.
@@ -243,9 +246,9 @@ public static Microsoft.Rest.Azure.IPage<IpAllocation> ListByResourceGroup(this
243246 /// <param name='ipAllocationName'>
244247 /// The name of the IpAllocation.
245248 /// </param>
246- public static void BeginDelete ( this IIPAllocationsOperations operations , string resourceGroupName , string ipAllocationName )
249+ public static IPAllocationsDeleteHeaders BeginDelete ( this IIPAllocationsOperations operations , string resourceGroupName , string ipAllocationName )
247250 {
248- ( ( IIPAllocationsOperations ) operations ) . BeginDeleteAsync ( resourceGroupName , ipAllocationName ) . GetAwaiter ( ) . GetResult ( ) ;
251+ return ( ( IIPAllocationsOperations ) operations ) . BeginDeleteAsync ( resourceGroupName , ipAllocationName ) . GetAwaiter ( ) . GetResult ( ) ;
249252 }
250253
251254 /// <summary>
@@ -263,9 +266,12 @@ public static void BeginDelete(this IIPAllocationsOperations operations, string
263266 /// <param name='cancellationToken'>
264267 /// The cancellation token.
265268 /// </param>
266- public static async System . Threading . Tasks . Task BeginDeleteAsync ( this IIPAllocationsOperations operations , string resourceGroupName , string ipAllocationName , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
269+ public static async System . Threading . Tasks . Task < IPAllocationsDeleteHeaders > BeginDeleteAsync ( this IIPAllocationsOperations operations , string resourceGroupName , string ipAllocationName , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
267270 {
268- ( await operations . BeginDeleteWithHttpMessagesAsync ( resourceGroupName , ipAllocationName , null , cancellationToken ) . ConfigureAwait ( false ) ) . Dispose ( ) ;
271+ using ( var _result = await operations . BeginDeleteWithHttpMessagesAsync ( resourceGroupName , ipAllocationName , null , cancellationToken ) . ConfigureAwait ( false ) )
272+ {
273+ return _result . Headers ;
274+ }
269275 }
270276 /// <summary>
271277 /// Creates or updates an IpAllocation in the specified resource group.
0 commit comments