@@ -1293,7 +1293,6 @@ public partial class ActionGroup
1293
1293
/// <param name="actionGroupName">The name of the action group.</param>
1294
1294
/// <param name="body">The receiver to re-enable.</param>
1295
1295
/// <param name="onOk">a delegate that is called when the remote service returns 200 (OK).</param>
1296
- /// <param name="onConflict">a delegate that is called when the remote service returns 409 (Conflict).</param>
1297
1296
/// <param name="onDefault">a delegate that is called when the remote service returns default (any response code not handled
1298
1297
/// elsewhere).</param>
1299
1298
/// <param name="eventListener">an <see cref="Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.IEventListener" /> instance that will receive events.</param>
@@ -1302,7 +1301,7 @@ public partial class ActionGroup
1302
1301
/// <returns>
1303
1302
/// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the response is completed.
1304
1303
/// </returns>
1305
- public async global ::System . Threading . Tasks . Task ActionGroupsEnableReceiver ( string subscriptionId , string resourceGroupName , string actionGroupName , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Models . IEnableRequest body , global ::System . Func < global ::System . Net . Http . HttpResponseMessage , global ::System . Threading . Tasks . Task > onOk , global ::System . Func < global ::System . Net . Http . HttpResponseMessage , global ::System . Threading . Tasks . Task > onConflict , global ::System . Func < global ::System . Net . Http . HttpResponseMessage , global ::System . Threading . Tasks . Task < Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Models . IErrorResponse > , global ::System . Threading . Tasks . Task > onDefault , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . IEventListener eventListener , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . ISendAsync sender , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . SerializationMode serializationMode = Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . SerializationMode . IncludeCreate | Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . SerializationMode . IncludeUpdate )
1304
+ public async global ::System . Threading . Tasks . Task ActionGroupsEnableReceiver ( string subscriptionId , string resourceGroupName , string actionGroupName , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Models . IEnableRequest body , global ::System . Func < global ::System . Net . Http . HttpResponseMessage , global ::System . Threading . Tasks . Task > onOk , global ::System . Func < global ::System . Net . Http . HttpResponseMessage , global ::System . Threading . Tasks . Task < Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Models . IErrorResponse > , global ::System . Threading . Tasks . Task > onDefault , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . IEventListener eventListener , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . ISendAsync sender , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . SerializationMode serializationMode = Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . SerializationMode . IncludeCreate | Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . SerializationMode . IncludeUpdate )
1306
1305
{
1307
1306
var apiVersion = @"2023-01-01" ;
1308
1307
// Constant Parameters
@@ -1334,7 +1333,7 @@ public partial class ActionGroup
1334
1333
request . Content . Headers . ContentType = global ::System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
1335
1334
await eventListener . Signal ( Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . Events . BodyContentSet ) ; if ( eventListener . Token . IsCancellationRequested ) { return ; }
1336
1335
// make the call
1337
- await this . ActionGroupsEnableReceiver_Call ( request , onOk , onConflict , onDefault , eventListener , sender ) ;
1336
+ await this . ActionGroupsEnableReceiver_Call ( request , onOk , onDefault , eventListener , sender ) ;
1338
1337
}
1339
1338
}
1340
1339
@@ -1345,7 +1344,6 @@ public partial class ActionGroup
1345
1344
/// <param name="viaIdentity"></param>
1346
1345
/// <param name="body">The receiver to re-enable.</param>
1347
1346
/// <param name="onOk">a delegate that is called when the remote service returns 200 (OK).</param>
1348
- /// <param name="onConflict">a delegate that is called when the remote service returns 409 (Conflict).</param>
1349
1347
/// <param name="onDefault">a delegate that is called when the remote service returns default (any response code not handled
1350
1348
/// elsewhere).</param>
1351
1349
/// <param name="eventListener">an <see cref="Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.IEventListener" /> instance that will receive events.</param>
@@ -1354,7 +1352,7 @@ public partial class ActionGroup
1354
1352
/// <returns>
1355
1353
/// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the response is completed.
1356
1354
/// </returns>
1357
- public async global ::System . Threading . Tasks . Task ActionGroupsEnableReceiverViaIdentity ( global ::System . String viaIdentity , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Models . IEnableRequest body , global ::System . Func < global ::System . Net . Http . HttpResponseMessage , global ::System . Threading . Tasks . Task > onOk , global ::System . Func < global ::System . Net . Http . HttpResponseMessage , global ::System . Threading . Tasks . Task > onConflict , global ::System . Func < global ::System . Net . Http . HttpResponseMessage , global ::System . Threading . Tasks . Task < Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Models . IErrorResponse > , global ::System . Threading . Tasks . Task > onDefault , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . IEventListener eventListener , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . ISendAsync sender , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . SerializationMode serializationMode = Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . SerializationMode . IncludeCreate | Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . SerializationMode . IncludeUpdate )
1355
+ public async global ::System . Threading . Tasks . Task ActionGroupsEnableReceiverViaIdentity ( global ::System . String viaIdentity , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Models . IEnableRequest body , global ::System . Func < global ::System . Net . Http . HttpResponseMessage , global ::System . Threading . Tasks . Task > onOk , global ::System . Func < global ::System . Net . Http . HttpResponseMessage , global ::System . Threading . Tasks . Task < Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Models . IErrorResponse > , global ::System . Threading . Tasks . Task > onDefault , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . IEventListener eventListener , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . ISendAsync sender , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . SerializationMode serializationMode = Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . SerializationMode . IncludeCreate | Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . SerializationMode . IncludeUpdate )
1358
1356
{
1359
1357
var apiVersion = @"2023-01-01" ;
1360
1358
// Constant Parameters
@@ -1398,7 +1396,7 @@ public partial class ActionGroup
1398
1396
request . Content . Headers . ContentType = global ::System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
1399
1397
await eventListener . Signal ( Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . Events . BodyContentSet ) ; if ( eventListener . Token . IsCancellationRequested ) { return ; }
1400
1398
// make the call
1401
- await this . ActionGroupsEnableReceiver_Call ( request , onOk , onConflict , onDefault , eventListener , sender ) ;
1399
+ await this . ActionGroupsEnableReceiver_Call ( request , onOk , onDefault , eventListener , sender ) ;
1402
1400
}
1403
1401
}
1404
1402
@@ -1411,15 +1409,14 @@ public partial class ActionGroup
1411
1409
/// <param name="actionGroupName">The name of the action group.</param>
1412
1410
/// <param name="jsonString">Json string supplied to the ActionGroupsEnableReceiver operation</param>
1413
1411
/// <param name="onOk">a delegate that is called when the remote service returns 200 (OK).</param>
1414
- /// <param name="onConflict">a delegate that is called when the remote service returns 409 (Conflict).</param>
1415
1412
/// <param name="onDefault">a delegate that is called when the remote service returns default (any response code not handled
1416
1413
/// elsewhere).</param>
1417
1414
/// <param name="eventListener">an <see cref="Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.IEventListener" /> instance that will receive events.</param>
1418
1415
/// <param name="sender">an instance of an Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.ISendAsync pipeline to use to make the request.</param>
1419
1416
/// <returns>
1420
1417
/// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the response is completed.
1421
1418
/// </returns>
1422
- public async global ::System . Threading . Tasks . Task ActionGroupsEnableReceiverViaJsonString ( string subscriptionId , string resourceGroupName , string actionGroupName , global ::System . String jsonString , global ::System . Func < global ::System . Net . Http . HttpResponseMessage , global ::System . Threading . Tasks . Task > onOk , global ::System . Func < global ::System . Net . Http . HttpResponseMessage , global ::System . Threading . Tasks . Task > onConflict , global :: System . Func < global :: System . Net . Http . HttpResponseMessage , global :: System . Threading . Tasks . Task < Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Models . IErrorResponse > , global ::System . Threading . Tasks . Task > onDefault , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . IEventListener eventListener , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . ISendAsync sender )
1419
+ public async global ::System . Threading . Tasks . Task ActionGroupsEnableReceiverViaJsonString ( string subscriptionId , string resourceGroupName , string actionGroupName , global ::System . String jsonString , global ::System . Func < global ::System . Net . Http . HttpResponseMessage , global ::System . Threading . Tasks . Task > onOk , global ::System . Func < global ::System . Net . Http . HttpResponseMessage , global ::System . Threading . Tasks . Task < Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Models . IErrorResponse > , global ::System . Threading . Tasks . Task > onDefault , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . IEventListener eventListener , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . ISendAsync sender )
1423
1420
{
1424
1421
var apiVersion = @"2023-01-01" ;
1425
1422
// Constant Parameters
@@ -1451,22 +1448,21 @@ public partial class ActionGroup
1451
1448
request . Content . Headers . ContentType = global ::System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
1452
1449
await eventListener . Signal ( Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . Events . BodyContentSet ) ; if ( eventListener . Token . IsCancellationRequested ) { return ; }
1453
1450
// make the call
1454
- await this . ActionGroupsEnableReceiver_Call ( request , onOk , onConflict , onDefault , eventListener , sender ) ;
1451
+ await this . ActionGroupsEnableReceiver_Call ( request , onOk , onDefault , eventListener , sender ) ;
1455
1452
}
1456
1453
}
1457
1454
1458
1455
/// <summary>Actual wire call for <see cref= "ActionGroupsEnableReceiver" /> method.</summary>
1459
1456
/// <param name="request">the prepared HttpRequestMessage to send.</param>
1460
1457
/// <param name="onOk">a delegate that is called when the remote service returns 200 (OK).</param>
1461
- /// <param name="onConflict">a delegate that is called when the remote service returns 409 (Conflict).</param>
1462
1458
/// <param name="onDefault">a delegate that is called when the remote service returns default (any response code not handled
1463
1459
/// elsewhere).</param>
1464
1460
/// <param name="eventListener">an <see cref="Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.IEventListener" /> instance that will receive events.</param>
1465
1461
/// <param name="sender">an instance of an Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.ISendAsync pipeline to use to make the request.</param>
1466
1462
/// <returns>
1467
1463
/// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the response is completed.
1468
1464
/// </returns>
1469
- internal async global ::System . Threading . Tasks . Task ActionGroupsEnableReceiver_Call ( global ::System . Net . Http . HttpRequestMessage request , global ::System . Func < global ::System . Net . Http . HttpResponseMessage , global ::System . Threading . Tasks . Task > onOk , global ::System . Func < global ::System . Net . Http . HttpResponseMessage , global ::System . Threading . Tasks . Task > onConflict , global :: System . Func < global :: System . Net . Http . HttpResponseMessage , global :: System . Threading . Tasks . Task < Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Models . IErrorResponse > , global ::System . Threading . Tasks . Task > onDefault , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . IEventListener eventListener , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . ISendAsync sender )
1465
+ internal async global ::System . Threading . Tasks . Task ActionGroupsEnableReceiver_Call ( global ::System . Net . Http . HttpRequestMessage request , global ::System . Func < global ::System . Net . Http . HttpResponseMessage , global ::System . Threading . Tasks . Task > onOk , global ::System . Func < global ::System . Net . Http . HttpResponseMessage , global ::System . Threading . Tasks . Task < Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Models . IErrorResponse > , global ::System . Threading . Tasks . Task > onDefault , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . IEventListener eventListener , Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . ISendAsync sender )
1470
1466
{
1471
1467
using ( NoSynchronizationContext )
1472
1468
{
@@ -1488,12 +1484,6 @@ public partial class ActionGroup
1488
1484
await onOk ( _response ) ;
1489
1485
break ;
1490
1486
}
1491
- case global ::System . Net . HttpStatusCode . Conflict :
1492
- {
1493
- await eventListener . Signal ( Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . Events . BeforeResponseDispatch , _response ) ; if ( eventListener . Token . IsCancellationRequested ) { return ; }
1494
- await onConflict ( _response ) ;
1495
- break ;
1496
- }
1497
1487
default :
1498
1488
{
1499
1489
await eventListener . Signal ( Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . Events . BeforeResponseDispatch , _response ) ; if ( eventListener . Token . IsCancellationRequested ) { return ; }
0 commit comments