diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/Azure.ResourceManager.HorizonDb.sln b/sdk/horizondb/Azure.ResourceManager.HorizonDb/Azure.ResourceManager.HorizonDb.sln
new file mode 100644
index 000000000000..dec76a40b333
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/Azure.ResourceManager.HorizonDb.sln
@@ -0,0 +1,100 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.0.31903.59
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.HorizonDb", "src\Azure.ResourceManager.HorizonDb.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{0AB3BF05-4346-4AA6-1389-037BE0695223}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.HorizonDb.Tests", "tests\Azure.ResourceManager.HorizonDb.Tests.csproj", "{20747E9E-8810-4844-80E2-BDBCD0673115}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{827E0CD3-B72D-47B6-A68D-7590B98EB39B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{42A789C8-891E-4C6D-B424-EB71A5D42EFF}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Core", "..\..\core\Azure.Core\src\Azure.Core.csproj", "{82EBC374-511C-4932-8EAE-2091694EAB98}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.SdkAnalyzers", "..\..\tools\Azure.SdkAnalyzers\src\Azure.SdkAnalyzers.csproj", "{BE7978B5-1DA1-4936-9A16-6FCE6274050B}"
+EndProject
+Global
+ 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
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|x64.Build.0 = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|x86.Build.0 = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|x64.ActiveCfg = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|x64.Build.0 = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|x86.ActiveCfg = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|x86.Build.0 = Release|Any CPU
+ {20747E9E-8810-4844-80E2-BDBCD0673115}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {20747E9E-8810-4844-80E2-BDBCD0673115}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {20747E9E-8810-4844-80E2-BDBCD0673115}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {20747E9E-8810-4844-80E2-BDBCD0673115}.Debug|x64.Build.0 = Debug|Any CPU
+ {20747E9E-8810-4844-80E2-BDBCD0673115}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {20747E9E-8810-4844-80E2-BDBCD0673115}.Debug|x86.Build.0 = Debug|Any CPU
+ {20747E9E-8810-4844-80E2-BDBCD0673115}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {20747E9E-8810-4844-80E2-BDBCD0673115}.Release|Any CPU.Build.0 = Release|Any CPU
+ {20747E9E-8810-4844-80E2-BDBCD0673115}.Release|x64.ActiveCfg = Release|Any CPU
+ {20747E9E-8810-4844-80E2-BDBCD0673115}.Release|x64.Build.0 = Release|Any CPU
+ {20747E9E-8810-4844-80E2-BDBCD0673115}.Release|x86.ActiveCfg = Release|Any CPU
+ {20747E9E-8810-4844-80E2-BDBCD0673115}.Release|x86.Build.0 = Release|Any CPU
+ {42A789C8-891E-4C6D-B424-EB71A5D42EFF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {42A789C8-891E-4C6D-B424-EB71A5D42EFF}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {42A789C8-891E-4C6D-B424-EB71A5D42EFF}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {42A789C8-891E-4C6D-B424-EB71A5D42EFF}.Debug|x64.Build.0 = Debug|Any CPU
+ {42A789C8-891E-4C6D-B424-EB71A5D42EFF}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {42A789C8-891E-4C6D-B424-EB71A5D42EFF}.Debug|x86.Build.0 = Debug|Any CPU
+ {42A789C8-891E-4C6D-B424-EB71A5D42EFF}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {42A789C8-891E-4C6D-B424-EB71A5D42EFF}.Release|Any CPU.Build.0 = Release|Any CPU
+ {42A789C8-891E-4C6D-B424-EB71A5D42EFF}.Release|x64.ActiveCfg = Release|Any CPU
+ {42A789C8-891E-4C6D-B424-EB71A5D42EFF}.Release|x64.Build.0 = Release|Any CPU
+ {42A789C8-891E-4C6D-B424-EB71A5D42EFF}.Release|x86.ActiveCfg = Release|Any CPU
+ {42A789C8-891E-4C6D-B424-EB71A5D42EFF}.Release|x86.Build.0 = Release|Any CPU
+ {82EBC374-511C-4932-8EAE-2091694EAB98}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {82EBC374-511C-4932-8EAE-2091694EAB98}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {82EBC374-511C-4932-8EAE-2091694EAB98}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {82EBC374-511C-4932-8EAE-2091694EAB98}.Debug|x64.Build.0 = Debug|Any CPU
+ {82EBC374-511C-4932-8EAE-2091694EAB98}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {82EBC374-511C-4932-8EAE-2091694EAB98}.Debug|x86.Build.0 = Debug|Any CPU
+ {82EBC374-511C-4932-8EAE-2091694EAB98}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {82EBC374-511C-4932-8EAE-2091694EAB98}.Release|Any CPU.Build.0 = Release|Any CPU
+ {82EBC374-511C-4932-8EAE-2091694EAB98}.Release|x64.ActiveCfg = Release|Any CPU
+ {82EBC374-511C-4932-8EAE-2091694EAB98}.Release|x64.Build.0 = Release|Any CPU
+ {82EBC374-511C-4932-8EAE-2091694EAB98}.Release|x86.ActiveCfg = Release|Any CPU
+ {82EBC374-511C-4932-8EAE-2091694EAB98}.Release|x86.Build.0 = Release|Any CPU
+ {BE7978B5-1DA1-4936-9A16-6FCE6274050B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {BE7978B5-1DA1-4936-9A16-6FCE6274050B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {BE7978B5-1DA1-4936-9A16-6FCE6274050B}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {BE7978B5-1DA1-4936-9A16-6FCE6274050B}.Debug|x64.Build.0 = Debug|Any CPU
+ {BE7978B5-1DA1-4936-9A16-6FCE6274050B}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {BE7978B5-1DA1-4936-9A16-6FCE6274050B}.Debug|x86.Build.0 = Debug|Any CPU
+ {BE7978B5-1DA1-4936-9A16-6FCE6274050B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {BE7978B5-1DA1-4936-9A16-6FCE6274050B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {BE7978B5-1DA1-4936-9A16-6FCE6274050B}.Release|x64.ActiveCfg = Release|Any CPU
+ {BE7978B5-1DA1-4936-9A16-6FCE6274050B}.Release|x64.Build.0 = Release|Any CPU
+ {BE7978B5-1DA1-4936-9A16-6FCE6274050B}.Release|x86.ActiveCfg = Release|Any CPU
+ {BE7978B5-1DA1-4936-9A16-6FCE6274050B}.Release|x86.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {20747E9E-8810-4844-80E2-BDBCD0673115} = {0AB3BF05-4346-4AA6-1389-037BE0695223}
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE}
+ EndGlobalSection
+EndGlobal
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/CHANGELOG.md b/sdk/horizondb/Azure.ResourceManager.HorizonDb/CHANGELOG.md
new file mode 100644
index 000000000000..f50dd6a1a0bf
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/CHANGELOG.md
@@ -0,0 +1,12 @@
+# Release History
+
+## 1.0.0-beta.1 (Unreleased)
+
+### Features Added
+
+### Breaking Changes
+
+### Bugs Fixed
+
+### Other Changes
+
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/Directory.Build.props b/sdk/horizondb/Azure.ResourceManager.HorizonDb/Directory.Build.props
new file mode 100644
index 000000000000..63bd836ad44b
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/Directory.Build.props
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/README.md b/sdk/horizondb/Azure.ResourceManager.HorizonDb/README.md
new file mode 100644
index 000000000000..864504c899d3
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/README.md
@@ -0,0 +1,80 @@
+# Microsoft Azure HorizonDb 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 HorizonDb management library for .NET with [NuGet](https://www.nuget.org/):
+
+```dotnetcli
+dotnet add package Azure.ResourceManager.HorizonDb --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/
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/metadata.json b/sdk/horizondb/Azure.ResourceManager.HorizonDb/metadata.json
new file mode 100644
index 000000000000..84d39fa0a509
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/metadata.json
@@ -0,0 +1,5 @@
+{
+ "apiVersions": {
+ "Microsoft.HorizonDb": "2026-01-20-preview"
+ }
+}
\ No newline at end of file
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Azure.ResourceManager.HorizonDb.csproj b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Azure.ResourceManager.HorizonDb.csproj
new file mode 100644
index 000000000000..97070e3a2abe
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Azure.ResourceManager.HorizonDb.csproj
@@ -0,0 +1,9 @@
+
+
+ This is the Azure.ResourceManager.HorizonDb client library for developing .NET applications with rich experience.
+ SDK Code Generation Azure.ResourceManager.HorizonDb
+ 1.0.0-beta.1
+ Azure.ResourceManager.HorizonDb
+ true
+
+
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/ArmHorizonDbModelFactory.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/ArmHorizonDbModelFactory.cs
new file mode 100644
index 000000000000..f33d76d10d02
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/ArmHorizonDbModelFactory.cs
@@ -0,0 +1,399 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using Azure;
+using Azure.Core;
+using Azure.ResourceManager.HorizonDb;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.HorizonDb.Models
+{
+ /// A factory class for creating instances of the models for mocking.
+ public static partial class ArmHorizonDbModelFactory
+ {
+
+ /// Represents the HorizonDb cluster.
+ /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ /// The name of the resource.
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
+ /// Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ /// Resource tags.
+ /// The geo-location where the resource lives.
+ /// The resource-specific properties for this resource.
+ /// A new instance for mocking.
+ public static HorizonDbClusterData HorizonDbClusterData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, IDictionary tags = default, AzureLocation location = default, HorizonDbClusterProperties properties = default)
+ {
+ tags ??= new ChangeTrackingDictionary();
+
+ return new HorizonDbClusterData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ additionalBinaryDataProperties: null,
+ tags,
+ location,
+ properties);
+ }
+
+ /// The administrator login name.
+ /// The administrator login password.
+ /// The version of the HorizonDb cluster.
+ /// The mode to create a new HorizonDb cluster.
+ /// Restore point creation time specifying the time to restore from.
+ /// The source cluster resource ID for restore or replica creation.
+ /// The pool name for restore or replica operations.
+ /// Number of replicas.
+ /// Number of vCores.
+ /// The processor type for the HorizonDb cluster.
+ /// The flag indicating whether public ip is requested.
+ /// Current state of the cluster.
+ /// The fully qualified domain name of the cluster.
+ /// The fully qualified domain name used for readonly endpoint for the cluster.
+ /// The provisioning state of the cluster.
+ /// Defines how replicas are placed across availability zones.
+ /// Defines connection to a parameter group.
+ /// A new instance for mocking.
+ public static HorizonDbClusterProperties HorizonDbClusterProperties(string administratorLogin = default, string administratorLoginPassword = default, string version = default, CreateModeCluster? createMode = default, DateTimeOffset? pointInTimeUTC = default, ResourceIdentifier sourceClusterResourceId = default, string poolName = default, int? replicaCount = default, int? vCores = default, string processorType = default, PublicNetworkAccessState? publicNetworkAccess = default, State? state = default, string fullyQualifiedDomainName = default, string readonlyEndpoint = default, ProvisioningState? provisioningState = default, ZonePlacementPolicy? zonePlacementPolicy = default, HorizonDbClusterParameterGroupConnectionProperties parameterGroup = default)
+ {
+ return new HorizonDbClusterProperties(
+ administratorLogin,
+ administratorLoginPassword,
+ version,
+ createMode,
+ pointInTimeUTC,
+ sourceClusterResourceId,
+ poolName,
+ replicaCount,
+ vCores,
+ processorType,
+ publicNetworkAccess is null ? default : new Network(publicNetworkAccess, null),
+ state,
+ fullyQualifiedDomainName,
+ readonlyEndpoint,
+ provisioningState,
+ zonePlacementPolicy,
+ parameterGroup,
+ additionalBinaryDataProperties: null);
+ }
+
+ /// Connection information for HorizonDb parameter group.
+ /// The resource ID of the connected parameter group.
+ /// Indication of if parameter group is applied on HorizonDb resource.
+ /// Indicates whether the parameters should be applied immediately.
+ /// A new instance for mocking.
+ public static HorizonDbClusterParameterGroupConnectionProperties HorizonDbClusterParameterGroupConnectionProperties(ResourceIdentifier id = default, string syncStatus = default, bool? applyImmediately = default)
+ {
+ return new HorizonDbClusterParameterGroupConnectionProperties(id, syncStatus, applyImmediately, additionalBinaryDataProperties: null);
+ }
+
+ /// HorizonDb cluster for update operations.
+ /// Resource tags.
+ /// The properties that can be updated for a HorizonDb cluster.
+ /// A new instance for mocking.
+ public static HorizonDbClusterPatch HorizonDbClusterPatch(IDictionary tags = default, HorizonDbClusterPropertiesForPatchUpdate properties = default)
+ {
+ tags ??= new ChangeTrackingDictionary();
+
+ return new HorizonDbClusterPatch(tags, properties, additionalBinaryDataProperties: null);
+ }
+
+ /// Represents the HorizonDb pool.
+ /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ /// The name of the resource.
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
+ /// Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ /// The resource-specific properties for this resource.
+ /// Resource tags.
+ /// A new instance for mocking.
+ public static HorizonDbPoolData HorizonDbPoolData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, HorizonDbPoolProperties properties = default, IDictionary tags = default)
+ {
+ tags ??= new ChangeTrackingDictionary();
+
+ return new HorizonDbPoolData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ additionalBinaryDataProperties: null,
+ properties,
+ tags);
+ }
+
+ /// Properties of a HorizonDb pool.
+ /// The location of the HorizonDb pool.
+ /// Current state of the pool.
+ /// Number of replicas in the pool.
+ /// The version of the HorizonDb pool.
+ /// The create mode for the pool.
+ /// The provisioning state of the pool.
+ /// A new instance for mocking.
+ public static HorizonDbPoolProperties HorizonDbPoolProperties(AzureLocation? location = default, State? state = default, int? replicaCount = default, string version = default, CreateModePool? createMode = default, ProvisioningState? provisioningState = default)
+ {
+ return new HorizonDbPoolProperties(
+ location,
+ state,
+ replicaCount,
+ version,
+ createMode,
+ provisioningState,
+ additionalBinaryDataProperties: null);
+ }
+
+ /// Represents the HorizonDb replica.
+ /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ /// The name of the resource.
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
+ /// Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ /// The resource-specific properties for this resource.
+ /// A new instance for mocking.
+ public static HorizonDbReplicaData HorizonDbReplicaData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, HorizonDbReplicaProperties properties = default)
+ {
+ return new HorizonDbReplicaData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ additionalBinaryDataProperties: null,
+ properties);
+ }
+
+ /// Properties of a HorizonDb replica.
+ /// Role of the replica.
+ /// Current status of the replica.
+ /// The fully qualified domain name of the replica.
+ /// The availability zone of the replica.
+ /// The provisioning state of the replica.
+ /// A new instance for mocking.
+ public static HorizonDbReplicaProperties HorizonDbReplicaProperties(ReplicaRole? role = default, State? status = default, string fullyQualifiedDomainName = default, string availabilityZone = default, ProvisioningState? provisioningState = default)
+ {
+ return new HorizonDbReplicaProperties(
+ role,
+ status,
+ fullyQualifiedDomainName,
+ availabilityZone,
+ provisioningState,
+ additionalBinaryDataProperties: null);
+ }
+
+ /// Represents the HorizonDb firewall rule.
+ /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ /// The name of the resource.
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
+ /// Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ /// The resource-specific properties for this resource.
+ /// A new instance for mocking.
+ public static HorizonDbFirewallRuleData HorizonDbFirewallRuleData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, HorizonDbFirewallRuleProperties properties = default)
+ {
+ return new HorizonDbFirewallRuleData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ additionalBinaryDataProperties: null,
+ properties);
+ }
+
+ /// Properties of a HorizonDb firewall rule.
+ /// The start IP address of the firewall rule (IPv4).
+ /// The end IP address of the firewall rule (IPv4).
+ /// The description of the HorizonDb firewall rule.
+ /// The provisioning state of the firewall rule.
+ /// A new instance for mocking.
+ public static HorizonDbFirewallRuleProperties HorizonDbFirewallRuleProperties(string startIpAddress = default, string endIpAddress = default, string description = default, ProvisioningState? provisioningState = default)
+ {
+ return new HorizonDbFirewallRuleProperties(startIpAddress, endIpAddress, description, provisioningState, additionalBinaryDataProperties: null);
+ }
+
+ /// A private endpoint connection resource.
+ /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ /// The name of the resource.
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
+ /// Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ /// The private endpoint connection properties.
+ /// A new instance for mocking.
+ public static PrivateEndpointConnectionResourceData PrivateEndpointConnectionResourceData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, PrivateEndpointConnectionProperties properties = default)
+ {
+ return new PrivateEndpointConnectionResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ additionalBinaryDataProperties: null,
+ properties);
+ }
+
+ /// The group ids for the private endpoint resource.
+ /// The resource identifier of the private endpoint.
+ /// A collection of information about the state of the connection between service consumer and provider.
+ /// The provisioning state of the private endpoint connection resource.
+ /// A new instance for mocking.
+ public static PrivateEndpointConnectionProperties PrivateEndpointConnectionProperties(IEnumerable groupIds = default, ResourceIdentifier privateEndpointId = default, HorizonDbPrivateLinkServiceConnectionState privateLinkServiceConnectionState = default, HorizonDbPrivateEndpointConnectionProvisioningState? provisioningState = default)
+ {
+ groupIds ??= new ChangeTrackingList();
+
+ return new PrivateEndpointConnectionProperties(groupIds.ToList(), privateEndpointId is null ? default : new PrivateEndpoint(privateEndpointId, null), privateLinkServiceConnectionState, provisioningState, additionalBinaryDataProperties: null);
+ }
+
+ /// The private endpoint connection resource.
+ /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ /// The name of the resource.
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
+ /// Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ /// The private endpoint connection properties.
+ /// A new instance for mocking.
+ public static HorizonDbPrivateEndpointConnection HorizonDbPrivateEndpointConnection(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, PrivateEndpointConnectionProperties properties = default)
+ {
+ return new HorizonDbPrivateEndpointConnection(
+ id,
+ name,
+ resourceType,
+ systemData,
+ additionalBinaryDataProperties: null,
+ properties);
+ }
+
+ /// Represents the HorizonDb private link resource.
+ /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ /// The name of the resource.
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
+ /// Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ /// The resource-specific properties for this resource.
+ /// A new instance for mocking.
+ public static HorizonDbPrivateLinkResourceData HorizonDbPrivateLinkResourceData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, HorizonDbPrivateLinkResourceProperties properties = default)
+ {
+ return new HorizonDbPrivateLinkResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ additionalBinaryDataProperties: null,
+ properties);
+ }
+
+ /// Properties of a private link resource.
+ /// The private link resource group id.
+ /// The private link resource required member names.
+ /// The private link resource private link DNS zone name.
+ /// A new instance for mocking.
+ public static HorizonDbPrivateLinkResourceProperties HorizonDbPrivateLinkResourceProperties(string groupId = default, IEnumerable requiredMembers = default, IEnumerable requiredZoneNames = default)
+ {
+ requiredMembers ??= new ChangeTrackingList();
+ requiredZoneNames ??= new ChangeTrackingList();
+
+ return new HorizonDbPrivateLinkResourceProperties(groupId, requiredMembers.ToList(), requiredZoneNames.ToList(), additionalBinaryDataProperties: null);
+ }
+
+ /// Represents the HorizonDb parameter group.
+ /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ /// The name of the resource.
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
+ /// Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ /// Resource tags.
+ /// The geo-location where the resource lives.
+ /// The resource-specific properties for this resource.
+ /// A new instance for mocking.
+ public static HorizonDbParameterGroupData HorizonDbParameterGroupData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, IDictionary tags = default, AzureLocation location = default, HorizonDbParameterGroupProperties properties = default)
+ {
+ tags ??= new ChangeTrackingDictionary();
+
+ return new HorizonDbParameterGroupData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ additionalBinaryDataProperties: null,
+ tags,
+ location,
+ properties);
+ }
+
+ /// Properties of a HorizonDb parameter group.
+ /// Parameters in the parameter group.
+ /// Description of the parameter group.
+ /// PostgreSQL version for the parameter group.
+ /// Current version of the parameter group.
+ /// Indicates whether the parameters should be applied immediately.
+ /// The provisioning state of the parameter group.
+ /// A new instance for mocking.
+ public static HorizonDbParameterGroupProperties HorizonDbParameterGroupProperties(IEnumerable parameters = default, string description = default, int? pgVersion = default, int? version = default, bool? applyImmediately = default, ProvisioningState? provisioningState = default)
+ {
+ parameters ??= new ChangeTrackingList();
+
+ return new HorizonDbParameterGroupProperties(
+ parameters.ToList(),
+ description,
+ pgVersion,
+ version,
+ applyImmediately,
+ provisioningState,
+ additionalBinaryDataProperties: null);
+ }
+
+ /// Properties of a HorizonDb parameters.
+ /// The name of the parameter.
+ /// The description of the parameter.
+ /// The value of the configuration.
+ /// The data type of the parameter.
+ /// The allowed values for the parameter.
+ /// Whether the parameter can be changed dynamically.
+ /// Whether the parameter is a read-only parameter.
+ /// Link to parameter documentation.
+ /// The unit of measurement for the parameter.
+ /// A new instance for mocking.
+ public static ParameterProperties ParameterProperties(string name = default, string description = default, string value = default, string dataType = default, string allowedValues = default, bool? isDynamic = default, bool? isReadOnly = default, Uri documentationLink = default, string unit = default)
+ {
+ return new ParameterProperties(
+ name,
+ description,
+ value,
+ dataType,
+ allowedValues,
+ isDynamic,
+ isReadOnly,
+ documentationLink,
+ unit,
+ additionalBinaryDataProperties: null);
+ }
+
+ /// HorizonDb parameter group for update operations.
+ /// Resource tags.
+ /// The properties that can be updated for a HorizonDb parameter group.
+ /// A new instance for mocking.
+ public static HorizonDbParameterGroupPatch HorizonDbParameterGroupPatch(IDictionary tags = default, HorizonDbParameterGroupPropertiesForPatchUpdate properties = default)
+ {
+ tags ??= new ChangeTrackingDictionary();
+
+ return new HorizonDbParameterGroupPatch(tags, properties, additionalBinaryDataProperties: null);
+ }
+
+ /// Properties of a HorizonDb parameter group for update operations.
+ /// Parameters in the parameter group.
+ /// Description of the parameter group.
+ /// Indicates whether the parameters should be applied immediately.
+ /// A new instance for mocking.
+ public static HorizonDbParameterGroupPropertiesForPatchUpdate HorizonDbParameterGroupPropertiesForPatchUpdate(IEnumerable parameters = default, string description = default, bool? applyImmediately = default)
+ {
+ parameters ??= new ChangeTrackingList();
+
+ return new HorizonDbParameterGroupPropertiesForPatchUpdate(parameters.ToList(), description, applyImmediately, additionalBinaryDataProperties: null);
+ }
+
+ /// Connection information for HorizonDb parameter group.
+ /// The name of the connected resource.
+ /// The resource ID of the connected resource.
+ /// The type of the resource.
+ /// A new instance for mocking.
+ public static HorizonDbParameterGroupConnectionProperties HorizonDbParameterGroupConnectionProperties(string name = default, ResourceIdentifier id = default, string @type = default)
+ {
+ return new HorizonDbParameterGroupConnectionProperties(name, id, @type, additionalBinaryDataProperties: null);
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupAsyncCollectionResultOfT.cs
new file mode 100644
index 000000000000..4973cdd85711
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupAsyncCollectionResultOfT.cs
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbClustersGetByResourceGroupAsyncCollectionResultOfT : AsyncPageable
+ {
+ private readonly HorizonDbClusters _client;
+ private readonly Guid _subscriptionId;
+ private readonly string _resourceGroupName;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbClustersGetByResourceGroupAsyncCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbClusters client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbClustersGetByResourceGroupAsyncCollectionResultOfT(HorizonDbClusters client, Guid subscriptionId, string resourceGroupName, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _resourceGroupName = resourceGroupName;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbClustersGetByResourceGroupAsyncCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbClustersGetByResourceGroupAsyncCollectionResultOfT as an enumerable collection.
+ public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = await GetNextResponseAsync(pageSizeHint, nextPage).ConfigureAwait(false);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbClusterListResult result = HorizonDbClusterListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private async ValueTask GetNextResponseAsync(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetByResourceGroupRequest(nextLink, _subscriptionId, _resourceGroupName, _context) : _client.CreateGetByResourceGroupRequest(_subscriptionId, _resourceGroupName, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("HorizonDbClusterCollection.GetAll");
+ scope.Start();
+ try
+ {
+ return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupCollectionResultOfT.cs
new file mode 100644
index 000000000000..428b507c0092
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetByResourceGroupCollectionResultOfT.cs
@@ -0,0 +1,80 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbClustersGetByResourceGroupCollectionResultOfT : Pageable
+ {
+ private readonly HorizonDbClusters _client;
+ private readonly Guid _subscriptionId;
+ private readonly string _resourceGroupName;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbClustersGetByResourceGroupCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbClusters client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbClustersGetByResourceGroupCollectionResultOfT(HorizonDbClusters client, Guid subscriptionId, string resourceGroupName, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _resourceGroupName = resourceGroupName;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbClustersGetByResourceGroupCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbClustersGetByResourceGroupCollectionResultOfT as an enumerable collection.
+ public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = GetNextResponse(pageSizeHint, nextPage);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbClusterListResult result = HorizonDbClusterListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private Response GetNextResponse(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetByResourceGroupRequest(nextLink, _subscriptionId, _resourceGroupName, _context) : _client.CreateGetByResourceGroupRequest(_subscriptionId, _resourceGroupName, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("HorizonDbClusterCollection.GetAll");
+ scope.Start();
+ try
+ {
+ return _client.Pipeline.ProcessMessage(message, _context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionAsyncCollectionResultOfT.cs
new file mode 100644
index 000000000000..74857dfdf62e
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionAsyncCollectionResultOfT.cs
@@ -0,0 +1,78 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbClustersGetBySubscriptionAsyncCollectionResultOfT : AsyncPageable
+ {
+ private readonly HorizonDbClusters _client;
+ private readonly Guid _subscriptionId;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbClustersGetBySubscriptionAsyncCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbClusters client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbClustersGetBySubscriptionAsyncCollectionResultOfT(HorizonDbClusters client, Guid subscriptionId, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbClustersGetBySubscriptionAsyncCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbClustersGetBySubscriptionAsyncCollectionResultOfT as an enumerable collection.
+ public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = await GetNextResponseAsync(pageSizeHint, nextPage).ConfigureAwait(false);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbClusterListResult result = HorizonDbClusterListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private async ValueTask GetNextResponseAsync(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetBySubscriptionRequest(nextLink, _subscriptionId, _context) : _client.CreateGetBySubscriptionRequest(_subscriptionId, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("MockableHorizonDbSubscriptionResource.GetHorizonDbClusters");
+ scope.Start();
+ try
+ {
+ return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionCollectionResultOfT.cs
new file mode 100644
index 000000000000..17b03182afd5
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbClustersGetBySubscriptionCollectionResultOfT.cs
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbClustersGetBySubscriptionCollectionResultOfT : Pageable
+ {
+ private readonly HorizonDbClusters _client;
+ private readonly Guid _subscriptionId;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbClustersGetBySubscriptionCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbClusters client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbClustersGetBySubscriptionCollectionResultOfT(HorizonDbClusters client, Guid subscriptionId, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbClustersGetBySubscriptionCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbClustersGetBySubscriptionCollectionResultOfT as an enumerable collection.
+ public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = GetNextResponse(pageSizeHint, nextPage);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbClusterListResult result = HorizonDbClusterListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private Response GetNextResponse(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetBySubscriptionRequest(nextLink, _subscriptionId, _context) : _client.CreateGetBySubscriptionRequest(_subscriptionId, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("MockableHorizonDbSubscriptionResource.GetHorizonDbClusters");
+ scope.Start();
+ try
+ {
+ return _client.Pipeline.ProcessMessage(message, _context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT.cs
new file mode 100644
index 000000000000..a02d91ff1370
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT.cs
@@ -0,0 +1,87 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT : AsyncPageable
+ {
+ private readonly HorizonDbFirewallRules _client;
+ private readonly Guid _subscriptionId;
+ private readonly string _resourceGroupName;
+ private readonly string _clusterName;
+ private readonly string _poolName;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbFirewallRules client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The name of the HorizonDb cluster.
+ /// The name of the HorizonDb pool.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT(HorizonDbFirewallRules client, Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _resourceGroupName = resourceGroupName;
+ _clusterName = clusterName;
+ _poolName = poolName;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbFirewallRulesGetAllAsyncCollectionResultOfT as an enumerable collection.
+ public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = await GetNextResponseAsync(pageSizeHint, nextPage).ConfigureAwait(false);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbFirewallRuleListResult result = HorizonDbFirewallRuleListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private async ValueTask GetNextResponseAsync(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetAllRequest(nextLink, _subscriptionId, _resourceGroupName, _clusterName, _poolName, _context) : _client.CreateGetAllRequest(_subscriptionId, _resourceGroupName, _clusterName, _poolName, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.GetAll");
+ scope.Start();
+ try
+ {
+ return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllCollectionResultOfT.cs
new file mode 100644
index 000000000000..93d3064d97cd
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbFirewallRulesGetAllCollectionResultOfT.cs
@@ -0,0 +1,86 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbFirewallRulesGetAllCollectionResultOfT : Pageable
+ {
+ private readonly HorizonDbFirewallRules _client;
+ private readonly Guid _subscriptionId;
+ private readonly string _resourceGroupName;
+ private readonly string _clusterName;
+ private readonly string _poolName;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbFirewallRulesGetAllCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbFirewallRules client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The name of the HorizonDb cluster.
+ /// The name of the HorizonDb pool.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbFirewallRulesGetAllCollectionResultOfT(HorizonDbFirewallRules client, Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _resourceGroupName = resourceGroupName;
+ _clusterName = clusterName;
+ _poolName = poolName;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbFirewallRulesGetAllCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbFirewallRulesGetAllCollectionResultOfT as an enumerable collection.
+ public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = GetNextResponse(pageSizeHint, nextPage);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbFirewallRuleListResult result = HorizonDbFirewallRuleListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private Response GetNextResponse(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetAllRequest(nextLink, _subscriptionId, _resourceGroupName, _clusterName, _poolName, _context) : _client.CreateGetAllRequest(_subscriptionId, _resourceGroupName, _clusterName, _poolName, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("HorizonDbFirewallRuleCollection.GetAll");
+ scope.Start();
+ try
+ {
+ return _client.Pipeline.ProcessMessage(message, _context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT.cs
new file mode 100644
index 000000000000..29bd5254e325
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT.cs
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT : AsyncPageable
+ {
+ private readonly HorizonDbParameterGroups _client;
+ private readonly Guid _subscriptionId;
+ private readonly string _resourceGroupName;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbParameterGroups client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT(HorizonDbParameterGroups client, Guid subscriptionId, string resourceGroupName, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _resourceGroupName = resourceGroupName;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbParameterGroupsGetByResourceGroupAsyncCollectionResultOfT as an enumerable collection.
+ public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = await GetNextResponseAsync(pageSizeHint, nextPage).ConfigureAwait(false);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbParameterGroupListResult result = HorizonDbParameterGroupListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private async ValueTask GetNextResponseAsync(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetByResourceGroupRequest(nextLink, _subscriptionId, _resourceGroupName, _context) : _client.CreateGetByResourceGroupRequest(_subscriptionId, _resourceGroupName, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.GetAll");
+ scope.Start();
+ try
+ {
+ return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT.cs
new file mode 100644
index 000000000000..2de3f2335d9e
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT.cs
@@ -0,0 +1,80 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT : Pageable
+ {
+ private readonly HorizonDbParameterGroups _client;
+ private readonly Guid _subscriptionId;
+ private readonly string _resourceGroupName;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbParameterGroups client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT(HorizonDbParameterGroups client, Guid subscriptionId, string resourceGroupName, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _resourceGroupName = resourceGroupName;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbParameterGroupsGetByResourceGroupCollectionResultOfT as an enumerable collection.
+ public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = GetNextResponse(pageSizeHint, nextPage);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbParameterGroupListResult result = HorizonDbParameterGroupListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private Response GetNextResponse(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetByResourceGroupRequest(nextLink, _subscriptionId, _resourceGroupName, _context) : _client.CreateGetByResourceGroupRequest(_subscriptionId, _resourceGroupName, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("HorizonDbParameterGroupCollection.GetAll");
+ scope.Start();
+ try
+ {
+ return _client.Pipeline.ProcessMessage(message, _context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionAsyncCollectionResultOfT.cs
new file mode 100644
index 000000000000..abba06e0c003
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionAsyncCollectionResultOfT.cs
@@ -0,0 +1,78 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbParameterGroupsGetBySubscriptionAsyncCollectionResultOfT : AsyncPageable
+ {
+ private readonly HorizonDbParameterGroups _client;
+ private readonly Guid _subscriptionId;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbParameterGroupsGetBySubscriptionAsyncCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbParameterGroups client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbParameterGroupsGetBySubscriptionAsyncCollectionResultOfT(HorizonDbParameterGroups client, Guid subscriptionId, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbParameterGroupsGetBySubscriptionAsyncCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbParameterGroupsGetBySubscriptionAsyncCollectionResultOfT as an enumerable collection.
+ public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = await GetNextResponseAsync(pageSizeHint, nextPage).ConfigureAwait(false);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbParameterGroupListResult result = HorizonDbParameterGroupListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private async ValueTask GetNextResponseAsync(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetBySubscriptionRequest(nextLink, _subscriptionId, _context) : _client.CreateGetBySubscriptionRequest(_subscriptionId, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("MockableHorizonDbSubscriptionResource.GetHorizonDbParameterGroups");
+ scope.Start();
+ try
+ {
+ return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionCollectionResultOfT.cs
new file mode 100644
index 000000000000..b4f2693fa72f
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetBySubscriptionCollectionResultOfT.cs
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbParameterGroupsGetBySubscriptionCollectionResultOfT : Pageable
+ {
+ private readonly HorizonDbParameterGroups _client;
+ private readonly Guid _subscriptionId;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbParameterGroupsGetBySubscriptionCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbParameterGroups client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbParameterGroupsGetBySubscriptionCollectionResultOfT(HorizonDbParameterGroups client, Guid subscriptionId, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbParameterGroupsGetBySubscriptionCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbParameterGroupsGetBySubscriptionCollectionResultOfT as an enumerable collection.
+ public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = GetNextResponse(pageSizeHint, nextPage);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbParameterGroupListResult result = HorizonDbParameterGroupListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private Response GetNextResponse(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetBySubscriptionRequest(nextLink, _subscriptionId, _context) : _client.CreateGetBySubscriptionRequest(_subscriptionId, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("MockableHorizonDbSubscriptionResource.GetHorizonDbParameterGroups");
+ scope.Start();
+ try
+ {
+ return _client.Pipeline.ProcessMessage(message, _context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT.cs
new file mode 100644
index 000000000000..c401a501c2fc
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT.cs
@@ -0,0 +1,84 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT : AsyncPageable
+ {
+ private readonly HorizonDbParameterGroups _client;
+ private readonly Guid _subscriptionId;
+ private readonly string _resourceGroupName;
+ private readonly string _parameterGroupName;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbParameterGroups client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The name of the HorizonDb parameter group.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT(HorizonDbParameterGroups client, Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _resourceGroupName = resourceGroupName;
+ _parameterGroupName = parameterGroupName;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbParameterGroupsGetConnectionsAsyncCollectionResultOfT as an enumerable collection.
+ public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = await GetNextResponseAsync(pageSizeHint, nextPage).ConfigureAwait(false);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbParameterGroupConnectionPropertiesListResult result = HorizonDbParameterGroupConnectionPropertiesListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private async ValueTask GetNextResponseAsync(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetConnectionsRequest(nextLink, _subscriptionId, _resourceGroupName, _parameterGroupName, _context) : _client.CreateGetConnectionsRequest(_subscriptionId, _resourceGroupName, _parameterGroupName, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.GetConnections");
+ scope.Start();
+ try
+ {
+ return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsCollectionResultOfT.cs
new file mode 100644
index 000000000000..d78e272e03b4
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetConnectionsCollectionResultOfT.cs
@@ -0,0 +1,83 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbParameterGroupsGetConnectionsCollectionResultOfT : Pageable
+ {
+ private readonly HorizonDbParameterGroups _client;
+ private readonly Guid _subscriptionId;
+ private readonly string _resourceGroupName;
+ private readonly string _parameterGroupName;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbParameterGroupsGetConnectionsCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbParameterGroups client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The name of the HorizonDb parameter group.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbParameterGroupsGetConnectionsCollectionResultOfT(HorizonDbParameterGroups client, Guid subscriptionId, string resourceGroupName, string parameterGroupName, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _resourceGroupName = resourceGroupName;
+ _parameterGroupName = parameterGroupName;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbParameterGroupsGetConnectionsCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbParameterGroupsGetConnectionsCollectionResultOfT as an enumerable collection.
+ public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = GetNextResponse(pageSizeHint, nextPage);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbParameterGroupConnectionPropertiesListResult result = HorizonDbParameterGroupConnectionPropertiesListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private Response GetNextResponse(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetConnectionsRequest(nextLink, _subscriptionId, _resourceGroupName, _parameterGroupName, _context) : _client.CreateGetConnectionsRequest(_subscriptionId, _resourceGroupName, _parameterGroupName, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.GetConnections");
+ scope.Start();
+ try
+ {
+ return _client.Pipeline.ProcessMessage(message, _context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT.cs
new file mode 100644
index 000000000000..bc9dffbaca82
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT.cs
@@ -0,0 +1,87 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT : AsyncPageable
+ {
+ private readonly HorizonDbParameterGroups _client;
+ private readonly Guid _subscriptionId;
+ private readonly string _resourceGroupName;
+ private readonly string _parameterGroupName;
+ private readonly int? _version;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbParameterGroups client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The name of the HorizonDb parameter group.
+ /// The version number to filter by.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT(HorizonDbParameterGroups client, Guid subscriptionId, string resourceGroupName, string parameterGroupName, int? version, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _resourceGroupName = resourceGroupName;
+ _parameterGroupName = parameterGroupName;
+ _version = version;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbParameterGroupsGetVersionsAsyncCollectionResultOfT as an enumerable collection.
+ public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = await GetNextResponseAsync(pageSizeHint, nextPage).ConfigureAwait(false);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbParameterGroupListResult result = HorizonDbParameterGroupListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private async ValueTask GetNextResponseAsync(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetVersionsRequest(nextLink, _subscriptionId, _resourceGroupName, _parameterGroupName, _version, _context) : _client.CreateGetVersionsRequest(_subscriptionId, _resourceGroupName, _parameterGroupName, _version, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.GetVersions");
+ scope.Start();
+ try
+ {
+ return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsCollectionResultOfT.cs
new file mode 100644
index 000000000000..4988e58e06e2
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbParameterGroupsGetVersionsCollectionResultOfT.cs
@@ -0,0 +1,86 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbParameterGroupsGetVersionsCollectionResultOfT : Pageable
+ {
+ private readonly HorizonDbParameterGroups _client;
+ private readonly Guid _subscriptionId;
+ private readonly string _resourceGroupName;
+ private readonly string _parameterGroupName;
+ private readonly int? _version;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbParameterGroupsGetVersionsCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbParameterGroups client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The name of the HorizonDb parameter group.
+ /// The version number to filter by.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbParameterGroupsGetVersionsCollectionResultOfT(HorizonDbParameterGroups client, Guid subscriptionId, string resourceGroupName, string parameterGroupName, int? version, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _resourceGroupName = resourceGroupName;
+ _parameterGroupName = parameterGroupName;
+ _version = version;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbParameterGroupsGetVersionsCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbParameterGroupsGetVersionsCollectionResultOfT as an enumerable collection.
+ public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = GetNextResponse(pageSizeHint, nextPage);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbParameterGroupListResult result = HorizonDbParameterGroupListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private Response GetNextResponse(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetVersionsRequest(nextLink, _subscriptionId, _resourceGroupName, _parameterGroupName, _version, _context) : _client.CreateGetVersionsRequest(_subscriptionId, _resourceGroupName, _parameterGroupName, _version, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("HorizonDbParameterGroupResource.GetVersions");
+ scope.Start();
+ try
+ {
+ return _client.Pipeline.ProcessMessage(message, _context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPoolsGetAllAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPoolsGetAllAsyncCollectionResultOfT.cs
new file mode 100644
index 000000000000..aed64fdf814a
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPoolsGetAllAsyncCollectionResultOfT.cs
@@ -0,0 +1,84 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbPoolsGetAllAsyncCollectionResultOfT : AsyncPageable
+ {
+ private readonly HorizonDbPools _client;
+ private readonly Guid _subscriptionId;
+ private readonly string _resourceGroupName;
+ private readonly string _clusterName;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbPoolsGetAllAsyncCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbPools client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The name of the HorizonDb cluster.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbPoolsGetAllAsyncCollectionResultOfT(HorizonDbPools client, Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _resourceGroupName = resourceGroupName;
+ _clusterName = clusterName;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbPoolsGetAllAsyncCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbPoolsGetAllAsyncCollectionResultOfT as an enumerable collection.
+ public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = await GetNextResponseAsync(pageSizeHint, nextPage).ConfigureAwait(false);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbPoolListResult result = HorizonDbPoolListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private async ValueTask GetNextResponseAsync(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetAllRequest(nextLink, _subscriptionId, _resourceGroupName, _clusterName, _context) : _client.CreateGetAllRequest(_subscriptionId, _resourceGroupName, _clusterName, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("HorizonDbPoolCollection.GetAll");
+ scope.Start();
+ try
+ {
+ return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPoolsGetAllCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPoolsGetAllCollectionResultOfT.cs
new file mode 100644
index 000000000000..526ef04957c5
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPoolsGetAllCollectionResultOfT.cs
@@ -0,0 +1,83 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbPoolsGetAllCollectionResultOfT : Pageable
+ {
+ private readonly HorizonDbPools _client;
+ private readonly Guid _subscriptionId;
+ private readonly string _resourceGroupName;
+ private readonly string _clusterName;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbPoolsGetAllCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbPools client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The name of the HorizonDb cluster.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbPoolsGetAllCollectionResultOfT(HorizonDbPools client, Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _resourceGroupName = resourceGroupName;
+ _clusterName = clusterName;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbPoolsGetAllCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbPoolsGetAllCollectionResultOfT as an enumerable collection.
+ public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = GetNextResponse(pageSizeHint, nextPage);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbPoolListResult result = HorizonDbPoolListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private Response GetNextResponse(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetAllRequest(nextLink, _subscriptionId, _resourceGroupName, _clusterName, _context) : _client.CreateGetAllRequest(_subscriptionId, _resourceGroupName, _clusterName, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("HorizonDbPoolCollection.GetAll");
+ scope.Start();
+ try
+ {
+ return _client.Pipeline.ProcessMessage(message, _context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT.cs
new file mode 100644
index 000000000000..c94ea3c1a1ee
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT.cs
@@ -0,0 +1,84 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT : AsyncPageable
+ {
+ private readonly HorizonDbPrivateEndpointConnections _client;
+ private readonly Guid _subscriptionId;
+ private readonly string _resourceGroupName;
+ private readonly string _clusterName;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbPrivateEndpointConnections client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The name of the HorizonDb cluster.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT(HorizonDbPrivateEndpointConnections client, Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _resourceGroupName = resourceGroupName;
+ _clusterName = clusterName;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbPrivateEndpointConnectionsGetAllAsyncCollectionResultOfT as an enumerable collection.
+ public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = await GetNextResponseAsync(pageSizeHint, nextPage).ConfigureAwait(false);
+ if (response is null)
+ {
+ yield break;
+ }
+ PrivateEndpointConnectionResourceListResult result = PrivateEndpointConnectionResourceListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private async ValueTask GetNextResponseAsync(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetAllRequest(nextLink, _subscriptionId, _resourceGroupName, _clusterName, _context) : _client.CreateGetAllRequest(_subscriptionId, _resourceGroupName, _clusterName, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.GetAll");
+ scope.Start();
+ try
+ {
+ return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT.cs
new file mode 100644
index 000000000000..f8f80a2dece4
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT.cs
@@ -0,0 +1,83 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT : Pageable
+ {
+ private readonly HorizonDbPrivateEndpointConnections _client;
+ private readonly Guid _subscriptionId;
+ private readonly string _resourceGroupName;
+ private readonly string _clusterName;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbPrivateEndpointConnections client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The name of the HorizonDb cluster.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT(HorizonDbPrivateEndpointConnections client, Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _resourceGroupName = resourceGroupName;
+ _clusterName = clusterName;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbPrivateEndpointConnectionsGetAllCollectionResultOfT as an enumerable collection.
+ public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = GetNextResponse(pageSizeHint, nextPage);
+ if (response is null)
+ {
+ yield break;
+ }
+ PrivateEndpointConnectionResourceListResult result = PrivateEndpointConnectionResourceListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private Response GetNextResponse(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetAllRequest(nextLink, _subscriptionId, _resourceGroupName, _clusterName, _context) : _client.CreateGetAllRequest(_subscriptionId, _resourceGroupName, _clusterName, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.GetAll");
+ scope.Start();
+ try
+ {
+ return _client.Pipeline.ProcessMessage(message, _context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT.cs
new file mode 100644
index 000000000000..b2552fd64e60
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT.cs
@@ -0,0 +1,84 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT : AsyncPageable
+ {
+ private readonly HorizonDbPrivateLinkResources _client;
+ private readonly Guid _subscriptionId;
+ private readonly string _resourceGroupName;
+ private readonly string _clusterName;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbPrivateLinkResources client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The name of the HorizonDb cluster.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT(HorizonDbPrivateLinkResources client, Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _resourceGroupName = resourceGroupName;
+ _clusterName = clusterName;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbPrivateLinkResourcesGetAllAsyncCollectionResultOfT as an enumerable collection.
+ public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = await GetNextResponseAsync(pageSizeHint, nextPage).ConfigureAwait(false);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbPrivateLinkResourceListResult result = HorizonDbPrivateLinkResourceListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private async ValueTask GetNextResponseAsync(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetAllRequest(nextLink, _subscriptionId, _resourceGroupName, _clusterName, _context) : _client.CreateGetAllRequest(_subscriptionId, _resourceGroupName, _clusterName, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.GetAll");
+ scope.Start();
+ try
+ {
+ return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT.cs
new file mode 100644
index 000000000000..8cd54c6fddae
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT.cs
@@ -0,0 +1,83 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT : Pageable
+ {
+ private readonly HorizonDbPrivateLinkResources _client;
+ private readonly Guid _subscriptionId;
+ private readonly string _resourceGroupName;
+ private readonly string _clusterName;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbPrivateLinkResources client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The name of the HorizonDb cluster.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT(HorizonDbPrivateLinkResources client, Guid subscriptionId, string resourceGroupName, string clusterName, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _resourceGroupName = resourceGroupName;
+ _clusterName = clusterName;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbPrivateLinkResourcesGetAllCollectionResultOfT as an enumerable collection.
+ public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = GetNextResponse(pageSizeHint, nextPage);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbPrivateLinkResourceListResult result = HorizonDbPrivateLinkResourceListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private Response GetNextResponse(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetAllRequest(nextLink, _subscriptionId, _resourceGroupName, _clusterName, _context) : _client.CreateGetAllRequest(_subscriptionId, _resourceGroupName, _clusterName, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("HorizonDbPrivateLinkResourceCollection.GetAll");
+ scope.Start();
+ try
+ {
+ return _client.Pipeline.ProcessMessage(message, _context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbReplicasGetAllAsyncCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbReplicasGetAllAsyncCollectionResultOfT.cs
new file mode 100644
index 000000000000..52fa72d367eb
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbReplicasGetAllAsyncCollectionResultOfT.cs
@@ -0,0 +1,87 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbReplicasGetAllAsyncCollectionResultOfT : AsyncPageable
+ {
+ private readonly HorizonDbReplicas _client;
+ private readonly Guid _subscriptionId;
+ private readonly string _resourceGroupName;
+ private readonly string _clusterName;
+ private readonly string _poolName;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbReplicasGetAllAsyncCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbReplicas client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The name of the HorizonDb cluster.
+ /// The name of the HorizonDb pool.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbReplicasGetAllAsyncCollectionResultOfT(HorizonDbReplicas client, Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _resourceGroupName = resourceGroupName;
+ _clusterName = clusterName;
+ _poolName = poolName;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbReplicasGetAllAsyncCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbReplicasGetAllAsyncCollectionResultOfT as an enumerable collection.
+ public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = await GetNextResponseAsync(pageSizeHint, nextPage).ConfigureAwait(false);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbReplicaListResult result = HorizonDbReplicaListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private async ValueTask GetNextResponseAsync(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetAllRequest(nextLink, _subscriptionId, _resourceGroupName, _clusterName, _poolName, _context) : _client.CreateGetAllRequest(_subscriptionId, _resourceGroupName, _clusterName, _poolName, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("HorizonDbReplicaCollection.GetAll");
+ scope.Start();
+ try
+ {
+ return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbReplicasGetAllCollectionResultOfT.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbReplicasGetAllCollectionResultOfT.cs
new file mode 100644
index 000000000000..f8840a80d175
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/CollectionResults/HorizonDbReplicasGetAllCollectionResultOfT.cs
@@ -0,0 +1,86 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.HorizonDb.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ internal partial class HorizonDbReplicasGetAllCollectionResultOfT : Pageable
+ {
+ private readonly HorizonDbReplicas _client;
+ private readonly Guid _subscriptionId;
+ private readonly string _resourceGroupName;
+ private readonly string _clusterName;
+ private readonly string _poolName;
+ private readonly RequestContext _context;
+
+ /// Initializes a new instance of HorizonDbReplicasGetAllCollectionResultOfT, which is used to iterate over the pages of a collection.
+ /// The HorizonDbReplicas client used to send requests.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The name of the HorizonDb cluster.
+ /// The name of the HorizonDb pool.
+ /// The request options, which can override default behaviors of the client pipeline on a per-call basis.
+ public HorizonDbReplicasGetAllCollectionResultOfT(HorizonDbReplicas client, Guid subscriptionId, string resourceGroupName, string clusterName, string poolName, RequestContext context) : base(context?.CancellationToken ?? default)
+ {
+ _client = client;
+ _subscriptionId = subscriptionId;
+ _resourceGroupName = resourceGroupName;
+ _clusterName = clusterName;
+ _poolName = poolName;
+ _context = context;
+ }
+
+ /// Gets the pages of HorizonDbReplicasGetAllCollectionResultOfT as an enumerable collection.
+ /// A continuation token indicating where to resume paging.
+ /// The number of items per page.
+ /// The pages of HorizonDbReplicasGetAllCollectionResultOfT as an enumerable collection.
+ public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint)
+ {
+ Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null;
+ while (true)
+ {
+ Response response = GetNextResponse(pageSizeHint, nextPage);
+ if (response is null)
+ {
+ yield break;
+ }
+ HorizonDbReplicaListResult result = HorizonDbReplicaListResult.FromResponse(response);
+ yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.IsAbsoluteUri == true ? nextPage.AbsoluteUri : nextPage?.OriginalString, response);
+ nextPage = result.NextLink;
+ if (nextPage == null)
+ {
+ yield break;
+ }
+ }
+ }
+
+ /// Get next page.
+ /// The number of items per page.
+ /// The next link to use for the next page of results.
+ private Response GetNextResponse(int? pageSizeHint, Uri nextLink)
+ {
+ HttpMessage message = nextLink != null ? _client.CreateNextGetAllRequest(nextLink, _subscriptionId, _resourceGroupName, _clusterName, _poolName, _context) : _client.CreateGetAllRequest(_subscriptionId, _resourceGroupName, _clusterName, _poolName, _context);
+ using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("HorizonDbReplicaCollection.GetAll");
+ scope.Start();
+ try
+ {
+ return _client.Pipeline.ProcessMessage(message, _context);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/HorizonDbExtensions.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/HorizonDbExtensions.cs
new file mode 100644
index 000000000000..6b72e22a17a1
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/HorizonDbExtensions.cs
@@ -0,0 +1,427 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.ResourceManager;
+using Azure.ResourceManager.HorizonDb.Mocking;
+using Azure.ResourceManager.HorizonDb.Models;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ /// A class to add extension methods to Azure.ResourceManager.HorizonDb.
+ public static partial class HorizonDbExtensions
+ {
+ ///
+ private static MockableHorizonDbArmClient GetMockableHorizonDbArmClient(ArmClient client)
+ {
+ return client.GetCachedClient(client0 => new MockableHorizonDbArmClient(client0, ResourceIdentifier.Root));
+ }
+
+ ///
+ private static MockableHorizonDbResourceGroupResource GetMockableHorizonDbResourceGroupResource(ResourceGroupResource resourceGroupResource)
+ {
+ return resourceGroupResource.GetCachedClient(client => new MockableHorizonDbResourceGroupResource(client, resourceGroupResource.Id));
+ }
+
+ ///
+ private static MockableHorizonDbSubscriptionResource GetMockableHorizonDbSubscriptionResource(SubscriptionResource subscriptionResource)
+ {
+ return subscriptionResource.GetCachedClient(client => new MockableHorizonDbSubscriptionResource(client, subscriptionResource.Id));
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static HorizonDbClusterResource GetHorizonDbClusterResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableHorizonDbArmClient(client).GetHorizonDbClusterResource(id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static HorizonDbPoolResource GetHorizonDbPoolResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableHorizonDbArmClient(client).GetHorizonDbPoolResource(id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static HorizonDbReplicaResource GetHorizonDbReplicaResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableHorizonDbArmClient(client).GetHorizonDbReplicaResource(id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableHorizonDbArmClient(client).GetHorizonDbFirewallRuleResource(id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableHorizonDbArmClient(client).GetPrivateEndpointConnectionResource(id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableHorizonDbArmClient(client).GetHorizonDbPrivateLinkResource(id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableHorizonDbArmClient(client).GetHorizonDbParameterGroupResource(id);
+ }
+
+ ///
+ /// Gets a collection of HorizonDbClusters in the
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The the method will execute against.
+ /// is null.
+ /// An object representing collection of HorizonDbClusters and their operations over a HorizonDbClusterResource.
+ public static HorizonDbClusterCollection GetHorizonDbClusters(this ResourceGroupResource resourceGroupResource)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return GetMockableHorizonDbResourceGroupResource(resourceGroupResource).GetHorizonDbClusters();
+ }
+
+ ///
+ /// Gets information about a HorizonDb cluster.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The the method will execute against.
+ /// The name of the HorizonDb cluster.
+ /// The cancellation token to use.
+ /// is null.
+ [ForwardsClientCalls]
+ public static async Task> GetHorizonDbClusterAsync(this ResourceGroupResource resourceGroupResource, string clusterName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return await GetMockableHorizonDbResourceGroupResource(resourceGroupResource).GetHorizonDbClusterAsync(clusterName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets information about a HorizonDb cluster.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The the method will execute against.
+ /// The name of the HorizonDb cluster.
+ /// The cancellation token to use.
+ /// is null.
+ [ForwardsClientCalls]
+ public static Response GetHorizonDbCluster(this ResourceGroupResource resourceGroupResource, string clusterName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return GetMockableHorizonDbResourceGroupResource(resourceGroupResource).GetHorizonDbCluster(clusterName, cancellationToken);
+ }
+
+ ///
+ /// Gets a collection of HorizonDbParameterGroups in the
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The the method will execute against.
+ /// is null.
+ /// An object representing collection of HorizonDbParameterGroups and their operations over a HorizonDbParameterGroupResource.
+ public static HorizonDbParameterGroupCollection GetHorizonDbParameterGroups(this ResourceGroupResource resourceGroupResource)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return GetMockableHorizonDbResourceGroupResource(resourceGroupResource).GetHorizonDbParameterGroups();
+ }
+
+ ///
+ /// Gets information about a HorizonDb parameter group.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The the method will execute against.
+ /// The name of the HorizonDb parameter group.
+ /// The cancellation token to use.
+ /// is null.
+ [ForwardsClientCalls]
+ public static async Task> GetHorizonDbParameterGroupAsync(this ResourceGroupResource resourceGroupResource, string parameterGroupName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return await GetMockableHorizonDbResourceGroupResource(resourceGroupResource).GetHorizonDbParameterGroupAsync(parameterGroupName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets information about a HorizonDb parameter group.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The the method will execute against.
+ /// The name of the HorizonDb parameter group.
+ /// The cancellation token to use.
+ /// is null.
+ [ForwardsClientCalls]
+ public static Response GetHorizonDbParameterGroup(this ResourceGroupResource resourceGroupResource, string parameterGroupName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return GetMockableHorizonDbResourceGroupResource(resourceGroupResource).GetHorizonDbParameterGroup(parameterGroupName, cancellationToken);
+ }
+
+ ///
+ /// Updates a private endpoint connection.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The 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.
+ /// The name of the private endpoint connection associated with the Azure resource.
+ /// The resource properties to be updated.
+ /// The cancellation token to use.
+ /// is null.
+ public static async Task> UpdateAsync(this ResourceGroupResource resourceGroupResource, WaitUntil waitUntil, string privateEndpointConnectionName, PrivateEndpointConnectionUpdate properties, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return await GetMockableHorizonDbResourceGroupResource(resourceGroupResource).UpdateAsync(waitUntil, privateEndpointConnectionName, properties, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Updates a private endpoint connection.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The 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.
+ /// The name of the private endpoint connection associated with the Azure resource.
+ /// The resource properties to be updated.
+ /// The cancellation token to use.
+ /// is null.
+ public static ArmOperation Update(this ResourceGroupResource resourceGroupResource, WaitUntil waitUntil, string privateEndpointConnectionName, PrivateEndpointConnectionUpdate properties, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return GetMockableHorizonDbResourceGroupResource(resourceGroupResource).Update(waitUntil, privateEndpointConnectionName, properties, cancellationToken);
+ }
+
+ ///
+ /// Deletes a private endpoint connection.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The 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.
+ /// The name of the private endpoint connection associated with the Azure resource.
+ /// The cancellation token to use.
+ /// is null.
+ public static async Task DeleteAsync(this ResourceGroupResource resourceGroupResource, WaitUntil waitUntil, string privateEndpointConnectionName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return await GetMockableHorizonDbResourceGroupResource(resourceGroupResource).DeleteAsync(waitUntil, privateEndpointConnectionName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Deletes a private endpoint connection.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The 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.
+ /// The name of the private endpoint connection associated with the Azure resource.
+ /// The cancellation token to use.
+ /// is null.
+ public static ArmOperation Delete(this ResourceGroupResource resourceGroupResource, WaitUntil waitUntil, string privateEndpointConnectionName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return GetMockableHorizonDbResourceGroupResource(resourceGroupResource).Delete(waitUntil, privateEndpointConnectionName, cancellationToken);
+ }
+
+ ///
+ /// Lists all HorizonDb clusters in a subscription.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The 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 AsyncPageable GetHorizonDbClustersAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableHorizonDbSubscriptionResource(subscriptionResource).GetHorizonDbClustersAsync(cancellationToken);
+ }
+
+ ///
+ /// Lists all HorizonDb clusters in a subscription.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The 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 GetHorizonDbClusters(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableHorizonDbSubscriptionResource(subscriptionResource).GetHorizonDbClusters(cancellationToken);
+ }
+
+ ///
+ /// Lists all HorizonDb parameter groups in a subscription.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The 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 AsyncPageable GetHorizonDbParameterGroupsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableHorizonDbSubscriptionResource(subscriptionResource).GetHorizonDbParameterGroupsAsync(cancellationToken);
+ }
+
+ ///
+ /// Lists all HorizonDb parameter groups in a subscription.
+ /// -
+ /// Mocking.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The 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 GetHorizonDbParameterGroups(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableHorizonDbSubscriptionResource(subscriptionResource).GetHorizonDbParameterGroups(cancellationToken);
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/MockableHorizonDbArmClient.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/MockableHorizonDbArmClient.cs
new file mode 100644
index 000000000000..cd2d686b8010
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/MockableHorizonDbArmClient.cs
@@ -0,0 +1,92 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using Azure.Core;
+using Azure.ResourceManager;
+using Azure.ResourceManager.HorizonDb;
+
+namespace Azure.ResourceManager.HorizonDb.Mocking
+{
+ /// A class to add extension methods to .
+ public partial class MockableHorizonDbArmClient : ArmResource
+ {
+ /// Initializes a new instance of MockableHorizonDbArmClient for mocking.
+ protected MockableHorizonDbArmClient()
+ {
+ }
+
+ /// Initializes a new instance of class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal MockableHorizonDbArmClient(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual HorizonDbClusterResource GetHorizonDbClusterResource(ResourceIdentifier id)
+ {
+ HorizonDbClusterResource.ValidateResourceId(id);
+ return new HorizonDbClusterResource(Client, id);
+ }
+
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual HorizonDbPoolResource GetHorizonDbPoolResource(ResourceIdentifier id)
+ {
+ HorizonDbPoolResource.ValidateResourceId(id);
+ return new HorizonDbPoolResource(Client, id);
+ }
+
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual HorizonDbReplicaResource GetHorizonDbReplicaResource(ResourceIdentifier id)
+ {
+ HorizonDbReplicaResource.ValidateResourceId(id);
+ return new HorizonDbReplicaResource(Client, id);
+ }
+
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual HorizonDbFirewallRuleResource GetHorizonDbFirewallRuleResource(ResourceIdentifier id)
+ {
+ HorizonDbFirewallRuleResource.ValidateResourceId(id);
+ return new HorizonDbFirewallRuleResource(Client, id);
+ }
+
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(ResourceIdentifier id)
+ {
+ PrivateEndpointConnectionResource.ValidateResourceId(id);
+ return new PrivateEndpointConnectionResource(Client, id);
+ }
+
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual HorizonDbPrivateLinkResource GetHorizonDbPrivateLinkResource(ResourceIdentifier id)
+ {
+ HorizonDbPrivateLinkResource.ValidateResourceId(id);
+ return new HorizonDbPrivateLinkResource(Client, id);
+ }
+
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual HorizonDbParameterGroupResource GetHorizonDbParameterGroupResource(ResourceIdentifier id)
+ {
+ HorizonDbParameterGroupResource.ValidateResourceId(id);
+ return new HorizonDbParameterGroupResource(Client, id);
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/MockableHorizonDbResourceGroupResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/MockableHorizonDbResourceGroupResource.cs
new file mode 100644
index 000000000000..f5b5496186db
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/MockableHorizonDbResourceGroupResource.cs
@@ -0,0 +1,389 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+using Azure.ResourceManager.HorizonDb;
+using Azure.ResourceManager.HorizonDb.Models;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.HorizonDb.Mocking
+{
+ /// A class to add extension methods to .
+ public partial class MockableHorizonDbResourceGroupResource : ArmResource
+ {
+ private ClientDiagnostics _horizonDbPrivateEndpointConnectionsClientDiagnostics;
+ private HorizonDbPrivateEndpointConnections _horizonDbPrivateEndpointConnectionsRestClient;
+
+ /// Initializes a new instance of MockableHorizonDbResourceGroupResource for mocking.
+ protected MockableHorizonDbResourceGroupResource()
+ {
+ }
+
+ /// Initializes a new instance of class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal MockableHorizonDbResourceGroupResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private ClientDiagnostics HorizonDbPrivateEndpointConnectionsClientDiagnostics => _horizonDbPrivateEndpointConnectionsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.HorizonDb.Mocking", ProviderConstants.DefaultProviderNamespace, Diagnostics);
+
+ private HorizonDbPrivateEndpointConnections HorizonDbPrivateEndpointConnectionsRestClient => _horizonDbPrivateEndpointConnectionsRestClient ??= new HorizonDbPrivateEndpointConnections(HorizonDbPrivateEndpointConnectionsClientDiagnostics, Pipeline, Endpoint, "2026-01-20-preview");
+
+ /// Gets a collection of HorizonDbClusters in the .
+ /// An object representing collection of HorizonDbClusters and their operations over a HorizonDbClusterResource.
+ public virtual HorizonDbClusterCollection GetHorizonDbClusters()
+ {
+ return GetCachedClient(client => new HorizonDbClusterCollection(client, Id));
+ }
+
+ ///
+ /// Gets information about a HorizonDb cluster.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_Get.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ ///
+ ///
+ /// The name of the HorizonDb cluster.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual async Task> GetHorizonDbClusterAsync(string clusterName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName));
+
+ return await GetHorizonDbClusters().GetAsync(clusterName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets information about a HorizonDb cluster.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_Get.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ ///
+ ///
+ /// The name of the HorizonDb cluster.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual Response GetHorizonDbCluster(string clusterName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName));
+
+ return GetHorizonDbClusters().Get(clusterName, cancellationToken);
+ }
+
+ /// Gets a collection of HorizonDbParameterGroups in the .
+ /// An object representing collection of HorizonDbParameterGroups and their operations over a HorizonDbParameterGroupResource.
+ public virtual HorizonDbParameterGroupCollection GetHorizonDbParameterGroups()
+ {
+ return GetCachedClient(client => new HorizonDbParameterGroupCollection(client, Id));
+ }
+
+ ///
+ /// Gets information about a HorizonDb parameter group.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbParameterGroups_Get.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ ///
+ ///
+ /// The name of the HorizonDb parameter group.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual async Task> GetHorizonDbParameterGroupAsync(string parameterGroupName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName));
+
+ return await GetHorizonDbParameterGroups().GetAsync(parameterGroupName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets information about a HorizonDb parameter group.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbParameterGroups_Get.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ ///
+ ///
+ /// The name of the HorizonDb parameter group.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual Response GetHorizonDbParameterGroup(string parameterGroupName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(parameterGroupName, nameof(parameterGroupName));
+
+ return GetHorizonDbParameterGroups().Get(parameterGroupName, cancellationToken);
+ }
+
+ ///
+ /// Updates a private endpoint connection.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/privateEndpointConnections/{privateEndpointConnectionName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbPrivateEndpointConnections_Update.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-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 private endpoint connection associated with the Azure resource.
+ /// The resource properties to be updated.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ public virtual async Task> UpdateAsync(WaitUntil waitUntil, string privateEndpointConnectionName, PrivateEndpointConnectionUpdate properties, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName));
+ Argument.AssertNotNull(properties, nameof(properties));
+
+ using DiagnosticScope scope = HorizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("MockableHorizonDbResourceGroupResource.Update");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = HorizonDbPrivateEndpointConnectionsRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, privateEndpointConnectionName, PrivateEndpointConnectionUpdate.ToRequestContent(properties), context);
+ Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ HorizonDbArmOperation operation = new HorizonDbArmOperation(
+ new HorizonDbPrivateEndpointConnectionOperationSource(),
+ HorizonDbPrivateEndpointConnectionsClientDiagnostics,
+ Pipeline,
+ message.Request,
+ response,
+ OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ {
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ }
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Updates a private endpoint connection.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/privateEndpointConnections/{privateEndpointConnectionName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbPrivateEndpointConnections_Update.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-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 private endpoint connection associated with the Azure resource.
+ /// The resource properties to be updated.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ public virtual ArmOperation Update(WaitUntil waitUntil, string privateEndpointConnectionName, PrivateEndpointConnectionUpdate properties, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName));
+ Argument.AssertNotNull(properties, nameof(properties));
+
+ using DiagnosticScope scope = HorizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("MockableHorizonDbResourceGroupResource.Update");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = HorizonDbPrivateEndpointConnectionsRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, privateEndpointConnectionName, PrivateEndpointConnectionUpdate.ToRequestContent(properties), context);
+ Response response = Pipeline.ProcessMessage(message, context);
+ HorizonDbArmOperation operation = new HorizonDbArmOperation(
+ new HorizonDbPrivateEndpointConnectionOperationSource(),
+ HorizonDbPrivateEndpointConnectionsClientDiagnostics,
+ Pipeline,
+ message.Request,
+ response,
+ OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ {
+ operation.WaitForCompletion(cancellationToken);
+ }
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Deletes a private endpoint connection.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/privateEndpointConnections/{privateEndpointConnectionName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbPrivateEndpointConnections_Delete.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-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 private endpoint connection associated with the Azure resource.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ public virtual async Task DeleteAsync(WaitUntil waitUntil, string privateEndpointConnectionName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName));
+
+ using DiagnosticScope scope = HorizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("MockableHorizonDbResourceGroupResource.Delete");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = HorizonDbPrivateEndpointConnectionsRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, privateEndpointConnectionName, context);
+ Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ HorizonDbArmOperation operation = new HorizonDbArmOperation(HorizonDbPrivateEndpointConnectionsClientDiagnostics, Pipeline, message.Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ {
+ await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
+ }
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Deletes a private endpoint connection.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/privateEndpointConnections/{privateEndpointConnectionName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbPrivateEndpointConnections_Delete.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-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 private endpoint connection associated with the Azure resource.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ public virtual ArmOperation Delete(WaitUntil waitUntil, string privateEndpointConnectionName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName));
+
+ using DiagnosticScope scope = HorizonDbPrivateEndpointConnectionsClientDiagnostics.CreateScope("MockableHorizonDbResourceGroupResource.Delete");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = HorizonDbPrivateEndpointConnectionsRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, privateEndpointConnectionName, context);
+ Response response = Pipeline.ProcessMessage(message, context);
+ HorizonDbArmOperation operation = new HorizonDbArmOperation(HorizonDbPrivateEndpointConnectionsClientDiagnostics, Pipeline, message.Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ {
+ operation.WaitForCompletionResponse(cancellationToken);
+ }
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/MockableHorizonDbSubscriptionResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/MockableHorizonDbSubscriptionResource.cs
new file mode 100644
index 000000000000..dbb93ab5cc5b
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/Extensions/MockableHorizonDbSubscriptionResource.cs
@@ -0,0 +1,159 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+using Azure.ResourceManager.HorizonDb;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.HorizonDb.Mocking
+{
+ /// A class to add extension methods to .
+ public partial class MockableHorizonDbSubscriptionResource : ArmResource
+ {
+ private ClientDiagnostics _horizonDbClustersClientDiagnostics;
+ private HorizonDbClusters _horizonDbClustersRestClient;
+ private ClientDiagnostics _horizonDbParameterGroupsClientDiagnostics;
+ private HorizonDbParameterGroups _horizonDbParameterGroupsRestClient;
+
+ /// Initializes a new instance of MockableHorizonDbSubscriptionResource for mocking.
+ protected MockableHorizonDbSubscriptionResource()
+ {
+ }
+
+ /// Initializes a new instance of class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal MockableHorizonDbSubscriptionResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private ClientDiagnostics HorizonDbClustersClientDiagnostics => _horizonDbClustersClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.HorizonDb.Mocking", ProviderConstants.DefaultProviderNamespace, Diagnostics);
+
+ private HorizonDbClusters HorizonDbClustersRestClient => _horizonDbClustersRestClient ??= new HorizonDbClusters(HorizonDbClustersClientDiagnostics, Pipeline, Endpoint, "2026-01-20-preview");
+
+ private ClientDiagnostics HorizonDbParameterGroupsClientDiagnostics => _horizonDbParameterGroupsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.HorizonDb.Mocking", ProviderConstants.DefaultProviderNamespace, Diagnostics);
+
+ private HorizonDbParameterGroups HorizonDbParameterGroupsRestClient => _horizonDbParameterGroupsRestClient ??= new HorizonDbParameterGroups(HorizonDbParameterGroupsClientDiagnostics, Pipeline, Endpoint, "2026-01-20-preview");
+
+ ///
+ /// Lists all HorizonDb clusters in a subscription.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/clusters.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_ListBySubscription.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetHorizonDbClustersAsync(CancellationToken cancellationToken = default)
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ return new AsyncPageableWrapper(new HorizonDbClustersGetBySubscriptionAsyncCollectionResultOfT(HorizonDbClustersRestClient, Guid.Parse(Id.SubscriptionId), context), data => new HorizonDbClusterResource(Client, data));
+ }
+
+ ///
+ /// Lists all HorizonDb clusters in a subscription.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/clusters.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_ListBySubscription.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetHorizonDbClusters(CancellationToken cancellationToken = default)
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ return new PageableWrapper(new HorizonDbClustersGetBySubscriptionCollectionResultOfT(HorizonDbClustersRestClient, Guid.Parse(Id.SubscriptionId), context), data => new HorizonDbClusterResource(Client, data));
+ }
+
+ ///
+ /// Lists all HorizonDb parameter groups in a subscription.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/parameterGroups.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbParameterGroups_ListBySubscription.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetHorizonDbParameterGroupsAsync(CancellationToken cancellationToken = default)
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ return new AsyncPageableWrapper(new HorizonDbParameterGroupsGetBySubscriptionAsyncCollectionResultOfT(HorizonDbParameterGroupsRestClient, Guid.Parse(Id.SubscriptionId), context), data => new HorizonDbParameterGroupResource(Client, data));
+ }
+
+ ///
+ /// Lists all HorizonDb parameter groups in a subscription.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/parameterGroups.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbParameterGroups_ListBySubscription.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetHorizonDbParameterGroups(CancellationToken cancellationToken = default)
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ return new PageableWrapper(new HorizonDbParameterGroupsGetBySubscriptionCollectionResultOfT(HorizonDbParameterGroupsRestClient, Guid.Parse(Id.SubscriptionId), context), data => new HorizonDbParameterGroupResource(Client, data));
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterCollection.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterCollection.cs
new file mode 100644
index 000000000000..669518671ede
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterCollection.cs
@@ -0,0 +1,580 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ ///
+ /// A class representing a collection of and their operations.
+ /// Each in the collection will belong to the same instance of .
+ /// To get a instance call the GetHorizonDbClusters method from an instance of .
+ ///
+ public partial class HorizonDbClusterCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _horizonDbClustersClientDiagnostics;
+ private readonly HorizonDbClusters _horizonDbClustersRestClient;
+
+ /// Initializes a new instance of HorizonDbClusterCollection for mocking.
+ protected HorizonDbClusterCollection()
+ {
+ }
+
+ /// Initializes a new instance of class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal HorizonDbClusterCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ TryGetApiVersion(HorizonDbClusterResource.ResourceType, out string horizonDbClusterApiVersion);
+ _horizonDbClustersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", HorizonDbClusterResource.ResourceType.Namespace, Diagnostics);
+ _horizonDbClustersRestClient = new HorizonDbClusters(_horizonDbClustersClientDiagnostics, Pipeline, Endpoint, horizonDbClusterApiVersion ?? "2026-01-20-preview");
+ ValidateResourceId(id);
+ }
+
+ ///
+ [Conditional("DEBUG")]
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != ResourceGroupResource.ResourceType)
+ {
+ throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, ResourceGroupResource.ResourceType), nameof(id));
+ }
+ }
+
+ ///
+ /// Creates a new HorizonDb cluster or updates an existing cluster.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_CreateOrUpdate.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-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 HorizonDb cluster.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string clusterName, HorizonDbClusterData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, clusterName, HorizonDbClusterData.ToRequestContent(data), context);
+ Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ HorizonDbArmOperation operation = new HorizonDbArmOperation(
+ new HorizonDbClusterOperationSource(Client),
+ _horizonDbClustersClientDiagnostics,
+ Pipeline,
+ message.Request,
+ response,
+ OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ {
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ }
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Creates a new HorizonDb cluster or updates an existing cluster.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_CreateOrUpdate.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-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 HorizonDb cluster.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string clusterName, HorizonDbClusterData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, clusterName, HorizonDbClusterData.ToRequestContent(data), context);
+ Response response = Pipeline.ProcessMessage(message, context);
+ HorizonDbArmOperation operation = new HorizonDbArmOperation(
+ new HorizonDbClusterOperationSource(Client),
+ _horizonDbClustersClientDiagnostics,
+ Pipeline,
+ message.Request,
+ response,
+ OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ {
+ operation.WaitForCompletion(cancellationToken);
+ }
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets information about a HorizonDb cluster.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_Get.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ ///
+ ///
+ /// The name of the HorizonDb cluster.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ public virtual async Task> GetAsync(string clusterName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName));
+
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterCollection.Get");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, clusterName, context);
+ Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ Response response = Response.FromValue(HorizonDbClusterData.FromResponse(result), result);
+ if (response.Value == null)
+ {
+ throw new RequestFailedException(response.GetRawResponse());
+ }
+ return Response.FromValue(new HorizonDbClusterResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets information about a HorizonDb cluster.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_Get.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ ///
+ ///
+ /// The name of the HorizonDb cluster.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ public virtual Response Get(string clusterName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName));
+
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterCollection.Get");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, clusterName, context);
+ Response result = Pipeline.ProcessMessage(message, context);
+ Response response = Response.FromValue(HorizonDbClusterData.FromResponse(result), result);
+ if (response.Value == null)
+ {
+ throw new RequestFailedException(response.GetRawResponse());
+ }
+ return Response.FromValue(new HorizonDbClusterResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Lists all HorizonDb clusters in a resource group.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_ListByResourceGroup.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default)
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ return new AsyncPageableWrapper(new HorizonDbClustersGetByResourceGroupAsyncCollectionResultOfT(_horizonDbClustersRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, context), data => new HorizonDbClusterResource(Client, data));
+ }
+
+ ///
+ /// Lists all HorizonDb clusters in a resource group.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_ListByResourceGroup.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetAll(CancellationToken cancellationToken = default)
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ return new PageableWrapper(new HorizonDbClustersGetByResourceGroupCollectionResultOfT(_horizonDbClustersRestClient, Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, context), data => new HorizonDbClusterResource(Client, data));
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_Get.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ ///
+ ///
+ /// The name of the HorizonDb cluster.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ public virtual async Task> ExistsAsync(string clusterName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName));
+
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterCollection.Exists");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, clusterName, context);
+ await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false);
+ Response result = message.Response;
+ Response response = default;
+ switch (result.Status)
+ {
+ case 200:
+ response = Response.FromValue(HorizonDbClusterData.FromResponse(result), result);
+ break;
+ case 404:
+ response = Response.FromValue((HorizonDbClusterData)null, result);
+ break;
+ default:
+ throw new RequestFailedException(result);
+ }
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_Get.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ ///
+ ///
+ /// The name of the HorizonDb cluster.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ public virtual Response Exists(string clusterName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName));
+
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterCollection.Exists");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, clusterName, context);
+ Pipeline.Send(message, context.CancellationToken);
+ Response result = message.Response;
+ Response response = default;
+ switch (result.Status)
+ {
+ case 200:
+ response = Response.FromValue(HorizonDbClusterData.FromResponse(result), result);
+ break;
+ case 404:
+ response = Response.FromValue((HorizonDbClusterData)null, result);
+ break;
+ default:
+ throw new RequestFailedException(result);
+ }
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Tries to get details for this resource from the service.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_Get.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ ///
+ ///
+ /// The name of the HorizonDb cluster.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ public virtual async Task> GetIfExistsAsync(string clusterName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName));
+
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, clusterName, context);
+ await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false);
+ Response result = message.Response;
+ Response response = default;
+ switch (result.Status)
+ {
+ case 200:
+ response = Response.FromValue(HorizonDbClusterData.FromResponse(result), result);
+ break;
+ case 404:
+ response = Response.FromValue((HorizonDbClusterData)null, result);
+ break;
+ default:
+ throw new RequestFailedException(result);
+ }
+ if (response.Value == null)
+ {
+ return new NoValueResponse(response.GetRawResponse());
+ }
+ return Response.FromValue(new HorizonDbClusterResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Tries to get details for this resource from the service.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_Get.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ ///
+ ///
+ /// The name of the HorizonDb cluster.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ public virtual NullableResponse GetIfExists(string clusterName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName));
+
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, clusterName, context);
+ Pipeline.Send(message, context.CancellationToken);
+ Response result = message.Response;
+ Response response = default;
+ switch (result.Status)
+ {
+ case 200:
+ response = Response.FromValue(HorizonDbClusterData.FromResponse(result), result);
+ break;
+ case 404:
+ response = Response.FromValue((HorizonDbClusterData)null, result);
+ break;
+ default:
+ throw new RequestFailedException(result);
+ }
+ if (response.Value == null)
+ {
+ return new NoValueResponse(response.GetRawResponse());
+ }
+ return Response.FromValue(new HorizonDbClusterResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetAll().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetAll().GetEnumerator();
+ }
+
+ /// The cancellation token to use.
+ IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken)
+ {
+ return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken);
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterData.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterData.Serialization.cs
new file mode 100644
index 000000000000..ac9c9734c8df
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterData.Serialization.cs
@@ -0,0 +1,229 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text;
+using System.Text.Json;
+using Azure;
+using Azure.Core;
+using Azure.ResourceManager.HorizonDb.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ /// Represents the HorizonDb cluster.
+ public partial class HorizonDbClusterData : TrackedResourceData, IJsonModel
+ {
+ /// Initializes a new instance of for deserialization.
+ internal HorizonDbClusterData()
+ {
+ }
+
+ /// The data to parse.
+ /// The client options for reading and writing models.
+ protected virtual ResourceData PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options)
+ {
+ string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ switch (format)
+ {
+ case "J":
+ using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ return DeserializeHorizonDbClusterData(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(HorizonDbClusterData)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ /// The client options for reading and writing models.
+ protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options)
+ {
+ string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options, AzureResourceManagerHorizonDbContext.Default);
+ default:
+ throw new FormatException($"The model {nameof(HorizonDbClusterData)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ /// The client options for reading and writing models.
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options);
+
+ /// The data to parse.
+ /// The client options for reading and writing models.
+ HorizonDbClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HorizonDbClusterData)PersistableModelCreateCore(data, options);
+
+ /// The client options for reading and writing models.
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// The to serialize into .
+ internal static RequestContent ToRequestContent(HorizonDbClusterData horizonDbClusterData)
+ {
+ if (horizonDbClusterData == null)
+ {
+ return null;
+ }
+ return RequestContent.Create(horizonDbClusterData, ModelSerializationExtensions.WireOptions);
+ }
+
+ /// The to deserialize the from.
+ internal static HorizonDbClusterData FromResponse(Response response)
+ {
+ using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeHorizonDbClusterData(document.RootElement, ModelSerializationExtensions.WireOptions);
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(HorizonDbClusterData)} does not support writing '{format}' format.");
+ }
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(Properties))
+ {
+ writer.WritePropertyName("properties"u8);
+ writer.WriteObjectValue(Properties, options);
+ }
+ }
+
+ /// The JSON reader.
+ /// The client options for reading and writing models.
+ HorizonDbClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HorizonDbClusterData)JsonModelCreateCore(ref reader, options);
+
+ /// The JSON reader.
+ /// The client options for reading and writing models.
+ protected virtual ResourceData JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(HorizonDbClusterData)} does not support reading '{format}' format.");
+ }
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeHorizonDbClusterData(document.RootElement, options);
+ }
+
+ /// The JSON element to deserialize.
+ /// The client options for reading and writing models.
+ internal static HorizonDbClusterData DeserializeHorizonDbClusterData(JsonElement element, ModelReaderWriterOptions options)
+ {
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ ResourceIdentifier id = default;
+ string name = default;
+ ResourceType resourceType = default;
+ SystemData systemData = default;
+ IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
+ IDictionary tags = default;
+ AzureLocation location = default;
+ HorizonDbClusterProperties properties = default;
+ foreach (var prop in element.EnumerateObject())
+ {
+ if (prop.NameEquals("id"u8))
+ {
+ if (prop.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ id = new ResourceIdentifier(prop.Value.GetString());
+ continue;
+ }
+ if (prop.NameEquals("name"u8))
+ {
+ name = prop.Value.GetString();
+ continue;
+ }
+ if (prop.NameEquals("type"u8))
+ {
+ if (prop.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ resourceType = new ResourceType(prop.Value.GetString());
+ continue;
+ }
+ if (prop.NameEquals("systemData"u8))
+ {
+ if (prop.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ systemData = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(prop.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerHorizonDbContext.Default);
+ continue;
+ }
+ if (prop.NameEquals("tags"u8))
+ {
+ if (prop.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ Dictionary dictionary = new Dictionary();
+ foreach (var prop0 in prop.Value.EnumerateObject())
+ {
+ if (prop0.Value.ValueKind == JsonValueKind.Null)
+ {
+ dictionary.Add(prop0.Name, null);
+ }
+ else
+ {
+ dictionary.Add(prop0.Name, prop0.Value.GetString());
+ }
+ }
+ tags = dictionary;
+ continue;
+ }
+ if (prop.NameEquals("location"u8))
+ {
+ location = new AzureLocation(prop.Value.GetString());
+ continue;
+ }
+ if (prop.NameEquals("properties"u8))
+ {
+ if (prop.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ properties = HorizonDbClusterProperties.DeserializeHorizonDbClusterProperties(prop.Value, options);
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
+ }
+ }
+ return new HorizonDbClusterData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ additionalBinaryDataProperties,
+ tags ?? new ChangeTrackingDictionary(),
+ location,
+ properties);
+ }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterData.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterData.cs
new file mode 100644
index 000000000000..97d2f6c82ccf
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterData.cs
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure.Core;
+using Azure.ResourceManager.HorizonDb.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ /// Represents the HorizonDb cluster.
+ public partial class HorizonDbClusterData : TrackedResourceData
+ {
+ /// Keeps track of any properties unknown to the library.
+ private protected readonly IDictionary _additionalBinaryDataProperties;
+
+ /// Initializes a new instance of .
+ /// The geo-location where the resource lives.
+ public HorizonDbClusterData(AzureLocation location) : base(location)
+ {
+ }
+
+ /// Initializes a new instance of .
+ /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ /// The name of the resource.
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
+ /// Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ /// Keeps track of any properties unknown to the library.
+ /// Resource tags.
+ /// The geo-location where the resource lives.
+ /// The resource-specific properties for this resource.
+ internal HorizonDbClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, IDictionary tags, AzureLocation location, HorizonDbClusterProperties properties) : base(id, name, resourceType, systemData, tags, location)
+ {
+ _additionalBinaryDataProperties = additionalBinaryDataProperties;
+ Properties = properties;
+ }
+
+ /// The resource-specific properties for this resource.
+ public HorizonDbClusterProperties Properties { get; set; }
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterResource.Serialization.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterResource.Serialization.cs
new file mode 100644
index 000000000000..2fd0544e7e19
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterResource.Serialization.cs
@@ -0,0 +1,39 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Text.Json;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ ///
+ public partial class HorizonDbClusterResource : IJsonModel
+ {
+ private static IJsonModel s_dataDeserializationInstance;
+
+ private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new HorizonDbClusterData();
+
+ /// The writer to serialize the model to.
+ /// The client options for reading and writing models.
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
+
+ /// The reader for deserializing the model.
+ /// The client options for reading and writing models.
+ HorizonDbClusterData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => DataDeserializationInstance.Create(ref reader, options);
+
+ /// The client options for reading and writing models.
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerHorizonDbContext.Default);
+
+ /// The binary data to be processed.
+ /// The client options for reading and writing models.
+ HorizonDbClusterData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerHorizonDbContext.Default);
+
+ /// The client options for reading and writing models.
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => DataDeserializationInstance.GetFormatFromOptions(options);
+ }
+}
diff --git a/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterResource.cs b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterResource.cs
new file mode 100644
index 000000000000..652eaf78e726
--- /dev/null
+++ b/sdk/horizondb/Azure.ResourceManager.HorizonDb/src/Generated/HorizonDbClusterResource.cs
@@ -0,0 +1,781 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+using Azure.ResourceManager.HorizonDb.Models;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.HorizonDb
+{
+ ///
+ /// A class representing a HorizonDbCluster along with the instance operations that can be performed on it.
+ /// If you have a you can construct a from an instance of using the GetResource method.
+ /// Otherwise you can get one from its parent resource using the GetHorizonDbClusters method.
+ ///
+ public partial class HorizonDbClusterResource : ArmResource
+ {
+ private readonly ClientDiagnostics _horizonDbClustersClientDiagnostics;
+ private readonly HorizonDbClusters _horizonDbClustersRestClient;
+ private readonly HorizonDbClusterData _data;
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.HorizonDb/clusters";
+
+ /// Initializes a new instance of HorizonDbClusterResource for mocking.
+ protected HorizonDbClusterResource()
+ {
+ }
+
+ /// Initializes a new instance of class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal HorizonDbClusterResource(ArmClient client, HorizonDbClusterData data) : this(client, data.Id)
+ {
+ HasData = true;
+ _data = data;
+ }
+
+ /// Initializes a new instance of class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal HorizonDbClusterResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ TryGetApiVersion(ResourceType, out string horizonDbClusterApiVersion);
+ _horizonDbClustersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HorizonDb", ResourceType.Namespace, Diagnostics);
+ _horizonDbClustersRestClient = new HorizonDbClusters(_horizonDbClustersClientDiagnostics, Pipeline, Endpoint, horizonDbClusterApiVersion ?? "2026-01-20-preview");
+ ValidateResourceId(id);
+ }
+
+ /// Gets whether or not the current instance has data.
+ public virtual bool HasData { get; }
+
+ /// Gets the data representing this Feature.
+ public virtual HorizonDbClusterData Data
+ {
+ get
+ {
+ if (!HasData)
+ {
+ throw new InvalidOperationException("The current instance does not have data, you must call Get first.");
+ }
+ return _data;
+ }
+ }
+
+ /// Generate the resource identifier for this resource.
+ /// The subscriptionId.
+ /// The resourceGroupName.
+ /// The clusterName.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName)
+ {
+ string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ ///
+ [Conditional("DEBUG")]
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != ResourceType)
+ {
+ throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
+ }
+ }
+
+ ///
+ /// Gets information about a HorizonDb cluster.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_Get.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ /// -
+ /// Resource.
+ /// .
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterResource.Get");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context);
+ Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ Response response = Response.FromValue(HorizonDbClusterData.FromResponse(result), result);
+ if (response.Value == null)
+ {
+ throw new RequestFailedException(response.GetRawResponse());
+ }
+ return Response.FromValue(new HorizonDbClusterResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets information about a HorizonDb cluster.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_Get.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ /// -
+ /// Resource.
+ /// .
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterResource.Get");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context);
+ Response result = Pipeline.ProcessMessage(message, context);
+ Response response = Response.FromValue(HorizonDbClusterData.FromResponse(result), result);
+ if (response.Value == null)
+ {
+ throw new RequestFailedException(response.GetRawResponse());
+ }
+ return Response.FromValue(new HorizonDbClusterResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Updates an existing HorizonDb cluster (e.g., tags, virtual cores, replica count).
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_Update.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ /// -
+ /// Resource.
+ /// .
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The resource properties to be updated.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> UpdateAsync(WaitUntil waitUntil, HorizonDbClusterPatch patch, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(patch, nameof(patch));
+
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterResource.Update");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, HorizonDbClusterPatch.ToRequestContent(patch), context);
+ Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ HorizonDbArmOperation operation = new HorizonDbArmOperation(
+ new HorizonDbClusterOperationSource(Client),
+ _horizonDbClustersClientDiagnostics,
+ Pipeline,
+ message.Request,
+ response,
+ OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ {
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ }
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Updates an existing HorizonDb cluster (e.g., tags, virtual cores, replica count).
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_Update.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ /// -
+ /// Resource.
+ /// .
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The resource properties to be updated.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual ArmOperation Update(WaitUntil waitUntil, HorizonDbClusterPatch patch, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(patch, nameof(patch));
+
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterResource.Update");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, HorizonDbClusterPatch.ToRequestContent(patch), context);
+ Response response = Pipeline.ProcessMessage(message, context);
+ HorizonDbArmOperation operation = new HorizonDbArmOperation(
+ new HorizonDbClusterOperationSource(Client),
+ _horizonDbClustersClientDiagnostics,
+ Pipeline,
+ message.Request,
+ response,
+ OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ {
+ operation.WaitForCompletion(cancellationToken);
+ }
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Deletes a HorizonDb cluster.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_Delete.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ /// -
+ /// Resource.
+ /// .
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The cancellation token to use.
+ public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ {
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterResource.Delete");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context);
+ Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ HorizonDbArmOperation operation = new HorizonDbArmOperation(_horizonDbClustersClientDiagnostics, Pipeline, message.Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ {
+ await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
+ }
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Deletes a HorizonDb cluster.
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// HorizonDbClusters_Delete.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2026-01-20-preview.
+ ///
+ /// -
+ /// Resource.
+ /// .
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The cancellation token to use.
+ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ {
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterResource.Delete");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateDeleteRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context);
+ Response response = Pipeline.ProcessMessage(message, context);
+ HorizonDbArmOperation operation = new HorizonDbArmOperation(_horizonDbClustersClientDiagnostics, Pipeline, message.Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ {
+ operation.WaitForCompletionResponse(cancellationToken);
+ }
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ /// Add a tag to the current resource.
+ /// The key for the tag.
+ /// The value for the tag.
+ /// The cancellation token to use.
+ /// or is null.
+ public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+ Argument.AssertNotNull(value, nameof(value));
+
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterResource.AddTag");
+ scope.Start();
+ try
+ {
+ if (await CanUseTagResourceAsync(cancellationToken).ConfigureAwait(false))
+ {
+ Response originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
+ originalTags.Value.Data.TagValues[key] = value;
+ await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken).ConfigureAwait(false);
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context);
+ Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ Response response = Response.FromValue(HorizonDbClusterData.FromResponse(result), result);
+ return Response.FromValue(new HorizonDbClusterResource(Client, response.Value), response.GetRawResponse());
+ }
+ else
+ {
+ HorizonDbClusterData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
+ HorizonDbClusterPatch patch = new HorizonDbClusterPatch();
+ foreach (KeyValuePair tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags[key] = value;
+ ArmOperation result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(result.Value, result.GetRawResponse());
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ /// Add a tag to the current resource.
+ /// The key for the tag.
+ /// The value for the tag.
+ /// The cancellation token to use.
+ /// or is null.
+ public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+ Argument.AssertNotNull(value, nameof(value));
+
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterResource.AddTag");
+ scope.Start();
+ try
+ {
+ if (CanUseTagResource(cancellationToken))
+ {
+ Response originalTags = GetTagResource().Get(cancellationToken);
+ originalTags.Value.Data.TagValues[key] = value;
+ GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken);
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context);
+ Response result = Pipeline.ProcessMessage(message, context);
+ Response response = Response.FromValue(HorizonDbClusterData.FromResponse(result), result);
+ return Response.FromValue(new HorizonDbClusterResource(Client, response.Value), response.GetRawResponse());
+ }
+ else
+ {
+ HorizonDbClusterData current = Get(cancellationToken: cancellationToken).Value.Data;
+ HorizonDbClusterPatch patch = new HorizonDbClusterPatch();
+ foreach (KeyValuePair tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags[key] = value;
+ ArmOperation result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken);
+ return Response.FromValue(result.Value, result.GetRawResponse());
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ /// Replace the tags on the resource with the given set.
+ /// The tags to set on the resource.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(tags, nameof(tags));
+
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterResource.SetTags");
+ scope.Start();
+ try
+ {
+ if (await CanUseTagResourceAsync(cancellationToken).ConfigureAwait(false))
+ {
+ await GetTagResource().DeleteAsync(WaitUntil.Completed, cancellationToken).ConfigureAwait(false);
+ Response originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
+ originalTags.Value.Data.TagValues.ReplaceWith(tags);
+ await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken).ConfigureAwait(false);
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context);
+ Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ Response response = Response.FromValue(HorizonDbClusterData.FromResponse(result), result);
+ return Response.FromValue(new HorizonDbClusterResource(Client, response.Value), response.GetRawResponse());
+ }
+ else
+ {
+ HorizonDbClusterData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
+ HorizonDbClusterPatch patch = new HorizonDbClusterPatch();
+ patch.Tags.ReplaceWith(tags);
+ ArmOperation result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(result.Value, result.GetRawResponse());
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ /// Replace the tags on the resource with the given set.
+ /// The tags to set on the resource.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(tags, nameof(tags));
+
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterResource.SetTags");
+ scope.Start();
+ try
+ {
+ if (CanUseTagResource(cancellationToken))
+ {
+ GetTagResource().Delete(WaitUntil.Completed, cancellationToken);
+ Response originalTags = GetTagResource().Get(cancellationToken);
+ originalTags.Value.Data.TagValues.ReplaceWith(tags);
+ GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken);
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context);
+ Response result = Pipeline.ProcessMessage(message, context);
+ Response response = Response.FromValue(HorizonDbClusterData.FromResponse(result), result);
+ return Response.FromValue(new HorizonDbClusterResource(Client, response.Value), response.GetRawResponse());
+ }
+ else
+ {
+ HorizonDbClusterData current = Get(cancellationToken: cancellationToken).Value.Data;
+ HorizonDbClusterPatch patch = new HorizonDbClusterPatch();
+ patch.Tags.ReplaceWith(tags);
+ ArmOperation result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken);
+ return Response.FromValue(result.Value, result.GetRawResponse());
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ /// Removes a tag by key from the resource.
+ /// The key for the tag.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterResource.RemoveTag");
+ scope.Start();
+ try
+ {
+ if (await CanUseTagResourceAsync(cancellationToken).ConfigureAwait(false))
+ {
+ Response originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
+ originalTags.Value.Data.TagValues.Remove(key);
+ await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken).ConfigureAwait(false);
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context);
+ Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ Response response = Response.FromValue(HorizonDbClusterData.FromResponse(result), result);
+ return Response.FromValue(new HorizonDbClusterResource(Client, response.Value), response.GetRawResponse());
+ }
+ else
+ {
+ HorizonDbClusterData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
+ HorizonDbClusterPatch patch = new HorizonDbClusterPatch();
+ foreach (KeyValuePair tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags.Remove(key);
+ ArmOperation result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(result.Value, result.GetRawResponse());
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ /// Removes a tag by key from the resource.
+ /// The key for the tag.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+
+ using DiagnosticScope scope = _horizonDbClustersClientDiagnostics.CreateScope("HorizonDbClusterResource.RemoveTag");
+ scope.Start();
+ try
+ {
+ if (CanUseTagResource(cancellationToken))
+ {
+ Response originalTags = GetTagResource().Get(cancellationToken);
+ originalTags.Value.Data.TagValues.Remove(key);
+ GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken);
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _horizonDbClustersRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, context);
+ Response result = Pipeline.ProcessMessage(message, context);
+ Response response = Response.FromValue(HorizonDbClusterData.FromResponse(result), result);
+ return Response.FromValue(new HorizonDbClusterResource(Client, response.Value), response.GetRawResponse());
+ }
+ else
+ {
+ HorizonDbClusterData current = Get(cancellationToken: cancellationToken).Value.Data;
+ HorizonDbClusterPatch patch = new HorizonDbClusterPatch();
+ foreach (KeyValuePair tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags.Remove(key);
+ ArmOperation result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken);
+ return Response.FromValue(result.Value, result.GetRawResponse());
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ /// Gets a collection of HorizonDbPools in the