Skip to content

Commit 2172b9c

Browse files
[skip ci] Archive generated assets to origin/future (#25672)
Co-authored-by: azure-powershell-bot <[email protected]>
1 parent f97dea5 commit 2172b9c

8 files changed

+373
-61
lines changed

generated/AksArc/AksArc.Autorest/Az.AksArc.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@{
2-
GUID = '0e2f96c9-10b2-4c68-b181-d29e3bdfdeed'
2+
GUID = 'b12bc6f4-a4bf-4e80-89e4-f13e640b7f12'
33
RootModule = './Az.AksArc.psm1'
44
ModuleVersion = '0.1.0'
55
CompatiblePSEditions = 'Core', 'Desktop'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "8592e13b-4bcc-4035-bad8-60abdadadc3a"
2+
"generate_Id": "dfc356f4-00c0-4645-b4dd-6819bb3a7773"
33
}

generated/AksArc/AksArc.Autorest/generated/api/AksArc.cs

Lines changed: 194 additions & 52 deletions
Large diffs are not rendered by default.

generated/AksArc/AksArc.Autorest/generated/cmdlets/RemoveAzAksArcCluster_Delete.cs

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,16 @@ public partial class RemoveAzAksArcCluster_Delete : global::System.Management.Au
176176

177177
partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task<bool> returnNow);
178178

179+
/// <summary>
180+
/// <c>overrideOnOk</c> will be called before the regular onOk has been processed, allowing customization of what happens
181+
/// on that response. Implement this method in a partial class to enable this behavior
182+
/// </summary>
183+
/// <param name="responseMessage">the raw response message as an global::System.Net.Http.HttpResponseMessage.</param>
184+
/// <param name="returnNow">/// Determines if the rest of the onOk method should be processed, or if the method should return
185+
/// immediately (set to true to skip further processing )</param>
186+
187+
partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task<bool> returnNow);
188+
179189
/// <summary>
180190
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
181191
/// </summary>
@@ -428,7 +438,7 @@ protected override void ProcessRecord()
428438
try
429439
{
430440
await ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
431-
await this.Client.ProvisionedClusterInstancesDelete(ConnectedClusterResourceUri, onNoContent, onDefault, this, Pipeline);
441+
await this.Client.ProvisionedClusterInstancesDelete(ConnectedClusterResourceUri, onNoContent, onOk, onDefault, this, Pipeline);
432442
await ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
433443
}
434444
catch (Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.UndeclaredResponseException urexception)
@@ -540,5 +550,29 @@ protected override void StopProcessing()
540550
}
541551
}
542552
}
553+
554+
/// <summary>a delegate that is called when the remote service returns 200 (OK).</summary>
555+
/// <param name="responseMessage">the raw response message as an global::System.Net.Http.HttpResponseMessage.</param>
556+
/// <returns>
557+
/// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the method is completed.
558+
/// </returns>
559+
private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
560+
{
561+
using( NoSynchronizationContext )
562+
{
563+
var _returnNow = global::System.Threading.Tasks.Task<bool>.FromResult(false);
564+
overrideOnOk(responseMessage, ref _returnNow);
565+
// if overrideOnOk has returned true, then return right away.
566+
if ((null != _returnNow && await _returnNow))
567+
{
568+
return ;
569+
}
570+
// onOk - response for 200 /
571+
if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
572+
{
573+
WriteObject(true);
574+
}
575+
}
576+
}
543577
}
544578
}

generated/AksArc/AksArc.Autorest/generated/cmdlets/RemoveAzAksArcNodepool_Delete.cs

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,16 @@ public partial class RemoveAzAksArcNodepool_Delete : global::System.Management.A
191191

192192
partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task<bool> returnNow);
193193

194+
/// <summary>
195+
/// <c>overrideOnOk</c> will be called before the regular onOk has been processed, allowing customization of what happens
196+
/// on that response. Implement this method in a partial class to enable this behavior
197+
/// </summary>
198+
/// <param name="responseMessage">the raw response message as an global::System.Net.Http.HttpResponseMessage.</param>
199+
/// <param name="returnNow">/// Determines if the rest of the onOk method should be processed, or if the method should return
200+
/// immediately (set to true to skip further processing )</param>
201+
202+
partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task<bool> returnNow);
203+
194204
/// <summary>
195205
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
196206
/// </summary>
@@ -444,7 +454,7 @@ protected override void ProcessRecord()
444454
try
445455
{
446456
await ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
447-
await this.Client.AgentPoolDelete(ConnectedClusterResourceUri, Name, onNoContent, onDefault, this, Pipeline);
457+
await this.Client.AgentPoolDelete(ConnectedClusterResourceUri, Name, onNoContent, onOk, onDefault, this, Pipeline);
448458
await ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
449459
}
450460
catch (Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.UndeclaredResponseException urexception)
@@ -556,5 +566,29 @@ protected override void StopProcessing()
556566
}
557567
}
558568
}
569+
570+
/// <summary>a delegate that is called when the remote service returns 200 (OK).</summary>
571+
/// <param name="responseMessage">the raw response message as an global::System.Net.Http.HttpResponseMessage.</param>
572+
/// <returns>
573+
/// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the method is completed.
574+
/// </returns>
575+
private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
576+
{
577+
using( NoSynchronizationContext )
578+
{
579+
var _returnNow = global::System.Threading.Tasks.Task<bool>.FromResult(false);
580+
overrideOnOk(responseMessage, ref _returnNow);
581+
// if overrideOnOk has returned true, then return right away.
582+
if ((null != _returnNow && await _returnNow))
583+
{
584+
return ;
585+
}
586+
// onOk - response for 200 /
587+
if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
588+
{
589+
WriteObject(true);
590+
}
591+
}
592+
}
559593
}
560594
}

generated/AksArc/AksArc.Autorest/generated/cmdlets/RemoveAzAksArcNodepool_DeleteViaIdentity.cs

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,16 @@ public partial class RemoveAzAksArcNodepool_DeleteViaIdentity : global::System.M
168168

169169
partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task<bool> returnNow);
170170

171+
/// <summary>
172+
/// <c>overrideOnOk</c> will be called before the regular onOk has been processed, allowing customization of what happens
173+
/// on that response. Implement this method in a partial class to enable this behavior
174+
/// </summary>
175+
/// <param name="responseMessage">the raw response message as an global::System.Net.Http.HttpResponseMessage.</param>
176+
/// <param name="returnNow">/// Determines if the rest of the onOk method should be processed, or if the method should return
177+
/// immediately (set to true to skip further processing )</param>
178+
179+
partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task<bool> returnNow);
180+
171181
/// <summary>
172182
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
173183
/// </summary>
@@ -421,7 +431,7 @@ protected override void ProcessRecord()
421431
await ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
422432
if (InputObject?.Id != null)
423433
{
424-
await this.Client.AgentPoolDeleteViaIdentity(InputObject.Id, onNoContent, onDefault, this, Pipeline);
434+
await this.Client.AgentPoolDeleteViaIdentity(InputObject.Id, onNoContent, onOk, onDefault, this, Pipeline);
425435
}
426436
else
427437
{
@@ -434,7 +444,7 @@ protected override void ProcessRecord()
434444
{
435445
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.AgentPoolName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) );
436446
}
437-
await this.Client.AgentPoolDelete(InputObject.ConnectedClusterResourceUri ?? null, InputObject.AgentPoolName ?? null, onNoContent, onDefault, this, Pipeline);
447+
await this.Client.AgentPoolDelete(InputObject.ConnectedClusterResourceUri ?? null, InputObject.AgentPoolName ?? null, onNoContent, onOk, onDefault, this, Pipeline);
438448
}
439449
await ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
440450
}
@@ -547,5 +557,29 @@ protected override void StopProcessing()
547557
}
548558
}
549559
}
560+
561+
/// <summary>a delegate that is called when the remote service returns 200 (OK).</summary>
562+
/// <param name="responseMessage">the raw response message as an global::System.Net.Http.HttpResponseMessage.</param>
563+
/// <returns>
564+
/// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the method is completed.
565+
/// </returns>
566+
private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
567+
{
568+
using( NoSynchronizationContext )
569+
{
570+
var _returnNow = global::System.Threading.Tasks.Task<bool>.FromResult(false);
571+
overrideOnOk(responseMessage, ref _returnNow);
572+
// if overrideOnOk has returned true, then return right away.
573+
if ((null != _returnNow && await _returnNow))
574+
{
575+
return ;
576+
}
577+
// onOk - response for 200 /
578+
if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
579+
{
580+
WriteObject(true);
581+
}
582+
}
583+
}
550584
}
551585
}

generated/AksArc/AksArc.Autorest/generated/cmdlets/RemoveAzAksArcVirtualNetwork_Delete.cs

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,16 @@ public partial class RemoveAzAksArcVirtualNetwork_Delete : global::System.Manage
207207

208208
partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task<bool> returnNow);
209209

210+
/// <summary>
211+
/// <c>overrideOnOk</c> will be called before the regular onOk has been processed, allowing customization of what happens
212+
/// on that response. Implement this method in a partial class to enable this behavior
213+
/// </summary>
214+
/// <param name="responseMessage">the raw response message as an global::System.Net.Http.HttpResponseMessage.</param>
215+
/// <param name="returnNow">/// Determines if the rest of the onOk method should be processed, or if the method should return
216+
/// immediately (set to true to skip further processing )</param>
217+
218+
partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task<bool> returnNow);
219+
210220
/// <summary>
211221
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
212222
/// </summary>
@@ -461,7 +471,7 @@ protected override void ProcessRecord()
461471
try
462472
{
463473
await ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
464-
await this.Client.VirtualNetworksDelete(SubscriptionId, ResourceGroupName, Name, onNoContent, onDefault, this, Pipeline);
474+
await this.Client.VirtualNetworksDelete(SubscriptionId, ResourceGroupName, Name, onNoContent, onOk, onDefault, this, Pipeline);
465475
await ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
466476
}
467477
catch (Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.UndeclaredResponseException urexception)
@@ -573,5 +583,29 @@ protected override void StopProcessing()
573583
}
574584
}
575585
}
586+
587+
/// <summary>a delegate that is called when the remote service returns 200 (OK).</summary>
588+
/// <param name="responseMessage">the raw response message as an global::System.Net.Http.HttpResponseMessage.</param>
589+
/// <returns>
590+
/// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the method is completed.
591+
/// </returns>
592+
private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
593+
{
594+
using( NoSynchronizationContext )
595+
{
596+
var _returnNow = global::System.Threading.Tasks.Task<bool>.FromResult(false);
597+
overrideOnOk(responseMessage, ref _returnNow);
598+
// if overrideOnOk has returned true, then return right away.
599+
if ((null != _returnNow && await _returnNow))
600+
{
601+
return ;
602+
}
603+
// onOk - response for 200 /
604+
if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
605+
{
606+
WriteObject(true);
607+
}
608+
}
609+
}
576610
}
577611
}

generated/AksArc/AksArc.Autorest/generated/cmdlets/RemoveAzAksArcVirtualNetwork_DeleteViaIdentity.cs

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,16 @@ public partial class RemoveAzAksArcVirtualNetwork_DeleteViaIdentity : global::Sy
167167

168168
partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task<bool> returnNow);
169169

170+
/// <summary>
171+
/// <c>overrideOnOk</c> will be called before the regular onOk has been processed, allowing customization of what happens
172+
/// on that response. Implement this method in a partial class to enable this behavior
173+
/// </summary>
174+
/// <param name="responseMessage">the raw response message as an global::System.Net.Http.HttpResponseMessage.</param>
175+
/// <param name="returnNow">/// Determines if the rest of the onOk method should be processed, or if the method should return
176+
/// immediately (set to true to skip further processing )</param>
177+
178+
partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task<bool> returnNow);
179+
170180
/// <summary>
171181
/// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet)
172182
/// </summary>
@@ -420,7 +430,7 @@ protected override void ProcessRecord()
420430
await ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
421431
if (InputObject?.Id != null)
422432
{
423-
await this.Client.VirtualNetworksDeleteViaIdentity(InputObject.Id, onNoContent, onDefault, this, Pipeline);
433+
await this.Client.VirtualNetworksDeleteViaIdentity(InputObject.Id, onNoContent, onOk, onDefault, this, Pipeline);
424434
}
425435
else
426436
{
@@ -437,7 +447,7 @@ protected override void ProcessRecord()
437447
{
438448
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VirtualNetworkName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) );
439449
}
440-
await this.Client.VirtualNetworksDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.VirtualNetworkName ?? null, onNoContent, onDefault, this, Pipeline);
450+
await this.Client.VirtualNetworksDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.VirtualNetworkName ?? null, onNoContent, onOk, onDefault, this, Pipeline);
441451
}
442452
await ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
443453
}
@@ -550,5 +560,29 @@ protected override void StopProcessing()
550560
}
551561
}
552562
}
563+
564+
/// <summary>a delegate that is called when the remote service returns 200 (OK).</summary>
565+
/// <param name="responseMessage">the raw response message as an global::System.Net.Http.HttpResponseMessage.</param>
566+
/// <returns>
567+
/// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the method is completed.
568+
/// </returns>
569+
private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage)
570+
{
571+
using( NoSynchronizationContext )
572+
{
573+
var _returnNow = global::System.Threading.Tasks.Task<bool>.FromResult(false);
574+
overrideOnOk(responseMessage, ref _returnNow);
575+
// if overrideOnOk has returned true, then return right away.
576+
if ((null != _returnNow && await _returnNow))
577+
{
578+
return ;
579+
}
580+
// onOk - response for 200 /
581+
if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
582+
{
583+
WriteObject(true);
584+
}
585+
}
586+
}
553587
}
554588
}

0 commit comments

Comments
 (0)