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

package com.azure.resourcemanager.appservice.generated;

import com.azure.resourcemanager.appservice.fluent.models.WorkerPoolResourceInner;

/** Samples for AppServiceEnvironments UpdateWorkerPool. */
public final class AppServiceEnvironmentsUpdateWorkerPoolSamples {
    /*
     * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_CreateOrUpdateWorkerPool.json
     */
    /**
     * Sample code: Get properties of a worker pool.
     *
     * @param azure The entry point for accessing resource management APIs in Azure.
     */
    public static void getPropertiesOfAWorkerPool(com.azure.resourcemanager.AzureResourceManager azure) {
        azure
            .webApps()
            .manager()
            .serviceClient()
            .getAppServiceEnvironments()
            .updateWorkerPoolWithResponse(
                "test-rg",
                "test-ase",
                "0",
                new WorkerPoolResourceInner().withWorkerSize("Small").withWorkerCount(3),
                com.azure.core.util.Context.NONE);
    }
}
