// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.hybridcontainerservice.generated;

import com.azure.resourcemanager.hybridcontainerservice.models.AgentPool;

/** Samples for AgentPool Update. */
public final class AgentPoolUpdateSamples {
    /*
     * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2022-09-01-preview/examples/UpdateAgentPool.json
     */
    /**
     * Sample code: UpdateAgentPool.
     *
     * @param manager Entry point to HybridContainerServiceManager.
     */
    public static void updateAgentPool(
        com.azure.resourcemanager.hybridcontainerservice.HybridContainerServiceManager manager) {
        AgentPool resource =
            manager
                .agentPools()
                .getWithResponse(
                    "test-arcappliance-resgrp",
                    "test-hybridakscluster",
                    "test-hybridaksnodepool",
                    com.azure.core.util.Context.NONE)
                .getValue();
        resource.update().withCount(3).apply();
    }
}
