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

package com.azure.resourcemanager.videoanalyzer.generated;

import com.azure.core.util.Context;
import com.azure.resourcemanager.videoanalyzer.models.ListProvisioningTokenInput;
import java.time.OffsetDateTime;

/** Samples for EdgeModules ListProvisioningToken. */
public final class EdgeModulesListProvisioningTokenSamples {
    /*
     * x-ms-original-file: specification/videoanalyzer/resource-manager/Microsoft.Media/preview/2021-11-01-preview/examples/edge-modules-listProvisioningToken.json
     */
    /**
     * Sample code: Generate the Provisioning token for an edge module registration.
     *
     * @param manager Entry point to VideoAnalyzerManager.
     */
    public static void generateTheProvisioningTokenForAnEdgeModuleRegistration(
        com.azure.resourcemanager.videoanalyzer.VideoAnalyzerManager manager) {
        manager
            .edgeModules()
            .listProvisioningTokenWithResponse(
                "testrg",
                "testaccount2",
                "edgeModule1",
                new ListProvisioningTokenInput()
                    .withExpirationDate(OffsetDateTime.parse("2023-01-23T11:04:49.0526841-08:00")),
                Context.NONE);
    }
}
