@@ -24,9 +24,9 @@ public static partial class IPAllocationsOperationsExtensions
24
24
/// <param name='ipAllocationName'>
25
25
/// The name of the IpAllocation.
26
26
/// </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 )
28
28
{
29
- ( ( IIPAllocationsOperations ) operations ) . DeleteAsync ( resourceGroupName , ipAllocationName ) . GetAwaiter ( ) . GetResult ( ) ;
29
+ return ( ( IIPAllocationsOperations ) operations ) . DeleteAsync ( resourceGroupName , ipAllocationName ) . GetAwaiter ( ) . GetResult ( ) ;
30
30
}
31
31
32
32
/// <summary>
@@ -44,9 +44,12 @@ public static void Delete(this IIPAllocationsOperations operations, string resou
44
44
/// <param name='cancellationToken'>
45
45
/// The cancellation token.
46
46
/// </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 ) )
48
48
{
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
+ }
50
53
}
51
54
/// <summary>
52
55
/// Gets the specified IpAllocation by resource group.
@@ -243,9 +246,9 @@ public static Microsoft.Rest.Azure.IPage<IpAllocation> ListByResourceGroup(this
243
246
/// <param name='ipAllocationName'>
244
247
/// The name of the IpAllocation.
245
248
/// </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 )
247
250
{
248
- ( ( IIPAllocationsOperations ) operations ) . BeginDeleteAsync ( resourceGroupName , ipAllocationName ) . GetAwaiter ( ) . GetResult ( ) ;
251
+ return ( ( IIPAllocationsOperations ) operations ) . BeginDeleteAsync ( resourceGroupName , ipAllocationName ) . GetAwaiter ( ) . GetResult ( ) ;
249
252
}
250
253
251
254
/// <summary>
@@ -263,9 +266,12 @@ public static void BeginDelete(this IIPAllocationsOperations operations, string
263
266
/// <param name='cancellationToken'>
264
267
/// The cancellation token.
265
268
/// </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 ) )
267
270
{
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
+ }
269
275
}
270
276
/// <summary>
271
277
/// Creates or updates an IpAllocation in the specified resource group.
0 commit comments