@@ -1293,7 +1293,6 @@ public partial class ActionGroup
12931293 /// <param name="actionGroupName">The name of the action group.</param>
12941294 /// <param name="body">The receiver to re-enable.</param>
12951295 /// <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>
12971296 /// <param name="onDefault">a delegate that is called when the remote service returns default (any response code not handled
12981297 /// elsewhere).</param>
12991298 /// <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
13021301 /// <returns>
13031302 /// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the response is completed.
13041303 /// </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 )
13061305 {
13071306 var apiVersion = @"2023-01-01" ;
13081307 // Constant Parameters
@@ -1334,7 +1333,7 @@ public partial class ActionGroup
13341333 request . Content . Headers . ContentType = global ::System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
13351334 await eventListener . Signal ( Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . Events . BodyContentSet ) ; if ( eventListener . Token . IsCancellationRequested ) { return ; }
13361335 // make the call
1337- await this . ActionGroupsEnableReceiver_Call ( request , onOk , onConflict , onDefault , eventListener , sender ) ;
1336+ await this . ActionGroupsEnableReceiver_Call ( request , onOk , onDefault , eventListener , sender ) ;
13381337 }
13391338 }
13401339
@@ -1345,7 +1344,6 @@ public partial class ActionGroup
13451344 /// <param name="viaIdentity"></param>
13461345 /// <param name="body">The receiver to re-enable.</param>
13471346 /// <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>
13491347 /// <param name="onDefault">a delegate that is called when the remote service returns default (any response code not handled
13501348 /// elsewhere).</param>
13511349 /// <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
13541352 /// <returns>
13551353 /// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the response is completed.
13561354 /// </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 )
13581356 {
13591357 var apiVersion = @"2023-01-01" ;
13601358 // Constant Parameters
@@ -1398,7 +1396,7 @@ public partial class ActionGroup
13981396 request . Content . Headers . ContentType = global ::System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
13991397 await eventListener . Signal ( Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . Events . BodyContentSet ) ; if ( eventListener . Token . IsCancellationRequested ) { return ; }
14001398 // make the call
1401- await this . ActionGroupsEnableReceiver_Call ( request , onOk , onConflict , onDefault , eventListener , sender ) ;
1399+ await this . ActionGroupsEnableReceiver_Call ( request , onOk , onDefault , eventListener , sender ) ;
14021400 }
14031401 }
14041402
@@ -1411,15 +1409,14 @@ public partial class ActionGroup
14111409 /// <param name="actionGroupName">The name of the action group.</param>
14121410 /// <param name="jsonString">Json string supplied to the ActionGroupsEnableReceiver operation</param>
14131411 /// <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>
14151412 /// <param name="onDefault">a delegate that is called when the remote service returns default (any response code not handled
14161413 /// elsewhere).</param>
14171414 /// <param name="eventListener">an <see cref="Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.IEventListener" /> instance that will receive events.</param>
14181415 /// <param name="sender">an instance of an Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.ISendAsync pipeline to use to make the request.</param>
14191416 /// <returns>
14201417 /// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the response is completed.
14211418 /// </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 )
14231420 {
14241421 var apiVersion = @"2023-01-01" ;
14251422 // Constant Parameters
@@ -1451,22 +1448,21 @@ public partial class ActionGroup
14511448 request . Content . Headers . ContentType = global ::System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
14521449 await eventListener . Signal ( Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . Events . BodyContentSet ) ; if ( eventListener . Token . IsCancellationRequested ) { return ; }
14531450 // make the call
1454- await this . ActionGroupsEnableReceiver_Call ( request , onOk , onConflict , onDefault , eventListener , sender ) ;
1451+ await this . ActionGroupsEnableReceiver_Call ( request , onOk , onDefault , eventListener , sender ) ;
14551452 }
14561453 }
14571454
14581455 /// <summary>Actual wire call for <see cref= "ActionGroupsEnableReceiver" /> method.</summary>
14591456 /// <param name="request">the prepared HttpRequestMessage to send.</param>
14601457 /// <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>
14621458 /// <param name="onDefault">a delegate that is called when the remote service returns default (any response code not handled
14631459 /// elsewhere).</param>
14641460 /// <param name="eventListener">an <see cref="Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.IEventListener" /> instance that will receive events.</param>
14651461 /// <param name="sender">an instance of an Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.ISendAsync pipeline to use to make the request.</param>
14661462 /// <returns>
14671463 /// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the response is completed.
14681464 /// </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 )
14701466 {
14711467 using ( NoSynchronizationContext )
14721468 {
@@ -1488,12 +1484,6 @@ public partial class ActionGroup
14881484 await onOk ( _response ) ;
14891485 break ;
14901486 }
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- }
14971487 default :
14981488 {
14991489 await eventListener . Signal ( Microsoft . Azure . PowerShell . Cmdlets . Monitor . ActionGroup . Runtime . Events . BeforeResponseDispatch , _response ) ; if ( eventListener . Token . IsCancellationRequested ) { return ; }
0 commit comments