// 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.AttachDiskProperties;

/** Samples for Disks Attach. */
public final class DisksAttachSamples {
    /*
     * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json
     */
    /**
     * Sample code: Disks_Attach.
     *
     * @param manager Entry point to DevTestLabsManager.
     */
    public static void disksAttach(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
        manager
            .disks()
            .attach(
                "resourceGroupName",
                "{labName}",
                "{userId}",
                "{diskName}",
                new AttachDiskProperties()
                    .withLeasedByLabVmId(
                        "/subscriptions/{subscriptionId}/resourcegroups/resourceGroupName/providers/microsoft.devtestlab/labs/{labName}/virtualmachines/{vmName}"),
                com.azure.core.util.Context.NONE);
    }
}
