From d6bce68e91ba52a7c9ccfc6442ae7db022fefda9 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Thu, 13 Mar 2025 11:16:13 +0000 Subject: [PATCH] [Automation] Collect examples from azure-sdk-for-net#Azure.ResourceManager.Quantum_1.0.0-beta.6 --- .../examples-dotnet/listKeys.cs | 7 +++---- .../examples-dotnet/listKeys.json | 2 +- .../examples-dotnet/offeringsList.cs | 7 ++++--- .../examples-dotnet/offeringsList.json | 2 +- .../quantumWorkspacesCheckNameAvailability.cs | 7 ++++--- .../quantumWorkspacesCheckNameAvailability.json | 2 +- .../examples-dotnet/quantumWorkspacesDelete.cs | 9 ++++----- .../quantumWorkspacesDelete.json | 2 +- .../examples-dotnet/quantumWorkspacesGet.cs | 7 +++---- .../examples-dotnet/quantumWorkspacesGet.json | 2 +- .../quantumWorkspacesListResourceGroup.cs | 8 ++++---- .../quantumWorkspacesListResourceGroup.json | 2 +- .../quantumWorkspacesListSubscription.cs | 8 ++++---- .../quantumWorkspacesListSubscription.json | 2 +- .../examples-dotnet/quantumWorkspacesPatch.cs | 11 +++++------ .../examples-dotnet/quantumWorkspacesPatch.json | 2 +- .../examples-dotnet/quantumWorkspacesPut.cs | 17 +++++++---------- .../examples-dotnet/quantumWorkspacesPut.json | 2 +- .../examples-dotnet/regenerateKey.cs | 16 ++++++---------- .../examples-dotnet/regenerateKey.json | 2 +- 20 files changed, 54 insertions(+), 63 deletions(-) diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/listKeys.cs b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/listKeys.cs index 0660102387..83a1324fd6 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/listKeys.cs +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/listKeys.cs @@ -1,12 +1,11 @@ +using Azure; +using Azure.ResourceManager; using System; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.Quantum; using Azure.ResourceManager.Quantum.Models; -using Azure.ResourceManager.Resources; +using Azure.ResourceManager.Quantum; // Generated from example definition: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/listKeys.json // this example is just showing the usage of "Workspace_ListKeys" operation, for the dependent resources, they will have to be created separately. diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/listKeys.json b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/listKeys.json index 5bf04ecdb0..afbb25d78c 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/listKeys.json +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/listKeys.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.5/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.6/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/offeringsList.cs b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/offeringsList.cs index aaec599420..c8c5e86db8 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/offeringsList.cs +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/offeringsList.cs @@ -1,11 +1,12 @@ +using Azure; +using Azure.ResourceManager; using System; using System.Threading.Tasks; using Azure.Core; using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.Quantum; using Azure.ResourceManager.Quantum.Models; using Azure.ResourceManager.Resources; +using Azure.ResourceManager.Quantum; // Generated from example definition: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/offeringsList.json // this example is just showing the usage of "Offerings_List" operation, for the dependent resources, they will have to be created separately. @@ -28,4 +29,4 @@ Console.WriteLine($"Succeeded: {item}"); } -Console.WriteLine($"Succeeded"); +Console.WriteLine("Succeeded"); diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/offeringsList.json b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/offeringsList.json index 5bf04ecdb0..afbb25d78c 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/offeringsList.json +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/offeringsList.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.5/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.6/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesCheckNameAvailability.cs b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesCheckNameAvailability.cs index 12ef11e4a9..3394cc7a38 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesCheckNameAvailability.cs +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesCheckNameAvailability.cs @@ -1,11 +1,12 @@ +using Azure; +using Azure.ResourceManager; using System; using System.Threading.Tasks; using Azure.Core; using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.Quantum; using Azure.ResourceManager.Quantum.Models; using Azure.ResourceManager.Resources; +using Azure.ResourceManager.Quantum; // Generated from example definition: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesCheckNameAvailability.json // this example is just showing the usage of "Workspace_CheckNameAvailability" operation, for the dependent resources, they will have to be created separately. @@ -23,7 +24,7 @@ // invoke the operation string locationName = "westus2"; -WorkspaceNameAvailabilityContent content = new WorkspaceNameAvailabilityContent() +WorkspaceNameAvailabilityContent content = new WorkspaceNameAvailabilityContent { Name = "sample-workspace-name", ResourceType = new ResourceType("Microsoft.Quantum/Workspaces"), diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesCheckNameAvailability.json b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesCheckNameAvailability.json index 5bf04ecdb0..afbb25d78c 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesCheckNameAvailability.json +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesCheckNameAvailability.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.5/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.6/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesDelete.cs b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesDelete.cs index 7cf7f1cbe7..8a68de98a8 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesDelete.cs +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesDelete.cs @@ -1,12 +1,11 @@ +using Azure; +using Azure.ResourceManager; using System; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.Quantum; using Azure.ResourceManager.Quantum.Models; -using Azure.ResourceManager.Resources; +using Azure.ResourceManager.Quantum; // Generated from example definition: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesDelete.json // this example is just showing the usage of "Workspaces_Delete" operation, for the dependent resources, they will have to be created separately. @@ -27,4 +26,4 @@ // invoke the operation await quantumWorkspace.DeleteAsync(WaitUntil.Completed); -Console.WriteLine($"Succeeded"); +Console.WriteLine("Succeeded"); diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesDelete.json b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesDelete.json index 5bf04ecdb0..afbb25d78c 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesDelete.json +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.5/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.6/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesGet.cs b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesGet.cs index 99652cb24e..72467f6274 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesGet.cs +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesGet.cs @@ -1,12 +1,11 @@ +using Azure; +using Azure.ResourceManager; using System; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.Quantum; using Azure.ResourceManager.Quantum.Models; -using Azure.ResourceManager.Resources; +using Azure.ResourceManager.Quantum; // Generated from example definition: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesGet.json // this example is just showing the usage of "Workspaces_Get" operation, for the dependent resources, they will have to be created separately. diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesGet.json b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesGet.json index 5bf04ecdb0..afbb25d78c 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesGet.json +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.5/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.6/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesListResourceGroup.cs b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesListResourceGroup.cs index d9cc869efe..05e77ba30d 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesListResourceGroup.cs +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesListResourceGroup.cs @@ -1,12 +1,12 @@ +using Azure; +using Azure.ResourceManager; using System; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.Quantum; using Azure.ResourceManager.Quantum.Models; using Azure.ResourceManager.Resources; +using Azure.ResourceManager.Quantum; // Generated from example definition: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListResourceGroup.json // this example is just showing the usage of "Workspaces_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. @@ -36,4 +36,4 @@ Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } -Console.WriteLine($"Succeeded"); +Console.WriteLine("Succeeded"); diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesListResourceGroup.json b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesListResourceGroup.json index 5bf04ecdb0..afbb25d78c 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesListResourceGroup.json +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesListResourceGroup.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.5/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.6/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesListSubscription.cs b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesListSubscription.cs index a3fd702078..d47686bfd6 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesListSubscription.cs +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesListSubscription.cs @@ -1,12 +1,12 @@ +using Azure; +using Azure.ResourceManager; using System; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.Quantum; using Azure.ResourceManager.Quantum.Models; using Azure.ResourceManager.Resources; +using Azure.ResourceManager.Quantum; // Generated from example definition: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListSubscription.json // this example is just showing the usage of "Workspaces_ListBySubscription" operation, for the dependent resources, they will have to be created separately. @@ -32,4 +32,4 @@ Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } -Console.WriteLine($"Succeeded"); +Console.WriteLine("Succeeded"); diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesListSubscription.json b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesListSubscription.json index 5bf04ecdb0..afbb25d78c 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesListSubscription.json +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesListSubscription.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.5/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.6/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesPatch.cs b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesPatch.cs index 0dee1dc3e6..5b99861c6a 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesPatch.cs +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesPatch.cs @@ -1,12 +1,11 @@ +using Azure; +using Azure.ResourceManager; using System; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.Quantum; using Azure.ResourceManager.Quantum.Models; -using Azure.ResourceManager.Resources; +using Azure.ResourceManager.Quantum; // Generated from example definition: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPatch.json // this example is just showing the usage of "Workspaces_UpdateTags" operation, for the dependent resources, they will have to be created separately. @@ -25,12 +24,12 @@ QuantumWorkspaceResource quantumWorkspace = client.GetQuantumWorkspaceResource(quantumWorkspaceResourceId); // invoke the operation -QuantumWorkspacePatch patch = new QuantumWorkspacePatch() +QuantumWorkspacePatch patch = new QuantumWorkspacePatch { Tags = { ["tag1"] = "value1", - ["tag2"] = "value2", + ["tag2"] = "value2" }, }; QuantumWorkspaceResource result = await quantumWorkspace.UpdateAsync(patch); diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesPatch.json b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesPatch.json index 5bf04ecdb0..afbb25d78c 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesPatch.json +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesPatch.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.5/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.6/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesPut.cs b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesPut.cs index a6094f77c0..c8f4e7daf1 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesPut.cs +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesPut.cs @@ -1,12 +1,12 @@ +using Azure; +using Azure.ResourceManager; using System; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.Quantum; using Azure.ResourceManager.Quantum.Models; using Azure.ResourceManager.Resources; +using Azure.ResourceManager.Quantum; // Generated from example definition: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPut.json // this example is just showing the usage of "Workspaces_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. @@ -30,22 +30,19 @@ string workspaceName = "quantumworkspace1"; QuantumWorkspaceData data = new QuantumWorkspaceData(new AzureLocation("West US")) { - Providers = - { - new QuantumProvider() + Providers = {new QuantumProvider { ProviderId = "Honeywell", ProviderSku = "Basic", - },new QuantumProvider() + }, new QuantumProvider { ProviderId = "IonQ", ProviderSku = "Basic", - },new QuantumProvider() + }, new QuantumProvider { ProviderId = "OneQBit", ProviderSku = "Basic", - } - }, + }}, StorageAccount = "/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount", }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, workspaceName, data); diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesPut.json b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesPut.json index 5bf04ecdb0..afbb25d78c 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesPut.json +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/quantumWorkspacesPut.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.5/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.6/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/regenerateKey.cs b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/regenerateKey.cs index 95b94493cd..dc1ee3374d 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/regenerateKey.cs +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/regenerateKey.cs @@ -1,12 +1,11 @@ +using Azure; +using Azure.ResourceManager; using System; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.Quantum; using Azure.ResourceManager.Quantum.Models; -using Azure.ResourceManager.Resources; +using Azure.ResourceManager.Quantum; // Generated from example definition: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/regenerateKey.json // this example is just showing the usage of "Workspace_RegenerateKeys" operation, for the dependent resources, they will have to be created separately. @@ -25,13 +24,10 @@ QuantumWorkspaceResource quantumWorkspace = client.GetQuantumWorkspaceResource(quantumWorkspaceResourceId); // invoke the operation -WorkspaceApiKeys keySpecification = new WorkspaceApiKeys() +WorkspaceApiKeys keySpecification = new WorkspaceApiKeys { - Keys = - { - WorkspaceKeyType.Primary,WorkspaceKeyType.Secondary - }, + Keys = { WorkspaceKeyType.Primary, WorkspaceKeyType.Secondary }, }; await quantumWorkspace.RegenerateKeysWorkspaceAsync(keySpecification); -Console.WriteLine($"Succeeded"); +Console.WriteLine("Succeeded"); diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/regenerateKey.json b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/regenerateKey.json index 5bf04ecdb0..afbb25d78c 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/regenerateKey.json +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples-dotnet/regenerateKey.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.5/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.Quantum_1.0.0-beta.6/sdk/quantum/Azure.ResourceManager.Quantum/README.md"} \ No newline at end of file