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

package com.azure.resourcemanager.devtestlabs.generated;

import com.azure.resourcemanager.devtestlabs.models.Lab;

/** Samples for Labs Update. */
public final class LabsUpdateSamples {
    /*
     * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json
     */
    /**
     * Sample code: Labs_Update.
     *
     * @param manager Entry point to DevTestLabsManager.
     */
    public static void labsUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
        Lab resource =
            manager
                .labs()
                .getByResourceGroupWithResponse(
                    "resourceGroupName", "{labName}", null, com.azure.core.util.Context.NONE)
                .getValue();
        resource.update().apply();
    }
}
