diff --git a/sdk/durabletask/ci.mgmt.yml b/sdk/durabletask/ci.mgmt.yml
index 5f63204cd804..32b11e75b082 100644
--- a/sdk/durabletask/ci.mgmt.yml
+++ b/sdk/durabletask/ci.mgmt.yml
@@ -1,7 +1,6 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
-
pr:
branches:
include:
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/Azure.ResourceManager.LoadTesting.sln b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/Azure.ResourceManager.LoadTesting.sln
new file mode 100644
index 000000000000..067ce303f8a4
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/Azure.ResourceManager.LoadTesting.sln
@@ -0,0 +1,56 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29709.97
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.LoadTesting.Samples", "samples\Azure.ResourceManager.LoadTesting.Samples.csproj", "{7A2DFF15-5746-49F4-BD0F-C6C35337088A}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.LoadTesting", "src\Azure.ResourceManager.LoadTesting.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.LoadTesting.Tests", "tests\Azure.ResourceManager.LoadTesting.Tests.csproj", "{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7A2DFF15-5746-49F4-BD0F-C6C35337088A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7A2DFF15-5746-49F4-BD0F-C6C35337088A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7A2DFF15-5746-49F4-BD0F-C6C35337088A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7A2DFF15-5746-49F4-BD0F-C6C35337088A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE}
+ EndGlobalSection
+EndGlobal
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/CHANGELOG.md b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/CHANGELOG.md
new file mode 100644
index 000000000000..8b33f0fedccc
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/CHANGELOG.md
@@ -0,0 +1,11 @@
+# Release History
+
+## 1.0.0-beta.1 (Unreleased)
+
+### Features Added
+
+### Breaking Changes
+
+### Bugs Fixed
+
+### Other Changes
\ No newline at end of file
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/Directory.Build.props b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/Directory.Build.props
new file mode 100644
index 000000000000..63bd836ad44b
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/Directory.Build.props
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/README.md b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/README.md
new file mode 100644
index 000000000000..21cc4935a919
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/README.md
@@ -0,0 +1,80 @@
+# Microsoft Azure LoadTesting management client library for .NET
+
+**[Describe the service briefly first.]**
+
+This library follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html), and provides many core capabilities:
+
+ - Support MSAL.NET, Azure.Identity is out of box for supporting MSAL.NET.
+ - Support [OpenTelemetry](https://opentelemetry.io/) for distributed tracing.
+ - HTTP pipeline with custom policies.
+ - Better error-handling.
+ - Support uniform telemetry across all languages.
+
+## Getting started
+
+### Install the package
+
+Install the Microsoft Azure LoadTesting management library for .NET with [NuGet](https://www.nuget.org/):
+
+```dotnetcli
+dotnet add package Azure.ResourceManager.LoadTesting --prerelease
+```
+
+### Prerequisites
+
+* You must have an [Microsoft Azure subscription](https://azure.microsoft.com/free/dotnet/).
+
+### Authenticate the Client
+
+To create an authenticated client and start interacting with Microsoft Azure resources, see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md).
+
+## Key concepts
+
+Key concepts of the Microsoft Azure SDK for .NET can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html)
+
+## Documentation
+
+Documentation is available to help you learn how to use this package:
+
+- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md).
+- [API References](https://learn.microsoft.com/dotnet/api/?view=azure-dotnet).
+- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md).
+
+## Examples
+
+Code samples for using the management library for .NET can be found in the following locations
+- [.NET Management Library Code Samples](https://aka.ms/azuresdk-net-mgmt-samples)
+
+## Troubleshooting
+
+- File an issue via [GitHub Issues](https://github.com/Azure/azure-sdk-for-net/issues).
+- Check [previous questions](https://stackoverflow.com/questions/tagged/azure+.net) or ask new ones on Stack Overflow using Azure and .NET tags.
+
+## Next steps
+
+For more information about Microsoft Azure SDK, see [this website](https://azure.github.io/azure-sdk/).
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing
+guide][cg].
+
+This project welcomes contributions and suggestions. Most contributions
+require you to agree to a Contributor License Agreement (CLA) declaring
+that you have the right to, and actually do, grant us the rights to use
+your contribution. For details, visit .
+
+When you submit a pull request, a CLA-bot will automatically determine
+whether you need to provide a CLA and decorate the PR appropriately
+(for example, label, comment). Follow the instructions provided by the
+bot. You'll only need to do this action once across all repositories
+using our CLA.
+
+This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For
+more information, see the [Code of Conduct FAQ][coc_faq] or contact
+ with any other questions or comments.
+
+
+[cg]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/docs/CONTRIBUTING.md
+[coc]: https://opensource.microsoft.com/codeofconduct/
+[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
\ No newline at end of file
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/assets.json b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/assets.json
new file mode 100644
index 000000000000..01481168e514
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/assets.json
@@ -0,0 +1,7 @@
+
+{
+ "AssetsRepo": "Azure/azure-sdk-assets",
+ "AssetsRepoPrefixPath": "net",
+ "TagPrefix": "net/loadtesting/Azure.ResourceManager.LoadTesting",
+ "Tag": ""
+}
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/samples/Azure.ResourceManager.LoadTesting.Samples.csproj b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/samples/Azure.ResourceManager.LoadTesting.Samples.csproj
new file mode 100644
index 000000000000..cde6b6ab3797
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/samples/Azure.ResourceManager.LoadTesting.Samples.csproj
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/samples/Generated/Samples/Sample_LoadTestResource.cs b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/samples/Generated/Samples/Sample_LoadTestResource.cs
new file mode 100644
index 000000000000..d9c858d28742
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/samples/Generated/Samples/Sample_LoadTestResource.cs
@@ -0,0 +1,159 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.LoadTesting.Models;
+using Azure.ResourceManager.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.LoadTesting.Samples
+{
+ public partial class Sample_LoadTestResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetALoadTestResource()
+ {
+ // Generated from example definition: 2024-12-01-preview/LoadTests_Get.json
+ // this example is just showing the usage of "LoadTestResource_GetLoadtest" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this LoadTestResource created on azure
+ // for more information of creating LoadTestResource, please refer to the document of LoadTestResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "dummyrg";
+ string loadTestName = "myLoadTest";
+ ResourceIdentifier loadTestResourceId = LoadTestResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, loadTestName);
+ LoadTestResource loadTestResource = client.GetLoadTestResource(loadTestResourceId);
+
+ // invoke the operation
+ LoadTestResource result = await loadTestResource.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ LoadTestResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Delete_DeleteALoadTestResource()
+ {
+ // Generated from example definition: 2024-12-01-preview/LoadTests_Delete.json
+ // this example is just showing the usage of "LoadTestResource_DeleteLoadtest" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this LoadTestResource created on azure
+ // for more information of creating LoadTestResource, please refer to the document of LoadTestResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "dummyrg";
+ string loadTestName = "myLoadTest";
+ ResourceIdentifier loadTestResourceId = LoadTestResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, loadTestName);
+ LoadTestResource loadTestResource = client.GetLoadTestResource(loadTestResourceId);
+
+ // invoke the operation
+ await loadTestResource.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_UpdateALoadTestResource()
+ {
+ // Generated from example definition: 2024-12-01-preview/LoadTests_Update.json
+ // this example is just showing the usage of "LoadTestResource_UpdateLoadtest" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this LoadTestResource created on azure
+ // for more information of creating LoadTestResource, please refer to the document of LoadTestResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "dummyrg";
+ string loadTestName = "myLoadTest";
+ ResourceIdentifier loadTestResourceId = LoadTestResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, loadTestName);
+ LoadTestResource loadTestResource = client.GetLoadTestResource(loadTestResourceId);
+
+ // invoke the operation
+ LoadTestResourcePatch patch = new LoadTestResourcePatch
+ {
+ Identity = new ManagedServiceIdentity("SystemAssigned,UserAssigned")
+ {
+ UserAssignedIdentities =
+{
+[new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1")] = new UserAssignedIdentity()
+},
+ },
+ Tags =
+{
+["Team"] = "Dev Exp",
+["Division"] = "LT"
+},
+ Properties = new LoadTestResourceUpdateProperties
+ {
+ Description = "This is new load test resource",
+ Encryption = new Models.EncryptionProperties
+ {
+ Identity = new EncryptionPropertiesIdentity
+ {
+ Type = Models.Type.SystemAssigned,
+ ResourceId = null,
+ },
+ KeyUri = "https://dummy.vault.azure.net/keys/dummykey1",
+ },
+ },
+ };
+ await loadTestResource.UpdateAsync(WaitUntil.Completed, patch);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task OutboundNetworkDependenciesEndpoints_ListsTheEndpointsThatAgentsMayCallAsPartOfLoadTesting()
+ {
+ // Generated from example definition: 2024-12-01-preview/LoadTests_ListOutboundNetworkDependenciesEndpoints.json
+ // this example is just showing the usage of "LoadTests_OutboundNetworkDependenciesEndpoints" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this LoadTestResource created on azure
+ // for more information of creating LoadTestResource, please refer to the document of LoadTestResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "default-azureloadtest-japaneast";
+ string loadTestName = "sampleloadtest";
+ ResourceIdentifier loadTestResourceId = LoadTestResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, loadTestName);
+ LoadTestResource loadTestResource = client.GetLoadTestResource(loadTestResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (OutboundEnvironmentEndpoint item in loadTestResource.OutboundNetworkDependenciesEndpointsAsync())
+ {
+ Console.WriteLine($"Succeeded: {item}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+ }
+}
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/samples/Generated/Samples/Sample_LoadTestResourceCollection.cs b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/samples/Generated/Samples/Sample_LoadTestResourceCollection.cs
new file mode 100644
index 000000000000..df7e039486cf
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/samples/Generated/Samples/Sample_LoadTestResourceCollection.cs
@@ -0,0 +1,220 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.LoadTesting.Models;
+using Azure.ResourceManager.Models;
+using Azure.ResourceManager.Resources;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.LoadTesting.Samples
+{
+ public partial class Sample_LoadTestResourceCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_CreateALoadTestResource()
+ {
+ // Generated from example definition: 2024-12-01-preview/LoadTests_CreateOrUpdate.json
+ // this example is just showing the usage of "LoadTestResource_CreateOrUpdateLoadtest" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "dummyrg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this LoadTestResource
+ LoadTestResourceCollection collection = resourceGroupResource.GetLoadTestResources();
+
+ // invoke the operation
+ string loadTestName = "myLoadTest";
+ LoadTestResourceData data = new LoadTestResourceData(new AzureLocation("westus"))
+ {
+ Properties = new LoadTestProperties
+ {
+ Description = "This is new load test resource",
+ Encryption = new Models.EncryptionProperties
+ {
+ Identity = new EncryptionPropertiesIdentity
+ {
+ Type = Models.Type.UserAssigned,
+ ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1",
+ },
+ KeyUri = "https://dummy.vault.azure.net/keys/dummykey1",
+ },
+ },
+ Identity = new ManagedServiceIdentity("SystemAssigned,UserAssigned")
+ {
+ UserAssignedIdentities =
+{
+[new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1")] = new UserAssignedIdentity()
+},
+ },
+ Tags =
+{
+["Team"] = "Dev Exp"
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, loadTestName, data);
+ LoadTestResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ LoadTestResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetALoadTestResource()
+ {
+ // Generated from example definition: 2024-12-01-preview/LoadTests_Get.json
+ // this example is just showing the usage of "LoadTestResource_GetLoadtest" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "dummyrg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this LoadTestResource
+ LoadTestResourceCollection collection = resourceGroupResource.GetLoadTestResources();
+
+ // invoke the operation
+ string loadTestName = "myLoadTest";
+ LoadTestResource result = await collection.GetAsync(loadTestName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ LoadTestResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetAll_ListLoadTestResourceResourcesByResourceGroup()
+ {
+ // Generated from example definition: 2024-12-01-preview/LoadTests_ListByResourceGroup.json
+ // this example is just showing the usage of "LoadTestResource_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "dummyrg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this LoadTestResource
+ LoadTestResourceCollection collection = resourceGroupResource.GetLoadTestResources();
+
+ // invoke the operation and iterate over the result
+ await foreach (LoadTestResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ LoadTestResourceData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Exists_GetALoadTestResource()
+ {
+ // Generated from example definition: 2024-12-01-preview/LoadTests_Get.json
+ // this example is just showing the usage of "LoadTestResource_GetLoadtest" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "dummyrg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this LoadTestResource
+ LoadTestResourceCollection collection = resourceGroupResource.GetLoadTestResources();
+
+ // invoke the operation
+ string loadTestName = "myLoadTest";
+ bool result = await collection.ExistsAsync(loadTestName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_GetALoadTestResource()
+ {
+ // Generated from example definition: 2024-12-01-preview/LoadTests_Get.json
+ // this example is just showing the usage of "LoadTestResource_GetLoadtest" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "dummyrg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this LoadTestResource
+ LoadTestResourceCollection collection = resourceGroupResource.GetLoadTestResources();
+
+ // invoke the operation
+ string loadTestName = "myLoadTest";
+ NullableResponse response = await collection.GetIfExistsAsync(loadTestName);
+ LoadTestResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine("Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ LoadTestResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/samples/Generated/Samples/Sample_QuotaResource.cs b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/samples/Generated/Samples/Sample_QuotaResource.cs
new file mode 100644
index 000000000000..c82f4b3a3d3b
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/samples/Generated/Samples/Sample_QuotaResource.cs
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.LoadTesting.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.LoadTesting.Samples
+{
+ public partial class Sample_QuotaResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetTheAvailableQuotaForAQuotaBucketPerRegionPerSubscription()
+ {
+ // Generated from example definition: 2024-12-01-preview/Quotas_Get.json
+ // this example is just showing the usage of "QuotaResource_GetQuota" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this QuotaResource created on azure
+ // for more information of creating QuotaResource, please refer to the document of QuotaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ AzureLocation location = new AzureLocation("westus");
+ string quotaBucketName = "testQuotaBucket";
+ ResourceIdentifier quotaResourceId = QuotaResource.CreateResourceIdentifier(subscriptionId, location, quotaBucketName);
+ QuotaResource quotaResource = client.GetQuotaResource(quotaResourceId);
+
+ // invoke the operation
+ QuotaResource result = await quotaResource.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ QuotaResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CheckAvailabilityQuota_CheckQuotaAvailabilityOnQuotaBucketPerRegionPerSubscription()
+ {
+ // Generated from example definition: 2024-12-01-preview/Quotas_CheckAvailability.json
+ // this example is just showing the usage of "LoadTests_CheckAvailabilityQuota" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this QuotaResource created on azure
+ // for more information of creating QuotaResource, please refer to the document of QuotaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ AzureLocation location = new AzureLocation("westus");
+ string quotaBucketName = "testQuotaBucket";
+ ResourceIdentifier quotaResourceId = QuotaResource.CreateResourceIdentifier(subscriptionId, location, quotaBucketName);
+ QuotaResource quotaResource = client.GetQuotaResource(quotaResourceId);
+
+ // invoke the operation
+ QuotaBucketContent content = new QuotaBucketContent();
+ CheckQuotaAvailabilityResponse result = await quotaResource.CheckAvailabilityQuotaAsync(content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+ }
+}
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/samples/Generated/Samples/Sample_QuotaResourceCollection.cs b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/samples/Generated/Samples/Sample_QuotaResourceCollection.cs
new file mode 100644
index 000000000000..42ebcc66ea1a
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/samples/Generated/Samples/Sample_QuotaResourceCollection.cs
@@ -0,0 +1,157 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.Resources;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.LoadTesting.Samples
+{
+ public partial class Sample_QuotaResourceCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetTheAvailableQuotaForAQuotaBucketPerRegionPerSubscription()
+ {
+ // Generated from example definition: 2024-12-01-preview/Quotas_Get.json
+ // this example is just showing the usage of "QuotaResource_GetQuota" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this QuotaResource
+ AzureLocation location = new AzureLocation("westus");
+ QuotaResourceCollection collection = subscriptionResource.GetQuotaResources(location);
+
+ // invoke the operation
+ string quotaBucketName = "testQuotaBucket";
+ QuotaResource result = await collection.GetAsync(quotaBucketName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ QuotaResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetAll_ListQuotasForAGivenSubscriptionId()
+ {
+ // Generated from example definition: 2024-12-01-preview/Quotas_List.json
+ // this example is just showing the usage of "QuotaResource_ListQuota" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this QuotaResource
+ AzureLocation location = new AzureLocation("westus");
+ QuotaResourceCollection collection = subscriptionResource.GetQuotaResources(location);
+
+ // invoke the operation and iterate over the result
+ await foreach (QuotaResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ QuotaResourceData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Exists_GetTheAvailableQuotaForAQuotaBucketPerRegionPerSubscription()
+ {
+ // Generated from example definition: 2024-12-01-preview/Quotas_Get.json
+ // this example is just showing the usage of "QuotaResource_GetQuota" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this QuotaResource
+ AzureLocation location = new AzureLocation("westus");
+ QuotaResourceCollection collection = subscriptionResource.GetQuotaResources(location);
+
+ // invoke the operation
+ string quotaBucketName = "testQuotaBucket";
+ bool result = await collection.ExistsAsync(quotaBucketName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_GetTheAvailableQuotaForAQuotaBucketPerRegionPerSubscription()
+ {
+ // Generated from example definition: 2024-12-01-preview/Quotas_Get.json
+ // this example is just showing the usage of "QuotaResource_GetQuota" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this QuotaResource
+ AzureLocation location = new AzureLocation("westus");
+ QuotaResourceCollection collection = subscriptionResource.GetQuotaResources(location);
+
+ // invoke the operation
+ string quotaBucketName = "testQuotaBucket";
+ NullableResponse response = await collection.GetIfExistsAsync(quotaBucketName);
+ QuotaResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine("Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ QuotaResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
new file mode 100644
index 000000000000..b279c203da63
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.Resources;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.LoadTesting.Samples
+{
+ public partial class Sample_SubscriptionResourceExtensions
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetLoadTestResources_ListLoadTestResourceResourcesBySubscriptionID()
+ {
+ // Generated from example definition: 2024-12-01-preview/LoadTests_ListBySubscription.json
+ // this example is just showing the usage of "LoadTestResource_ListBySubscription" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (LoadTestResource item in subscriptionResource.GetLoadTestResourcesAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ LoadTestResourceData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+ }
+}
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Azure.ResourceManager.LoadTesting.csproj b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Azure.ResourceManager.LoadTesting.csproj
new file mode 100644
index 000000000000..412674da728d
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Azure.ResourceManager.LoadTesting.csproj
@@ -0,0 +1,8 @@
+
+
+ Azure Resource Manager client SDK for Azure resource provider LoadTesting.
+ 1.0.0-beta.1
+ azure;management;arm;resource manager;loadtesting
+ Azure.ResourceManager.LoadTesting
+
+
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/ArmLoadTestingModelFactory.cs b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/ArmLoadTestingModelFactory.cs
new file mode 100644
index 000000000000..fefd6fafdda8
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/ArmLoadTestingModelFactory.cs
@@ -0,0 +1,135 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using Azure.Core;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.LoadTesting.Models
+{
+ /// Model factory for models.
+ public static partial class ArmLoadTestingModelFactory
+ {
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ /// The resource-specific properties for this resource.
+ /// The managed service identities assigned to this resource.
+ /// A new instance for mocking.
+ public static LoadTestResourceData LoadTestResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, LoadTestProperties properties = null, ManagedServiceIdentity identity = null)
+ {
+ tags ??= new Dictionary();
+
+ return new LoadTestResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ tags,
+ location,
+ properties,
+ identity,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Description of the resource.
+ /// Resource provisioning state.
+ /// Resource data plane URI.
+ /// CMK Encryption property.
+ /// A new instance for mocking.
+ public static LoadTestProperties LoadTestProperties(string description = null, ResourceState? provisioningState = null, string dataPlaneUri = null, EncryptionProperties encryption = null)
+ {
+ return new LoadTestProperties(description, provisioningState, dataPlaneUri, encryption, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The type of service that Azure Load Testing connects to.
+ /// The endpoints for this service to which the Batch service makes outbound calls.
+ /// A new instance for mocking.
+ public static OutboundEnvironmentEndpoint OutboundEnvironmentEndpoint(string category = null, IEnumerable endpoints = null)
+ {
+ endpoints ??= new List();
+
+ return new OutboundEnvironmentEndpoint(category, endpoints?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The domain name of the dependency. Domain names may be fully qualified or may contain a * wildcard.
+ /// Human-readable supplemental information about the dependency and when it is applicable.
+ /// The list of connection details for this endpoint.
+ /// A new instance for mocking.
+ public static EndpointDependency EndpointDependency(string domainName = null, string description = null, IEnumerable endpointDetails = null)
+ {
+ endpointDetails ??= new List();
+
+ return new EndpointDependency(domainName, description, endpointDetails?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The port an endpoint is connected to.
+ /// A new instance for mocking.
+ public static EndpointDetail EndpointDetail(int? port = null)
+ {
+ return new EndpointDetail(port, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// A new instance for mocking.
+ public static QuotaResourceData QuotaResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, QuotaResourceProperties properties = null)
+ {
+ return new QuotaResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Current quota limit of the quota bucket.
+ /// Current quota usage of the quota bucket.
+ /// Resource provisioning state.
+ /// A new instance for mocking.
+ public static QuotaResourceProperties QuotaResourceProperties(int? limit = null, int? usage = null, ResourceState? provisioningState = null)
+ {
+ return new QuotaResourceProperties(limit, usage, provisioningState, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// True/False indicating whether the quota request be granted based on availability.
+ /// Message indicating additional details to add to quota support request.
+ /// A new instance for mocking.
+ public static CheckQuotaAvailabilityResponse CheckQuotaAvailabilityResponse(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? isAvailable = null, string availabilityStatus = null)
+ {
+ return new CheckQuotaAvailabilityResponse(
+ id,
+ name,
+ resourceType,
+ systemData,
+ isAvailable,
+ availabilityStatus,
+ serializedAdditionalRawData: null);
+ }
+ }
+}
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Extensions/LoadTestingExtensions.cs b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Extensions/LoadTestingExtensions.cs
new file mode 100644
index 000000000000..1ddfa75f59d0
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Extensions/LoadTestingExtensions.cs
@@ -0,0 +1,334 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.ResourceManager.LoadTesting.Mocking;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.LoadTesting
+{
+ /// A class to add extension methods to Azure.ResourceManager.LoadTesting.
+ public static partial class LoadTestingExtensions
+ {
+ private static MockableLoadTestingArmClient GetMockableLoadTestingArmClient(ArmClient client)
+ {
+ return client.GetCachedClient(client0 => new MockableLoadTestingArmClient(client0));
+ }
+
+ private static MockableLoadTestingResourceGroupResource GetMockableLoadTestingResourceGroupResource(ArmResource resource)
+ {
+ return resource.GetCachedClient(client => new MockableLoadTestingResourceGroupResource(client, resource.Id));
+ }
+
+ private static MockableLoadTestingSubscriptionResource GetMockableLoadTestingSubscriptionResource(ArmResource resource)
+ {
+ return resource.GetCachedClient(client => new MockableLoadTestingSubscriptionResource(client, resource.Id));
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static LoadTestResource GetLoadTestResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableLoadTestingArmClient(client).GetLoadTestResource(id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static QuotaResource GetQuotaResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableLoadTestingArmClient(client).GetQuotaResource(id);
+ }
+
+ ///
+ /// Gets a collection of LoadTestResources in the ResourceGroupResource.
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// is null.
+ /// An object representing collection of LoadTestResources and their operations over a LoadTestResource.
+ public static LoadTestResourceCollection GetLoadTestResources(this ResourceGroupResource resourceGroupResource)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return GetMockableLoadTestingResourceGroupResource(resourceGroupResource).GetLoadTestResources();
+ }
+
+ ///
+ /// Get a LoadTestResource
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}
+ ///
+ ///
+ /// Operation Id
+ /// LoadTestResource_GetLoadtest
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-12-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// Load Test name.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static async Task> GetLoadTestResourceAsync(this ResourceGroupResource resourceGroupResource, string loadTestName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return await GetMockableLoadTestingResourceGroupResource(resourceGroupResource).GetLoadTestResourceAsync(loadTestName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a LoadTestResource
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}
+ ///
+ ///
+ /// Operation Id
+ /// LoadTestResource_GetLoadtest
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-12-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// Load Test name.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static Response GetLoadTestResource(this ResourceGroupResource resourceGroupResource, string loadTestName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return GetMockableLoadTestingResourceGroupResource(resourceGroupResource).GetLoadTestResource(loadTestName, cancellationToken);
+ }
+
+ ///
+ /// Gets a collection of QuotaResources in the SubscriptionResource.
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The name of the Azure region.
+ /// is null.
+ /// An object representing collection of QuotaResources and their operations over a QuotaResource.
+ public static QuotaResourceCollection GetQuotaResources(this SubscriptionResource subscriptionResource, AzureLocation location)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableLoadTestingSubscriptionResource(subscriptionResource).GetQuotaResources(location);
+ }
+
+ ///
+ /// Get the available quota for a quota bucket per region per subscription.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas/{quotaBucketName}
+ ///
+ ///
+ /// Operation Id
+ /// QuotaResource_GetQuota
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-12-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The name of the Azure region.
+ /// The quota name.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static async Task> GetQuotaResourceAsync(this SubscriptionResource subscriptionResource, AzureLocation location, string quotaBucketName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return await GetMockableLoadTestingSubscriptionResource(subscriptionResource).GetQuotaResourceAsync(location, quotaBucketName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get the available quota for a quota bucket per region per subscription.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas/{quotaBucketName}
+ ///
+ ///
+ /// Operation Id
+ /// QuotaResource_GetQuota
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-12-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The name of the Azure region.
+ /// The quota name.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static Response GetQuotaResource(this SubscriptionResource subscriptionResource, AzureLocation location, string quotaBucketName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableLoadTestingSubscriptionResource(subscriptionResource).GetQuotaResource(location, quotaBucketName, cancellationToken);
+ }
+
+ ///
+ /// List LoadTestResource resources by subscription ID
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/loadTests
+ ///
+ ///
+ /// Operation Id
+ /// LoadTestResource_ListBySubscription
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-12-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The cancellation token to use.
+ /// is null.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public static AsyncPageable GetLoadTestResourcesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableLoadTestingSubscriptionResource(subscriptionResource).GetLoadTestResourcesAsync(cancellationToken);
+ }
+
+ ///
+ /// List LoadTestResource resources by subscription ID
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/loadTests
+ ///
+ ///
+ /// Operation Id
+ /// LoadTestResource_ListBySubscription
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-12-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The cancellation token to use.
+ /// is null.
+ /// A collection of that may take multiple service requests to iterate over.
+ public static Pageable GetLoadTestResources(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableLoadTestingSubscriptionResource(subscriptionResource).GetLoadTestResources(cancellationToken);
+ }
+ }
+}
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Extensions/MockableLoadTestingArmClient.cs b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Extensions/MockableLoadTestingArmClient.cs
new file mode 100644
index 000000000000..553c8e30ccf1
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Extensions/MockableLoadTestingArmClient.cs
@@ -0,0 +1,61 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using Azure.Core;
+
+namespace Azure.ResourceManager.LoadTesting.Mocking
+{
+ /// A class to add extension methods to ArmClient.
+ public partial class MockableLoadTestingArmClient : ArmResource
+ {
+ /// Initializes a new instance of the class for mocking.
+ protected MockableLoadTestingArmClient()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal MockableLoadTestingArmClient(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ internal MockableLoadTestingArmClient(ArmClient client) : this(client, ResourceIdentifier.Root)
+ {
+ }
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual LoadTestResource GetLoadTestResource(ResourceIdentifier id)
+ {
+ LoadTestResource.ValidateResourceId(id);
+ return new LoadTestResource(Client, id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual QuotaResource GetQuotaResource(ResourceIdentifier id)
+ {
+ QuotaResource.ValidateResourceId(id);
+ return new QuotaResource(Client, id);
+ }
+ }
+}
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Extensions/MockableLoadTestingResourceGroupResource.cs b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Extensions/MockableLoadTestingResourceGroupResource.cs
new file mode 100644
index 000000000000..1d8b098a2c5c
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Extensions/MockableLoadTestingResourceGroupResource.cs
@@ -0,0 +1,105 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+
+namespace Azure.ResourceManager.LoadTesting.Mocking
+{
+ /// A class to add extension methods to ResourceGroupResource.
+ public partial class MockableLoadTestingResourceGroupResource : ArmResource
+ {
+ /// Initializes a new instance of the class for mocking.
+ protected MockableLoadTestingResourceGroupResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal MockableLoadTestingResourceGroupResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ /// Gets a collection of LoadTestResources in the ResourceGroupResource.
+ /// An object representing collection of LoadTestResources and their operations over a LoadTestResource.
+ public virtual LoadTestResourceCollection GetLoadTestResources()
+ {
+ return GetCachedClient(client => new LoadTestResourceCollection(client, Id));
+ }
+
+ ///
+ /// Get a LoadTestResource
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}
+ ///
+ ///
+ /// Operation Id
+ /// LoadTestResource_GetLoadtest
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-12-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Load Test name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual async Task> GetLoadTestResourceAsync(string loadTestName, CancellationToken cancellationToken = default)
+ {
+ return await GetLoadTestResources().GetAsync(loadTestName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a LoadTestResource
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}
+ ///
+ ///
+ /// Operation Id
+ /// LoadTestResource_GetLoadtest
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-12-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Load Test name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual Response GetLoadTestResource(string loadTestName, CancellationToken cancellationToken = default)
+ {
+ return GetLoadTestResources().Get(loadTestName, cancellationToken);
+ }
+ }
+}
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Extensions/MockableLoadTestingSubscriptionResource.cs b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Extensions/MockableLoadTestingSubscriptionResource.cs
new file mode 100644
index 000000000000..de5900c76c09
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Extensions/MockableLoadTestingSubscriptionResource.cs
@@ -0,0 +1,176 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.ResourceManager.LoadTesting.Mocking
+{
+ /// A class to add extension methods to SubscriptionResource.
+ public partial class MockableLoadTestingSubscriptionResource : ArmResource
+ {
+ private ClientDiagnostics _loadTestResourceLoadTestMgmtClientClientDiagnostics;
+ private LoadTestMgmtRestOperations _loadTestResourceLoadTestMgmtClientRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected MockableLoadTestingSubscriptionResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal MockableLoadTestingSubscriptionResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private ClientDiagnostics LoadTestResourceLoadTestMgmtClientClientDiagnostics => _loadTestResourceLoadTestMgmtClientClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.LoadTesting", LoadTestResource.ResourceType.Namespace, Diagnostics);
+ private LoadTestMgmtRestOperations LoadTestResourceLoadTestMgmtClientRestClient => _loadTestResourceLoadTestMgmtClientRestClient ??= new LoadTestMgmtRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(LoadTestResource.ResourceType));
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ /// Gets a collection of QuotaResources in the SubscriptionResource.
+ /// The name of the Azure region.
+ /// An object representing collection of QuotaResources and their operations over a QuotaResource.
+ public virtual QuotaResourceCollection GetQuotaResources(AzureLocation location)
+ {
+ return new QuotaResourceCollection(Client, Id, location);
+ }
+
+ ///
+ /// Get the available quota for a quota bucket per region per subscription.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas/{quotaBucketName}
+ ///
+ ///
+ /// Operation Id
+ /// QuotaResource_GetQuota
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-12-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the Azure region.
+ /// The quota name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual async Task> GetQuotaResourceAsync(AzureLocation location, string quotaBucketName, CancellationToken cancellationToken = default)
+ {
+ return await GetQuotaResources(location).GetAsync(quotaBucketName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get the available quota for a quota bucket per region per subscription.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas/{quotaBucketName}
+ ///
+ ///
+ /// Operation Id
+ /// QuotaResource_GetQuota
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-12-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the Azure region.
+ /// The quota name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual Response GetQuotaResource(AzureLocation location, string quotaBucketName, CancellationToken cancellationToken = default)
+ {
+ return GetQuotaResources(location).Get(quotaBucketName, cancellationToken);
+ }
+
+ ///
+ /// List LoadTestResource resources by subscription ID
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/loadTests
+ ///
+ ///
+ /// Operation Id
+ /// LoadTestResource_ListBySubscription
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-12-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetLoadTestResourcesAsync(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => LoadTestResourceLoadTestMgmtClientRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => LoadTestResourceLoadTestMgmtClientRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new LoadTestResource(Client, LoadTestResourceData.DeserializeLoadTestResourceData(e)), LoadTestResourceLoadTestMgmtClientClientDiagnostics, Pipeline, "MockableLoadTestingSubscriptionResource.GetLoadTestResources", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List LoadTestResource resources by subscription ID
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/loadTests
+ ///
+ ///
+ /// Operation Id
+ /// LoadTestResource_ListBySubscription
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-12-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetLoadTestResources(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => LoadTestResourceLoadTestMgmtClientRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => LoadTestResourceLoadTestMgmtClientRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new LoadTestResource(Client, LoadTestResourceData.DeserializeLoadTestResourceData(e)), LoadTestResourceLoadTestMgmtClientClientDiagnostics, Pipeline, "MockableLoadTestingSubscriptionResource.GetLoadTestResources", "value", "nextLink", cancellationToken);
+ }
+ }
+}
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Internal/Argument.cs b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Internal/Argument.cs
new file mode 100644
index 000000000000..01056fd5c61d
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Internal/Argument.cs
@@ -0,0 +1,129 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.LoadTesting
+{
+ internal static class Argument
+ {
+ public static void AssertNotNull(T value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ }
+
+ public static void AssertNotNull(T? value, string name)
+ where T : struct
+ {
+ if (!value.HasValue)
+ {
+ throw new ArgumentNullException(name);
+ }
+ }
+
+ public static void AssertNotNullOrEmpty(IEnumerable value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ if (value is ICollection collectionOfT && collectionOfT.Count == 0)
+ {
+ throw new ArgumentException("Value cannot be an empty collection.", name);
+ }
+ if (value is ICollection collection && collection.Count == 0)
+ {
+ throw new ArgumentException("Value cannot be an empty collection.", name);
+ }
+ using IEnumerator e = value.GetEnumerator();
+ if (!e.MoveNext())
+ {
+ throw new ArgumentException("Value cannot be an empty collection.", name);
+ }
+ }
+
+ public static void AssertNotNullOrEmpty(string value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ if (value.Length == 0)
+ {
+ throw new ArgumentException("Value cannot be an empty string.", name);
+ }
+ }
+
+ public static void AssertNotNullOrWhiteSpace(string value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ if (string.IsNullOrWhiteSpace(value))
+ {
+ throw new ArgumentException("Value cannot be empty or contain only white-space characters.", name);
+ }
+ }
+
+ public static void AssertNotDefault(ref T value, string name)
+ where T : struct, IEquatable
+ {
+ if (value.Equals(default))
+ {
+ throw new ArgumentException("Value cannot be empty.", name);
+ }
+ }
+
+ public static void AssertInRange(T value, T minimum, T maximum, string name)
+ where T : notnull, IComparable
+ {
+ if (minimum.CompareTo(value) > 0)
+ {
+ throw new ArgumentOutOfRangeException(name, "Value is less than the minimum allowed.");
+ }
+ if (maximum.CompareTo(value) < 0)
+ {
+ throw new ArgumentOutOfRangeException(name, "Value is greater than the maximum allowed.");
+ }
+ }
+
+ public static void AssertEnumDefined(Type enumType, object value, string name)
+ {
+ if (!Enum.IsDefined(enumType, value))
+ {
+ throw new ArgumentException($"Value not defined for {enumType.FullName}.", name);
+ }
+ }
+
+ public static T CheckNotNull(T value, string name)
+ where T : class
+ {
+ AssertNotNull(value, name);
+ return value;
+ }
+
+ public static string CheckNotNullOrEmpty(string value, string name)
+ {
+ AssertNotNullOrEmpty(value, name);
+ return value;
+ }
+
+ public static void AssertNull(T value, string name, string message = null)
+ {
+ if (value != null)
+ {
+ throw new ArgumentException(message ?? "Value must be null.", name);
+ }
+ }
+ }
+}
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Internal/ChangeTrackingDictionary.cs b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Internal/ChangeTrackingDictionary.cs
new file mode 100644
index 000000000000..4f7eb4354846
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Internal/ChangeTrackingDictionary.cs
@@ -0,0 +1,167 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.LoadTesting
+{
+ internal class ChangeTrackingDictionary : IDictionary, IReadOnlyDictionary where TKey : notnull
+ {
+ private IDictionary _innerDictionary;
+
+ public ChangeTrackingDictionary()
+ {
+ }
+
+ public ChangeTrackingDictionary(IDictionary dictionary)
+ {
+ if (dictionary == null)
+ {
+ return;
+ }
+ _innerDictionary = new Dictionary(dictionary);
+ }
+
+ public ChangeTrackingDictionary(IReadOnlyDictionary dictionary)
+ {
+ if (dictionary == null)
+ {
+ return;
+ }
+ _innerDictionary = new Dictionary();
+ foreach (var pair in dictionary)
+ {
+ _innerDictionary.Add(pair);
+ }
+ }
+
+ public bool IsUndefined => _innerDictionary == null;
+
+ public int Count => IsUndefined ? 0 : EnsureDictionary().Count;
+
+ public bool IsReadOnly => IsUndefined ? false : EnsureDictionary().IsReadOnly;
+
+ public ICollection Keys => IsUndefined ? Array.Empty() : EnsureDictionary().Keys;
+
+ public ICollection Values => IsUndefined ? Array.Empty() : EnsureDictionary().Values;
+
+ public TValue this[TKey key]
+ {
+ get
+ {
+ if (IsUndefined)
+ {
+ throw new KeyNotFoundException(nameof(key));
+ }
+ return EnsureDictionary()[key];
+ }
+ set
+ {
+ EnsureDictionary()[key] = value;
+ }
+ }
+
+ IEnumerable IReadOnlyDictionary.Keys => Keys;
+
+ IEnumerable IReadOnlyDictionary.Values => Values;
+
+ public IEnumerator> GetEnumerator()
+ {
+ if (IsUndefined)
+ {
+ IEnumerator> enumerateEmpty()
+ {
+ yield break;
+ }
+ return enumerateEmpty();
+ }
+ return EnsureDictionary().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetEnumerator();
+ }
+
+ public void Add(KeyValuePair item)
+ {
+ EnsureDictionary().Add(item);
+ }
+
+ public void Clear()
+ {
+ EnsureDictionary().Clear();
+ }
+
+ public bool Contains(KeyValuePair item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().Contains(item);
+ }
+
+ public void CopyTo(KeyValuePair[] array, int index)
+ {
+ if (IsUndefined)
+ {
+ return;
+ }
+ EnsureDictionary().CopyTo(array, index);
+ }
+
+ public bool Remove(KeyValuePair item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().Remove(item);
+ }
+
+ public void Add(TKey key, TValue value)
+ {
+ EnsureDictionary().Add(key, value);
+ }
+
+ public bool ContainsKey(TKey key)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().ContainsKey(key);
+ }
+
+ public bool Remove(TKey key)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().Remove(key);
+ }
+
+ public bool TryGetValue(TKey key, out TValue value)
+ {
+ if (IsUndefined)
+ {
+ value = default;
+ return false;
+ }
+ return EnsureDictionary().TryGetValue(key, out value);
+ }
+
+ public IDictionary EnsureDictionary()
+ {
+ return _innerDictionary ??= new Dictionary();
+ }
+ }
+}
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Internal/ChangeTrackingList.cs b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Internal/ChangeTrackingList.cs
new file mode 100644
index 000000000000..ead53143849e
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Internal/ChangeTrackingList.cs
@@ -0,0 +1,153 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Azure.ResourceManager.LoadTesting
+{
+ internal class ChangeTrackingList : IList, IReadOnlyList
+ {
+ private IList _innerList;
+
+ public ChangeTrackingList()
+ {
+ }
+
+ public ChangeTrackingList(IList innerList)
+ {
+ if (innerList != null)
+ {
+ _innerList = innerList;
+ }
+ }
+
+ public ChangeTrackingList(IReadOnlyList innerList)
+ {
+ if (innerList != null)
+ {
+ _innerList = innerList.ToList();
+ }
+ }
+
+ public bool IsUndefined => _innerList == null;
+
+ public int Count => IsUndefined ? 0 : EnsureList().Count;
+
+ public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly;
+
+ public T this[int index]
+ {
+ get
+ {
+ if (IsUndefined)
+ {
+ throw new ArgumentOutOfRangeException(nameof(index));
+ }
+ return EnsureList()[index];
+ }
+ set
+ {
+ if (IsUndefined)
+ {
+ throw new ArgumentOutOfRangeException(nameof(index));
+ }
+ EnsureList()[index] = value;
+ }
+ }
+
+ public void Reset()
+ {
+ _innerList = null;
+ }
+
+ public IEnumerator GetEnumerator()
+ {
+ if (IsUndefined)
+ {
+ IEnumerator enumerateEmpty()
+ {
+ yield break;
+ }
+ return enumerateEmpty();
+ }
+ return EnsureList().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetEnumerator();
+ }
+
+ public void Add(T item)
+ {
+ EnsureList().Add(item);
+ }
+
+ public void Clear()
+ {
+ EnsureList().Clear();
+ }
+
+ public bool Contains(T item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureList().Contains(item);
+ }
+
+ public void CopyTo(T[] array, int arrayIndex)
+ {
+ if (IsUndefined)
+ {
+ return;
+ }
+ EnsureList().CopyTo(array, arrayIndex);
+ }
+
+ public bool Remove(T item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureList().Remove(item);
+ }
+
+ public int IndexOf(T item)
+ {
+ if (IsUndefined)
+ {
+ return -1;
+ }
+ return EnsureList().IndexOf(item);
+ }
+
+ public void Insert(int index, T item)
+ {
+ EnsureList().Insert(index, item);
+ }
+
+ public void RemoveAt(int index)
+ {
+ if (IsUndefined)
+ {
+ throw new ArgumentOutOfRangeException(nameof(index));
+ }
+ EnsureList().RemoveAt(index);
+ }
+
+ public IList EnsureList()
+ {
+ return _innerList ??= new List();
+ }
+ }
+}
diff --git a/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Internal/ModelSerializationExtensions.cs b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Internal/ModelSerializationExtensions.cs
new file mode 100644
index 000000000000..c19da7d063f2
--- /dev/null
+++ b/sdk/loadtesting/Azure.ResourceManager.LoadTesting/src/Generated/Internal/ModelSerializationExtensions.cs
@@ -0,0 +1,399 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Globalization;
+using System.Text.Json;
+using System.Xml;
+using Azure.Core;
+
+namespace Azure.ResourceManager.LoadTesting
+{
+ internal static class ModelSerializationExtensions
+ {
+ internal static readonly JsonDocumentOptions JsonDocumentOptions = new JsonDocumentOptions { MaxDepth = 256 };
+ internal static readonly ModelReaderWriterOptions WireOptions = new ModelReaderWriterOptions("W");
+
+ public static object GetObject(this JsonElement element)
+ {
+ switch (element.ValueKind)
+ {
+ case JsonValueKind.String:
+ return element.GetString();
+ case JsonValueKind.Number:
+ if (element.TryGetInt32(out int intValue))
+ {
+ return intValue;
+ }
+ if (element.TryGetInt64(out long longValue))
+ {
+ return longValue;
+ }
+ return element.GetDouble();
+ case JsonValueKind.True:
+ return true;
+ case JsonValueKind.False:
+ return false;
+ case JsonValueKind.Undefined:
+ case JsonValueKind.Null:
+ return null;
+ case JsonValueKind.Object:
+ var dictionary = new Dictionary();
+ foreach (var jsonProperty in element.EnumerateObject())
+ {
+ dictionary.Add(jsonProperty.Name, jsonProperty.Value.GetObject());
+ }
+ return dictionary;
+ case JsonValueKind.Array:
+ var list = new List