diff --git a/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/Microsoft.LoadTestService.sln b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/Microsoft.LoadTestService.sln
new file mode 100644
index 000000000000..5a4fa8eb9d80
--- /dev/null
+++ b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/Microsoft.LoadTestService.sln
@@ -0,0 +1,50 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29709.97
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.LoadTestService", "src\Microsoft.LoadTestService.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.LoadTestService.Tests", "tests\Microsoft.LoadTestService.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
+ {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/playwrightservice/Microsoft.Azure.Management.PlaywrightService/assets.json b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/assets.json
new file mode 100644
index 000000000000..a08a57e59980
--- /dev/null
+++ b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/assets.json
@@ -0,0 +1,7 @@
+
+{
+ "AssetsRepo": "Azure/azure-sdk-assets",
+ "AssetsRepoPrefixPath": "net",
+ "TagPrefix": "net/loadtestservice/Microsoft.LoadTestService",
+ "Tag": ""
+}
diff --git a/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
new file mode 100644
index 000000000000..047e4a11a7e2
--- /dev/null
+++ b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/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;
+using Azure.ResourceManager.Resources;
+using Microsoft.LoadTestService.Models;
+using NUnit.Framework;
+
+namespace Microsoft.LoadTestService.Samples
+{
+ public partial class Sample_SubscriptionResourceExtensions
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CheckNameAvailabilityPlaywrightWorkspace_PlaywrightWorkspacesCheckNameAvailability()
+ {
+ // Generated from example definition: 2025-07-01-preview/PlaywrightWorkspaces_CheckNameAvailability.json
+ // this example is just showing the usage of "PlaywrightWorkspaces_CheckNameAvailability" 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
+ CheckNameAvailabilityContent content = new CheckNameAvailabilityContent
+ {
+ Name = "dummyName",
+ Type = "Microsoft.LoadTestService/PlaywrightWorkspaces",
+ };
+ CheckNameAvailabilityResponse result = await subscriptionResource.CheckNameAvailabilityPlaywrightWorkspaceAsync(content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+ }
+}
diff --git a/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/samples/Microsoft.LoadTestService.Samples.csproj b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/samples/Microsoft.LoadTestService.Samples.csproj
new file mode 100644
index 000000000000..c9afec9803e9
--- /dev/null
+++ b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/samples/Microsoft.LoadTestService.Samples.csproj
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/ArmMicrosoftLoadTestServiceModelFactory.cs b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/ArmMicrosoftLoadTestServiceModelFactory.cs
new file mode 100644
index 000000000000..ad1ae2ff7a3d
--- /dev/null
+++ b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/ArmMicrosoftLoadTestServiceModelFactory.cs
@@ -0,0 +1,67 @@
+// 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;
+using Azure.Core;
+using Azure.ResourceManager.Models;
+
+namespace Microsoft.LoadTestService.Models
+{
+ /// Model factory for models.
+ public static partial class ArmMicrosoftLoadTestServiceModelFactory
+ {
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ /// The resource-specific properties for this resource.
+ /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
+ /// A new instance for mocking.
+ public static PlaywrightWorkspaceData PlaywrightWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, PlaywrightWorkspaceProperties properties = null, string kind = null)
+ {
+ tags ??= new Dictionary();
+
+ return new PlaywrightWorkspaceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ tags,
+ location,
+ properties,
+ kind,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The status of the last resource operation.
+ /// The workspace data plane URI.
+ /// This property sets the connection region for client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
+ /// When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations.
+ /// A new instance for mocking.
+ public static PlaywrightWorkspaceProperties PlaywrightWorkspaceProperties(ProvisioningState? provisioningState = null, Uri dataplaneUri = null, EnablementStatus? regionalAffinity = null, EnablementStatus? localAuth = null)
+ {
+ return new PlaywrightWorkspaceProperties(provisioningState, dataplaneUri, regionalAffinity, localAuth, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Indicates if the resource name is available.
+ /// The reason why the given name is not available.
+ /// Detailed reason why the given name is not available.
+ /// A new instance for mocking.
+ public static CheckNameAvailabilityResponse CheckNameAvailabilityResponse(bool? nameAvailable = null, CheckNameAvailabilityReason? reason = null, string message = null)
+ {
+ return new CheckNameAvailabilityResponse(nameAvailable, reason, message, serializedAdditionalRawData: null);
+ }
+ }
+}
diff --git a/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Extensions/MicrosoftLoadTestServiceExtensions.cs b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Extensions/MicrosoftLoadTestServiceExtensions.cs
new file mode 100644
index 000000000000..f8cda2835897
--- /dev/null
+++ b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Extensions/MicrosoftLoadTestServiceExtensions.cs
@@ -0,0 +1,294 @@
+// 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;
+using Azure.Core;
+using Azure.ResourceManager;
+using Azure.ResourceManager.Resources;
+using Microsoft.LoadTestService.Mocking;
+using Microsoft.LoadTestService.Models;
+
+namespace Microsoft.LoadTestService
+{
+ /// A class to add extension methods to Microsoft.LoadTestService.
+ public static partial class MicrosoftLoadTestServiceExtensions
+ {
+ private static MockableMicrosoftLoadTestServiceArmClient GetMockableMicrosoftLoadTestServiceArmClient(ArmClient client)
+ {
+ return client.GetCachedClient(client0 => new MockableMicrosoftLoadTestServiceArmClient(client0));
+ }
+
+ private static MockableMicrosoftLoadTestServiceResourceGroupResource GetMockableMicrosoftLoadTestServiceResourceGroupResource(ArmResource resource)
+ {
+ return resource.GetCachedClient(client => new MockableMicrosoftLoadTestServiceResourceGroupResource(client, resource.Id));
+ }
+
+ private static MockableMicrosoftLoadTestServiceSubscriptionResource GetMockableMicrosoftLoadTestServiceSubscriptionResource(ArmResource resource)
+ {
+ return resource.GetCachedClient(client => new MockableMicrosoftLoadTestServiceSubscriptionResource(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 PlaywrightWorkspaceResource GetPlaywrightWorkspaceResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableMicrosoftLoadTestServiceArmClient(client).GetPlaywrightWorkspaceResource(id);
+ }
+
+ ///
+ /// Gets a collection of PlaywrightWorkspaceResources 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 PlaywrightWorkspaceResources and their operations over a PlaywrightWorkspaceResource.
+ public static PlaywrightWorkspaceCollection GetPlaywrightWorkspaces(this ResourceGroupResource resourceGroupResource)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return GetMockableMicrosoftLoadTestServiceResourceGroupResource(resourceGroupResource).GetPlaywrightWorkspaces();
+ }
+
+ ///
+ /// Get a PlaywrightWorkspace
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}
+ ///
+ /// -
+ /// Operation Id
+ /// PlaywrightWorkspace_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-07-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The name of the PlaywrightWorkspace.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static async Task> GetPlaywrightWorkspaceAsync(this ResourceGroupResource resourceGroupResource, string playwrightWorkspaceName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return await GetMockableMicrosoftLoadTestServiceResourceGroupResource(resourceGroupResource).GetPlaywrightWorkspaceAsync(playwrightWorkspaceName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a PlaywrightWorkspace
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}
+ ///
+ /// -
+ /// Operation Id
+ /// PlaywrightWorkspace_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-07-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The name of the PlaywrightWorkspace.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static Response GetPlaywrightWorkspace(this ResourceGroupResource resourceGroupResource, string playwrightWorkspaceName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return GetMockableMicrosoftLoadTestServiceResourceGroupResource(resourceGroupResource).GetPlaywrightWorkspace(playwrightWorkspaceName, cancellationToken);
+ }
+
+ ///
+ /// List PlaywrightWorkspace resources by subscription ID
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/playwrightWorkspaces
+ ///
+ /// -
+ /// Operation Id
+ /// PlaywrightWorkspace_ListBySubscription
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-07-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 GetPlaywrightWorkspacesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableMicrosoftLoadTestServiceSubscriptionResource(subscriptionResource).GetPlaywrightWorkspacesAsync(cancellationToken);
+ }
+
+ ///
+ /// List PlaywrightWorkspace resources by subscription ID
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/playwrightWorkspaces
+ ///
+ /// -
+ /// Operation Id
+ /// PlaywrightWorkspace_ListBySubscription
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-07-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 GetPlaywrightWorkspaces(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableMicrosoftLoadTestServiceSubscriptionResource(subscriptionResource).GetPlaywrightWorkspaces(cancellationToken);
+ }
+
+ ///
+ /// Implements global CheckNameAvailability operations
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/checkNameAvailability
+ ///
+ /// -
+ /// Operation Id
+ /// PlaywrightWorkspaces_CheckNameAvailability
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-07-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The CheckAvailability request.
+ /// The cancellation token to use.
+ /// or is null.
+ public static async Task> CheckNameAvailabilityPlaywrightWorkspaceAsync(this SubscriptionResource subscriptionResource, CheckNameAvailabilityContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return await GetMockableMicrosoftLoadTestServiceSubscriptionResource(subscriptionResource).CheckNameAvailabilityPlaywrightWorkspaceAsync(content, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Implements global CheckNameAvailability operations
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/checkNameAvailability
+ ///
+ /// -
+ /// Operation Id
+ /// PlaywrightWorkspaces_CheckNameAvailability
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-07-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The CheckAvailability request.
+ /// The cancellation token to use.
+ /// or is null.
+ public static Response CheckNameAvailabilityPlaywrightWorkspace(this SubscriptionResource subscriptionResource, CheckNameAvailabilityContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableMicrosoftLoadTestServiceSubscriptionResource(subscriptionResource).CheckNameAvailabilityPlaywrightWorkspace(content, cancellationToken);
+ }
+ }
+}
diff --git a/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Extensions/MockableMicrosoftLoadTestServiceArmClient.cs b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Extensions/MockableMicrosoftLoadTestServiceArmClient.cs
new file mode 100644
index 000000000000..84e5f33edef9
--- /dev/null
+++ b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Extensions/MockableMicrosoftLoadTestServiceArmClient.cs
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using Azure.Core;
+using Azure.ResourceManager;
+
+namespace Microsoft.LoadTestService.Mocking
+{
+ /// A class to add extension methods to ArmClient.
+ public partial class MockableMicrosoftLoadTestServiceArmClient : ArmResource
+ {
+ /// Initializes a new instance of the class for mocking.
+ protected MockableMicrosoftLoadTestServiceArmClient()
+ {
+ }
+
+ /// 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 MockableMicrosoftLoadTestServiceArmClient(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ internal MockableMicrosoftLoadTestServiceArmClient(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 PlaywrightWorkspaceResource GetPlaywrightWorkspaceResource(ResourceIdentifier id)
+ {
+ PlaywrightWorkspaceResource.ValidateResourceId(id);
+ return new PlaywrightWorkspaceResource(Client, id);
+ }
+ }
+}
diff --git a/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Extensions/MockableMicrosoftLoadTestServiceResourceGroupResource.cs b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Extensions/MockableMicrosoftLoadTestServiceResourceGroupResource.cs
new file mode 100644
index 000000000000..853560441cc1
--- /dev/null
+++ b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Extensions/MockableMicrosoftLoadTestServiceResourceGroupResource.cs
@@ -0,0 +1,107 @@
+// 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;
+using Azure.Core;
+using Azure.ResourceManager;
+
+namespace Microsoft.LoadTestService.Mocking
+{
+ /// A class to add extension methods to ResourceGroupResource.
+ public partial class MockableMicrosoftLoadTestServiceResourceGroupResource : ArmResource
+ {
+ /// Initializes a new instance of the class for mocking.
+ protected MockableMicrosoftLoadTestServiceResourceGroupResource()
+ {
+ }
+
+ /// 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 MockableMicrosoftLoadTestServiceResourceGroupResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ /// Gets a collection of PlaywrightWorkspaceResources in the ResourceGroupResource.
+ /// An object representing collection of PlaywrightWorkspaceResources and their operations over a PlaywrightWorkspaceResource.
+ public virtual PlaywrightWorkspaceCollection GetPlaywrightWorkspaces()
+ {
+ return GetCachedClient(client => new PlaywrightWorkspaceCollection(client, Id));
+ }
+
+ ///
+ /// Get a PlaywrightWorkspace
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}
+ ///
+ /// -
+ /// Operation Id
+ /// PlaywrightWorkspace_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-07-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the PlaywrightWorkspace.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual async Task> GetPlaywrightWorkspaceAsync(string playwrightWorkspaceName, CancellationToken cancellationToken = default)
+ {
+ return await GetPlaywrightWorkspaces().GetAsync(playwrightWorkspaceName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a PlaywrightWorkspace
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}
+ ///
+ /// -
+ /// Operation Id
+ /// PlaywrightWorkspace_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-07-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the PlaywrightWorkspace.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual Response GetPlaywrightWorkspace(string playwrightWorkspaceName, CancellationToken cancellationToken = default)
+ {
+ return GetPlaywrightWorkspaces().Get(playwrightWorkspaceName, cancellationToken);
+ }
+ }
+}
diff --git a/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Extensions/MockableMicrosoftLoadTestServiceSubscriptionResource.cs b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Extensions/MockableMicrosoftLoadTestServiceSubscriptionResource.cs
new file mode 100644
index 000000000000..650d90af4b6e
--- /dev/null
+++ b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Extensions/MockableMicrosoftLoadTestServiceSubscriptionResource.cs
@@ -0,0 +1,191 @@
+// 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;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+using Microsoft.LoadTestService.Models;
+
+namespace Microsoft.LoadTestService.Mocking
+{
+ /// A class to add extension methods to SubscriptionResource.
+ public partial class MockableMicrosoftLoadTestServiceSubscriptionResource : ArmResource
+ {
+ private ClientDiagnostics _playwrightWorkspaceClientDiagnostics;
+ private PlaywrightWorkspacesRestOperations _playwrightWorkspaceRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected MockableMicrosoftLoadTestServiceSubscriptionResource()
+ {
+ }
+
+ /// 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 MockableMicrosoftLoadTestServiceSubscriptionResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private ClientDiagnostics PlaywrightWorkspaceClientDiagnostics => _playwrightWorkspaceClientDiagnostics ??= new ClientDiagnostics("Microsoft.LoadTestService", PlaywrightWorkspaceResource.ResourceType.Namespace, Diagnostics);
+ private PlaywrightWorkspacesRestOperations PlaywrightWorkspaceRestClient => _playwrightWorkspaceRestClient ??= new PlaywrightWorkspacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(PlaywrightWorkspaceResource.ResourceType));
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ ///
+ /// List PlaywrightWorkspace resources by subscription ID
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/playwrightWorkspaces
+ ///
+ /// -
+ /// Operation Id
+ /// PlaywrightWorkspace_ListBySubscription
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-07-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetPlaywrightWorkspacesAsync(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => PlaywrightWorkspaceRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => PlaywrightWorkspaceRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new PlaywrightWorkspaceResource(Client, PlaywrightWorkspaceData.DeserializePlaywrightWorkspaceData(e)), PlaywrightWorkspaceClientDiagnostics, Pipeline, "MockableMicrosoftLoadTestServiceSubscriptionResource.GetPlaywrightWorkspaces", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List PlaywrightWorkspace resources by subscription ID
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/playwrightWorkspaces
+ ///
+ /// -
+ /// Operation Id
+ /// PlaywrightWorkspace_ListBySubscription
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-07-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetPlaywrightWorkspaces(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => PlaywrightWorkspaceRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => PlaywrightWorkspaceRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new PlaywrightWorkspaceResource(Client, PlaywrightWorkspaceData.DeserializePlaywrightWorkspaceData(e)), PlaywrightWorkspaceClientDiagnostics, Pipeline, "MockableMicrosoftLoadTestServiceSubscriptionResource.GetPlaywrightWorkspaces", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Implements global CheckNameAvailability operations
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/checkNameAvailability
+ ///
+ /// -
+ /// Operation Id
+ /// PlaywrightWorkspaces_CheckNameAvailability
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-07-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The CheckAvailability request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> CheckNameAvailabilityPlaywrightWorkspaceAsync(CheckNameAvailabilityContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = PlaywrightWorkspaceClientDiagnostics.CreateScope("MockableMicrosoftLoadTestServiceSubscriptionResource.CheckNameAvailabilityPlaywrightWorkspace");
+ scope.Start();
+ try
+ {
+ var response = await PlaywrightWorkspaceRestClient.CheckNameAvailabilityAsync(Id.SubscriptionId, content, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Implements global CheckNameAvailability operations
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/checkNameAvailability
+ ///
+ /// -
+ /// Operation Id
+ /// PlaywrightWorkspaces_CheckNameAvailability
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-07-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The CheckAvailability request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response CheckNameAvailabilityPlaywrightWorkspace(CheckNameAvailabilityContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = PlaywrightWorkspaceClientDiagnostics.CreateScope("MockableMicrosoftLoadTestServiceSubscriptionResource.CheckNameAvailabilityPlaywrightWorkspace");
+ scope.Start();
+ try
+ {
+ var response = PlaywrightWorkspaceRestClient.CheckNameAvailability(Id.SubscriptionId, content, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Internal/Argument.cs b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Internal/Argument.cs
new file mode 100644
index 000000000000..714791b8b10f
--- /dev/null
+++ b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/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 Microsoft.LoadTestService
+{
+ 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/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Internal/ChangeTrackingDictionary.cs b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Internal/ChangeTrackingDictionary.cs
new file mode 100644
index 000000000000..50e5eef10064
--- /dev/null
+++ b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/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 Microsoft.LoadTestService
+{
+ 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/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Internal/ChangeTrackingList.cs b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Internal/ChangeTrackingList.cs
new file mode 100644
index 000000000000..301859cae73b
--- /dev/null
+++ b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/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 Microsoft.LoadTestService
+{
+ 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/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Internal/ModelSerializationExtensions.cs b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/src/Generated/Internal/ModelSerializationExtensions.cs
new file mode 100644
index 000000000000..df30da4931f7
--- /dev/null
+++ b/sdk/playwrightservice/Microsoft.Azure.Management.PlaywrightService/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 Microsoft.LoadTestService
+{
+ 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