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

package com.azure.resourcemanager.quantum.generated;

import com.azure.resourcemanager.quantum.models.Provider;
import java.util.Arrays;

/** Samples for Workspaces CreateOrUpdate. */
public final class WorkspacesCreateOrUpdateSamples {
    /*
     * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPut.json
     */
    /**
     * Sample code: QuantumWorkspacesPut.
     *
     * @param manager Entry point to AzureQuantumManager.
     */
    public static void quantumWorkspacesPut(com.azure.resourcemanager.quantum.AzureQuantumManager manager) {
        manager
            .workspaces()
            .define("quantumworkspace1")
            .withRegion("West US")
            .withExistingResourceGroup("quantumResourcegroup")
            .withProviders(
                Arrays
                    .asList(
                        new Provider().withProviderId("Honeywell").withProviderSku("Basic"),
                        new Provider().withProviderId("IonQ").withProviderSku("Basic"),
                        new Provider().withProviderId("OneQBit").withProviderSku("Basic")))
            .withStorageAccount(
                "/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount")
            .create();
    }
}
