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

package com.azure.resourcemanager.labservices.generated;

import com.azure.core.util.Context;
import com.azure.resourcemanager.labservices.models.User;
import java.time.Duration;

/** Samples for Users Update. */
public final class UsersUpdateSamples {
    /*
     * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Users/patchUser.json
     */
    /**
     * Sample code: patchUser.
     *
     * @param manager Entry point to LabServicesManager.
     */
    public static void patchUser(com.azure.resourcemanager.labservices.LabServicesManager manager) {
        User resource = manager.users().getWithResponse("testrg123", "testlab", "testuser", Context.NONE).getValue();
        resource.update().withAdditionalUsageQuota(Duration.parse("PT10H")).apply();
    }
}
