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

package com.azure.resourcemanager.azurestack.generated;

import com.azure.resourcemanager.azurestack.models.DeploymentLicenseRequest;

/** Samples for DeploymentLicense Create. */
public final class DeploymentLicenseCreateSamples {
    /*
     * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2022-06-01/examples/DeploymentLicense/Post.json
     */
    /**
     * Sample code: Creates a license that can be used to deploy an Azure Stack device.
     *
     * @param manager Entry point to AzureStackManager.
     */
    public static void createsALicenseThatCanBeUsedToDeployAnAzureStackDevice(
        com.azure.resourcemanager.azurestack.AzureStackManager manager) {
        manager
            .deploymentLicenses()
            .createWithResponse(
                new DeploymentLicenseRequest().withVerificationVersion("1"), com.azure.core.util.Context.NONE);
    }
}
