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

package com.azure.resourcemanager.avs.generated;

import com.azure.resourcemanager.avs.models.Cluster;

/** Samples for Clusters Update. */
public final class ClustersUpdateSamples {
    /*
     * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2022-05-01/examples/Clusters_Update.json
     */
    /**
     * Sample code: Clusters_Update.
     *
     * @param manager Entry point to AvsManager.
     */
    public static void clustersUpdate(com.azure.resourcemanager.avs.AvsManager manager) {
        Cluster resource =
            manager
                .clusters()
                .getWithResponse("group1", "cloud1", "cluster1", com.azure.core.util.Context.NONE)
                .getValue();
        resource.update().withClusterSize(4).apply();
    }
}
