diff --git a/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/Azure.ResourceManager.PortalServicesCopilot.sln b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/Azure.ResourceManager.PortalServicesCopilot.sln
new file mode 100644
index 000000000000..4f3e179e29c5
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/Azure.ResourceManager.PortalServicesCopilot.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.PortalServicesCopilot.Samples", "samples\Azure.ResourceManager.PortalServicesCopilot.Samples.csproj", "{7A2DFF15-5746-49F4-BD0F-C6C35337088A}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.PortalServicesCopilot", "src\Azure.ResourceManager.PortalServicesCopilot.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.PortalServicesCopilot.Tests", "tests\Azure.ResourceManager.PortalServicesCopilot.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/portalservices/Azure.ResourceManager.PortalServicesCopilot/CHANGELOG.md b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/CHANGELOG.md
new file mode 100644
index 000000000000..8b33f0fedccc
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/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/portalservices/Azure.ResourceManager.PortalServicesCopilot/Directory.Build.props b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/Directory.Build.props
new file mode 100644
index 000000000000..63bd836ad44b
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/Directory.Build.props
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/README.md b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/README.md
new file mode 100644
index 000000000000..706d0e34fe82
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/README.md
@@ -0,0 +1,80 @@
+# Microsoft Azure PortalServicesCopilot 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 PortalServicesCopilot management library for .NET with [NuGet](https://www.nuget.org/):
+
+```dotnetcli
+dotnet add package Azure.ResourceManager.PortalServicesCopilot --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/portalservices/Azure.ResourceManager.PortalServicesCopilot/api/Azure.ResourceManager.PortalServicesCopilot.net8.0.cs b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/api/Azure.ResourceManager.PortalServicesCopilot.net8.0.cs
new file mode 100644
index 000000000000..d0e86cc79706
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/api/Azure.ResourceManager.PortalServicesCopilot.net8.0.cs
@@ -0,0 +1,103 @@
+namespace Azure.ResourceManager.PortalServicesCopilot
+{
+ public partial class CopilotSettingsResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected CopilotSettingsResource() { }
+ public virtual Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResourceData Data { get { throw null; } }
+ public virtual bool HasData { get { throw null; } }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier() { throw null; }
+ public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ public virtual Azure.Response Update(Azure.ResourceManager.PortalServicesCopilot.Models.CopilotSettingsResourcePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.PortalServicesCopilot.Models.CopilotSettingsResourcePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+ public partial class CopilotSettingsResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public CopilotSettingsResourceData() { }
+ public Azure.ResourceManager.PortalServicesCopilot.Models.CopilotSettingsProperties Properties { get { throw null; } set { } }
+ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public static partial class PortalServicesCopilotExtensions
+ {
+ public static Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResource GetCopilotSettingsResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ public static Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResource GetCopilotSettingsResource(this Azure.ResourceManager.Resources.TenantResource tenantResource) { throw null; }
+ }
+}
+namespace Azure.ResourceManager.PortalServicesCopilot.Mocking
+{
+ public partial class MockablePortalServicesCopilotArmClient : Azure.ResourceManager.ArmResource
+ {
+ protected MockablePortalServicesCopilotArmClient() { }
+ public virtual Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResource GetCopilotSettingsResource(Azure.Core.ResourceIdentifier id) { throw null; }
+ }
+ public partial class MockablePortalServicesCopilotTenantResource : Azure.ResourceManager.ArmResource
+ {
+ protected MockablePortalServicesCopilotTenantResource() { }
+ public virtual Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResource GetCopilotSettingsResource() { throw null; }
+ }
+}
+namespace Azure.ResourceManager.PortalServicesCopilot.Models
+{
+ public static partial class ArmPortalServicesCopilotModelFactory
+ {
+ public static Azure.ResourceManager.PortalServicesCopilot.Models.CopilotSettingsProperties CopilotSettingsProperties(bool accessControlEnabled = false, Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState? provisioningState = default(Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState?)) { throw null; }
+ public static Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResourceData CopilotSettingsResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.PortalServicesCopilot.Models.CopilotSettingsProperties properties = null) { throw null; }
+ }
+ public partial class CopilotSettingsProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public CopilotSettingsProperties(bool accessControlEnabled) { }
+ public bool AccessControlEnabled { get { throw null; } set { } }
+ public Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState? ProvisioningState { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.PortalServicesCopilot.Models.CopilotSettingsProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.PortalServicesCopilot.Models.CopilotSettingsProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class CopilotSettingsResourcePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public CopilotSettingsResourcePatch() { }
+ public bool? AccessControlEnabled { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.PortalServicesCopilot.Models.CopilotSettingsResourcePatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.PortalServicesCopilot.Models.CopilotSettingsResourcePatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct ResourceProvisioningState : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public ResourceProvisioningState(string value) { throw null; }
+ public static Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState Canceled { get { throw null; } }
+ public static Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState Failed { get { throw null; } }
+ public static Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState Succeeded { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState left, Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState right) { throw null; }
+ public static implicit operator Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState left, Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+}
diff --git a/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/api/Azure.ResourceManager.PortalServicesCopilot.netstandard2.0.cs b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/api/Azure.ResourceManager.PortalServicesCopilot.netstandard2.0.cs
new file mode 100644
index 000000000000..d0e86cc79706
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/api/Azure.ResourceManager.PortalServicesCopilot.netstandard2.0.cs
@@ -0,0 +1,103 @@
+namespace Azure.ResourceManager.PortalServicesCopilot
+{
+ public partial class CopilotSettingsResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected CopilotSettingsResource() { }
+ public virtual Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResourceData Data { get { throw null; } }
+ public virtual bool HasData { get { throw null; } }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier() { throw null; }
+ public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ public virtual Azure.Response Update(Azure.ResourceManager.PortalServicesCopilot.Models.CopilotSettingsResourcePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.PortalServicesCopilot.Models.CopilotSettingsResourcePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+ public partial class CopilotSettingsResourceData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public CopilotSettingsResourceData() { }
+ public Azure.ResourceManager.PortalServicesCopilot.Models.CopilotSettingsProperties Properties { get { throw null; } set { } }
+ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResourceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResourceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public static partial class PortalServicesCopilotExtensions
+ {
+ public static Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResource GetCopilotSettingsResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ public static Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResource GetCopilotSettingsResource(this Azure.ResourceManager.Resources.TenantResource tenantResource) { throw null; }
+ }
+}
+namespace Azure.ResourceManager.PortalServicesCopilot.Mocking
+{
+ public partial class MockablePortalServicesCopilotArmClient : Azure.ResourceManager.ArmResource
+ {
+ protected MockablePortalServicesCopilotArmClient() { }
+ public virtual Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResource GetCopilotSettingsResource(Azure.Core.ResourceIdentifier id) { throw null; }
+ }
+ public partial class MockablePortalServicesCopilotTenantResource : Azure.ResourceManager.ArmResource
+ {
+ protected MockablePortalServicesCopilotTenantResource() { }
+ public virtual Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResource GetCopilotSettingsResource() { throw null; }
+ }
+}
+namespace Azure.ResourceManager.PortalServicesCopilot.Models
+{
+ public static partial class ArmPortalServicesCopilotModelFactory
+ {
+ public static Azure.ResourceManager.PortalServicesCopilot.Models.CopilotSettingsProperties CopilotSettingsProperties(bool accessControlEnabled = false, Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState? provisioningState = default(Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState?)) { throw null; }
+ public static Azure.ResourceManager.PortalServicesCopilot.CopilotSettingsResourceData CopilotSettingsResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.PortalServicesCopilot.Models.CopilotSettingsProperties properties = null) { throw null; }
+ }
+ public partial class CopilotSettingsProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public CopilotSettingsProperties(bool accessControlEnabled) { }
+ public bool AccessControlEnabled { get { throw null; } set { } }
+ public Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState? ProvisioningState { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.PortalServicesCopilot.Models.CopilotSettingsProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.PortalServicesCopilot.Models.CopilotSettingsProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class CopilotSettingsResourcePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public CopilotSettingsResourcePatch() { }
+ public bool? AccessControlEnabled { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.PortalServicesCopilot.Models.CopilotSettingsResourcePatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.PortalServicesCopilot.Models.CopilotSettingsResourcePatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct ResourceProvisioningState : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public ResourceProvisioningState(string value) { throw null; }
+ public static Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState Canceled { get { throw null; } }
+ public static Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState Failed { get { throw null; } }
+ public static Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState Succeeded { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState left, Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState right) { throw null; }
+ public static implicit operator Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState left, Azure.ResourceManager.PortalServicesCopilot.Models.ResourceProvisioningState right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+}
diff --git a/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/assets.json b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/assets.json
new file mode 100644
index 000000000000..efd7549f25e9
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/assets.json
@@ -0,0 +1,7 @@
+
+{
+ "AssetsRepo": "Azure/azure-sdk-assets",
+ "AssetsRepoPrefixPath": "net",
+ "TagPrefix": "net/portalservicescopilot/Azure.ResourceManager.PortalServicesCopilot",
+ "Tag": ""
+}
diff --git a/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/samples/Azure.ResourceManager.PortalServicesCopilot.Samples.csproj b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/samples/Azure.ResourceManager.PortalServicesCopilot.Samples.csproj
new file mode 100644
index 000000000000..bec11be6fb5c
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/samples/Azure.ResourceManager.PortalServicesCopilot.Samples.csproj
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Azure.ResourceManager.PortalServicesCopilot.csproj b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Azure.ResourceManager.PortalServicesCopilot.csproj
new file mode 100644
index 000000000000..abf1a9d18471
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Azure.ResourceManager.PortalServicesCopilot.csproj
@@ -0,0 +1,8 @@
+
+
+ Azure Resource Manager client SDK for Azure resource provider PortalServicesCopilot.
+ 1.0.0-beta.1
+ azure;management;arm;resource manager;portalservicescopilot
+ Azure.ResourceManager.PortalServicesCopilot
+
+
diff --git a/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/ArmPortalServicesCopilotModelFactory.cs b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/ArmPortalServicesCopilotModelFactory.cs
new file mode 100644
index 000000000000..7e86c07fb8b6
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/ArmPortalServicesCopilotModelFactory.cs
@@ -0,0 +1,46 @@
+// 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.PortalServicesCopilot.Models
+{
+ /// Model factory for models.
+ public static partial class ArmPortalServicesCopilotModelFactory
+ {
+ /// 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 CopilotSettingsResourceData CopilotSettingsResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, CopilotSettingsProperties properties = null)
+ {
+ return new CopilotSettingsResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Boolean indicating if role-based access control is enabled for copilot in this tenant.
+ /// The status of the last provisioning operation performed on the resource.
+ /// A new instance for mocking.
+ public static CopilotSettingsProperties CopilotSettingsProperties(bool accessControlEnabled = default, ResourceProvisioningState? provisioningState = null)
+ {
+ return new CopilotSettingsProperties(accessControlEnabled, provisioningState, serializedAdditionalRawData: null);
+ }
+ }
+}
diff --git a/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/CopilotSettingsResource.Serialization.cs b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/CopilotSettingsResource.Serialization.cs
new file mode 100644
index 000000000000..8ed37fedfeed
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/CopilotSettingsResource.Serialization.cs
@@ -0,0 +1,26 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Text.Json;
+
+namespace Azure.ResourceManager.PortalServicesCopilot
+{
+ public partial class CopilotSettingsResource : IJsonModel
+ {
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
+
+ CopilotSettingsResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options);
+
+ CopilotSettingsResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options);
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ }
+}
diff --git a/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/CopilotSettingsResource.cs b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/CopilotSettingsResource.cs
new file mode 100644
index 000000000000..89cc90db0c2d
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/CopilotSettingsResource.cs
@@ -0,0 +1,437 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.PortalServicesCopilot.Models;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.PortalServicesCopilot
+{
+ ///
+ /// A Class representing a CopilotSettingsResource along with the instance operations that can be performed on it.
+ /// If you have a you can construct a
+ /// from an instance of using the GetCopilotSettingsResource method.
+ /// Otherwise you can get one from its parent resource using the GetCopilotSettingsResource method.
+ ///
+ public partial class CopilotSettingsResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ public static ResourceIdentifier CreateResourceIdentifier()
+ {
+ var resourceId = $"/providers/Microsoft.PortalServices/copilotSettings/default";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _copilotSettingsResourceCopilotSettingsClientDiagnostics;
+ private readonly CopilotSettingsRestOperations _copilotSettingsResourceCopilotSettingsRestClient;
+ private readonly CopilotSettingsResourceData _data;
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.PortalServices/copilotSettings";
+
+ /// Initializes a new instance of the class for mocking.
+ protected CopilotSettingsResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal CopilotSettingsResource(ArmClient client, CopilotSettingsResourceData data) : this(client, data.Id)
+ {
+ HasData = true;
+ _data = data;
+ }
+
+ /// 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 CopilotSettingsResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _copilotSettingsResourceCopilotSettingsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.PortalServicesCopilot", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string copilotSettingsResourceCopilotSettingsApiVersion);
+ _copilotSettingsResourceCopilotSettingsRestClient = new CopilotSettingsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, copilotSettingsResourceCopilotSettingsApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ /// Gets whether or not the current instance has data.
+ public virtual bool HasData { get; }
+
+ /// Gets the data representing this Feature.
+ /// Throws if there is no data loaded in the current instance.
+ public virtual CopilotSettingsResourceData Data
+ {
+ get
+ {
+ if (!HasData)
+ throw new InvalidOperationException("The current instance does not have data, you must call Get first.");
+ return _data;
+ }
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
+ }
+
+ ///
+ /// Get a CopilotSettingsResource
+ ///
+ /// -
+ /// Request Path
+ /// /providers/Microsoft.PortalServices/copilotSettings/default
+ ///
+ /// -
+ /// Operation Id
+ /// CopilotSettingsResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-04-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _copilotSettingsResourceCopilotSettingsClientDiagnostics.CreateScope("CopilotSettingsResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _copilotSettingsResourceCopilotSettingsRestClient.GetAsync(cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new CopilotSettingsResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a CopilotSettingsResource
+ ///
+ /// -
+ /// Request Path
+ /// /providers/Microsoft.PortalServices/copilotSettings/default
+ ///
+ /// -
+ /// Operation Id
+ /// CopilotSettingsResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-04-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _copilotSettingsResourceCopilotSettingsClientDiagnostics.CreateScope("CopilotSettingsResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _copilotSettingsResourceCopilotSettingsRestClient.Get(cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new CopilotSettingsResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete a CopilotSettingsResource
+ ///
+ /// -
+ /// Request Path
+ /// /providers/Microsoft.PortalServices/copilotSettings/default
+ ///
+ /// -
+ /// Operation Id
+ /// CopilotSettingsResource_Delete
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-04-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The cancellation token to use.
+ public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ {
+ using var scope = _copilotSettingsResourceCopilotSettingsClientDiagnostics.CreateScope("CopilotSettingsResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = await _copilotSettingsResourceCopilotSettingsRestClient.DeleteAsync(cancellationToken).ConfigureAwait(false);
+ var uri = _copilotSettingsResourceCopilotSettingsRestClient.CreateDeleteRequestUri();
+ var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ var operation = new PortalServicesCopilotArmOperation(response, rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete a CopilotSettingsResource
+ ///
+ /// -
+ /// Request Path
+ /// /providers/Microsoft.PortalServices/copilotSettings/default
+ ///
+ /// -
+ /// Operation Id
+ /// CopilotSettingsResource_Delete
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-04-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The cancellation token to use.
+ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ {
+ using var scope = _copilotSettingsResourceCopilotSettingsClientDiagnostics.CreateScope("CopilotSettingsResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = _copilotSettingsResourceCopilotSettingsRestClient.Delete(cancellationToken);
+ var uri = _copilotSettingsResourceCopilotSettingsRestClient.CreateDeleteRequestUri();
+ var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ var operation = new PortalServicesCopilotArmOperation(response, rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletionResponse(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Update a CopilotSettingsResource
+ ///
+ /// -
+ /// Request Path
+ /// /providers/Microsoft.PortalServices/copilotSettings/default
+ ///
+ /// -
+ /// Operation Id
+ /// CopilotSettingsResource_Update
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-04-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The resource properties to be updated.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> UpdateAsync(CopilotSettingsResourcePatch patch, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(patch, nameof(patch));
+
+ using var scope = _copilotSettingsResourceCopilotSettingsClientDiagnostics.CreateScope("CopilotSettingsResource.Update");
+ scope.Start();
+ try
+ {
+ var response = await _copilotSettingsResourceCopilotSettingsRestClient.UpdateAsync(patch, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new CopilotSettingsResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Update a CopilotSettingsResource
+ ///
+ /// -
+ /// Request Path
+ /// /providers/Microsoft.PortalServices/copilotSettings/default
+ ///
+ /// -
+ /// Operation Id
+ /// CopilotSettingsResource_Update
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-04-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The resource properties to be updated.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response Update(CopilotSettingsResourcePatch patch, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(patch, nameof(patch));
+
+ using var scope = _copilotSettingsResourceCopilotSettingsClientDiagnostics.CreateScope("CopilotSettingsResource.Update");
+ scope.Start();
+ try
+ {
+ var response = _copilotSettingsResourceCopilotSettingsRestClient.Update(patch, cancellationToken);
+ return Response.FromValue(new CopilotSettingsResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Create a CopilotSettingsResource
+ ///
+ /// -
+ /// Request Path
+ /// /providers/Microsoft.PortalServices/copilotSettings/default
+ ///
+ /// -
+ /// Operation Id
+ /// CopilotSettingsResource_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-04-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, CopilotSettingsResourceData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _copilotSettingsResourceCopilotSettingsClientDiagnostics.CreateScope("CopilotSettingsResource.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = await _copilotSettingsResourceCopilotSettingsRestClient.CreateOrUpdateAsync(data, cancellationToken).ConfigureAwait(false);
+ var uri = _copilotSettingsResourceCopilotSettingsRestClient.CreateCreateOrUpdateRequestUri(data);
+ var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ var operation = new PortalServicesCopilotArmOperation(Response.FromValue(new CopilotSettingsResource(Client, response), response.GetRawResponse()), rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Create a CopilotSettingsResource
+ ///
+ /// -
+ /// Request Path
+ /// /providers/Microsoft.PortalServices/copilotSettings/default
+ ///
+ /// -
+ /// Operation Id
+ /// CopilotSettingsResource_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-04-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, CopilotSettingsResourceData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _copilotSettingsResourceCopilotSettingsClientDiagnostics.CreateScope("CopilotSettingsResource.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = _copilotSettingsResourceCopilotSettingsRestClient.CreateOrUpdate(data, cancellationToken);
+ var uri = _copilotSettingsResourceCopilotSettingsRestClient.CreateCreateOrUpdateRequestUri(data);
+ var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ var operation = new PortalServicesCopilotArmOperation(Response.FromValue(new CopilotSettingsResource(Client, response), response.GetRawResponse()), rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/CopilotSettingsResourceData.Serialization.cs b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/CopilotSettingsResourceData.Serialization.cs
new file mode 100644
index 000000000000..741bbd834050
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/CopilotSettingsResourceData.Serialization.cs
@@ -0,0 +1,155 @@
+// 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.Text.Json;
+using Azure.Core;
+using Azure.ResourceManager.Models;
+using Azure.ResourceManager.PortalServicesCopilot.Models;
+
+namespace Azure.ResourceManager.PortalServicesCopilot
+{
+ public partial class CopilotSettingsResourceData : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(CopilotSettingsResourceData)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(Properties))
+ {
+ writer.WritePropertyName("properties"u8);
+ writer.WriteObjectValue(Properties, options);
+ }
+ }
+
+ CopilotSettingsResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(CopilotSettingsResourceData)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeCopilotSettingsResourceData(document.RootElement, options);
+ }
+
+ internal static CopilotSettingsResourceData DeserializeCopilotSettingsResourceData(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ CopilotSettingsProperties properties = default;
+ ResourceIdentifier id = default;
+ string name = default;
+ ResourceType type = default;
+ SystemData systemData = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("properties"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ properties = CopilotSettingsProperties.DeserializeCopilotSettingsProperties(property.Value, options);
+ continue;
+ }
+ if (property.NameEquals("id"u8))
+ {
+ id = new ResourceIdentifier(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("name"u8))
+ {
+ name = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("type"u8))
+ {
+ type = new ResourceType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("systemData"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ systemData = JsonSerializer.Deserialize(property.Value.GetRawText());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new CopilotSettingsResourceData(
+ id,
+ name,
+ type,
+ systemData,
+ properties,
+ serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(CopilotSettingsResourceData)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ CopilotSettingsResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeCopilotSettingsResourceData(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(CopilotSettingsResourceData)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/CopilotSettingsResourceData.cs b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/CopilotSettingsResourceData.cs
new file mode 100644
index 000000000000..7aa98269afc3
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/CopilotSettingsResourceData.cs
@@ -0,0 +1,75 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure.Core;
+using Azure.ResourceManager.Models;
+using Azure.ResourceManager.PortalServicesCopilot.Models;
+
+namespace Azure.ResourceManager.PortalServicesCopilot
+{
+ ///
+ /// A class representing the CopilotSettingsResource data model.
+ /// The copilot settings tenant resource definition.
+ ///
+ public partial class CopilotSettingsResourceData : ResourceData
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ public CopilotSettingsResourceData()
+ {
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// Keeps track of any properties unknown to the library.
+ internal CopilotSettingsResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, CopilotSettingsProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
+ {
+ Properties = properties;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// The resource-specific properties for this resource.
+ public CopilotSettingsProperties Properties { get; set; }
+ }
+}
diff --git a/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/Extensions/MockablePortalServicesCopilotArmClient.cs b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/Extensions/MockablePortalServicesCopilotArmClient.cs
new file mode 100644
index 000000000000..e9ca0088080b
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/Extensions/MockablePortalServicesCopilotArmClient.cs
@@ -0,0 +1,49 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using Azure.Core;
+
+namespace Azure.ResourceManager.PortalServicesCopilot.Mocking
+{
+ /// A class to add extension methods to ArmClient.
+ public partial class MockablePortalServicesCopilotArmClient : ArmResource
+ {
+ /// Initializes a new instance of the class for mocking.
+ protected MockablePortalServicesCopilotArmClient()
+ {
+ }
+
+ /// 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 MockablePortalServicesCopilotArmClient(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ internal MockablePortalServicesCopilotArmClient(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 CopilotSettingsResource GetCopilotSettingsResource(ResourceIdentifier id)
+ {
+ CopilotSettingsResource.ValidateResourceId(id);
+ return new CopilotSettingsResource(Client, id);
+ }
+ }
+}
diff --git a/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/Extensions/MockablePortalServicesCopilotTenantResource.cs b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/Extensions/MockablePortalServicesCopilotTenantResource.cs
new file mode 100644
index 000000000000..078babc250ec
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/Extensions/MockablePortalServicesCopilotTenantResource.cs
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using Azure.Core;
+
+namespace Azure.ResourceManager.PortalServicesCopilot.Mocking
+{
+ /// A class to add extension methods to TenantResource.
+ public partial class MockablePortalServicesCopilotTenantResource : ArmResource
+ {
+ /// Initializes a new instance of the class for mocking.
+ protected MockablePortalServicesCopilotTenantResource()
+ {
+ }
+
+ /// 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 MockablePortalServicesCopilotTenantResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ /// Gets an object representing a CopilotSettingsResource along with the instance operations that can be performed on it in the TenantResource.
+ /// Returns a object.
+ public virtual CopilotSettingsResource GetCopilotSettingsResource()
+ {
+ return new CopilotSettingsResource(Client, Id.AppendProviderResource("Microsoft.PortalServices", "copilotSettings", "default"));
+ }
+ }
+}
diff --git a/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/Extensions/PortalServicesCopilotExtensions.cs b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/Extensions/PortalServicesCopilotExtensions.cs
new file mode 100644
index 000000000000..e9d245af6e2b
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/Extensions/PortalServicesCopilotExtensions.cs
@@ -0,0 +1,64 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using Azure.Core;
+using Azure.ResourceManager.PortalServicesCopilot.Mocking;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.PortalServicesCopilot
+{
+ /// A class to add extension methods to Azure.ResourceManager.PortalServicesCopilot.
+ public static partial class PortalServicesCopilotExtensions
+ {
+ private static MockablePortalServicesCopilotArmClient GetMockablePortalServicesCopilotArmClient(ArmClient client)
+ {
+ return client.GetCachedClient(client0 => new MockablePortalServicesCopilotArmClient(client0));
+ }
+
+ private static MockablePortalServicesCopilotTenantResource GetMockablePortalServicesCopilotTenantResource(ArmResource resource)
+ {
+ return resource.GetCachedClient(client => new MockablePortalServicesCopilotTenantResource(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 CopilotSettingsResource GetCopilotSettingsResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockablePortalServicesCopilotArmClient(client).GetCopilotSettingsResource(id);
+ }
+
+ ///
+ /// Gets an object representing a CopilotSettingsResource along with the instance operations that can be performed on it in the TenantResource.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// is null.
+ /// Returns a object.
+ public static CopilotSettingsResource GetCopilotSettingsResource(this TenantResource tenantResource)
+ {
+ Argument.AssertNotNull(tenantResource, nameof(tenantResource));
+
+ return GetMockablePortalServicesCopilotTenantResource(tenantResource).GetCopilotSettingsResource();
+ }
+ }
+}
diff --git a/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/Internal/Argument.cs b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/Internal/Argument.cs
new file mode 100644
index 000000000000..26fa7f4739fc
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/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.PortalServicesCopilot
+{
+ 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/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/Internal/ChangeTrackingDictionary.cs b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/Internal/ChangeTrackingDictionary.cs
new file mode 100644
index 000000000000..46fab5cdfefb
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/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.PortalServicesCopilot
+{
+ 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/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/Internal/ChangeTrackingList.cs b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/Internal/ChangeTrackingList.cs
new file mode 100644
index 000000000000..44b40583532d
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/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.PortalServicesCopilot
+{
+ 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/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/Internal/ModelSerializationExtensions.cs b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/src/Generated/Internal/ModelSerializationExtensions.cs
new file mode 100644
index 000000000000..2dab15487f99
--- /dev/null
+++ b/sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot/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.PortalServicesCopilot
+{
+ 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