Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Automation] Collect examples from azure-sdk-for-net#Azure.ResourceManager.Quantum_1.0.0-beta.6 #5616

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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"}
{"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"}
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -28,4 +29,4 @@
Console.WriteLine($"Succeeded: {item}");
}

Console.WriteLine($"Succeeded");
Console.WriteLine("Succeeded");
Original file line number Diff line number Diff line change
@@ -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"}
{"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"}
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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"),
Expand Down
Original file line number Diff line number Diff line change
@@ -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"}
{"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"}
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -27,4 +26,4 @@
// invoke the operation
await quantumWorkspace.DeleteAsync(WaitUntil.Completed);

Console.WriteLine($"Succeeded");
Console.WriteLine("Succeeded");
Original file line number Diff line number Diff line change
@@ -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"}
{"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"}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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"}
{"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"}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -36,4 +36,4 @@
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}

Console.WriteLine($"Succeeded");
Console.WriteLine("Succeeded");
Original file line number Diff line number Diff line change
@@ -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"}
{"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"}
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -32,4 +32,4 @@
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}

Console.WriteLine($"Succeeded");
Console.WriteLine("Succeeded");
Original file line number Diff line number Diff line change
@@ -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"}
{"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"}
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
@@ -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"}
{"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"}
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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<QuantumWorkspaceResource> lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, workspaceName, data);
Expand Down
Original file line number Diff line number Diff line change
@@ -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"}
{"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"}
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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");
Original file line number Diff line number Diff line change
@@ -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"}
{"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"}