diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index ea7cc9035abc..6ee05e341a6d 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -1115,6 +1115,12 @@
# ServiceLabel: %Service Fabric
# ServiceOwners: @QingChenmsft @vaishnavk @juhacket
+# PRLabel: %SiteManager
+/sdk/sitemanager/Azure.ResourceManager.*/ @bsomeshekar
+
+# ServiceLabel: %SiteManager %Mgmt
+# ServiceOwners: @bsomeshekar
+
# PRLabel: %Spring App Discovery
/sdk/springappdiscovery/Azure.ResourceManager.*/ @sunkun99 @ArcturusZhang @ArthurMa1978
@@ -1133,6 +1139,7 @@
# ServiceLabel: %Weights & Biases %Mgmt
# ServiceOwners: @aggarwalsw
+
# ######## Eng Sys ########
/eng/ @hallipr @weshaggard @benbp
/eng/common/ @Azure/azure-sdk-eng
diff --git a/sdk/resourcemanager/ci.mgmt.yml b/sdk/resourcemanager/ci.mgmt.yml
index 9ae0a7e75290..1cc42793477b 100644
--- a/sdk/resourcemanager/ci.mgmt.yml
+++ b/sdk/resourcemanager/ci.mgmt.yml
@@ -189,6 +189,7 @@ trigger:
- sdk/servicelinker/Azure.ResourceManager.ServiceLinker
- sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking
- sdk/signalr/Azure.ResourceManager.SignalR
+ - sdk/sitemanager/Azure.ResourceManager.SiteManager
- sdk/sphere/Azure.ResourceManager.Sphere
- sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery
- sdk/sqlmanagement/Azure.ResourceManager.Sql
@@ -405,6 +406,7 @@ pr:
- sdk/servicelinker/Azure.ResourceManager.ServiceLinker
- sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking
- sdk/signalr/Azure.ResourceManager.SignalR
+ - sdk/sitemanager/Azure.ResourceManager.SiteManager
- sdk/sphere/Azure.ResourceManager.Sphere
- sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery
- sdk/sqlmanagement/Azure.ResourceManager.Sql
diff --git a/sdk/sitemanager/Azure.ResourceManager.SiteManager/Azure.ResourceManager.SiteManager.sln b/sdk/sitemanager/Azure.ResourceManager.SiteManager/Azure.ResourceManager.SiteManager.sln
new file mode 100644
index 000000000000..6afedab8de5d
--- /dev/null
+++ b/sdk/sitemanager/Azure.ResourceManager.SiteManager/Azure.ResourceManager.SiteManager.sln
@@ -0,0 +1,65 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.30309.148
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{F903E55E-0FDE-4855-AC34-AFAC1F7FC419}") = "Azure.ResourceManager.SiteManager", "src\Azure.ResourceManager.SiteManager.csproj", "{0979AD14-7A51-4266-9CEA-3847B2C6BD5C}"
+EndProject
+Project("{F903E55E-0FDE-4855-AC34-AFAC1F7FC419}") = "Azure.ResourceManager.SiteManager.Tests", "tests\Azure.ResourceManager.SiteManager.Tests.csproj", "{39B18B76-C158-40EB-B1F7-95ED36BAC834}"
+EndProject
+Project("{F903E55E-0FDE-4855-AC34-AFAC1F7FC419}") = "Azure.ResourceManager.SiteManager.Samples", "samples\Azure.ResourceManager.SiteManager.Samples.csproj", "{87DBDED0-0F32-40C0-B899-3CC2451AB541}"
+EndProject
+Global
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {DA55A19E-27FF-46F2-8063-96AA7F1A7B01}
+ EndGlobalSection
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Debug|x64 = Debug|x64
+ Debug|x86 = Debug|x86
+ Release|Any CPU = Release|Any CPU
+ Release|x64 = Release|x64
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {0979AD14-7A51-4266-9CEA-3847B2C6BD5C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {0979AD14-7A51-4266-9CEA-3847B2C6BD5C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {0979AD14-7A51-4266-9CEA-3847B2C6BD5C}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {0979AD14-7A51-4266-9CEA-3847B2C6BD5C}.Debug|x64.Build.0 = Debug|Any CPU
+ {0979AD14-7A51-4266-9CEA-3847B2C6BD5C}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {0979AD14-7A51-4266-9CEA-3847B2C6BD5C}.Debug|x86.Build.0 = Debug|Any CPU
+ {0979AD14-7A51-4266-9CEA-3847B2C6BD5C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {0979AD14-7A51-4266-9CEA-3847B2C6BD5C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {0979AD14-7A51-4266-9CEA-3847B2C6BD5C}.Release|x64.ActiveCfg = Release|Any CPU
+ {0979AD14-7A51-4266-9CEA-3847B2C6BD5C}.Release|x64.Build.0 = Release|Any CPU
+ {0979AD14-7A51-4266-9CEA-3847B2C6BD5C}.Release|x86.ActiveCfg = Release|Any CPU
+ {0979AD14-7A51-4266-9CEA-3847B2C6BD5C}.Release|x86.Build.0 = Release|Any CPU
+ {39B18B76-C158-40EB-B1F7-95ED36BAC834}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {39B18B76-C158-40EB-B1F7-95ED36BAC834}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {39B18B76-C158-40EB-B1F7-95ED36BAC834}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {39B18B76-C158-40EB-B1F7-95ED36BAC834}.Debug|x64.Build.0 = Debug|Any CPU
+ {39B18B76-C158-40EB-B1F7-95ED36BAC834}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {39B18B76-C158-40EB-B1F7-95ED36BAC834}.Debug|x86.Build.0 = Debug|Any CPU
+ {39B18B76-C158-40EB-B1F7-95ED36BAC834}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {39B18B76-C158-40EB-B1F7-95ED36BAC834}.Release|Any CPU.Build.0 = Release|Any CPU
+ {39B18B76-C158-40EB-B1F7-95ED36BAC834}.Release|x64.ActiveCfg = Release|Any CPU
+ {39B18B76-C158-40EB-B1F7-95ED36BAC834}.Release|x64.Build.0 = Release|Any CPU
+ {39B18B76-C158-40EB-B1F7-95ED36BAC834}.Release|x86.ActiveCfg = Release|Any CPU
+ {39B18B76-C158-40EB-B1F7-95ED36BAC834}.Release|x86.Build.0 = Release|Any CPU
+ {87DBDED0-0F32-40C0-B899-3CC2451AB541}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {87DBDED0-0F32-40C0-B899-3CC2451AB541}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {87DBDED0-0F32-40C0-B899-3CC2451AB541}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {87DBDED0-0F32-40C0-B899-3CC2451AB541}.Debug|x64.Build.0 = Debug|Any CPU
+ {87DBDED0-0F32-40C0-B899-3CC2451AB541}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {87DBDED0-0F32-40C0-B899-3CC2451AB541}.Debug|x86.Build.0 = Debug|Any CPU
+ {87DBDED0-0F32-40C0-B899-3CC2451AB541}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {87DBDED0-0F32-40C0-B899-3CC2451AB541}.Release|Any CPU.Build.0 = Release|Any CPU
+ {87DBDED0-0F32-40C0-B899-3CC2451AB541}.Release|x64.ActiveCfg = Release|Any CPU
+ {87DBDED0-0F32-40C0-B899-3CC2451AB541}.Release|x64.Build.0 = Release|Any CPU
+ {87DBDED0-0F32-40C0-B899-3CC2451AB541}.Release|x86.ActiveCfg = Release|Any CPU
+ {87DBDED0-0F32-40C0-B899-3CC2451AB541}.Release|x86.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/sdk/sitemanager/Azure.ResourceManager.SiteManager/CHANGELOG.md b/sdk/sitemanager/Azure.ResourceManager.SiteManager/CHANGELOG.md
new file mode 100644
index 000000000000..1a85987a15b9
--- /dev/null
+++ b/sdk/sitemanager/Azure.ResourceManager.SiteManager/CHANGELOG.md
@@ -0,0 +1,19 @@
+# Release History
+
+## 1.0.0-beta.1 (Unreleased)
+
+
+
+### Features Added
+
+This package 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.
+
+This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues).
+
+> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet).
\ No newline at end of file
diff --git a/sdk/sitemanager/Azure.ResourceManager.SiteManager/Directory.Build.props b/sdk/sitemanager/Azure.ResourceManager.SiteManager/Directory.Build.props
new file mode 100644
index 000000000000..1a9611bd4924
--- /dev/null
+++ b/sdk/sitemanager/Azure.ResourceManager.SiteManager/Directory.Build.props
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/sdk/sitemanager/Azure.ResourceManager.SiteManager/README.md b/sdk/sitemanager/Azure.ResourceManager.SiteManager/README.md
new file mode 100644
index 000000000000..9b2f35517245
--- /dev/null
+++ b/sdk/sitemanager/Azure.ResourceManager.SiteManager/README.md
@@ -0,0 +1,80 @@
+# Microsoft Azure SiteManager 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 SiteManager management library for .NET with [NuGet](https://www.nuget.org/):
+
+```dotnetcli
+dotnet add package Azure.ResourceManager.SiteManager --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://docs.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/sitemanager/Azure.ResourceManager.SiteManager/api/Azure.ResourceManager.SiteManager.net8.0.cs b/sdk/sitemanager/Azure.ResourceManager.SiteManager/api/Azure.ResourceManager.SiteManager.net8.0.cs
new file mode 100644
index 000000000000..eaab09624fb3
--- /dev/null
+++ b/sdk/sitemanager/Azure.ResourceManager.SiteManager/api/Azure.ResourceManager.SiteManager.net8.0.cs
@@ -0,0 +1,209 @@
+namespace Azure.ResourceManager.SiteManager
+{
+ public partial class AzureResourceManagerSiteManagerContext : System.ClientModel.Primitives.ModelReaderWriterContext
+ {
+ internal AzureResourceManagerSiteManagerContext() { }
+ public static Azure.ResourceManager.SiteManager.AzureResourceManagerSiteManagerContext Default { get { throw null; } }
+ protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; }
+ }
+ public partial class SiteCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
+ {
+ protected SiteCollection() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Exists(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> ExistsAsync(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetAsync(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.NullableResponse GetIfExists(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; }
+ System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; }
+ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
+ }
+ public partial class SiteData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public SiteData() { }
+ public Azure.ResourceManager.SiteManager.Models.SiteProperties Properties { get { throw null; } set { } }
+ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.SiteManager.SiteData 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.SiteManager.SiteData 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 SiteManagerExtensions
+ {
+ public static Azure.ResourceManager.ArmOperation CreateOrUpdateSitesByServiceGroup(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string servicegroupName, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> CreateOrUpdateSitesByServiceGroupAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string servicegroupName, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.ResourceManager.ArmOperation CreateOrUpdateSitesBySubscription(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.WaitUntil waitUntil, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> CreateOrUpdateSitesBySubscriptionAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.WaitUntil waitUntil, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Response DeleteSitesByServiceGroup(this Azure.ResourceManager.Resources.TenantResource tenantResource, string servicegroupName, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task DeleteSitesByServiceGroupAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string servicegroupName, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Response DeleteSitesBySubscription(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task DeleteSitesBySubscriptionAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Response GetSite(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> GetSiteAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.ResourceManager.SiteManager.SiteResource GetSiteResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ public static Azure.ResourceManager.SiteManager.SiteCollection GetSites(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; }
+ public static Azure.Pageable GetSites(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Pageable GetSites(this Azure.ResourceManager.Resources.TenantResource tenantResource, string servicegroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.AsyncPageable GetSitesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.AsyncPageable GetSitesAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string servicegroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Response GetSitesByServiceGroup(this Azure.ResourceManager.Resources.TenantResource tenantResource, string servicegroupName, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> GetSitesByServiceGroupAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string servicegroupName, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Response GetSitesBySubscription(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> GetSitesBySubscriptionAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Response UpdateSitesByServiceGroup(this Azure.ResourceManager.Resources.TenantResource tenantResource, string servicegroupName, string siteName, Azure.ResourceManager.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> UpdateSitesByServiceGroupAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string servicegroupName, string siteName, Azure.ResourceManager.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Response UpdateSitesBySubscription(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string siteName, Azure.ResourceManager.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> UpdateSitesBySubscriptionAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string siteName, Azure.ResourceManager.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+ public partial class SiteResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected SiteResource() { }
+ public virtual Azure.ResourceManager.SiteManager.SiteData Data { get { throw null; } }
+ public virtual bool HasData { get { throw null; } }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string siteName) { 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.SiteManager.SiteData 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.SiteManager.SiteData 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.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+}
+namespace Azure.ResourceManager.SiteManager.Mocking
+{
+ public partial class MockableSiteManagerArmClient : Azure.ResourceManager.ArmResource
+ {
+ protected MockableSiteManagerArmClient() { }
+ public virtual Azure.ResourceManager.SiteManager.SiteResource GetSiteResource(Azure.Core.ResourceIdentifier id) { throw null; }
+ }
+ public partial class MockableSiteManagerResourceGroupResource : Azure.ResourceManager.ArmResource
+ {
+ protected MockableSiteManagerResourceGroupResource() { }
+ public virtual Azure.Response GetSite(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetSiteAsync(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.SiteManager.SiteCollection GetSites() { throw null; }
+ }
+ public partial class MockableSiteManagerSubscriptionResource : Azure.ResourceManager.ArmResource
+ {
+ protected MockableSiteManagerSubscriptionResource() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdateSitesBySubscription(Azure.WaitUntil waitUntil, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateSitesBySubscriptionAsync(Azure.WaitUntil waitUntil, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response DeleteSitesBySubscription(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task DeleteSitesBySubscriptionAsync(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetSites(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetSitesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response GetSitesBySubscription(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetSitesBySubscriptionAsync(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response UpdateSitesBySubscription(string siteName, Azure.ResourceManager.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateSitesBySubscriptionAsync(string siteName, Azure.ResourceManager.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+ public partial class MockableSiteManagerTenantResource : Azure.ResourceManager.ArmResource
+ {
+ protected MockableSiteManagerTenantResource() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdateSitesByServiceGroup(Azure.WaitUntil waitUntil, string servicegroupName, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateSitesByServiceGroupAsync(Azure.WaitUntil waitUntil, string servicegroupName, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response DeleteSitesByServiceGroup(string servicegroupName, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task DeleteSitesByServiceGroupAsync(string servicegroupName, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetSites(string servicegroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetSitesAsync(string servicegroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response GetSitesByServiceGroup(string servicegroupName, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetSitesByServiceGroupAsync(string servicegroupName, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response UpdateSitesByServiceGroup(string servicegroupName, string siteName, Azure.ResourceManager.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateSitesByServiceGroupAsync(string servicegroupName, string siteName, Azure.ResourceManager.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+}
+namespace Azure.ResourceManager.SiteManager.Models
+{
+ public static partial class ArmSiteManagerModelFactory
+ {
+ public static Azure.ResourceManager.SiteManager.SiteData SiteData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.SiteManager.Models.SiteProperties properties = null) { throw null; }
+ public static Azure.ResourceManager.SiteManager.Models.SiteProperties SiteProperties(string displayName = null, string description = null, Azure.ResourceManager.SiteManager.Models.SiteAddressProperties siteAddress = null, System.Collections.Generic.IDictionary labels = null, Azure.ResourceManager.SiteManager.Models.ResourceProvisioningState? provisioningState = default(Azure.ResourceManager.SiteManager.Models.ResourceProvisioningState?)) { 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.SiteManager.Models.ResourceProvisioningState Canceled { get { throw null; } }
+ public static Azure.ResourceManager.SiteManager.Models.ResourceProvisioningState Failed { get { throw null; } }
+ public static Azure.ResourceManager.SiteManager.Models.ResourceProvisioningState Succeeded { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.SiteManager.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.SiteManager.Models.ResourceProvisioningState left, Azure.ResourceManager.SiteManager.Models.ResourceProvisioningState right) { throw null; }
+ public static implicit operator Azure.ResourceManager.SiteManager.Models.ResourceProvisioningState (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.SiteManager.Models.ResourceProvisioningState left, Azure.ResourceManager.SiteManager.Models.ResourceProvisioningState right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class SiteAddressProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public SiteAddressProperties() { }
+ public string City { get { throw null; } set { } }
+ public string Country { get { throw null; } set { } }
+ public string PostalCode { get { throw null; } set { } }
+ public string StateOrProvince { get { throw null; } set { } }
+ public string StreetAddress1 { get { throw null; } set { } }
+ public string StreetAddress2 { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.SiteManager.Models.SiteAddressProperties 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.SiteManager.Models.SiteAddressProperties 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 SiteProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public SiteProperties() { }
+ public string Description { get { throw null; } set { } }
+ public string DisplayName { get { throw null; } set { } }
+ public System.Collections.Generic.IDictionary Labels { get { throw null; } }
+ public Azure.ResourceManager.SiteManager.Models.ResourceProvisioningState? ProvisioningState { get { throw null; } }
+ public Azure.ResourceManager.SiteManager.Models.SiteAddressProperties SiteAddress { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.SiteManager.Models.SiteProperties 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.SiteManager.Models.SiteProperties 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 SiteUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public SiteUpdate() { }
+ public Azure.ResourceManager.SiteManager.Models.SiteUpdateProperties Properties { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.SiteManager.Models.SiteUpdate 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.SiteManager.Models.SiteUpdate 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 SiteUpdateProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public SiteUpdateProperties() { }
+ public string Description { get { throw null; } set { } }
+ public string DisplayName { get { throw null; } set { } }
+ public System.Collections.Generic.IDictionary Labels { get { throw null; } }
+ public Azure.ResourceManager.SiteManager.Models.SiteAddressProperties SiteAddress { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.SiteManager.Models.SiteUpdateProperties 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.SiteManager.Models.SiteUpdateProperties 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; }
+ }
+}
diff --git a/sdk/sitemanager/Azure.ResourceManager.SiteManager/api/Azure.ResourceManager.SiteManager.netstandard2.0.cs b/sdk/sitemanager/Azure.ResourceManager.SiteManager/api/Azure.ResourceManager.SiteManager.netstandard2.0.cs
new file mode 100644
index 000000000000..eaab09624fb3
--- /dev/null
+++ b/sdk/sitemanager/Azure.ResourceManager.SiteManager/api/Azure.ResourceManager.SiteManager.netstandard2.0.cs
@@ -0,0 +1,209 @@
+namespace Azure.ResourceManager.SiteManager
+{
+ public partial class AzureResourceManagerSiteManagerContext : System.ClientModel.Primitives.ModelReaderWriterContext
+ {
+ internal AzureResourceManagerSiteManagerContext() { }
+ public static Azure.ResourceManager.SiteManager.AzureResourceManagerSiteManagerContext Default { get { throw null; } }
+ protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; }
+ }
+ public partial class SiteCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
+ {
+ protected SiteCollection() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Exists(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> ExistsAsync(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetAsync(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.NullableResponse GetIfExists(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; }
+ System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; }
+ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
+ }
+ public partial class SiteData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public SiteData() { }
+ public Azure.ResourceManager.SiteManager.Models.SiteProperties Properties { get { throw null; } set { } }
+ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.SiteManager.SiteData 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.SiteManager.SiteData 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 SiteManagerExtensions
+ {
+ public static Azure.ResourceManager.ArmOperation CreateOrUpdateSitesByServiceGroup(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string servicegroupName, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> CreateOrUpdateSitesByServiceGroupAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string servicegroupName, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.ResourceManager.ArmOperation CreateOrUpdateSitesBySubscription(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.WaitUntil waitUntil, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> CreateOrUpdateSitesBySubscriptionAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.WaitUntil waitUntil, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Response DeleteSitesByServiceGroup(this Azure.ResourceManager.Resources.TenantResource tenantResource, string servicegroupName, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task DeleteSitesByServiceGroupAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string servicegroupName, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Response DeleteSitesBySubscription(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task DeleteSitesBySubscriptionAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Response GetSite(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> GetSiteAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.ResourceManager.SiteManager.SiteResource GetSiteResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ public static Azure.ResourceManager.SiteManager.SiteCollection GetSites(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; }
+ public static Azure.Pageable GetSites(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Pageable GetSites(this Azure.ResourceManager.Resources.TenantResource tenantResource, string servicegroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.AsyncPageable GetSitesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.AsyncPageable GetSitesAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string servicegroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Response GetSitesByServiceGroup(this Azure.ResourceManager.Resources.TenantResource tenantResource, string servicegroupName, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> GetSitesByServiceGroupAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string servicegroupName, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Response GetSitesBySubscription(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> GetSitesBySubscriptionAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Response UpdateSitesByServiceGroup(this Azure.ResourceManager.Resources.TenantResource tenantResource, string servicegroupName, string siteName, Azure.ResourceManager.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> UpdateSitesByServiceGroupAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string servicegroupName, string siteName, Azure.ResourceManager.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Response UpdateSitesBySubscription(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string siteName, Azure.ResourceManager.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> UpdateSitesBySubscriptionAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string siteName, Azure.ResourceManager.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+ public partial class SiteResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected SiteResource() { }
+ public virtual Azure.ResourceManager.SiteManager.SiteData Data { get { throw null; } }
+ public virtual bool HasData { get { throw null; } }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string siteName) { 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.SiteManager.SiteData 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.SiteManager.SiteData 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.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+}
+namespace Azure.ResourceManager.SiteManager.Mocking
+{
+ public partial class MockableSiteManagerArmClient : Azure.ResourceManager.ArmResource
+ {
+ protected MockableSiteManagerArmClient() { }
+ public virtual Azure.ResourceManager.SiteManager.SiteResource GetSiteResource(Azure.Core.ResourceIdentifier id) { throw null; }
+ }
+ public partial class MockableSiteManagerResourceGroupResource : Azure.ResourceManager.ArmResource
+ {
+ protected MockableSiteManagerResourceGroupResource() { }
+ public virtual Azure.Response GetSite(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetSiteAsync(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.SiteManager.SiteCollection GetSites() { throw null; }
+ }
+ public partial class MockableSiteManagerSubscriptionResource : Azure.ResourceManager.ArmResource
+ {
+ protected MockableSiteManagerSubscriptionResource() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdateSitesBySubscription(Azure.WaitUntil waitUntil, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateSitesBySubscriptionAsync(Azure.WaitUntil waitUntil, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response DeleteSitesBySubscription(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task DeleteSitesBySubscriptionAsync(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetSites(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetSitesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response GetSitesBySubscription(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetSitesBySubscriptionAsync(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response UpdateSitesBySubscription(string siteName, Azure.ResourceManager.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateSitesBySubscriptionAsync(string siteName, Azure.ResourceManager.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+ public partial class MockableSiteManagerTenantResource : Azure.ResourceManager.ArmResource
+ {
+ protected MockableSiteManagerTenantResource() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdateSitesByServiceGroup(Azure.WaitUntil waitUntil, string servicegroupName, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateSitesByServiceGroupAsync(Azure.WaitUntil waitUntil, string servicegroupName, string siteName, Azure.ResourceManager.SiteManager.SiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response DeleteSitesByServiceGroup(string servicegroupName, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task DeleteSitesByServiceGroupAsync(string servicegroupName, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetSites(string servicegroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetSitesAsync(string servicegroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response GetSitesByServiceGroup(string servicegroupName, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetSitesByServiceGroupAsync(string servicegroupName, string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response UpdateSitesByServiceGroup(string servicegroupName, string siteName, Azure.ResourceManager.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateSitesByServiceGroupAsync(string servicegroupName, string siteName, Azure.ResourceManager.SiteManager.Models.SiteUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+}
+namespace Azure.ResourceManager.SiteManager.Models
+{
+ public static partial class ArmSiteManagerModelFactory
+ {
+ public static Azure.ResourceManager.SiteManager.SiteData SiteData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.SiteManager.Models.SiteProperties properties = null) { throw null; }
+ public static Azure.ResourceManager.SiteManager.Models.SiteProperties SiteProperties(string displayName = null, string description = null, Azure.ResourceManager.SiteManager.Models.SiteAddressProperties siteAddress = null, System.Collections.Generic.IDictionary labels = null, Azure.ResourceManager.SiteManager.Models.ResourceProvisioningState? provisioningState = default(Azure.ResourceManager.SiteManager.Models.ResourceProvisioningState?)) { 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.SiteManager.Models.ResourceProvisioningState Canceled { get { throw null; } }
+ public static Azure.ResourceManager.SiteManager.Models.ResourceProvisioningState Failed { get { throw null; } }
+ public static Azure.ResourceManager.SiteManager.Models.ResourceProvisioningState Succeeded { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.SiteManager.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.SiteManager.Models.ResourceProvisioningState left, Azure.ResourceManager.SiteManager.Models.ResourceProvisioningState right) { throw null; }
+ public static implicit operator Azure.ResourceManager.SiteManager.Models.ResourceProvisioningState (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.SiteManager.Models.ResourceProvisioningState left, Azure.ResourceManager.SiteManager.Models.ResourceProvisioningState right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class SiteAddressProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public SiteAddressProperties() { }
+ public string City { get { throw null; } set { } }
+ public string Country { get { throw null; } set { } }
+ public string PostalCode { get { throw null; } set { } }
+ public string StateOrProvince { get { throw null; } set { } }
+ public string StreetAddress1 { get { throw null; } set { } }
+ public string StreetAddress2 { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.SiteManager.Models.SiteAddressProperties 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.SiteManager.Models.SiteAddressProperties 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 SiteProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public SiteProperties() { }
+ public string Description { get { throw null; } set { } }
+ public string DisplayName { get { throw null; } set { } }
+ public System.Collections.Generic.IDictionary Labels { get { throw null; } }
+ public Azure.ResourceManager.SiteManager.Models.ResourceProvisioningState? ProvisioningState { get { throw null; } }
+ public Azure.ResourceManager.SiteManager.Models.SiteAddressProperties SiteAddress { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.SiteManager.Models.SiteProperties 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.SiteManager.Models.SiteProperties 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 SiteUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public SiteUpdate() { }
+ public Azure.ResourceManager.SiteManager.Models.SiteUpdateProperties Properties { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.SiteManager.Models.SiteUpdate 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.SiteManager.Models.SiteUpdate 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 SiteUpdateProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public SiteUpdateProperties() { }
+ public string Description { get { throw null; } set { } }
+ public string DisplayName { get { throw null; } set { } }
+ public System.Collections.Generic.IDictionary Labels { get { throw null; } }
+ public Azure.ResourceManager.SiteManager.Models.SiteAddressProperties SiteAddress { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.SiteManager.Models.SiteUpdateProperties 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.SiteManager.Models.SiteUpdateProperties 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; }
+ }
+}
diff --git a/sdk/sitemanager/Azure.ResourceManager.SiteManager/assets.json b/sdk/sitemanager/Azure.ResourceManager.SiteManager/assets.json
new file mode 100644
index 000000000000..0c5b0304514d
--- /dev/null
+++ b/sdk/sitemanager/Azure.ResourceManager.SiteManager/assets.json
@@ -0,0 +1,6 @@
+{
+ "AssetsRepo": "Azure/azure-sdk-assets",
+ "AssetsRepoPrefixPath": "net",
+ "TagPrefix": "net/sitemanager/Azure.ResourceManager.SiteManager",
+ "Tag": "net/sitemanager/Azure.ResourceManager.SiteManager_0f34bc8fb9"
+}
diff --git a/sdk/sitemanager/Azure.ResourceManager.SiteManager/samples/Azure.ResourceManager.SiteManager.Samples.csproj b/sdk/sitemanager/Azure.ResourceManager.SiteManager/samples/Azure.ResourceManager.SiteManager.Samples.csproj
new file mode 100644
index 000000000000..8807be9e8794
--- /dev/null
+++ b/sdk/sitemanager/Azure.ResourceManager.SiteManager/samples/Azure.ResourceManager.SiteManager.Samples.csproj
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/sdk/sitemanager/Azure.ResourceManager.SiteManager/samples/Sample_SiteResource.cs b/sdk/sitemanager/Azure.ResourceManager.SiteManager/samples/Sample_SiteResource.cs
new file mode 100644
index 000000000000..51f8bc2d9634
--- /dev/null
+++ b/sdk/sitemanager/Azure.ResourceManager.SiteManager/samples/Sample_SiteResource.cs
@@ -0,0 +1,157 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.Resources;
+using Azure.ResourceManager.SiteManager.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.SiteManager.Samples
+{
+ public partial class Sample_SiteResource
+ {
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Create_Site()
+ {
+ // Get your Azure access token. For more details on how Azure SDK gets your access token, 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);
+
+ // Define the required parameters for creating a SiteResource
+ string subscriptionId = "f8a30ed0-310b-4f90-9435-d7e8a5cc0c91";
+ string resourceGroupName = "test-rg";
+ string siteName = "myNewSite";
+
+ // Get the parent resource (e.g., ResourceGroupResource or SiteCollection)
+ ResourceGroupResource resourceGroup = client.GetResourceGroupResource(
+ ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName));
+
+ // Create the SiteData object with required properties
+ SiteData siteData = new SiteData
+ {
+ Properties = new SiteProperties
+ {
+ DisplayName = "My New Site",
+ SiteAddress = new SiteAddressProperties
+ {
+ City = "Seattle",
+ Country = "USA"
+ }
+ }
+ };
+
+ // Use the parent resource to create the SiteResource
+ var lro = await resourceGroup.GetSites().CreateOrUpdateAsync(WaitUntil.Completed, siteName, siteData);
+ SiteResource site = lro.Value;
+ // The variable site is a resource. You could call other operations on this instance as well.
+ // For demo purposes, we get its data from this resource instance
+ SiteData resourceData = site.Data;
+ // For demo, we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_Site()
+ {
+ // Get your Azure access token. For more details on how Azure SDK gets your access token, 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 SiteResource created on Azure
+ // For more information on creating SiteResource, refer to the documentation of SiteResource
+ string subscriptionId = "f8a30ed0-310b-4f90-9435-d7e8a5cc0c91";
+ string resourceGroupName = "test-rg";
+ string siteName = "mySite";
+ ResourceIdentifier siteResourceId = SiteResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, siteName);
+ SiteResource site = client.GetSiteResource(siteResourceId);
+
+ // Invoke the operation
+ SiteResource result = await site.GetAsync();
+
+ // The variable result is a resource. You could call other operations on this instance as well.
+ // For demo purposes, we get its data from this resource instance
+ SiteData resourceData = result.Data;
+ // For demo, we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_Site()
+ {
+ // Get your Azure access token. For more details on how Azure SDK gets your access token, 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 SiteResource created on Azure
+ // For more information on creating SiteResource, refer to the documentation of SiteResource
+ string subscriptionId = "f8a30ed0-310b-4f90-9435-d7e8a5cc0c91";
+ string resourceGroupName = "test-rg";
+ string siteName = "mySite";
+ ResourceIdentifier siteResourceId = SiteResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, siteName);
+ SiteResource site = client.GetSiteResource(siteResourceId);
+
+ // Invoke the operation
+ SiteUpdate patch = new SiteUpdate
+ {
+ Properties = new SiteUpdateProperties
+ {
+ DisplayName = "Updated Site Name",
+ SiteAddress = new SiteAddressProperties
+ {
+ City = "New York",
+ Country = "USA"
+ }
+ }
+ };
+ SiteResource result = await site.UpdateAsync(patch);
+
+ // The variable result is a resource. You could call other operations on this instance as well.
+ // For demo purposes, we get its data from this resource instance
+ SiteData resourceData = result.Data;
+ // For demo, we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Delete_Site()
+ {
+ // Get your Azure access token. For more details on how Azure SDK gets your access token, 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 SiteResource created on Azure
+ // For more information on creating SiteResource, refer to the documentation of SiteResource
+ string subscriptionId = "f8a30ed0-310b-4f90-9435-d7e8a5cc0c91";
+ string resourceGroupName = "test-rg";
+ string siteName = "mySite";
+ ResourceIdentifier siteResourceId = SiteResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, siteName);
+ SiteResource site = client.GetSiteResource(siteResourceId);
+
+ // Invoke the operation
+ await site.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+ }
+}
diff --git a/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Azure.ResourceManager.SiteManager.csproj b/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Azure.ResourceManager.SiteManager.csproj
new file mode 100644
index 000000000000..26a5b9a64e4f
--- /dev/null
+++ b/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Azure.ResourceManager.SiteManager.csproj
@@ -0,0 +1,8 @@
+
+
+ 1.0.0-beta.1
+ Azure.ResourceManager.SiteManager
+ Azure Resource Manager client SDK for Azure resource provider SiteManager.
+ azure;management;arm;resource manager;sitemanager
+
+
diff --git a/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Generated/ArmSiteManagerModelFactory.cs b/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Generated/ArmSiteManagerModelFactory.cs
new file mode 100644
index 000000000000..a2ba2a9e2d19
--- /dev/null
+++ b/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Generated/ArmSiteManagerModelFactory.cs
@@ -0,0 +1,57 @@
+// 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.SiteManager.Models
+{
+ /// Model factory for models.
+ public static partial class ArmSiteManagerModelFactory
+ {
+ /// 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 SiteData SiteData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SiteProperties properties = null)
+ {
+ return new SiteData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// displayName of Site resource.
+ /// Description of Site resource.
+ /// Physical address of the site.
+ /// Key-value pairs for labeling the site resource.
+ /// Provisioning state of last operation.
+ /// A new instance for mocking.
+ public static SiteProperties SiteProperties(string displayName = null, string description = null, SiteAddressProperties siteAddress = null, IDictionary labels = null, ResourceProvisioningState? provisioningState = null)
+ {
+ labels ??= new Dictionary();
+
+ return new SiteProperties(
+ displayName,
+ description,
+ siteAddress,
+ labels,
+ provisioningState,
+ serializedAdditionalRawData: null);
+ }
+ }
+}
diff --git a/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Generated/Extensions/MockableSiteManagerArmClient.cs b/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Generated/Extensions/MockableSiteManagerArmClient.cs
new file mode 100644
index 000000000000..50aecfb5c13f
--- /dev/null
+++ b/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Generated/Extensions/MockableSiteManagerArmClient.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.SiteManager.Mocking
+{
+ /// A class to add extension methods to ArmClient.
+ public partial class MockableSiteManagerArmClient : ArmResource
+ {
+ /// Initializes a new instance of the class for mocking.
+ protected MockableSiteManagerArmClient()
+ {
+ }
+
+ /// 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 MockableSiteManagerArmClient(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ internal MockableSiteManagerArmClient(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 SiteResource GetSiteResource(ResourceIdentifier id)
+ {
+ SiteResource.ValidateResourceId(id);
+ return new SiteResource(Client, id);
+ }
+ }
+}
diff --git a/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Generated/Extensions/MockableSiteManagerResourceGroupResource.cs b/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Generated/Extensions/MockableSiteManagerResourceGroupResource.cs
new file mode 100644
index 000000000000..20016b8a38dc
--- /dev/null
+++ b/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Generated/Extensions/MockableSiteManagerResourceGroupResource.cs
@@ -0,0 +1,105 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+
+namespace Azure.ResourceManager.SiteManager.Mocking
+{
+ /// A class to add extension methods to ResourceGroupResource.
+ public partial class MockableSiteManagerResourceGroupResource : ArmResource
+ {
+ /// Initializes a new instance of the class for mocking.
+ protected MockableSiteManagerResourceGroupResource()
+ {
+ }
+
+ /// 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 MockableSiteManagerResourceGroupResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ /// Gets a collection of SiteResources in the ResourceGroupResource.
+ /// An object representing collection of SiteResources and their operations over a SiteResource.
+ public virtual SiteCollection GetSites()
+ {
+ return GetCachedClient(client => new SiteCollection(client, Id));
+ }
+
+ ///
+ /// Get a Site
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// Site_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Site resource.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual async Task> GetSiteAsync(string siteName, CancellationToken cancellationToken = default)
+ {
+ return await GetSites().GetAsync(siteName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a Site
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// Site_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Site resource.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual Response GetSite(string siteName, CancellationToken cancellationToken = default)
+ {
+ return GetSites().Get(siteName, cancellationToken);
+ }
+ }
+}
diff --git a/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Generated/Extensions/MockableSiteManagerSubscriptionResource.cs b/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Generated/Extensions/MockableSiteManagerSubscriptionResource.cs
new file mode 100644
index 000000000000..14a2d322bc1f
--- /dev/null
+++ b/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Generated/Extensions/MockableSiteManagerSubscriptionResource.cs
@@ -0,0 +1,425 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.SiteManager.Models;
+
+namespace Azure.ResourceManager.SiteManager.Mocking
+{
+ /// A class to add extension methods to SubscriptionResource.
+ public partial class MockableSiteManagerSubscriptionResource : ArmResource
+ {
+ private ClientDiagnostics _sitesBySubscriptionClientDiagnostics;
+ private SitesBySubscriptionRestOperations _sitesBySubscriptionRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected MockableSiteManagerSubscriptionResource()
+ {
+ }
+
+ /// 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 MockableSiteManagerSubscriptionResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private ClientDiagnostics SitesBySubscriptionClientDiagnostics => _sitesBySubscriptionClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.SiteManager", ProviderConstants.DefaultProviderNamespace, Diagnostics);
+ private SitesBySubscriptionRestOperations SitesBySubscriptionRestClient => _sitesBySubscriptionRestClient ??= new SitesBySubscriptionRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ ///
+ /// List Site resources by subscription ID
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites
+ ///
+ /// -
+ /// Operation Id
+ /// Site_List
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetSitesAsync(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => SitesBySubscriptionRestClient.CreateListRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => SitesBySubscriptionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new SiteResource(Client, SiteData.DeserializeSiteData(e)), SitesBySubscriptionClientDiagnostics, Pipeline, "MockableSiteManagerSubscriptionResource.GetSites", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List Site resources by subscription ID
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites
+ ///
+ /// -
+ /// Operation Id
+ /// Site_List
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetSites(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => SitesBySubscriptionRestClient.CreateListRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => SitesBySubscriptionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SiteResource(Client, SiteData.DeserializeSiteData(e)), SitesBySubscriptionClientDiagnostics, Pipeline, "MockableSiteManagerSubscriptionResource.GetSites", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Get a Site
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// Site_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// Name of Site resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetSitesBySubscriptionAsync(string siteName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(siteName, nameof(siteName));
+
+ using var scope = SitesBySubscriptionClientDiagnostics.CreateScope("MockableSiteManagerSubscriptionResource.GetSitesBySubscription");
+ scope.Start();
+ try
+ {
+ var response = await SitesBySubscriptionRestClient.GetAsync(Id.SubscriptionId, siteName, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new SiteResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a Site
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// Site_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// Name of Site resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response GetSitesBySubscription(string siteName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(siteName, nameof(siteName));
+
+ using var scope = SitesBySubscriptionClientDiagnostics.CreateScope("MockableSiteManagerSubscriptionResource.GetSitesBySubscription");
+ scope.Start();
+ try
+ {
+ var response = SitesBySubscriptionRestClient.Get(Id.SubscriptionId, siteName, cancellationToken);
+ return Response.FromValue(new SiteResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Create a Site
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// Site_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// 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.
+ /// Name of Site resource.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual async Task> CreateOrUpdateSitesBySubscriptionAsync(WaitUntil waitUntil, string siteName, SiteData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(siteName, nameof(siteName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = SitesBySubscriptionClientDiagnostics.CreateScope("MockableSiteManagerSubscriptionResource.CreateOrUpdateSitesBySubscription");
+ scope.Start();
+ try
+ {
+ var response = await SitesBySubscriptionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, siteName, data, cancellationToken).ConfigureAwait(false);
+ var operation = new SiteManagerArmOperation(new SiteOperationSource(Client), SitesBySubscriptionClientDiagnostics, Pipeline, SitesBySubscriptionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, siteName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Create a Site
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// Site_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// 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.
+ /// Name of Site resource.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual ArmOperation CreateOrUpdateSitesBySubscription(WaitUntil waitUntil, string siteName, SiteData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(siteName, nameof(siteName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = SitesBySubscriptionClientDiagnostics.CreateScope("MockableSiteManagerSubscriptionResource.CreateOrUpdateSitesBySubscription");
+ scope.Start();
+ try
+ {
+ var response = SitesBySubscriptionRestClient.CreateOrUpdate(Id.SubscriptionId, siteName, data, cancellationToken);
+ var operation = new SiteManagerArmOperation(new SiteOperationSource(Client), SitesBySubscriptionClientDiagnostics, Pipeline, SitesBySubscriptionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, siteName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Update a Site
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// Site_Update
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// Name of Site resource.
+ /// The resource properties to be updated.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual async Task> UpdateSitesBySubscriptionAsync(string siteName, SiteUpdate properties, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(siteName, nameof(siteName));
+ Argument.AssertNotNull(properties, nameof(properties));
+
+ using var scope = SitesBySubscriptionClientDiagnostics.CreateScope("MockableSiteManagerSubscriptionResource.UpdateSitesBySubscription");
+ scope.Start();
+ try
+ {
+ var response = await SitesBySubscriptionRestClient.UpdateAsync(Id.SubscriptionId, siteName, properties, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new SiteResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Update a Site
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// Site_Update
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// Name of Site resource.
+ /// The resource properties to be updated.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual Response UpdateSitesBySubscription(string siteName, SiteUpdate properties, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(siteName, nameof(siteName));
+ Argument.AssertNotNull(properties, nameof(properties));
+
+ using var scope = SitesBySubscriptionClientDiagnostics.CreateScope("MockableSiteManagerSubscriptionResource.UpdateSitesBySubscription");
+ scope.Start();
+ try
+ {
+ var response = SitesBySubscriptionRestClient.Update(Id.SubscriptionId, siteName, properties, cancellationToken);
+ return Response.FromValue(new SiteResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete a Site
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// Site_Delete
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// Name of Site resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task DeleteSitesBySubscriptionAsync(string siteName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(siteName, nameof(siteName));
+
+ using var scope = SitesBySubscriptionClientDiagnostics.CreateScope("MockableSiteManagerSubscriptionResource.DeleteSitesBySubscription");
+ scope.Start();
+ try
+ {
+ var response = await SitesBySubscriptionRestClient.DeleteAsync(Id.SubscriptionId, siteName, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete a Site
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// Site_Delete
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// Name of Site resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response DeleteSitesBySubscription(string siteName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(siteName, nameof(siteName));
+
+ using var scope = SitesBySubscriptionClientDiagnostics.CreateScope("MockableSiteManagerSubscriptionResource.DeleteSitesBySubscription");
+ scope.Start();
+ try
+ {
+ var response = SitesBySubscriptionRestClient.Delete(Id.SubscriptionId, siteName, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Generated/Extensions/MockableSiteManagerTenantResource.cs b/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Generated/Extensions/MockableSiteManagerTenantResource.cs
new file mode 100644
index 000000000000..3612ec1ecbc3
--- /dev/null
+++ b/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Generated/Extensions/MockableSiteManagerTenantResource.cs
@@ -0,0 +1,451 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.SiteManager.Models;
+
+namespace Azure.ResourceManager.SiteManager.Mocking
+{
+ /// A class to add extension methods to TenantResource.
+ public partial class MockableSiteManagerTenantResource : ArmResource
+ {
+ private ClientDiagnostics _sitesByServiceGroupClientDiagnostics;
+ private SitesByServiceGroupRestOperations _sitesByServiceGroupRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected MockableSiteManagerTenantResource()
+ {
+ }
+
+ /// 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 MockableSiteManagerTenantResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private ClientDiagnostics SitesByServiceGroupClientDiagnostics => _sitesByServiceGroupClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.SiteManager", ProviderConstants.DefaultProviderNamespace, Diagnostics);
+ private SitesByServiceGroupRestOperations SitesByServiceGroupRestClient => _sitesByServiceGroupRestClient ??= new SitesByServiceGroupRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ ///
+ /// list Site at SG scope
+ ///
+ /// -
+ /// Request Path
+ /// /providers/Microsoft.Management/serviceGroups/{servicegroupName}/providers/Microsoft.Edge/sites
+ ///
+ /// -
+ /// Operation Id
+ /// SitesByServiceGroup_ListByServiceGroup
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// The name of the service group.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetSitesAsync(string servicegroupName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(servicegroupName, nameof(servicegroupName));
+
+ HttpMessage FirstPageRequest(int? pageSizeHint) => SitesByServiceGroupRestClient.CreateListByServiceGroupRequest(servicegroupName);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => SitesByServiceGroupRestClient.CreateListByServiceGroupNextPageRequest(nextLink, servicegroupName);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new SiteResource(Client, SiteData.DeserializeSiteData(e)), SitesByServiceGroupClientDiagnostics, Pipeline, "MockableSiteManagerTenantResource.GetSites", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// list Site at SG scope
+ ///
+ /// -
+ /// Request Path
+ /// /providers/Microsoft.Management/serviceGroups/{servicegroupName}/providers/Microsoft.Edge/sites
+ ///
+ /// -
+ /// Operation Id
+ /// SitesByServiceGroup_ListByServiceGroup
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// The name of the service group.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetSites(string servicegroupName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(servicegroupName, nameof(servicegroupName));
+
+ HttpMessage FirstPageRequest(int? pageSizeHint) => SitesByServiceGroupRestClient.CreateListByServiceGroupRequest(servicegroupName);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => SitesByServiceGroupRestClient.CreateListByServiceGroupNextPageRequest(nextLink, servicegroupName);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SiteResource(Client, SiteData.DeserializeSiteData(e)), SitesByServiceGroupClientDiagnostics, Pipeline, "MockableSiteManagerTenantResource.GetSites", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Get Site at SG scope
+ ///
+ /// -
+ /// Request Path
+ /// /providers/Microsoft.Management/serviceGroups/{servicegroupName}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// SitesByServiceGroup_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// The name of the service group.
+ /// The name of the site.
+ /// The cancellation token to use.
+ /// or is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual async Task> GetSitesByServiceGroupAsync(string servicegroupName, string siteName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(servicegroupName, nameof(servicegroupName));
+ Argument.AssertNotNullOrEmpty(siteName, nameof(siteName));
+
+ using var scope = SitesByServiceGroupClientDiagnostics.CreateScope("MockableSiteManagerTenantResource.GetSitesByServiceGroup");
+ scope.Start();
+ try
+ {
+ var response = await SitesByServiceGroupRestClient.GetAsync(servicegroupName, siteName, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new SiteResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get Site at SG scope
+ ///
+ /// -
+ /// Request Path
+ /// /providers/Microsoft.Management/serviceGroups/{servicegroupName}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// SitesByServiceGroup_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// The name of the service group.
+ /// The name of the site.
+ /// The cancellation token to use.
+ /// or is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual Response GetSitesByServiceGroup(string servicegroupName, string siteName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(servicegroupName, nameof(servicegroupName));
+ Argument.AssertNotNullOrEmpty(siteName, nameof(siteName));
+
+ using var scope = SitesByServiceGroupClientDiagnostics.CreateScope("MockableSiteManagerTenantResource.GetSitesByServiceGroup");
+ scope.Start();
+ try
+ {
+ var response = SitesByServiceGroupRestClient.Get(servicegroupName, siteName, cancellationToken);
+ return Response.FromValue(new SiteResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// create or update Site at SG scope
+ ///
+ /// -
+ /// Request Path
+ /// /providers/Microsoft.Management/serviceGroups/{servicegroupName}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// SitesByServiceGroup_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// 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 name of the service group.
+ /// The name of the site.
+ /// The properties of the site.
+ /// The cancellation token to use.
+ /// or is an empty string, and was expected to be non-empty.
+ /// , or is null.
+ public virtual async Task> CreateOrUpdateSitesByServiceGroupAsync(WaitUntil waitUntil, string servicegroupName, string siteName, SiteData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(servicegroupName, nameof(servicegroupName));
+ Argument.AssertNotNullOrEmpty(siteName, nameof(siteName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = SitesByServiceGroupClientDiagnostics.CreateScope("MockableSiteManagerTenantResource.CreateOrUpdateSitesByServiceGroup");
+ scope.Start();
+ try
+ {
+ var response = await SitesByServiceGroupRestClient.CreateOrUpdateAsync(servicegroupName, siteName, data, cancellationToken).ConfigureAwait(false);
+ var operation = new SiteManagerArmOperation(new SiteOperationSource(Client), SitesByServiceGroupClientDiagnostics, Pipeline, SitesByServiceGroupRestClient.CreateCreateOrUpdateRequest(servicegroupName, siteName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// create or update Site at SG scope
+ ///
+ /// -
+ /// Request Path
+ /// /providers/Microsoft.Management/serviceGroups/{servicegroupName}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// SitesByServiceGroup_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// 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 name of the service group.
+ /// The name of the site.
+ /// The properties of the site.
+ /// The cancellation token to use.
+ /// or is an empty string, and was expected to be non-empty.
+ /// , or is null.
+ public virtual ArmOperation CreateOrUpdateSitesByServiceGroup(WaitUntil waitUntil, string servicegroupName, string siteName, SiteData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(servicegroupName, nameof(servicegroupName));
+ Argument.AssertNotNullOrEmpty(siteName, nameof(siteName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = SitesByServiceGroupClientDiagnostics.CreateScope("MockableSiteManagerTenantResource.CreateOrUpdateSitesByServiceGroup");
+ scope.Start();
+ try
+ {
+ var response = SitesByServiceGroupRestClient.CreateOrUpdate(servicegroupName, siteName, data, cancellationToken);
+ var operation = new SiteManagerArmOperation(new SiteOperationSource(Client), SitesByServiceGroupClientDiagnostics, Pipeline, SitesByServiceGroupRestClient.CreateCreateOrUpdateRequest(servicegroupName, siteName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// update Site at SG scope
+ ///
+ /// -
+ /// Request Path
+ /// /providers/Microsoft.Management/serviceGroups/{servicegroupName}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// SitesByServiceGroup_Update
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// The name of the service group.
+ /// The name of the site.
+ /// The properties of the site.
+ /// The cancellation token to use.
+ /// or is an empty string, and was expected to be non-empty.
+ /// , or is null.
+ public virtual async Task> UpdateSitesByServiceGroupAsync(string servicegroupName, string siteName, SiteUpdate properties, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(servicegroupName, nameof(servicegroupName));
+ Argument.AssertNotNullOrEmpty(siteName, nameof(siteName));
+ Argument.AssertNotNull(properties, nameof(properties));
+
+ using var scope = SitesByServiceGroupClientDiagnostics.CreateScope("MockableSiteManagerTenantResource.UpdateSitesByServiceGroup");
+ scope.Start();
+ try
+ {
+ var response = await SitesByServiceGroupRestClient.UpdateAsync(servicegroupName, siteName, properties, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new SiteResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// update Site at SG scope
+ ///
+ /// -
+ /// Request Path
+ /// /providers/Microsoft.Management/serviceGroups/{servicegroupName}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// SitesByServiceGroup_Update
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// The name of the service group.
+ /// The name of the site.
+ /// The properties of the site.
+ /// The cancellation token to use.
+ /// or is an empty string, and was expected to be non-empty.
+ /// , or is null.
+ public virtual Response UpdateSitesByServiceGroup(string servicegroupName, string siteName, SiteUpdate properties, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(servicegroupName, nameof(servicegroupName));
+ Argument.AssertNotNullOrEmpty(siteName, nameof(siteName));
+ Argument.AssertNotNull(properties, nameof(properties));
+
+ using var scope = SitesByServiceGroupClientDiagnostics.CreateScope("MockableSiteManagerTenantResource.UpdateSitesByServiceGroup");
+ scope.Start();
+ try
+ {
+ var response = SitesByServiceGroupRestClient.Update(servicegroupName, siteName, properties, cancellationToken);
+ return Response.FromValue(new SiteResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// delete Site at SG scope
+ ///
+ /// -
+ /// Request Path
+ /// /providers/Microsoft.Management/serviceGroups/{servicegroupName}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// SitesByServiceGroup_Delete
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// The name of the service group.
+ /// The name of the site.
+ /// The cancellation token to use.
+ /// or is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual async Task DeleteSitesByServiceGroupAsync(string servicegroupName, string siteName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(servicegroupName, nameof(servicegroupName));
+ Argument.AssertNotNullOrEmpty(siteName, nameof(siteName));
+
+ using var scope = SitesByServiceGroupClientDiagnostics.CreateScope("MockableSiteManagerTenantResource.DeleteSitesByServiceGroup");
+ scope.Start();
+ try
+ {
+ var response = await SitesByServiceGroupRestClient.DeleteAsync(servicegroupName, siteName, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// delete Site at SG scope
+ ///
+ /// -
+ /// Request Path
+ /// /providers/Microsoft.Management/serviceGroups/{servicegroupName}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// SitesByServiceGroup_Delete
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ ///
+ /// The name of the service group.
+ /// The name of the site.
+ /// The cancellation token to use.
+ /// or is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual Response DeleteSitesByServiceGroup(string servicegroupName, string siteName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(servicegroupName, nameof(servicegroupName));
+ Argument.AssertNotNullOrEmpty(siteName, nameof(siteName));
+
+ using var scope = SitesByServiceGroupClientDiagnostics.CreateScope("MockableSiteManagerTenantResource.DeleteSitesByServiceGroup");
+ scope.Start();
+ try
+ {
+ var response = SitesByServiceGroupRestClient.Delete(servicegroupName, siteName, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Generated/Extensions/SiteManagerExtensions.cs b/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Generated/Extensions/SiteManagerExtensions.cs
new file mode 100644
index 000000000000..5d2265164815
--- /dev/null
+++ b/sdk/sitemanager/Azure.ResourceManager.SiteManager/src/Generated/Extensions/SiteManagerExtensions.cs
@@ -0,0 +1,833 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.ResourceManager.Resources;
+using Azure.ResourceManager.SiteManager.Mocking;
+using Azure.ResourceManager.SiteManager.Models;
+
+namespace Azure.ResourceManager.SiteManager
+{
+ /// A class to add extension methods to Azure.ResourceManager.SiteManager.
+ public static partial class SiteManagerExtensions
+ {
+ private static MockableSiteManagerArmClient GetMockableSiteManagerArmClient(ArmClient client)
+ {
+ return client.GetCachedClient(client0 => new MockableSiteManagerArmClient(client0));
+ }
+
+ private static MockableSiteManagerResourceGroupResource GetMockableSiteManagerResourceGroupResource(ArmResource resource)
+ {
+ return resource.GetCachedClient(client => new MockableSiteManagerResourceGroupResource(client, resource.Id));
+ }
+
+ private static MockableSiteManagerSubscriptionResource GetMockableSiteManagerSubscriptionResource(ArmResource resource)
+ {
+ return resource.GetCachedClient(client => new MockableSiteManagerSubscriptionResource(client, resource.Id));
+ }
+
+ private static MockableSiteManagerTenantResource GetMockableSiteManagerTenantResource(ArmResource resource)
+ {
+ return resource.GetCachedClient(client => new MockableSiteManagerTenantResource(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 SiteResource GetSiteResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableSiteManagerArmClient(client).GetSiteResource(id);
+ }
+
+ ///
+ /// Gets a collection of SiteResources 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 SiteResources and their operations over a SiteResource.
+ public static SiteCollection GetSites(this ResourceGroupResource resourceGroupResource)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return GetMockableSiteManagerResourceGroupResource(resourceGroupResource).GetSites();
+ }
+
+ ///
+ /// Get a Site
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// Site_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// Name of Site resource.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static async Task> GetSiteAsync(this ResourceGroupResource resourceGroupResource, string siteName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return await GetMockableSiteManagerResourceGroupResource(resourceGroupResource).GetSiteAsync(siteName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a Site
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// Site_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// Name of Site resource.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static Response GetSite(this ResourceGroupResource resourceGroupResource, string siteName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return GetMockableSiteManagerResourceGroupResource(resourceGroupResource).GetSite(siteName, cancellationToken);
+ }
+
+ ///
+ /// List Site resources by subscription ID
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites
+ ///
+ /// -
+ /// Operation Id
+ /// Site_List
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ /// -
+ /// 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 GetSitesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableSiteManagerSubscriptionResource(subscriptionResource).GetSitesAsync(cancellationToken);
+ }
+
+ ///
+ /// List Site resources by subscription ID
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites
+ ///
+ /// -
+ /// Operation Id
+ /// Site_List
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ /// -
+ /// 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 GetSites(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableSiteManagerSubscriptionResource(subscriptionResource).GetSites(cancellationToken);
+ }
+
+ ///
+ /// Get a Site
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// Site_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// Name of Site resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public static async Task> GetSitesBySubscriptionAsync(this SubscriptionResource subscriptionResource, string siteName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return await GetMockableSiteManagerSubscriptionResource(subscriptionResource).GetSitesBySubscriptionAsync(siteName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a Site
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// Site_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// Name of Site resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public static Response GetSitesBySubscription(this SubscriptionResource subscriptionResource, string siteName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableSiteManagerSubscriptionResource(subscriptionResource).GetSitesBySubscription(siteName, cancellationToken);
+ }
+
+ ///
+ /// Create a Site
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// Site_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// 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.
+ /// Name of Site resource.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// , or is null.
+ public static async Task> CreateOrUpdateSitesBySubscriptionAsync(this SubscriptionResource subscriptionResource, WaitUntil waitUntil, string siteName, SiteData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return await GetMockableSiteManagerSubscriptionResource(subscriptionResource).CreateOrUpdateSitesBySubscriptionAsync(waitUntil, siteName, data, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Create a Site
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// Site_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// 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.
+ /// Name of Site resource.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// , or is null.
+ public static ArmOperation CreateOrUpdateSitesBySubscription(this SubscriptionResource subscriptionResource, WaitUntil waitUntil, string siteName, SiteData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableSiteManagerSubscriptionResource(subscriptionResource).CreateOrUpdateSitesBySubscription(waitUntil, siteName, data, cancellationToken);
+ }
+
+ ///
+ /// Update a Site
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Edge/sites/{siteName}
+ ///
+ /// -
+ /// Operation Id
+ /// Site_Update
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01-preview
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// Name of Site resource.
+ /// The resource properties to be updated.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// , or is null.
+ public static async Task> UpdateSitesBySubscriptionAsync(this SubscriptionResource subscriptionResource, string siteName, SiteUpdate properties, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return await GetMockableSiteManagerSubscriptionResource(subscriptionResource).UpdateSitesBySubscriptionAsync(siteName, properties, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Update a Site
+ ///
+ /// -
+ ///