@@ -30,7 +30,7 @@ public interface AgentPoolsClient {
3030 *
3131 * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and
3232 * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can
33- * take place, an error is returned.
33+ * take place, a 409 error code is returned.
3434 *
3535 * @param resourceGroupName The name of the resource group. The name is case insensitive.
3636 * @param resourceName The name of the managed cluster resource.
@@ -49,7 +49,7 @@ Mono<Response<Flux<ByteBuffer>>> abortLatestOperationWithResponseAsync(String re
4949 *
5050 * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and
5151 * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can
52- * take place, an error is returned.
52+ * take place, a 409 error code is returned.
5353 *
5454 * @param resourceGroupName The name of the resource group. The name is case insensitive.
5555 * @param resourceName The name of the managed cluster resource.
@@ -68,7 +68,7 @@ PollerFlux<PollResult<Void>, Void> beginAbortLatestOperationAsync(String resourc
6868 *
6969 * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and
7070 * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can
71- * take place, an error is returned.
71+ * take place, a 409 error code is returned.
7272 *
7373 * @param resourceGroupName The name of the resource group. The name is case insensitive.
7474 * @param resourceName The name of the managed cluster resource.
@@ -87,7 +87,7 @@ SyncPoller<PollResult<Void>, Void> beginAbortLatestOperation(String resourceGrou
8787 *
8888 * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and
8989 * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can
90- * take place, an error is returned.
90+ * take place, a 409 error code is returned.
9191 *
9292 * @param resourceGroupName The name of the resource group. The name is case insensitive.
9393 * @param resourceName The name of the managed cluster resource.
@@ -107,7 +107,7 @@ SyncPoller<PollResult<Void>, Void> beginAbortLatestOperation(String resourceGrou
107107 *
108108 * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and
109109 * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can
110- * take place, an error is returned.
110+ * take place, a 409 error code is returned.
111111 *
112112 * @param resourceGroupName The name of the resource group. The name is case insensitive.
113113 * @param resourceName The name of the managed cluster resource.
@@ -125,7 +125,7 @@ SyncPoller<PollResult<Void>, Void> beginAbortLatestOperation(String resourceGrou
125125 *
126126 * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and
127127 * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can
128- * take place, an error is returned.
128+ * take place, a 409 error code is returned.
129129 *
130130 * @param resourceGroupName The name of the resource group. The name is case insensitive.
131131 * @param resourceName The name of the managed cluster resource.
@@ -142,7 +142,7 @@ SyncPoller<PollResult<Void>, Void> beginAbortLatestOperation(String resourceGrou
142142 *
143143 * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and
144144 * eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can
145- * take place, an error is returned.
145+ * take place, a 409 error code is returned.
146146 *
147147 * @param resourceGroupName The name of the resource group. The name is case insensitive.
148148 * @param resourceName The name of the managed cluster resource.
@@ -620,122 +620,6 @@ Response<AgentPoolUpgradeProfileInner> getUpgradeProfileWithResponse(String reso
620620 @ ServiceMethod (returns = ReturnType .SINGLE )
621621 AgentPoolUpgradeProfileInner getUpgradeProfile (String resourceGroupName , String resourceName , String agentPoolName );
622622
623- /**
624- * Completes the upgrade of an agent pool.
625- *
626- * Completes the upgrade operation for the specified agent pool.
627- *
628- * @param resourceGroupName The name of the resource group. The name is case insensitive.
629- * @param resourceName The name of the managed cluster resource.
630- * @param agentPoolName The name of the agent pool.
631- * @throws IllegalArgumentException thrown if parameters fail the validation.
632- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
633- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
634- * @return the {@link Response} on successful completion of {@link Mono}.
635- */
636- @ ServiceMethod (returns = ReturnType .SINGLE )
637- Mono <Response <Flux <ByteBuffer >>> completeUpgradeWithResponseAsync (String resourceGroupName , String resourceName ,
638- String agentPoolName );
639-
640- /**
641- * Completes the upgrade of an agent pool.
642- *
643- * Completes the upgrade operation for the specified agent pool.
644- *
645- * @param resourceGroupName The name of the resource group. The name is case insensitive.
646- * @param resourceName The name of the managed cluster resource.
647- * @param agentPoolName The name of the agent pool.
648- * @throws IllegalArgumentException thrown if parameters fail the validation.
649- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
650- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
651- * @return the {@link PollerFlux} for polling of long-running operation.
652- */
653- @ ServiceMethod (returns = ReturnType .LONG_RUNNING_OPERATION )
654- PollerFlux <PollResult <Void >, Void > beginCompleteUpgradeAsync (String resourceGroupName , String resourceName ,
655- String agentPoolName );
656-
657- /**
658- * Completes the upgrade of an agent pool.
659- *
660- * Completes the upgrade operation for the specified agent pool.
661- *
662- * @param resourceGroupName The name of the resource group. The name is case insensitive.
663- * @param resourceName The name of the managed cluster resource.
664- * @param agentPoolName The name of the agent pool.
665- * @throws IllegalArgumentException thrown if parameters fail the validation.
666- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
667- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
668- * @return the {@link SyncPoller} for polling of long-running operation.
669- */
670- @ ServiceMethod (returns = ReturnType .LONG_RUNNING_OPERATION )
671- SyncPoller <PollResult <Void >, Void > beginCompleteUpgrade (String resourceGroupName , String resourceName ,
672- String agentPoolName );
673-
674- /**
675- * Completes the upgrade of an agent pool.
676- *
677- * Completes the upgrade operation for the specified agent pool.
678- *
679- * @param resourceGroupName The name of the resource group. The name is case insensitive.
680- * @param resourceName The name of the managed cluster resource.
681- * @param agentPoolName The name of the agent pool.
682- * @param context The context to associate with this operation.
683- * @throws IllegalArgumentException thrown if parameters fail the validation.
684- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
685- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
686- * @return the {@link SyncPoller} for polling of long-running operation.
687- */
688- @ ServiceMethod (returns = ReturnType .LONG_RUNNING_OPERATION )
689- SyncPoller <PollResult <Void >, Void > beginCompleteUpgrade (String resourceGroupName , String resourceName ,
690- String agentPoolName , Context context );
691-
692- /**
693- * Completes the upgrade of an agent pool.
694- *
695- * Completes the upgrade operation for the specified agent pool.
696- *
697- * @param resourceGroupName The name of the resource group. The name is case insensitive.
698- * @param resourceName The name of the managed cluster resource.
699- * @param agentPoolName The name of the agent pool.
700- * @throws IllegalArgumentException thrown if parameters fail the validation.
701- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
702- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
703- * @return A {@link Mono} that completes when a successful response is received.
704- */
705- @ ServiceMethod (returns = ReturnType .SINGLE )
706- Mono <Void > completeUpgradeAsync (String resourceGroupName , String resourceName , String agentPoolName );
707-
708- /**
709- * Completes the upgrade of an agent pool.
710- *
711- * Completes the upgrade operation for the specified agent pool.
712- *
713- * @param resourceGroupName The name of the resource group. The name is case insensitive.
714- * @param resourceName The name of the managed cluster resource.
715- * @param agentPoolName The name of the agent pool.
716- * @throws IllegalArgumentException thrown if parameters fail the validation.
717- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
718- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
719- */
720- @ ServiceMethod (returns = ReturnType .SINGLE )
721- void completeUpgrade (String resourceGroupName , String resourceName , String agentPoolName );
722-
723- /**
724- * Completes the upgrade of an agent pool.
725- *
726- * Completes the upgrade operation for the specified agent pool.
727- *
728- * @param resourceGroupName The name of the resource group. The name is case insensitive.
729- * @param resourceName The name of the managed cluster resource.
730- * @param agentPoolName The name of the agent pool.
731- * @param context The context to associate with this operation.
732- * @throws IllegalArgumentException thrown if parameters fail the validation.
733- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
734- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
735- */
736- @ ServiceMethod (returns = ReturnType .SINGLE )
737- void completeUpgrade (String resourceGroupName , String resourceName , String agentPoolName , Context context );
738-
739623 /**
740624 * Deletes specific machines in an agent pool.
741625 *
0 commit comments